Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AbstractBuilder
- type Blob
- type Build
- func (b *Build) BuildEnvVars() []corev1.EnvVar
- func (b *Build) BuildPod(config BuildPodConfig, secrets []corev1.Secret, builder BuilderImage) (*corev1.Pod, error)
- func (b *Build) BuildRef() string
- func (b *Build) BuiltImage() string
- func (in *Build) DeepCopy() *Build
- func (in *Build) DeepCopyInto(out *Build)
- func (in *Build) DeepCopyObject() runtime.Object
- func (b *Build) Finished() bool
- func (*Build) GetGroupVersionKind() schema.GroupVersionKind
- func (b *Build) HasSecret() bool
- func (b *Build) Image() string
- func (b *Build) ImagePullSecretsVolume() corev1.Volume
- func (b *Build) IsFailure() bool
- func (b *Build) IsRunning() bool
- func (b *Build) IsSuccess() bool
- func (b *Build) MetadataReady(pod *corev1.Pod) bool
- func (b *Build) Namespace() string
- func (b *Build) PodName() string
- func (b *Build) SecretName() string
- func (b *Build) ServiceAccount() string
- func (a *Build) SetDefaults(ctx context.Context)
- func (b *Build) Tag() string
- func (a *Build) Validate(ctx context.Context) *apis.FieldError
- type BuildApplier
- type BuildCreator
- type BuildList
- type BuildPodConfig
- type BuildSpec
- type BuildStatus
- type Builder
- func (b *Builder) BuildpackMetadata() BuildpackMetadataList
- func (in *Builder) DeepCopy() *Builder
- func (in *Builder) DeepCopyInto(out *Builder)
- func (in *Builder) DeepCopyObject() runtime.Object
- func (in *Builder) DeepCopyObjectMetaAccessor() metav1.ObjectMetaAccessor
- func (*Builder) GetGroupVersionKind() schema.GroupVersionKind
- func (b *Builder) GetName() string
- func (b *Builder) HasSecret() bool
- func (b *Builder) Image() string
- func (b *Builder) ImageRef() BuilderImage
- func (b *Builder) Namespace() string
- func (b *Builder) Ready() bool
- func (b *Builder) SecretName() string
- func (b *Builder) ServiceAccount() string
- type BuilderImage
- type BuilderList
- type BuilderSpec
- type BuilderStatus
- type BuilderUpdatePolicy
- type BuilderWithSecretsSpec
- type BuildpackMetadata
- type BuildpackMetadataList
- type ClusterBuilder
- func (in *ClusterBuilder) BuildpackMetadata() BuildpackMetadataList
- func (in *ClusterBuilder) DeepCopy() *ClusterBuilder
- func (in *ClusterBuilder) DeepCopyInto(out *ClusterBuilder)
- func (in *ClusterBuilder) DeepCopyObject() runtime.Object
- func (in *ClusterBuilder) DeepCopyObjectMetaAccessor() metav1.ObjectMetaAccessor
- func (*ClusterBuilder) GetGroupVersionKind() schema.GroupVersionKind
- func (in *ClusterBuilder) GetName() string
- func (in *ClusterBuilder) HasSecret() bool
- func (in *ClusterBuilder) Image() string
- func (in *ClusterBuilder) ImageRef() BuilderImage
- func (in *ClusterBuilder) Namespace() string
- func (in *ClusterBuilder) Ready() bool
- func (in *ClusterBuilder) Ref() v1.ObjectReference
- func (in *ClusterBuilder) SecretName() string
- func (in *ClusterBuilder) ServiceAccount() string
- type ClusterBuilderList
- type Git
- type GitSourceKind
- type Image
- func (im *Image) BuildCache() *corev1.PersistentVolumeClaim
- func (im *Image) BuilderNotFound() duckv1alpha1.Conditions
- func (im *Image) CacheName() string
- func (in *Image) DeepCopy() *Image
- func (in *Image) DeepCopyInto(out *Image)
- func (in *Image) DeepCopyObject() runtime.Object
- func (*Image) GetGroupVersionKind() schema.GroupVersionKind
- func (i *Image) NamespacedName() types.NamespacedName
- func (im *Image) NeedCache() bool
- func (im *Image) ReconcileBuild(latestBuild *Build, resolver *SourceResolver, builder AbstractBuilder) (BuildApplier, error)
- func (im *Image) SourceResolver() *SourceResolver
- func (im *Image) SourceResolverName() string
- type ImageBuild
- type ImageBuilder
- type ImageList
- type ImageSpec
- type ImageStatus
- type ImageTaggingStrategy
- type ReconciledBuild
- type Registry
- type ResolvedBlobSource
- func (bs *ResolvedBlobSource) ConfigChanged(lastBuild *Build) bool
- func (in *ResolvedBlobSource) DeepCopy() *ResolvedBlobSource
- func (in *ResolvedBlobSource) DeepCopyInto(out *ResolvedBlobSource)
- func (bs *ResolvedBlobSource) IsPollable() bool
- func (bs *ResolvedBlobSource) IsUnknown() bool
- func (bs *ResolvedBlobSource) RevisionChanged(lastBuild *Build) bool
- func (bs *ResolvedBlobSource) SourceConfig() SourceConfig
- type ResolvedGitSource
- func (gs *ResolvedGitSource) ConfigChanged(lastBuild *Build) bool
- func (in *ResolvedGitSource) DeepCopy() *ResolvedGitSource
- func (in *ResolvedGitSource) DeepCopyInto(out *ResolvedGitSource)
- func (gs *ResolvedGitSource) IsPollable() bool
- func (gs *ResolvedGitSource) IsUnknown() bool
- func (gs *ResolvedGitSource) RevisionChanged(lastBuild *Build) bool
- func (gs *ResolvedGitSource) SourceConfig() SourceConfig
- type ResolvedRegistrySource
- func (rs *ResolvedRegistrySource) ConfigChanged(lastBuild *Build) bool
- func (in *ResolvedRegistrySource) DeepCopy() *ResolvedRegistrySource
- func (in *ResolvedRegistrySource) DeepCopyInto(out *ResolvedRegistrySource)
- func (rs *ResolvedRegistrySource) IsPollable() bool
- func (rs *ResolvedRegistrySource) IsUnknown() bool
- func (rs *ResolvedRegistrySource) RevisionChanged(lastBuild *Build) bool
- func (rs *ResolvedRegistrySource) SourceConfig() SourceConfig
- type ResolvedSource
- type ResolvedSourceConfig
- type Source
- type SourceConfig
- type SourceResolver
- func (sr *SourceResolver) ConfigChanged(lastBuild *Build) bool
- func (in *SourceResolver) DeepCopy() *SourceResolver
- func (in *SourceResolver) DeepCopyInto(out *SourceResolver)
- func (in *SourceResolver) DeepCopyObject() runtime.Object
- func (*SourceResolver) GetGroupVersionKind() schema.GroupVersionKind
- func (sr SourceResolver) IsBlob() bool
- func (sr SourceResolver) IsGit() bool
- func (sr SourceResolver) IsRegistry() bool
- func (sr *SourceResolver) PollingReady() bool
- func (sr *SourceResolver) Ready() bool
- func (sr *SourceResolver) ResolvedSource(config ResolvedSourceConfig)
- func (sr *SourceResolver) RevisionChanged(lastBuild *Build) bool
- func (st *SourceResolver) SourceConfig() SourceConfig
- type SourceResolverList
- type SourceResolverSpec
- type SourceResolverStatus
Constants ¶
const ( SecretTemplateName = "secret-volume-%s" SecretPathName = "/var/build-secrets/%s" BuildLabel = "build.pivotal.io/build" DOCKERSecretAnnotationPrefix = "build.pivotal.io/docker" GITSecretAnnotationPrefix = "build.pivotal.io/git" )
const ( BuildNumberLabel = "image.build.pivotal.io/buildNumber" ImageLabel = "image.build.pivotal.io/image" BuildReasonAnnotation = "image.build.pivotal.io/reason" BuildReasonConfig = "CONFIG" BuildReasonCommit = "COMMIT" BuildReasonBuildpack = "BUILDPACK" )
const ( BuilderNotFound = "BuilderNotFound" BuilderNotReady = "BuilderNotReady" )
const ActivePolling = "ActivePolling"
const BuilderKind = "Builder"
const ClusterBuilderKind = "ClusterBuilder"
const ConditionBuilderReady duckv1alpha1.ConditionType = "BuilderReady"
Variables ¶
var (
// AddToScheme adds Build types to the scheme.
AddToScheme = schemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: build.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type AbstractBuilder ¶ added in v0.0.4
type AbstractBuilder interface { metav1.ObjectMetaAccessor ImageRef() BuilderImage Ready() bool BuildpackMetadata() BuildpackMetadataList GetName() string }
type Blob ¶ added in v0.0.2
type Blob struct {
URL string `json:"url"`
}
func (*Blob) BuildEnvVars ¶ added in v0.0.3
func (*Blob) DeepCopy ¶ added in v0.0.2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Blob.
func (*Blob) DeepCopyInto ¶ added in v0.0.2
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Blob) ImagePullSecretsVolume ¶ added in v0.0.3
type Build ¶
type Build struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BuildSpec `json:"spec"` Status BuildStatus `json:"status"` }
func (*Build) BuildEnvVars ¶ added in v0.0.3
func (*Build) BuildPod ¶ added in v0.0.2
func (b *Build) BuildPod(config BuildPodConfig, secrets []corev1.Secret, builder BuilderImage) (*corev1.Pod, error)
func (*Build) BuiltImage ¶ added in v0.0.2
func (*Build) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Build.
func (*Build) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Build) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Build) GetGroupVersionKind ¶
func (*Build) GetGroupVersionKind() schema.GroupVersionKind
func (*Build) ImagePullSecretsVolume ¶ added in v0.0.3
func (*Build) SecretName ¶ added in v0.0.3
func (*Build) ServiceAccount ¶
func (*Build) SetDefaults ¶
type BuildApplier ¶ added in v0.0.2
type BuildApplier interface {
Apply(creator BuildCreator) (ReconciledBuild, error)
}
type BuildCreator ¶ added in v0.0.2
type BuildList ¶
type BuildList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Build `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*BuildList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildList.
func (*BuildList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BuildList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BuildPodConfig ¶ added in v0.0.2
type BuildPodConfig struct { SourceInitImage string BuildInitImage string CredsInitImage string NopImage string }
func (*BuildPodConfig) DeepCopy ¶ added in v0.0.2
func (in *BuildPodConfig) DeepCopy() *BuildPodConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildPodConfig.
func (*BuildPodConfig) DeepCopyInto ¶ added in v0.0.2
func (in *BuildPodConfig) DeepCopyInto(out *BuildPodConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BuildSpec ¶
type BuildSpec struct { Tags []string `json:"tags"` Builder BuilderImage `json:"builder"` ServiceAccount string `json:"serviceAccount"` Source SourceConfig `json:"source"` CacheName string `json:"cacheName"` Env []corev1.EnvVar `json:"env"` Resources corev1.ResourceRequirements `json:"resources"` }
func (*BuildSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildSpec.
func (*BuildSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BuildSpec) SetDefaults ¶
type BuildStatus ¶
type BuildStatus struct { duckv1alpha1.Status `json:",inline"` BuildMetadata BuildpackMetadataList `json:"buildMetadata"` LatestImage string `json:"latestImage"` PodName string `json:"podName"` StepStates []corev1.ContainerState `json:"stepStates,omitempty"` StepsCompleted []string `json:"stepsCompleted,omitempty"` }
func (*BuildStatus) DeepCopy ¶
func (in *BuildStatus) DeepCopy() *BuildStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildStatus.
func (*BuildStatus) DeepCopyInto ¶
func (in *BuildStatus) DeepCopyInto(out *BuildStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Builder ¶
type Builder struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BuilderWithSecretsSpec `json:"spec"` Status BuilderStatus `json:"status"` }
func (*Builder) BuildpackMetadata ¶ added in v0.0.4
func (b *Builder) BuildpackMetadata() BuildpackMetadataList
func (*Builder) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Builder.
func (*Builder) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Builder) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Builder) DeepCopyObjectMetaAccessor ¶ added in v0.0.4
func (in *Builder) DeepCopyObjectMetaAccessor() metav1.ObjectMetaAccessor
DeepCopyObjectMetaAccessor is an autogenerated deepcopy function, copying the receiver, creating a new metav1.ObjectMetaAccessor.
func (*Builder) GetGroupVersionKind ¶
func (*Builder) GetGroupVersionKind() schema.GroupVersionKind
func (*Builder) ImageRef ¶ added in v0.0.3
func (b *Builder) ImageRef() BuilderImage
func (*Builder) SecretName ¶ added in v0.0.3
func (*Builder) ServiceAccount ¶ added in v0.0.3
type BuilderImage ¶ added in v0.0.3
type BuilderImage struct { Image string `json:"image"` ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,15,rep,name=imagePullSecrets"` }
func (*BuilderImage) DeepCopy ¶ added in v0.0.3
func (in *BuilderImage) DeepCopy() *BuilderImage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuilderImage.
func (*BuilderImage) DeepCopyInto ¶ added in v0.0.3
func (in *BuilderImage) DeepCopyInto(out *BuilderImage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BuilderList ¶
type BuilderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Builder `json:"items"` }
func (*BuilderList) DeepCopy ¶
func (in *BuilderList) DeepCopy() *BuilderList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuilderList.
func (*BuilderList) DeepCopyInto ¶
func (in *BuilderList) DeepCopyInto(out *BuilderList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BuilderList) DeepCopyObject ¶
func (in *BuilderList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BuilderSpec ¶
type BuilderSpec struct { Image string `json:"image"` UpdatePolicy BuilderUpdatePolicy `json:"updatePolicy"` }
func (*BuilderSpec) DeepCopy ¶
func (in *BuilderSpec) DeepCopy() *BuilderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuilderSpec.
func (*BuilderSpec) DeepCopyInto ¶
func (in *BuilderSpec) DeepCopyInto(out *BuilderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BuilderStatus ¶
type BuilderStatus struct { duckv1alpha1.Status `json:",inline"` BuilderMetadata BuildpackMetadataList `json:"builderMetadata"` LatestImage string `json:"latestImage"` }
func (*BuilderStatus) DeepCopy ¶
func (in *BuilderStatus) DeepCopy() *BuilderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuilderStatus.
func (*BuilderStatus) DeepCopyInto ¶
func (in *BuilderStatus) DeepCopyInto(out *BuilderStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BuilderUpdatePolicy ¶ added in v0.0.2
type BuilderUpdatePolicy string
const ( Polling BuilderUpdatePolicy = "polling" External BuilderUpdatePolicy = "external" )
type BuilderWithSecretsSpec ¶ added in v0.0.4
type BuilderWithSecretsSpec struct { BuilderSpec `json:",inline"` ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,15,rep,name=imagePullSecrets"` }
func (*BuilderWithSecretsSpec) DeepCopy ¶ added in v0.0.4
func (in *BuilderWithSecretsSpec) DeepCopy() *BuilderWithSecretsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuilderWithSecretsSpec.
func (*BuilderWithSecretsSpec) DeepCopyInto ¶ added in v0.0.4
func (in *BuilderWithSecretsSpec) DeepCopyInto(out *BuilderWithSecretsSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BuildpackMetadata ¶
func (*BuildpackMetadata) DeepCopy ¶
func (in *BuildpackMetadata) DeepCopy() *BuildpackMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildpackMetadata.
func (*BuildpackMetadata) DeepCopyInto ¶
func (in *BuildpackMetadata) DeepCopyInto(out *BuildpackMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BuildpackMetadataList ¶
type BuildpackMetadataList []BuildpackMetadata
func (BuildpackMetadataList) DeepCopy ¶ added in v0.0.2
func (in BuildpackMetadataList) DeepCopy() BuildpackMetadataList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildpackMetadataList.
func (BuildpackMetadataList) DeepCopyInto ¶ added in v0.0.2
func (in BuildpackMetadataList) DeepCopyInto(out *BuildpackMetadataList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (BuildpackMetadataList) Include ¶
func (l BuildpackMetadataList) Include(q BuildpackMetadata) bool
type ClusterBuilder ¶ added in v0.0.4
type ClusterBuilder struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BuilderSpec `json:"spec"` Status BuilderStatus `json:"status"` }
func (*ClusterBuilder) BuildpackMetadata ¶ added in v0.0.4
func (in *ClusterBuilder) BuildpackMetadata() BuildpackMetadataList
func (*ClusterBuilder) DeepCopy ¶ added in v0.0.4
func (in *ClusterBuilder) DeepCopy() *ClusterBuilder
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBuilder.
func (*ClusterBuilder) DeepCopyInto ¶ added in v0.0.4
func (in *ClusterBuilder) DeepCopyInto(out *ClusterBuilder)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterBuilder) DeepCopyObject ¶ added in v0.0.4
func (in *ClusterBuilder) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterBuilder) DeepCopyObjectMetaAccessor ¶ added in v0.0.4
func (in *ClusterBuilder) DeepCopyObjectMetaAccessor() metav1.ObjectMetaAccessor
DeepCopyObjectMetaAccessor is an autogenerated deepcopy function, copying the receiver, creating a new metav1.ObjectMetaAccessor.
func (*ClusterBuilder) GetGroupVersionKind ¶ added in v0.0.4
func (*ClusterBuilder) GetGroupVersionKind() schema.GroupVersionKind
func (*ClusterBuilder) GetName ¶ added in v0.0.4
func (in *ClusterBuilder) GetName() string
func (*ClusterBuilder) HasSecret ¶ added in v0.0.4
func (in *ClusterBuilder) HasSecret() bool
func (*ClusterBuilder) Image ¶ added in v0.0.4
func (in *ClusterBuilder) Image() string
func (*ClusterBuilder) ImageRef ¶ added in v0.0.4
func (in *ClusterBuilder) ImageRef() BuilderImage
func (*ClusterBuilder) Namespace ¶ added in v0.0.4
func (in *ClusterBuilder) Namespace() string
func (*ClusterBuilder) Ready ¶ added in v0.0.4
func (in *ClusterBuilder) Ready() bool
func (*ClusterBuilder) Ref ¶ added in v0.0.4
func (in *ClusterBuilder) Ref() v1.ObjectReference
func (*ClusterBuilder) SecretName ¶ added in v0.0.4
func (in *ClusterBuilder) SecretName() string
func (*ClusterBuilder) ServiceAccount ¶ added in v0.0.4
func (in *ClusterBuilder) ServiceAccount() string
type ClusterBuilderList ¶ added in v0.0.4
type ClusterBuilderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ClusterBuilder `json:"items"` }
func (*ClusterBuilderList) DeepCopy ¶ added in v0.0.4
func (in *ClusterBuilderList) DeepCopy() *ClusterBuilderList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBuilderList.
func (*ClusterBuilderList) DeepCopyInto ¶ added in v0.0.4
func (in *ClusterBuilderList) DeepCopyInto(out *ClusterBuilderList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterBuilderList) DeepCopyObject ¶ added in v0.0.4
func (in *ClusterBuilderList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Git ¶
func (*Git) BuildEnvVars ¶ added in v0.0.3
func (*Git) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Git.
func (*Git) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Git) ImagePullSecretsVolume ¶ added in v0.0.3
type GitSourceKind ¶ added in v0.0.2
type GitSourceKind string
const ( Unknown GitSourceKind = "Unknown" Branch GitSourceKind = "Branch" Tag GitSourceKind = "Tag" Commit GitSourceKind = "Commit" )
type Image ¶
type Image struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ImageSpec `json:"spec"` Status ImageStatus `json:"status"` }
func (*Image) BuildCache ¶ added in v0.0.2
func (im *Image) BuildCache() *corev1.PersistentVolumeClaim
func (*Image) BuilderNotFound ¶ added in v0.0.3
func (im *Image) BuilderNotFound() duckv1alpha1.Conditions
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Image) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Image) GetGroupVersionKind ¶
func (*Image) GetGroupVersionKind() schema.GroupVersionKind
func (*Image) NamespacedName ¶ added in v0.0.4
func (i *Image) NamespacedName() types.NamespacedName
func (*Image) ReconcileBuild ¶ added in v0.0.2
func (im *Image) ReconcileBuild(latestBuild *Build, resolver *SourceResolver, builder AbstractBuilder) (BuildApplier, error)
func (*Image) SourceResolver ¶ added in v0.0.2
func (im *Image) SourceResolver() *SourceResolver
func (*Image) SourceResolverName ¶ added in v0.0.2
type ImageBuild ¶ added in v0.0.2
type ImageBuild struct { Env []corev1.EnvVar `json:"env"` Resources corev1.ResourceRequirements `json:"resources"` }
func (*ImageBuild) DeepCopy ¶ added in v0.0.2
func (in *ImageBuild) DeepCopy() *ImageBuild
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageBuild.
func (*ImageBuild) DeepCopyInto ¶ added in v0.0.2
func (in *ImageBuild) DeepCopyInto(out *ImageBuild)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageBuilder ¶ added in v0.0.4
func (*ImageBuilder) DeepCopy ¶ added in v0.0.4
func (in *ImageBuilder) DeepCopy() *ImageBuilder
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageBuilder.
func (*ImageBuilder) DeepCopyInto ¶ added in v0.0.4
func (in *ImageBuilder) DeepCopyInto(out *ImageBuilder)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageList ¶
type ImageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Image `json:"items"` }
func (*ImageList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageList.
func (*ImageList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageSpec ¶
type ImageSpec struct { Tag string `json:"tag"` Builder ImageBuilder `json:"builder"` ServiceAccount string `json:"serviceAccount"` Source SourceConfig `json:"source"` CacheSize *resource.Quantity `json:"cacheSize,omitempty"` FailedBuildHistoryLimit *int64 `json:"failedBuildHistoryLimit"` SuccessBuildHistoryLimit *int64 `json:"successBuildHistoryLimit"` ImageTaggingStrategy ImageTaggingStrategy `json:"imageTaggingStrategy"` Build ImageBuild `json:"build"` }
func (*ImageSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSpec.
func (*ImageSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageStatus ¶
type ImageStatus struct { duckv1alpha1.Status `json:",inline"` LatestBuildRef string `json:"latestBuildRef"` LatestImage string `json:"latestImage"` BuildCounter int64 `json:"buildCounter"` BuildCacheName string `json:"buildCacheName"` }
func (*ImageStatus) DeepCopy ¶
func (in *ImageStatus) DeepCopy() *ImageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageStatus.
func (*ImageStatus) DeepCopyInto ¶
func (in *ImageStatus) DeepCopyInto(out *ImageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageTaggingStrategy ¶ added in v0.0.3
type ImageTaggingStrategy string
const ( None ImageTaggingStrategy = "None" BuildNumber ImageTaggingStrategy = "BuildNumber" )
type ReconciledBuild ¶ added in v0.0.2
type ReconciledBuild struct { Build *Build BuildCounter int64 LatestImage string Conditions duckv1alpha1.Conditions }
func (*ReconciledBuild) DeepCopy ¶ added in v0.0.2
func (in *ReconciledBuild) DeepCopy() *ReconciledBuild
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReconciledBuild.
func (*ReconciledBuild) DeepCopyInto ¶ added in v0.0.2
func (in *ReconciledBuild) DeepCopyInto(out *ReconciledBuild)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Registry ¶ added in v0.0.3
type Registry struct { Image string `json:"image"` ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,15,rep,name=imagePullSecrets"` }
func (*Registry) BuildEnvVars ¶ added in v0.0.3
func (*Registry) DeepCopy ¶ added in v0.0.3
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Registry.
func (*Registry) DeepCopyInto ¶ added in v0.0.3
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Registry) ImagePullSecretsVolume ¶ added in v0.0.3
type ResolvedBlobSource ¶ added in v0.0.2
type ResolvedBlobSource struct { URL string `json:"url"` SubPath string `json:"subPath,omitempty"` }
func (*ResolvedBlobSource) ConfigChanged ¶ added in v0.0.3
func (bs *ResolvedBlobSource) ConfigChanged(lastBuild *Build) bool
func (*ResolvedBlobSource) DeepCopy ¶ added in v0.0.2
func (in *ResolvedBlobSource) DeepCopy() *ResolvedBlobSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolvedBlobSource.
func (*ResolvedBlobSource) DeepCopyInto ¶ added in v0.0.2
func (in *ResolvedBlobSource) DeepCopyInto(out *ResolvedBlobSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResolvedBlobSource) IsPollable ¶ added in v0.0.3
func (bs *ResolvedBlobSource) IsPollable() bool
func (*ResolvedBlobSource) IsUnknown ¶ added in v0.0.3
func (bs *ResolvedBlobSource) IsUnknown() bool
func (*ResolvedBlobSource) RevisionChanged ¶ added in v0.0.3
func (bs *ResolvedBlobSource) RevisionChanged(lastBuild *Build) bool
func (*ResolvedBlobSource) SourceConfig ¶ added in v0.0.3
func (bs *ResolvedBlobSource) SourceConfig() SourceConfig
type ResolvedGitSource ¶ added in v0.0.2
type ResolvedGitSource struct { URL string `json:"url"` Revision string `json:"commit"` SubPath string `json:"subPath,omitempty"` Type GitSourceKind `json:"type"` }
func (*ResolvedGitSource) ConfigChanged ¶ added in v0.0.3
func (gs *ResolvedGitSource) ConfigChanged(lastBuild *Build) bool
func (*ResolvedGitSource) DeepCopy ¶ added in v0.0.2
func (in *ResolvedGitSource) DeepCopy() *ResolvedGitSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolvedGitSource.
func (*ResolvedGitSource) DeepCopyInto ¶ added in v0.0.2
func (in *ResolvedGitSource) DeepCopyInto(out *ResolvedGitSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResolvedGitSource) IsPollable ¶ added in v0.0.2
func (gs *ResolvedGitSource) IsPollable() bool
func (*ResolvedGitSource) IsUnknown ¶ added in v0.0.2
func (gs *ResolvedGitSource) IsUnknown() bool
func (*ResolvedGitSource) RevisionChanged ¶ added in v0.0.3
func (gs *ResolvedGitSource) RevisionChanged(lastBuild *Build) bool
func (*ResolvedGitSource) SourceConfig ¶ added in v0.0.3
func (gs *ResolvedGitSource) SourceConfig() SourceConfig
type ResolvedRegistrySource ¶ added in v0.0.3
type ResolvedRegistrySource struct { Image string `json:"image"` ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,15,rep,name=imagePullSecrets"` SubPath string `json:"subPath,omitempty"` }
func (*ResolvedRegistrySource) ConfigChanged ¶ added in v0.0.3
func (rs *ResolvedRegistrySource) ConfigChanged(lastBuild *Build) bool
func (*ResolvedRegistrySource) DeepCopy ¶ added in v0.0.3
func (in *ResolvedRegistrySource) DeepCopy() *ResolvedRegistrySource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolvedRegistrySource.
func (*ResolvedRegistrySource) DeepCopyInto ¶ added in v0.0.3
func (in *ResolvedRegistrySource) DeepCopyInto(out *ResolvedRegistrySource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResolvedRegistrySource) IsPollable ¶ added in v0.0.3
func (rs *ResolvedRegistrySource) IsPollable() bool
func (*ResolvedRegistrySource) IsUnknown ¶ added in v0.0.3
func (rs *ResolvedRegistrySource) IsUnknown() bool
func (*ResolvedRegistrySource) RevisionChanged ¶ added in v0.0.3
func (rs *ResolvedRegistrySource) RevisionChanged(lastBuild *Build) bool
func (*ResolvedRegistrySource) SourceConfig ¶ added in v0.0.3
func (rs *ResolvedRegistrySource) SourceConfig() SourceConfig
type ResolvedSource ¶ added in v0.0.2
type ResolvedSourceConfig ¶ added in v0.0.3
type ResolvedSourceConfig struct { Git *ResolvedGitSource `json:"git,omitempty"` Blob *ResolvedBlobSource `json:"blob,omitempty"` Registry *ResolvedRegistrySource `json:"registry,omitempty"` }
func (*ResolvedSourceConfig) DeepCopy ¶ added in v0.0.3
func (in *ResolvedSourceConfig) DeepCopy() *ResolvedSourceConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolvedSourceConfig.
func (*ResolvedSourceConfig) DeepCopyInto ¶ added in v0.0.3
func (in *ResolvedSourceConfig) DeepCopyInto(out *ResolvedSourceConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ResolvedSourceConfig) ResolvedSource ¶ added in v0.0.3
func (sc ResolvedSourceConfig) ResolvedSource() ResolvedSource
type SourceConfig ¶ added in v0.0.3
type SourceConfig struct { Git *Git `json:"git,omitempty"` Blob *Blob `json:"blob,omitempty"` Registry *Registry `json:"registry,omitempty"` SubPath string `json:"subPath,omitempty"` }
func (*SourceConfig) DeepCopy ¶ added in v0.0.3
func (in *SourceConfig) DeepCopy() *SourceConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceConfig.
func (*SourceConfig) DeepCopyInto ¶ added in v0.0.3
func (in *SourceConfig) DeepCopyInto(out *SourceConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SourceConfig) Source ¶ added in v0.0.3
func (sc *SourceConfig) Source() Source
type SourceResolver ¶ added in v0.0.2
type SourceResolver struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SourceResolverSpec `json:"spec"` Status SourceResolverStatus `json:"status"` }
func (*SourceResolver) ConfigChanged ¶ added in v0.0.2
func (sr *SourceResolver) ConfigChanged(lastBuild *Build) bool
func (*SourceResolver) DeepCopy ¶ added in v0.0.2
func (in *SourceResolver) DeepCopy() *SourceResolver
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceResolver.
func (*SourceResolver) DeepCopyInto ¶ added in v0.0.2
func (in *SourceResolver) DeepCopyInto(out *SourceResolver)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SourceResolver) DeepCopyObject ¶ added in v0.0.2
func (in *SourceResolver) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SourceResolver) GetGroupVersionKind ¶ added in v0.0.2
func (*SourceResolver) GetGroupVersionKind() schema.GroupVersionKind
func (SourceResolver) IsBlob ¶ added in v0.0.2
func (sr SourceResolver) IsBlob() bool
func (SourceResolver) IsGit ¶ added in v0.0.2
func (sr SourceResolver) IsGit() bool
func (SourceResolver) IsRegistry ¶ added in v0.0.3
func (sr SourceResolver) IsRegistry() bool
func (*SourceResolver) PollingReady ¶ added in v0.0.2
func (sr *SourceResolver) PollingReady() bool
func (*SourceResolver) Ready ¶ added in v0.0.2
func (sr *SourceResolver) Ready() bool
func (*SourceResolver) ResolvedSource ¶ added in v0.0.2
func (sr *SourceResolver) ResolvedSource(config ResolvedSourceConfig)
func (*SourceResolver) RevisionChanged ¶ added in v0.0.3
func (sr *SourceResolver) RevisionChanged(lastBuild *Build) bool
func (*SourceResolver) SourceConfig ¶ added in v0.0.3
func (st *SourceResolver) SourceConfig() SourceConfig
type SourceResolverList ¶ added in v0.0.2
type SourceResolverList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []SourceResolver `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SourceResolverList) DeepCopy ¶ added in v0.0.2
func (in *SourceResolverList) DeepCopy() *SourceResolverList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceResolverList.
func (*SourceResolverList) DeepCopyInto ¶ added in v0.0.2
func (in *SourceResolverList) DeepCopyInto(out *SourceResolverList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SourceResolverList) DeepCopyObject ¶ added in v0.0.2
func (in *SourceResolverList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SourceResolverSpec ¶ added in v0.0.2
type SourceResolverSpec struct { ServiceAccount string `json:"serviceAccount"` Source SourceConfig `json:"source"` }
func (*SourceResolverSpec) DeepCopy ¶ added in v0.0.2
func (in *SourceResolverSpec) DeepCopy() *SourceResolverSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceResolverSpec.
func (*SourceResolverSpec) DeepCopyInto ¶ added in v0.0.2
func (in *SourceResolverSpec) DeepCopyInto(out *SourceResolverSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SourceResolverStatus ¶ added in v0.0.2
type SourceResolverStatus struct { duckv1alpha1.Status `json:",inline"` Source ResolvedSourceConfig `json:"source"` }
func (*SourceResolverStatus) DeepCopy ¶ added in v0.0.2
func (in *SourceResolverStatus) DeepCopy() *SourceResolverStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceResolverStatus.
func (*SourceResolverStatus) DeepCopyInto ¶ added in v0.0.2
func (in *SourceResolverStatus) DeepCopyInto(out *SourceResolverStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files ¶
- build.go
- build_defaults.go
- build_pod.go
- build_types.go
- build_validation.go
- builder.go
- builder_types.go
- buildpack_metadata.go
- cluster_builder.go
- cluster_builder_types.go
- doc.go
- image_builds.go
- image_lifecycle.go
- image_reconcile_build.go
- image_types.go
- register.go
- source_resolver.go
- source_resolver_types.go
- source_types.go
- zz_generated.deepcopy.go