Struct openshift_openapi::api::build::v1::BuildSource[][src]

pub struct BuildSource {
    pub binary: Option<BinaryBuildSource>,
    pub config_maps: Option<Vec<ConfigMapBuildSource>>,
    pub context_dir: Option<String>,
    pub dockerfile: Option<String>,
    pub git: Option<GitBuildSource>,
    pub images: Option<Vec<ImageSource>>,
    pub secrets: Option<Vec<SecretBuildSource>>,
    pub source_secret: Option<LocalObjectReference>,
    pub type_: String,
}

BuildSource is the SCM used for the build.

Fields

binary: Option<BinaryBuildSource>

binary builds accept a binary as their input. The binary is generally assumed to be a tar, gzipped tar, or zip file depending on the strategy. For container image builds, this is the build context and an optional Dockerfile may be specified to override any Dockerfile in the build context. For Source builds, this is assumed to be an archive as described above. For Source and container image builds, if binary.asFile is set the build will receive a directory with a single file. contextDir may be used when an archive is provided. Custom builds will receive this binary as input on STDIN.

config_maps: Option<Vec<ConfigMapBuildSource>>

configMaps represents a list of configMaps and their destinations that will be used for the build.

context_dir: Option<String>

contextDir specifies the sub-directory where the source code for the application exists. This allows to have buildable sources in directory other than root of repository.

dockerfile: Option<String>

dockerfile is the raw contents of a Dockerfile which should be built. When this option is specified, the FROM may be modified based on your strategy base image and additional ENV stanzas from your strategy environment will be added after the FROM, but before the rest of your Dockerfile stanzas. The Dockerfile source type may be used with other options like git - in those cases the Git repo will have any innate Dockerfile replaced in the context dir.

git: Option<GitBuildSource>

git contains optional information about git build source

images: Option<Vec<ImageSource>>

images describes a set of images to be used to provide source for the build

secrets: Option<Vec<SecretBuildSource>>

secrets represents a list of secrets and their destinations that will be used only for the build.

source_secret: Option<LocalObjectReference>

sourceSecret is the name of a Secret that would be used for setting up the authentication for cloning private repository. The secret contains valid credentials for remote repository, where the data's key represent the authentication method to be used and value is the base64 encoded credentials. Supported auth methods are: ssh-privatekey.

type_: String

type of build input to accept

Trait Implementations

impl Clone for BuildSource[src]

impl Debug for BuildSource[src]

impl Default for BuildSource[src]

impl<'de> Deserialize<'de> for BuildSource[src]

impl PartialEq<BuildSource> for BuildSource[src]

impl Serialize for BuildSource[src]

impl StructuralPartialEq for BuildSource[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.