v1

package
v1.3.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = ""

Variables

View Source
var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func AddToScheme added in v1.1.3

func AddToScheme(scheme *runtime.Scheme)

func Convert_api_BinaryBuildRequestOptions_To_v1_BinaryBuildRequestOptions

func Convert_api_BinaryBuildRequestOptions_To_v1_BinaryBuildRequestOptions(in *build_api.BinaryBuildRequestOptions, out *BinaryBuildRequestOptions, s conversion.Scope) error

func Convert_api_BinaryBuildSource_To_v1_BinaryBuildSource

func Convert_api_BinaryBuildSource_To_v1_BinaryBuildSource(in *build_api.BinaryBuildSource, out *BinaryBuildSource, s conversion.Scope) error

func Convert_api_BuildConfigList_To_v1_BuildConfigList

func Convert_api_BuildConfigList_To_v1_BuildConfigList(in *build_api.BuildConfigList, out *BuildConfigList, s conversion.Scope) error

func Convert_api_BuildConfigSpec_To_v1_BuildConfigSpec

func Convert_api_BuildConfigSpec_To_v1_BuildConfigSpec(in *build_api.BuildConfigSpec, out *BuildConfigSpec, s conversion.Scope) error

func Convert_api_BuildConfigStatus_To_v1_BuildConfigStatus

func Convert_api_BuildConfigStatus_To_v1_BuildConfigStatus(in *build_api.BuildConfigStatus, out *BuildConfigStatus, s conversion.Scope) error

func Convert_api_BuildConfig_To_v1_BuildConfig

func Convert_api_BuildConfig_To_v1_BuildConfig(in *build_api.BuildConfig, out *BuildConfig, s conversion.Scope) error

func Convert_api_BuildList_To_v1_BuildList

func Convert_api_BuildList_To_v1_BuildList(in *build_api.BuildList, out *BuildList, s conversion.Scope) error

func Convert_api_BuildLogOptions_To_v1_BuildLogOptions

func Convert_api_BuildLogOptions_To_v1_BuildLogOptions(in *build_api.BuildLogOptions, out *BuildLogOptions, s conversion.Scope) error

func Convert_api_BuildLog_To_v1_BuildLog

func Convert_api_BuildLog_To_v1_BuildLog(in *build_api.BuildLog, out *BuildLog, s conversion.Scope) error

func Convert_api_BuildOutput_To_v1_BuildOutput

func Convert_api_BuildOutput_To_v1_BuildOutput(in *build_api.BuildOutput, out *BuildOutput, s conversion.Scope) error

func Convert_api_BuildPostCommitSpec_To_v1_BuildPostCommitSpec

func Convert_api_BuildPostCommitSpec_To_v1_BuildPostCommitSpec(in *build_api.BuildPostCommitSpec, out *BuildPostCommitSpec, s conversion.Scope) error

func Convert_api_BuildRequest_To_v1_BuildRequest

func Convert_api_BuildRequest_To_v1_BuildRequest(in *build_api.BuildRequest, out *BuildRequest, s conversion.Scope) error

func Convert_api_BuildSource_To_v1_BuildSource

func Convert_api_BuildSource_To_v1_BuildSource(in *newer.BuildSource, out *BuildSource, s conversion.Scope) error

func Convert_api_BuildSpec_To_v1_BuildSpec

func Convert_api_BuildSpec_To_v1_BuildSpec(in *build_api.BuildSpec, out *BuildSpec, s conversion.Scope) error

func Convert_api_BuildStatus_To_v1_BuildStatus

func Convert_api_BuildStatus_To_v1_BuildStatus(in *build_api.BuildStatus, out *BuildStatus, s conversion.Scope) error

func Convert_api_BuildStrategy_To_v1_BuildStrategy

func Convert_api_BuildStrategy_To_v1_BuildStrategy(in *newer.BuildStrategy, out *BuildStrategy, s conversion.Scope) error

func Convert_api_BuildTriggerPolicy_To_v1_BuildTriggerPolicy

func Convert_api_BuildTriggerPolicy_To_v1_BuildTriggerPolicy(in *build_api.BuildTriggerPolicy, out *BuildTriggerPolicy, s conversion.Scope) error

func Convert_api_Build_To_v1_Build

func Convert_api_Build_To_v1_Build(in *build_api.Build, out *Build, s conversion.Scope) error

func Convert_api_CustomBuildStrategy_To_v1_CustomBuildStrategy

func Convert_api_CustomBuildStrategy_To_v1_CustomBuildStrategy(in *build_api.CustomBuildStrategy, out *CustomBuildStrategy, s conversion.Scope) error

func Convert_api_DockerBuildStrategy_To_v1_DockerBuildStrategy

func Convert_api_DockerBuildStrategy_To_v1_DockerBuildStrategy(in *build_api.DockerBuildStrategy, out *DockerBuildStrategy, s conversion.Scope) error

func Convert_api_GitBuildSource_To_v1_GitBuildSource

func Convert_api_GitBuildSource_To_v1_GitBuildSource(in *build_api.GitBuildSource, out *GitBuildSource, s conversion.Scope) error

func Convert_api_GitSourceRevision_To_v1_GitSourceRevision

func Convert_api_GitSourceRevision_To_v1_GitSourceRevision(in *build_api.GitSourceRevision, out *GitSourceRevision, s conversion.Scope) error

func Convert_api_ImageChangeTrigger_To_v1_ImageChangeTrigger

func Convert_api_ImageChangeTrigger_To_v1_ImageChangeTrigger(in *build_api.ImageChangeTrigger, out *ImageChangeTrigger, s conversion.Scope) error

func Convert_api_ImageSourcePath_To_v1_ImageSourcePath

func Convert_api_ImageSourcePath_To_v1_ImageSourcePath(in *build_api.ImageSourcePath, out *ImageSourcePath, s conversion.Scope) error

func Convert_api_ImageSource_To_v1_ImageSource

func Convert_api_ImageSource_To_v1_ImageSource(in *build_api.ImageSource, out *ImageSource, s conversion.Scope) error

func Convert_api_JenkinsPipelineBuildStrategy_To_v1_JenkinsPipelineBuildStrategy

func Convert_api_JenkinsPipelineBuildStrategy_To_v1_JenkinsPipelineBuildStrategy(in *build_api.JenkinsPipelineBuildStrategy, out *JenkinsPipelineBuildStrategy, s conversion.Scope) error

func Convert_api_SecretBuildSource_To_v1_SecretBuildSource

func Convert_api_SecretBuildSource_To_v1_SecretBuildSource(in *build_api.SecretBuildSource, out *SecretBuildSource, s conversion.Scope) error

func Convert_api_SecretSpec_To_v1_SecretSpec

func Convert_api_SecretSpec_To_v1_SecretSpec(in *build_api.SecretSpec, out *SecretSpec, s conversion.Scope) error

func Convert_api_SourceBuildStrategy_To_v1_SourceBuildStrategy

func Convert_api_SourceBuildStrategy_To_v1_SourceBuildStrategy(in *build_api.SourceBuildStrategy, out *SourceBuildStrategy, s conversion.Scope) error

func Convert_api_SourceControlUser_To_v1_SourceControlUser

func Convert_api_SourceControlUser_To_v1_SourceControlUser(in *build_api.SourceControlUser, out *SourceControlUser, s conversion.Scope) error

func Convert_api_SourceRevision_To_v1_SourceRevision

func Convert_api_SourceRevision_To_v1_SourceRevision(in *newer.SourceRevision, out *SourceRevision, s conversion.Scope) error

func Convert_api_WebHookTrigger_To_v1_WebHookTrigger

func Convert_api_WebHookTrigger_To_v1_WebHookTrigger(in *build_api.WebHookTrigger, out *WebHookTrigger, s conversion.Scope) error

func Convert_v1_BinaryBuildRequestOptions_To_api_BinaryBuildRequestOptions

func Convert_v1_BinaryBuildRequestOptions_To_api_BinaryBuildRequestOptions(in *BinaryBuildRequestOptions, out *build_api.BinaryBuildRequestOptions, s conversion.Scope) error

func Convert_v1_BinaryBuildSource_To_api_BinaryBuildSource

func Convert_v1_BinaryBuildSource_To_api_BinaryBuildSource(in *BinaryBuildSource, out *build_api.BinaryBuildSource, s conversion.Scope) error

func Convert_v1_BuildConfigList_To_api_BuildConfigList

func Convert_v1_BuildConfigList_To_api_BuildConfigList(in *BuildConfigList, out *build_api.BuildConfigList, s conversion.Scope) error

func Convert_v1_BuildConfigSpec_To_api_BuildConfigSpec

func Convert_v1_BuildConfigSpec_To_api_BuildConfigSpec(in *BuildConfigSpec, out *build_api.BuildConfigSpec, s conversion.Scope) error

func Convert_v1_BuildConfigStatus_To_api_BuildConfigStatus

func Convert_v1_BuildConfigStatus_To_api_BuildConfigStatus(in *BuildConfigStatus, out *build_api.BuildConfigStatus, s conversion.Scope) error

func Convert_v1_BuildConfig_To_api_BuildConfig

func Convert_v1_BuildConfig_To_api_BuildConfig(in *BuildConfig, out *newer.BuildConfig, s conversion.Scope) error

func Convert_v1_BuildList_To_api_BuildList

func Convert_v1_BuildList_To_api_BuildList(in *BuildList, out *build_api.BuildList, s conversion.Scope) error

func Convert_v1_BuildLogOptions_To_api_BuildLogOptions

func Convert_v1_BuildLogOptions_To_api_BuildLogOptions(in *BuildLogOptions, out *build_api.BuildLogOptions, s conversion.Scope) error

func Convert_v1_BuildLog_To_api_BuildLog

func Convert_v1_BuildLog_To_api_BuildLog(in *BuildLog, out *build_api.BuildLog, s conversion.Scope) error

func Convert_v1_BuildOutput_To_api_BuildOutput

func Convert_v1_BuildOutput_To_api_BuildOutput(in *BuildOutput, out *newer.BuildOutput, s conversion.Scope) error

func Convert_v1_BuildPostCommitSpec_To_api_BuildPostCommitSpec

func Convert_v1_BuildPostCommitSpec_To_api_BuildPostCommitSpec(in *BuildPostCommitSpec, out *build_api.BuildPostCommitSpec, s conversion.Scope) error

func Convert_v1_BuildRequest_To_api_BuildRequest

func Convert_v1_BuildRequest_To_api_BuildRequest(in *BuildRequest, out *build_api.BuildRequest, s conversion.Scope) error

func Convert_v1_BuildSource_To_api_BuildSource

func Convert_v1_BuildSource_To_api_BuildSource(in *BuildSource, out *build_api.BuildSource, s conversion.Scope) error

func Convert_v1_BuildSpec_To_api_BuildSpec

func Convert_v1_BuildSpec_To_api_BuildSpec(in *BuildSpec, out *build_api.BuildSpec, s conversion.Scope) error

func Convert_v1_BuildStatus_To_api_BuildStatus

func Convert_v1_BuildStatus_To_api_BuildStatus(in *BuildStatus, out *build_api.BuildStatus, s conversion.Scope) error

func Convert_v1_BuildStrategy_To_api_BuildStrategy

func Convert_v1_BuildStrategy_To_api_BuildStrategy(in *BuildStrategy, out *build_api.BuildStrategy, s conversion.Scope) error

func Convert_v1_BuildTriggerPolicy_To_api_BuildTriggerPolicy

func Convert_v1_BuildTriggerPolicy_To_api_BuildTriggerPolicy(in *BuildTriggerPolicy, out *newer.BuildTriggerPolicy, s conversion.Scope) error

func Convert_v1_Build_To_api_Build

func Convert_v1_Build_To_api_Build(in *Build, out *build_api.Build, s conversion.Scope) error

func Convert_v1_CustomBuildStrategy_To_api_CustomBuildStrategy

func Convert_v1_CustomBuildStrategy_To_api_CustomBuildStrategy(in *CustomBuildStrategy, out *newer.CustomBuildStrategy, s conversion.Scope) error

func Convert_v1_DockerBuildStrategy_To_api_DockerBuildStrategy

func Convert_v1_DockerBuildStrategy_To_api_DockerBuildStrategy(in *DockerBuildStrategy, out *newer.DockerBuildStrategy, s conversion.Scope) error

func Convert_v1_GenericWebHookEvent_To_api_GenericWebHookEvent

func Convert_v1_GenericWebHookEvent_To_api_GenericWebHookEvent(in *GenericWebHookEvent, out *build_api.GenericWebHookEvent, s conversion.Scope) error

func Convert_v1_GitBuildSource_To_api_GitBuildSource

func Convert_v1_GitBuildSource_To_api_GitBuildSource(in *GitBuildSource, out *build_api.GitBuildSource, s conversion.Scope) error

func Convert_v1_GitInfo_To_api_GitInfo

func Convert_v1_GitInfo_To_api_GitInfo(in *GitInfo, out *build_api.GitInfo, s conversion.Scope) error

func Convert_v1_GitSourceRevision_To_api_GitSourceRevision

func Convert_v1_GitSourceRevision_To_api_GitSourceRevision(in *GitSourceRevision, out *build_api.GitSourceRevision, s conversion.Scope) error

func Convert_v1_ImageChangeTrigger_To_api_ImageChangeTrigger

func Convert_v1_ImageChangeTrigger_To_api_ImageChangeTrigger(in *ImageChangeTrigger, out *build_api.ImageChangeTrigger, s conversion.Scope) error

func Convert_v1_ImageSourcePath_To_api_ImageSourcePath

func Convert_v1_ImageSourcePath_To_api_ImageSourcePath(in *ImageSourcePath, out *build_api.ImageSourcePath, s conversion.Scope) error

func Convert_v1_ImageSource_To_api_ImageSource

func Convert_v1_ImageSource_To_api_ImageSource(in *ImageSource, out *build_api.ImageSource, s conversion.Scope) error

func Convert_v1_JenkinsPipelineBuildStrategy_To_api_JenkinsPipelineBuildStrategy

func Convert_v1_JenkinsPipelineBuildStrategy_To_api_JenkinsPipelineBuildStrategy(in *JenkinsPipelineBuildStrategy, out *build_api.JenkinsPipelineBuildStrategy, s conversion.Scope) error

func Convert_v1_SecretBuildSource_To_api_SecretBuildSource

func Convert_v1_SecretBuildSource_To_api_SecretBuildSource(in *SecretBuildSource, out *build_api.SecretBuildSource, s conversion.Scope) error

func Convert_v1_SecretSpec_To_api_SecretSpec

func Convert_v1_SecretSpec_To_api_SecretSpec(in *SecretSpec, out *build_api.SecretSpec, s conversion.Scope) error

func Convert_v1_SourceBuildStrategy_To_api_SourceBuildStrategy

func Convert_v1_SourceBuildStrategy_To_api_SourceBuildStrategy(in *SourceBuildStrategy, out *newer.SourceBuildStrategy, s conversion.Scope) error

func Convert_v1_SourceControlUser_To_api_SourceControlUser

func Convert_v1_SourceControlUser_To_api_SourceControlUser(in *SourceControlUser, out *build_api.SourceControlUser, s conversion.Scope) error

func Convert_v1_SourceRevision_To_api_SourceRevision

func Convert_v1_SourceRevision_To_api_SourceRevision(in *SourceRevision, out *build_api.SourceRevision, s conversion.Scope) error

func Convert_v1_WebHookTrigger_To_api_WebHookTrigger

func Convert_v1_WebHookTrigger_To_api_WebHookTrigger(in *WebHookTrigger, out *build_api.WebHookTrigger, s conversion.Scope) error

func DeepCopy_v1_BinaryBuildSource

func DeepCopy_v1_BinaryBuildSource(in BinaryBuildSource, out *BinaryBuildSource, c *conversion.Cloner) error

func DeepCopy_v1_Build

func DeepCopy_v1_Build(in Build, out *Build, c *conversion.Cloner) error

func DeepCopy_v1_BuildConfig

func DeepCopy_v1_BuildConfig(in BuildConfig, out *BuildConfig, c *conversion.Cloner) error

func DeepCopy_v1_BuildConfigList

func DeepCopy_v1_BuildConfigList(in BuildConfigList, out *BuildConfigList, c *conversion.Cloner) error

func DeepCopy_v1_BuildConfigSpec

func DeepCopy_v1_BuildConfigSpec(in BuildConfigSpec, out *BuildConfigSpec, c *conversion.Cloner) error

func DeepCopy_v1_BuildConfigStatus

func DeepCopy_v1_BuildConfigStatus(in BuildConfigStatus, out *BuildConfigStatus, c *conversion.Cloner) error

func DeepCopy_v1_BuildList

func DeepCopy_v1_BuildList(in BuildList, out *BuildList, c *conversion.Cloner) error

func DeepCopy_v1_BuildLog

func DeepCopy_v1_BuildLog(in BuildLog, out *BuildLog, c *conversion.Cloner) error

func DeepCopy_v1_BuildLogOptions

func DeepCopy_v1_BuildLogOptions(in BuildLogOptions, out *BuildLogOptions, c *conversion.Cloner) error

func DeepCopy_v1_BuildOutput

func DeepCopy_v1_BuildOutput(in BuildOutput, out *BuildOutput, c *conversion.Cloner) error

func DeepCopy_v1_BuildPostCommitSpec

func DeepCopy_v1_BuildPostCommitSpec(in BuildPostCommitSpec, out *BuildPostCommitSpec, c *conversion.Cloner) error

func DeepCopy_v1_BuildRequest

func DeepCopy_v1_BuildRequest(in BuildRequest, out *BuildRequest, c *conversion.Cloner) error

func DeepCopy_v1_BuildSource

func DeepCopy_v1_BuildSource(in BuildSource, out *BuildSource, c *conversion.Cloner) error

func DeepCopy_v1_BuildSpec

func DeepCopy_v1_BuildSpec(in BuildSpec, out *BuildSpec, c *conversion.Cloner) error

func DeepCopy_v1_BuildStatus

func DeepCopy_v1_BuildStatus(in BuildStatus, out *BuildStatus, c *conversion.Cloner) error

func DeepCopy_v1_BuildStrategy

func DeepCopy_v1_BuildStrategy(in BuildStrategy, out *BuildStrategy, c *conversion.Cloner) error

func DeepCopy_v1_BuildTriggerPolicy

func DeepCopy_v1_BuildTriggerPolicy(in BuildTriggerPolicy, out *BuildTriggerPolicy, c *conversion.Cloner) error

func DeepCopy_v1_CustomBuildStrategy

func DeepCopy_v1_CustomBuildStrategy(in CustomBuildStrategy, out *CustomBuildStrategy, c *conversion.Cloner) error

func DeepCopy_v1_DockerBuildStrategy

func DeepCopy_v1_DockerBuildStrategy(in DockerBuildStrategy, out *DockerBuildStrategy, c *conversion.Cloner) error

func DeepCopy_v1_GenericWebHookEvent

func DeepCopy_v1_GenericWebHookEvent(in GenericWebHookEvent, out *GenericWebHookEvent, c *conversion.Cloner) error

func DeepCopy_v1_GitBuildSource

func DeepCopy_v1_GitBuildSource(in GitBuildSource, out *GitBuildSource, c *conversion.Cloner) error

func DeepCopy_v1_GitInfo

func DeepCopy_v1_GitInfo(in GitInfo, out *GitInfo, c *conversion.Cloner) error

func DeepCopy_v1_GitSourceRevision

func DeepCopy_v1_GitSourceRevision(in GitSourceRevision, out *GitSourceRevision, c *conversion.Cloner) error

func DeepCopy_v1_ImageChangeTrigger

func DeepCopy_v1_ImageChangeTrigger(in ImageChangeTrigger, out *ImageChangeTrigger, c *conversion.Cloner) error

func DeepCopy_v1_ImageSource

func DeepCopy_v1_ImageSource(in ImageSource, out *ImageSource, c *conversion.Cloner) error

func DeepCopy_v1_ImageSourcePath

func DeepCopy_v1_ImageSourcePath(in ImageSourcePath, out *ImageSourcePath, c *conversion.Cloner) error

func DeepCopy_v1_SecretBuildSource

func DeepCopy_v1_SecretBuildSource(in SecretBuildSource, out *SecretBuildSource, c *conversion.Cloner) error

func DeepCopy_v1_SecretSpec

func DeepCopy_v1_SecretSpec(in SecretSpec, out *SecretSpec, c *conversion.Cloner) error

func DeepCopy_v1_SourceBuildStrategy

func DeepCopy_v1_SourceBuildStrategy(in SourceBuildStrategy, out *SourceBuildStrategy, c *conversion.Cloner) error

func DeepCopy_v1_SourceControlUser

func DeepCopy_v1_SourceControlUser(in SourceControlUser, out *SourceControlUser, c *conversion.Cloner) error

func DeepCopy_v1_SourceRevision

func DeepCopy_v1_SourceRevision(in SourceRevision, out *SourceRevision, c *conversion.Cloner) error

func DeepCopy_v1_WebHookTrigger

func DeepCopy_v1_WebHookTrigger(in WebHookTrigger, out *WebHookTrigger, c *conversion.Cloner) error

Types

type BinaryBuildRequestOptions added in v1.0.7

type BinaryBuildRequestOptions struct {
	unversioned.TypeMeta `json:",inline"`
	// metadata for BinaryBuildRequestOptions.
	kapi.ObjectMeta `json:"metadata,omitempty"`

	// asFile determines if the binary should be created as a file within the source rather than extracted as an archive
	AsFile string `json:"asFile,omitempty"`

	// revision.commit is the value identifying a specific commit
	Commit string `json:"revision.commit,omitempty"`

	// revision.message is the description of a specific commit
	Message string `json:"revision.message,omitempty"`

	// revision.authorName of the source control user
	AuthorName string `json:"revision.authorName,omitempty"`

	// revision.authorEmail of the source control user
	AuthorEmail string `json:"revision.authorEmail,omitempty"`

	// revision.committerName of the source control user
	CommitterName string `json:"revision.committerName,omitempty"`

	// revision.committerEmail of the source control user
	CommitterEmail string `json:"revision.committerEmail,omitempty"`
}

BinaryBuildRequestOptions are the options required to fully speficy a binary build request

func (*BinaryBuildRequestOptions) GetObjectKind added in v1.1.3

func (obj *BinaryBuildRequestOptions) GetObjectKind() unversioned.ObjectKind

func (BinaryBuildRequestOptions) SwaggerDoc added in v1.1.4

func (BinaryBuildRequestOptions) SwaggerDoc() map[string]string

type BinaryBuildSource added in v1.0.7

type BinaryBuildSource struct {
	// asFile indicates that the provided binary input should be considered a single file
	// within the build input. For example, specifying "webapp.war" would place the provided
	// binary as `/webapp.war` for the builder. If left empty, the Docker and Source build
	// strategies assume this file is a zip, tar, or tar.gz file and extract it as the source.
	// The custom strategy receives this binary as standard input. This filename may not
	// contain slashes or be '..' or '.'.
	AsFile string `json:"asFile,omitempty"`
}

BinaryBuildSource describes a binary file to be used for the Docker and Source build strategies, where the file will be extracted and used as the build source.

func (BinaryBuildSource) SwaggerDoc added in v1.1.4

func (BinaryBuildSource) SwaggerDoc() map[string]string

type Build

type Build struct {
	unversioned.TypeMeta `json:",inline"`
	// Standard object's metadata.
	kapi.ObjectMeta `json:"metadata,omitempty"`

	// spec is all the inputs used to execute the build.
	Spec BuildSpec `json:"spec,omitempty"`

	// status is the current status of the build.
	Status BuildStatus `json:"status,omitempty"`
}

Build encapsulates the inputs needed to produce a new deployable image, as well as the status of the execution and a reference to the Pod which executed the build.

func (*Build) GetObjectKind added in v1.1.3

func (obj *Build) GetObjectKind() unversioned.ObjectKind

func (Build) SwaggerDoc added in v1.1.4

func (Build) SwaggerDoc() map[string]string

type BuildConfig

type BuildConfig struct {
	unversioned.TypeMeta `json:",inline"`
	// metadata for BuildConfig.
	kapi.ObjectMeta `json:"metadata,omitempty"`

	// spec holds all the input necessary to produce a new build, and the conditions when
	// to trigger them.
	Spec BuildConfigSpec `json:"spec"`
	// status holds any relevant information about a build config
	Status BuildConfigStatus `json:"status"`
}

BuildConfig is a template which can be used to create new builds.

func (*BuildConfig) GetObjectKind added in v1.1.3

func (obj *BuildConfig) GetObjectKind() unversioned.ObjectKind

func (BuildConfig) SwaggerDoc added in v1.1.4

func (BuildConfig) SwaggerDoc() map[string]string

type BuildConfigList

type BuildConfigList struct {
	unversioned.TypeMeta `json:",inline"`
	// metadata for BuildConfigList.
	unversioned.ListMeta `json:"metadata,omitempty"`

	// items is a list of build configs
	Items []BuildConfig `json:"items"`
}

BuildConfigList is a collection of BuildConfigs.

func (*BuildConfigList) GetObjectKind added in v1.1.3

func (obj *BuildConfigList) GetObjectKind() unversioned.ObjectKind

func (BuildConfigList) SwaggerDoc added in v1.1.4

func (BuildConfigList) SwaggerDoc() map[string]string

type BuildConfigSpec

type BuildConfigSpec struct {
	// triggers determine how new Builds can be launched from a BuildConfig. If no triggers
	// are defined, a new build can only occur as a result of an explicit client build creation.
	Triggers []BuildTriggerPolicy `json:"triggers"`

	// RunPolicy describes how the new build created from this build
	// configuration will be scheduled for execution.
	// This is optional, if not specified we default to "Serial".
	RunPolicy BuildRunPolicy `json:"runPolicy,omitempty"`

	// BuildSpec is the desired build specification
	BuildSpec `json:",inline"`
}

BuildConfigSpec describes when and how builds are created

func (BuildConfigSpec) SwaggerDoc added in v1.1.4

func (BuildConfigSpec) SwaggerDoc() map[string]string

type BuildConfigStatus

type BuildConfigStatus struct {
	// lastVersion is used to inform about number of last triggered build.
	LastVersion int `json:"lastVersion"`
}

BuildConfigStatus contains current state of the build config object.

func (BuildConfigStatus) SwaggerDoc added in v1.1.4

func (BuildConfigStatus) SwaggerDoc() map[string]string

type BuildList

type BuildList struct {
	unversioned.TypeMeta `json:",inline"`
	// metadata for BuildList.
	unversioned.ListMeta `json:"metadata,omitempty"`

	// items is a list of builds
	Items []Build `json:"items"`
}

BuildList is a collection of Builds.

func (*BuildList) GetObjectKind added in v1.1.3

func (obj *BuildList) GetObjectKind() unversioned.ObjectKind

func (BuildList) SwaggerDoc added in v1.1.4

func (BuildList) SwaggerDoc() map[string]string

type BuildLog

type BuildLog struct {
	unversioned.TypeMeta `json:",inline"`
}

BuildLog is the (unused) resource associated with the build log redirector

func (*BuildLog) GetObjectKind added in v1.1.3

func (obj *BuildLog) GetObjectKind() unversioned.ObjectKind

func (BuildLog) SwaggerDoc added in v1.1.4

func (BuildLog) SwaggerDoc() map[string]string

type BuildLogOptions

type BuildLogOptions struct {
	unversioned.TypeMeta `json:",inline"`

	// cointainer for which to stream logs. Defaults to only container if there is one container in the pod.
	Container string `json:"container,omitempty"`
	// follow if true indicates that the build log should be streamed until
	// the build terminates.
	Follow bool `json:"follow,omitempty"`
	// previous returns previous build logs. Defaults to false.
	Previous bool `json:"previous,omitempty"`
	// sinceSeconds is a relative time in seconds before the current time from which to show logs. If this value
	// precedes the time a pod was started, only logs since the pod start will be returned.
	// If this value is in the future, no logs will be returned.
	// Only one of sinceSeconds or sinceTime may be specified.
	SinceSeconds *int64 `json:"sinceSeconds,omitempty"`
	// sinceTime is an RFC3339 timestamp from which to show logs. If this value
	// preceeds the time a pod was started, only logs since the pod start will be returned.
	// If this value is in the future, no logs will be returned.
	// Only one of sinceSeconds or sinceTime may be specified.
	SinceTime *unversioned.Time `json:"sinceTime,omitempty"`
	// timestamps, If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
	// of log output. Defaults to false.
	Timestamps bool `json:"timestamps,omitempty"`
	// tailLines, If set, is the number of lines from the end of the logs to show. If not specified,
	// logs are shown from the creation of the container or sinceSeconds or sinceTime
	TailLines *int64 `json:"tailLines,omitempty"`
	// limitBytes, If set, is the number of bytes to read from the server before terminating the
	// log output. This may not display a complete final line of logging, and may return
	// slightly more or slightly less than the specified limit.
	LimitBytes *int64 `json:"limitBytes,omitempty"`

	// noWait if true causes the call to return immediately even if the build
	// is not available yet. Otherwise the server will wait until the build has started.
	// TODO: Fix the tag to 'noWait' in v2
	NoWait bool `json:"nowait,omitempty"`

	// version of the build for which to view logs.
	Version *int64 `json:"version,omitempty"`
}

BuildLogOptions is the REST options for a build log

func (*BuildLogOptions) GetObjectKind added in v1.1.3

func (obj *BuildLogOptions) GetObjectKind() unversioned.ObjectKind

func (BuildLogOptions) SwaggerDoc added in v1.1.4

func (BuildLogOptions) SwaggerDoc() map[string]string

type BuildOutput

type BuildOutput struct {
	// to defines an optional location to push the output of this build to.
	// Kind must be one of 'ImageStreamTag' or 'DockerImage'.
	// This value will be used to look up a Docker image repository to push to.
	// In the case of an ImageStreamTag, the ImageStreamTag will be looked for in the namespace of
	// the build unless Namespace is specified.
	To *kapi.ObjectReference `json:"to,omitempty"`

	// PushSecret is the name of a Secret that would be used for setting
	// up the authentication for executing the Docker push to authentication
	// enabled Docker Registry (or Docker Hub).
	PushSecret *kapi.LocalObjectReference `json:"pushSecret,omitempty"`
}

BuildOutput is input to a build strategy and describes the Docker image that the strategy should produce.

func (BuildOutput) SwaggerDoc added in v1.1.4

func (BuildOutput) SwaggerDoc() map[string]string

type BuildPhase

type BuildPhase string

BuildPhase represents the status of a build at a point in time.

const (
	// BuildPhaseNew is automatically assigned to a newly created build.
	BuildPhaseNew BuildPhase = "New"

	// BuildPhasePending indicates that a pod name has been assigned and a build is
	// about to start running.
	BuildPhasePending BuildPhase = "Pending"

	// BuildPhaseRunning indicates that a pod has been created and a build is running.
	BuildPhaseRunning BuildPhase = "Running"

	// BuildPhaseComplete indicates that a build has been successful.
	BuildPhaseComplete BuildPhase = "Complete"

	// BuildPhaseFailed indicates that a build has executed and failed.
	BuildPhaseFailed BuildPhase = "Failed"

	// BuildPhaseError indicates that an error prevented the build from executing.
	BuildPhaseError BuildPhase = "Error"

	// BuildPhaseCancelled indicates that a running/pending build was stopped from executing.
	BuildPhaseCancelled BuildPhase = "Cancelled"
)

Valid values for BuildPhase.

type BuildPostCommitSpec added in v1.1.3

type BuildPostCommitSpec struct {
	// command is the command to run. It may not be specified with Script.
	// This might be needed if the image doesn't have `/bin/sh`, or if you
	// do not want to use a shell. In all other cases, using Script might be
	// more convenient.
	Command []string `json:"command,omitempty"`
	// args is a list of arguments that are provided to either Command,
	// Script or the Docker image's default entrypoint. The arguments are
	// placed immediately after the command to be run.
	Args []string `json:"args,omitempty"`
	// script is a shell script to be run with `/bin/sh -ic`. It may not be
	// specified with Command. Use Script when a shell script is appropriate
	// to execute the post build hook, for example for running unit tests
	// with `rake test`. If you need control over the image entrypoint, or
	// if the image does not have `/bin/sh`, use Command and/or Args.
	// The `-i` flag is needed to support CentOS and RHEL images that use
	// Software Collections (SCL), in order to have the appropriate
	// collections enabled in the shell. E.g., in the Ruby image, this is
	// necessary to make `ruby`, `bundle` and other binaries available in
	// the PATH.
	Script string `json:"script,omitempty"`
}

A BuildPostCommitSpec holds a build post commit hook specification. The hook executes a command in a temporary container running the build output image, immediately after the last layer of the image is committed and before the image is pushed to a registry. The command is executed with the current working directory ($PWD) set to the image's WORKDIR.

The build will be marked as failed if the hook execution fails. It will fail if the script or command return a non-zero exit code, or if there is any other error related to starting the temporary container.

There are five different ways to configure the hook. As an example, all forms below are equivalent and will execute `rake test --verbose`.

1. Shell script:

   "postCommit": {
     "script": "rake test --verbose",
   }

The above is a convenient form which is equivalent to:

   "postCommit": {
     "command": ["/bin/sh", "-ic"],
     "args":    ["rake test --verbose"]
   }

2. A command as the image entrypoint:

   "postCommit": {
     "commit": ["rake", "test", "--verbose"]
   }

Command overrides the image entrypoint in the exec form, as documented in
Docker: https://docs.docker.com/engine/reference/builder/#entrypoint.

3. Pass arguments to the default entrypoint:

       "postCommit": {
		      "args": ["rake", "test", "--verbose"]
	      }

    This form is only useful if the image entrypoint can handle arguments.

4. Shell script with arguments:

   "postCommit": {
     "script": "rake test $1",
     "args":   ["--verbose"]
   }

This form is useful if you need to pass arguments that would otherwise be
hard to quote properly in the shell script. In the script, $0 will be
"/bin/sh" and $1, $2, etc, are the positional arguments from Args.

5. Command with arguments:

   "postCommit": {
     "command": ["rake", "test"],
     "args":    ["--verbose"]
   }

This form is equivalent to appending the arguments to the Command slice.

It is invalid to provide both Script and Command simultaneously. If none of the fields are specified, the hook is not executed.

func (BuildPostCommitSpec) SwaggerDoc added in v1.1.4

func (BuildPostCommitSpec) SwaggerDoc() map[string]string

type BuildRequest

type BuildRequest struct {
	unversioned.TypeMeta `json:",inline"`
	// metadata for BuildRequest.
	kapi.ObjectMeta `json:"metadata,omitempty"`

	// revision is the information from the source for a specific repo snapshot.
	Revision *SourceRevision `json:"revision,omitempty"`

	// triggeredByImage is the Image that triggered this build.
	TriggeredByImage *kapi.ObjectReference `json:"triggeredByImage,omitempty"`

	// from is the reference to the ImageStreamTag that triggered the build.
	From *kapi.ObjectReference `json:"from,omitempty"`

	// binary indicates a request to build from a binary provided to the builder
	Binary *BinaryBuildSource `json:"binary,omitempty"`

	// lastVersion (optional) is the LastVersion of the BuildConfig that was used
	// to generate the build. If the BuildConfig in the generator doesn't match, a build will
	// not be generated.
	LastVersion *int `json:"lastVersion,omitempty"`

	// env contains additional environment variables you want to pass into a builder container
	Env []kapi.EnvVar `json:"env,omitempty"`
}

BuildRequest is the resource used to pass parameters to build generator

func (*BuildRequest) GetObjectKind added in v1.1.3

func (obj *BuildRequest) GetObjectKind() unversioned.ObjectKind

func (BuildRequest) SwaggerDoc added in v1.1.4

func (BuildRequest) SwaggerDoc() map[string]string

type BuildRunPolicy

type BuildRunPolicy string

BuildRunPolicy defines the behaviour of how the new builds are executed from the existing build configuration.

const (
	// BuildRunPolicyParallel schedules new builds immediately after they are
	// created. Builds will be executed in parallel.
	BuildRunPolicyParallel BuildRunPolicy = "Parallel"

	// BuildRunPolicySerial schedules new builds to execute in a sequence as
	// they are created. Every build gets queued up and will execute when the
	// previous build completes. This is the default policy.
	BuildRunPolicySerial BuildRunPolicy = "Serial"

	// BuildRunPolicySerialLatestOnly schedules only the latest build to execute,
	// cancelling all the previously queued build.
	BuildRunPolicySerialLatestOnly BuildRunPolicy = "SerialLatestOnly"
)

type BuildSource

type BuildSource struct {
	// type of build input to accept
	// +genconversion=false
	Type BuildSourceType `json:"type"`

	// 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 Docker 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 Docker 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.
	Binary *BinaryBuildSource `json:"binary,omitempty"`

	// 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.
	Dockerfile *string `json:"dockerfile,omitempty"`

	// git contains optional information about git build source
	Git *GitBuildSource `json:"git,omitempty"`

	// images describes a set of images to be used to provide source for the build
	Images []ImageSource `json:"images,omitempty"`

	// 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.
	ContextDir string `json:"contextDir,omitempty"`

	// 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.
	SourceSecret *kapi.LocalObjectReference `json:"sourceSecret,omitempty"`

	// secrets represents a list of secrets and their destinations that will
	// be used only for the build.
	Secrets []SecretBuildSource `json:"secrets"`
}

BuildSource is the SCM used for the build.

func (BuildSource) SwaggerDoc added in v1.1.4

func (BuildSource) SwaggerDoc() map[string]string

type BuildSourceType

type BuildSourceType string

BuildSourceType is the type of SCM used.

const (
	//BuildSourceGit instructs a build to use a Git source control repository as the build input.
	BuildSourceGit BuildSourceType = "Git"
	// BuildSourceDockerfile uses a Dockerfile as the start of a build
	BuildSourceDockerfile BuildSourceType = "Dockerfile"
	// BuildSourceBinary indicates the build will accept a Binary file as input.
	BuildSourceBinary BuildSourceType = "Binary"
	// BuildSourceImage indicates the build will accept an image as input
	BuildSourceImage BuildSourceType = "Image"
	// BuildSourceNone indicates the build has no predefined input (only valid for Source and Custom Strategies)
	BuildSourceNone BuildSourceType = "None"
)

Valid values for BuildSourceType.

type BuildSpec

type BuildSpec struct {
	// serviceAccount is the name of the ServiceAccount to use to run the pod
	// created by this build.
	// The pod will be allowed to use secrets referenced by the ServiceAccount
	ServiceAccount string `json:"serviceAccount,omitempty"`

	// source describes the SCM in use.
	Source BuildSource `json:"source,omitempty"`

	// revision is the information from the source for a specific repo snapshot.
	// This is optional.
	Revision *SourceRevision `json:"revision,omitempty"`

	// strategy defines how to perform a build.
	Strategy BuildStrategy `json:"strategy"`

	// output describes the Docker image the Strategy should produce.
	Output BuildOutput `json:"output,omitempty"`

	// resource requirements to execute the build
	Resources kapi.ResourceRequirements `json:"resources,omitempty"`

	// postCommit is a build hook executed after the build output image is
	// committed, before it is pushed to a registry.
	PostCommit BuildPostCommitSpec `json:"postCommit,omitempty"`

	// completionDeadlineSeconds is an optional duration in seconds, counted from the time when a build pod gets
	// scheduled in the system, that the build may be active on a node before the
	// system actively tries to terminate the build; value must be positive integer
	CompletionDeadlineSeconds *int64 `json:"completionDeadlineSeconds,omitempty"`
}

BuildSpec encapsulates all the inputs necessary to represent a build.

func (BuildSpec) SwaggerDoc added in v1.1.4

func (BuildSpec) SwaggerDoc() map[string]string

type BuildStatus

type BuildStatus struct {
	// phase is the point in the build lifecycle.
	Phase BuildPhase `json:"phase"`

	// cancelled describes if a cancel event was triggered for the build.
	Cancelled bool `json:"cancelled,omitempty"`

	// reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.
	Reason StatusReason `json:"reason,omitempty"`

	// message is a human-readable message indicating details about why the build has this status.
	Message string `json:"message,omitempty"`

	// startTimestamp is a timestamp representing the server time when this Build started
	// running in a Pod.
	// It is represented in RFC3339 form and is in UTC.
	StartTimestamp *unversioned.Time `json:"startTimestamp,omitempty"`

	// completionTimestamp is a timestamp representing the server time when this Build was
	// finished, whether that build failed or succeeded.  It reflects the time at which
	// the Pod running the Build terminated.
	// It is represented in RFC3339 form and is in UTC.
	CompletionTimestamp *unversioned.Time `json:"completionTimestamp,omitempty"`

	// duration contains time.Duration object describing build time.
	Duration time.Duration `json:"duration,omitempty"`

	// outputDockerImageReference contains a reference to the Docker image that
	// will be built by this build. Its value is computed from
	// Build.Spec.Output.To, and should include the registry address, so that
	// it can be used to push and pull the image.
	OutputDockerImageReference string `json:"outputDockerImageReference,omitempty"`

	// config is an ObjectReference to the BuildConfig this Build is based on.
	Config *kapi.ObjectReference `json:"config,omitempty"`
}

BuildStatus contains the status of a build

func (BuildStatus) SwaggerDoc added in v1.1.4

func (BuildStatus) SwaggerDoc() map[string]string

type BuildStrategy

type BuildStrategy struct {
	// type is the kind of build strategy.
	// +genconversion=false
	Type BuildStrategyType `json:"type"`

	// dockerStrategy holds the parameters to the Docker build strategy.
	DockerStrategy *DockerBuildStrategy `json:"dockerStrategy,omitempty"`

	// sourceStrategy holds the parameters to the Source build strategy.
	SourceStrategy *SourceBuildStrategy `json:"sourceStrategy,omitempty"`

	// customStrategy holds the parameters to the Custom build strategy
	CustomStrategy *CustomBuildStrategy `json:"customStrategy,omitempty"`

	// JenkinsPipelineStrategy holds the parameters to the Jenkins Pipeline build strategy.
	// This strategy is experimental.
	JenkinsPipelineStrategy *JenkinsPipelineBuildStrategy `json:"jenkinsPipelineStrategy,omitempty"`
}

BuildStrategy contains the details of how to perform a build.

func (BuildStrategy) SwaggerDoc added in v1.1.4

func (BuildStrategy) SwaggerDoc() map[string]string

type BuildStrategyType

type BuildStrategyType string

BuildStrategyType describes a particular way of performing a build.

const (
	// DockerBuildStrategyType performs builds using a Dockerfile.
	DockerBuildStrategyType BuildStrategyType = "Docker"

	// SourceBuildStrategyType performs builds build using Source To Images with a Git repository
	// and a builder image.
	SourceBuildStrategyType BuildStrategyType = "Source"

	// CustomBuildStrategyType performs builds using custom builder Docker image.
	CustomBuildStrategyType BuildStrategyType = "Custom"

	// JenkinsPipelineBuildStrategyType indicates the build will run via Jenkine Pipeline.
	JenkinsPipelineBuildStrategyType BuildStrategyType = "JenkinsPipeline"
)

Valid values for BuildStrategyType.

type BuildTriggerPolicy

type BuildTriggerPolicy struct {
	// type is the type of build trigger
	Type BuildTriggerType `json:"type"`

	// github contains the parameters for a GitHub webhook type of trigger
	GitHubWebHook *WebHookTrigger `json:"github,omitempty"`

	// generic contains the parameters for a Generic webhook type of trigger
	GenericWebHook *WebHookTrigger `json:"generic,omitempty"`

	// imageChange contains parameters for an ImageChange type of trigger
	ImageChange *ImageChangeTrigger `json:"imageChange,omitempty"`
}

BuildTriggerPolicy describes a policy for a single trigger that results in a new Build.

func (BuildTriggerPolicy) SwaggerDoc added in v1.1.4

func (BuildTriggerPolicy) SwaggerDoc() map[string]string

type BuildTriggerType

type BuildTriggerType string

BuildTriggerType refers to a specific BuildTriggerPolicy implementation.

const (
	// GitHubWebHookBuildTriggerType represents a trigger that launches builds on
	// GitHub webhook invocations
	GitHubWebHookBuildTriggerType           BuildTriggerType = "GitHub"
	GitHubWebHookBuildTriggerTypeDeprecated BuildTriggerType = "github"

	// GenericWebHookBuildTriggerType represents a trigger that launches builds on
	// generic webhook invocations
	GenericWebHookBuildTriggerType           BuildTriggerType = "Generic"
	GenericWebHookBuildTriggerTypeDeprecated BuildTriggerType = "generic"

	// ImageChangeBuildTriggerType represents a trigger that launches builds on
	// availability of a new version of an image
	ImageChangeBuildTriggerType           BuildTriggerType = "ImageChange"
	ImageChangeBuildTriggerTypeDeprecated BuildTriggerType = "imageChange"

	// ConfigChangeBuildTriggerType will trigger a build on an initial build config creation
	// WARNING: In the future the behavior will change to trigger a build on any config change
	ConfigChangeBuildTriggerType BuildTriggerType = "ConfigChange"
)

type CustomBuildStrategy

type CustomBuildStrategy struct {
	// from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which
	// the docker image should be pulled
	From kapi.ObjectReference `json:"from"`

	// pullSecret is the name of a Secret that would be used for setting up
	// the authentication for pulling the Docker images from the private Docker
	// registries
	PullSecret *kapi.LocalObjectReference `json:"pullSecret,omitempty"`

	// env contains additional environment variables you want to pass into a builder container
	Env []kapi.EnvVar `json:"env,omitempty"`

	// exposeDockerSocket will allow running Docker commands (and build Docker images) from
	// inside the Docker container.
	// TODO: Allow admins to enforce 'false' for this option
	ExposeDockerSocket bool `json:"exposeDockerSocket,omitempty"`

	// forcePull describes if the controller should configure the build pod to always pull the images
	// for the builder or only pull if it is not present locally
	ForcePull bool `json:"forcePull,omitempty"`

	// secrets is a list of additional secrets that will be included in the build pod
	Secrets []SecretSpec `json:"secrets,omitempty"`

	// buildAPIVersion is the requested API version for the Build object serialized and passed to the custom builder
	BuildAPIVersion string `json:"buildAPIVersion,omitempty"`
}

CustomBuildStrategy defines input parameters specific to Custom build.

func (CustomBuildStrategy) SwaggerDoc added in v1.1.4

func (CustomBuildStrategy) SwaggerDoc() map[string]string

type DockerBuildStrategy

type DockerBuildStrategy struct {
	// from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which
	// the docker image should be pulled
	// the resulting image will be used in the FROM line of the Dockerfile for this build.
	From *kapi.ObjectReference `json:"from,omitempty"`

	// pullSecret is the name of a Secret that would be used for setting up
	// the authentication for pulling the Docker images from the private Docker
	// registries
	PullSecret *kapi.LocalObjectReference `json:"pullSecret,omitempty"`

	// noCache if set to true indicates that the docker build must be executed with the
	// --no-cache=true flag
	NoCache bool `json:"noCache,omitempty"`

	// env contains additional environment variables you want to pass into a builder container
	Env []kapi.EnvVar `json:"env,omitempty"`

	// forcePull describes if the builder should pull the images from registry prior to building.
	ForcePull bool `json:"forcePull,omitempty"`

	// dockerfilePath is the path of the Dockerfile that will be used to build the Docker image,
	// relative to the root of the context (contextDir).
	DockerfilePath string `json:"dockerfilePath,omitempty"`
}

DockerBuildStrategy defines input parameters specific to Docker build.

func (DockerBuildStrategy) SwaggerDoc added in v1.1.4

func (DockerBuildStrategy) SwaggerDoc() map[string]string

type GenericWebHookEvent

type GenericWebHookEvent struct {
	// type is the type of source repository
	// +genconversion=false
	Type BuildSourceType `json:"type,omitempty"`

	// git is the git information if the Type is BuildSourceGit
	Git *GitInfo `json:"git,omitempty"`

	// env contains additional environment variables you want to pass into a builder container
	Env []kapi.EnvVar `json:"env,omitempty"`
}

GenericWebHookEvent is the payload expected for a generic webhook post

func (GenericWebHookEvent) SwaggerDoc added in v1.1.4

func (GenericWebHookEvent) SwaggerDoc() map[string]string

type GitBuildSource

type GitBuildSource struct {
	// uri points to the source that will be built. The structure of the source
	// will depend on the type of build to run
	URI string `json:"uri"`

	// ref is the branch/tag/ref to build.
	Ref string `json:"ref,omitempty"`

	// httpProxy is a proxy used to reach the git repository over http
	HTTPProxy *string `json:"httpProxy,omitempty"`

	// httpsProxy is a proxy used to reach the git repository over https
	HTTPSProxy *string `json:"httpsProxy,omitempty"`
}

GitBuildSource defines the parameters of a Git SCM

func (GitBuildSource) SwaggerDoc added in v1.1.4

func (GitBuildSource) SwaggerDoc() map[string]string

type GitInfo

type GitInfo struct {
	GitBuildSource    `json:",inline"`
	GitSourceRevision `json:",inline"`
}

GitInfo is the aggregated git information for a generic webhook post

func (GitInfo) SwaggerDoc added in v1.1.4

func (GitInfo) SwaggerDoc() map[string]string

type GitSourceRevision

type GitSourceRevision struct {
	// commit is the commit hash identifying a specific commit
	Commit string `json:"commit,omitempty"`

	// author is the author of a specific commit
	Author SourceControlUser `json:"author,omitempty"`

	// committer is the committer of a specific commit
	Committer SourceControlUser `json:"committer,omitempty"`

	// message is the description of a specific commit
	Message string `json:"message,omitempty"`
}

GitSourceRevision is the commit information from a git source for a build

func (GitSourceRevision) SwaggerDoc added in v1.1.4

func (GitSourceRevision) SwaggerDoc() map[string]string

type ImageChangeTrigger

type ImageChangeTrigger struct {
	// lastTriggeredImageID is used internally by the ImageChangeController to save last
	// used image ID for build
	LastTriggeredImageID string `json:"lastTriggeredImageID,omitempty"`

	// from is a reference to an ImageStreamTag that will trigger a build when updated
	// It is optional. If no From is specified, the From image from the build strategy
	// will be used. Only one ImageChangeTrigger with an empty From reference is allowed in
	// a build configuration.
	From *kapi.ObjectReference `json:"from,omitempty"`
}

ImageChangeTrigger allows builds to be triggered when an ImageStream changes

func (ImageChangeTrigger) SwaggerDoc added in v1.1.4

func (ImageChangeTrigger) SwaggerDoc() map[string]string

type ImageSource added in v1.1.1

type ImageSource struct {
	// from is a reference to an ImageStreamTag, ImageStreamImage, or DockerImage to
	// copy source from.
	From kapi.ObjectReference `json:"from"`

	// paths is a list of source and destination paths to copy from the image.
	Paths []ImageSourcePath `json:"paths"`

	// pullSecret is a reference to a secret to be used to pull the image from a registry
	// If the image is pulled from the OpenShift registry, this field does not need to be set.
	PullSecret *kapi.LocalObjectReference `json:"pullSecret,omitempty"`
}

ImageSource describes an image that is used as source for the build

func (ImageSource) SwaggerDoc added in v1.1.4

func (ImageSource) SwaggerDoc() map[string]string

type ImageSourcePath added in v1.1.1

type ImageSourcePath struct {
	// sourcePath is the absolute path of the file or directory inside the image to
	// copy to the build directory.
	SourcePath string `json:"sourcePath"`

	// destinationDir is the relative directory within the build directory
	// where files copied from the image are placed.
	DestinationDir string `json:"destinationDir"`
}

ImageSourcePath describes a path to be copied from a source image and its destination within the build directory.

func (ImageSourcePath) SwaggerDoc added in v1.1.4

func (ImageSourcePath) SwaggerDoc() map[string]string

type JenkinsPipelineBuildStrategy

type JenkinsPipelineBuildStrategy struct {
	// JenkinsfilePath is the optional path of the Jenkinsfile that will be used to configure the pipeline
	// relative to the root of the context (contextDir). If both JenkinsfilePath & Jenkinsfile are
	// both not specified, this defaults to Jenkinsfile in the root of the specified contextDir.
	JenkinsfilePath string `json:"jenkinsfilePath,omitempty"`

	// Jenkinsfile defines the optional raw contents of a Jenkinsfile which defines a Jenkins pipeline build.
	Jenkinsfile string `json:"jenkinsfile,omitempty"`
}

JenkinsPipelineBuildStrategy holds parameters specific to a Jenkins Pipeline build. This strategy is experimental.

func (JenkinsPipelineBuildStrategy) SwaggerDoc

func (JenkinsPipelineBuildStrategy) SwaggerDoc() map[string]string

type SecretBuildSource added in v1.1.2

type SecretBuildSource struct {
	// secret is a reference to an existing secret that you want to use in your
	// build.
	Secret kapi.LocalObjectReference `json:"secret"`

	// destinationDir is the directory where the files from the secret should be
	// available for the build time.
	// For the Source build strategy, these will be injected into a container
	// where the assemble script runs. Later, when the script finishes, all files
	// injected will be truncated to zero length.
	// For the Docker build strategy, these will be copied into the build
	// directory, where the Dockerfile is located, so users can ADD or COPY them
	// during docker build.
	DestinationDir string `json:"destinationDir,omitempty"`
}

SecretBuildSource describes a secret and its destination directory that will be used only at the build time. The content of the secret referenced here will be copied into the destination directory instead of mounting.

func (SecretBuildSource) SwaggerDoc added in v1.1.4

func (SecretBuildSource) SwaggerDoc() map[string]string

type SecretSpec added in v1.0.6

type SecretSpec struct {
	// secretSource is a reference to the secret
	SecretSource kapi.LocalObjectReference `json:"secretSource"`

	// mountPath is the path at which to mount the secret
	MountPath string `json:"mountPath"`
}

SecretSpec specifies a secret to be included in a build pod and its corresponding mount point

func (SecretSpec) SwaggerDoc added in v1.1.4

func (SecretSpec) SwaggerDoc() map[string]string

type SourceBuildStrategy

type SourceBuildStrategy struct {
	// from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which
	// the docker image should be pulled
	From kapi.ObjectReference `json:"from"`

	// pullSecret is the name of a Secret that would be used for setting up
	// the authentication for pulling the Docker images from the private Docker
	// registries
	PullSecret *kapi.LocalObjectReference `json:"pullSecret,omitempty"`

	// env contains additional environment variables you want to pass into a builder container
	Env []kapi.EnvVar `json:"env,omitempty"`

	// scripts is the location of Source scripts
	Scripts string `json:"scripts,omitempty"`

	// incremental flag forces the Source build to do incremental builds if true.
	Incremental bool `json:"incremental,omitempty"`

	// forcePull describes if the builder should pull the images from registry prior to building.
	ForcePull bool `json:"forcePull,omitempty"`
}

SourceBuildStrategy defines input parameters specific to an Source build.

func (SourceBuildStrategy) SwaggerDoc added in v1.1.4

func (SourceBuildStrategy) SwaggerDoc() map[string]string

type SourceControlUser

type SourceControlUser struct {
	// name of the source control user
	Name string `json:"name,omitempty"`

	// email of the source control user
	Email string `json:"email,omitempty"`
}

SourceControlUser defines the identity of a user of source control

func (SourceControlUser) SwaggerDoc added in v1.1.4

func (SourceControlUser) SwaggerDoc() map[string]string

type SourceRevision

type SourceRevision struct {
	// type of the build source, may be one of 'Source', 'Dockerfile', 'Binary', or 'Images'
	// +genconversion=false
	Type BuildSourceType `json:"type"`

	// Git contains information about git-based build source
	Git *GitSourceRevision `json:"git,omitempty"`
}

SourceRevision is the revision or commit information from the source for the build

func (SourceRevision) SwaggerDoc added in v1.1.4

func (SourceRevision) SwaggerDoc() map[string]string

type StatusReason added in v1.0.7

type StatusReason string

StatusReason is a brief CamelCase string that describes a temporary or permanent build error condition, meant for machine parsing and tidy display in the CLI.

type WebHookTrigger

type WebHookTrigger struct {
	// secret used to validate requests.
	Secret string `json:"secret,omitempty"`

	// allowEnv determines whether the webhook can set environment variables; can only
	// be set to true for GenericWebHook.
	AllowEnv bool `json:"allowEnv,omitempty"`
}

WebHookTrigger is a trigger that gets invoked using a webhook type of post

func (WebHookTrigger) SwaggerDoc added in v1.1.4

func (WebHookTrigger) SwaggerDoc() map[string]string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL