Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the source v1alpha1 API group +kubebuilder:object:generate=true +groupName=source.apps.tanzu.vmware.com
Index ¶
- Constants
- Variables
- func ArtifactDir(kind, namespace, name string) string
- func ArtifactPath(kind, namespace, name, filename string) string
- type Artifact
- type ImageRepository
- func (in *ImageRepository) DeepCopy() *ImageRepository
- func (in *ImageRepository) DeepCopyInto(out *ImageRepository)
- func (in *ImageRepository) DeepCopyObject() runtime.Object
- func (s *ImageRepository) GetConditionSet() apis.ConditionSet
- func (s *ImageRepository) GetConditionsAccessor() apis.ConditionsAccessor
- func (s *ImageRepository) ManageConditions() apis.ConditionManager
- type ImageRepositoryList
- type ImageRepositorySpec
- type ImageRepositoryStatus
- type MavenArtifact
- func (in *MavenArtifact) DeepCopy() *MavenArtifact
- func (in *MavenArtifact) DeepCopyInto(out *MavenArtifact)
- func (in *MavenArtifact) DeepCopyObject() runtime.Object
- func (r *MavenArtifact) Default()
- func (s *MavenArtifact) GetConditionSet() apis.ConditionSet
- func (s *MavenArtifact) GetConditionsAccessor() apis.ConditionsAccessor
- func (s *MavenArtifact) ManageConditions() apis.ConditionManager
- func (r *MavenArtifact) ValidateCreate() (admission.Warnings, error)
- func (c *MavenArtifact) ValidateDelete() (admission.Warnings, error)
- func (c *MavenArtifact) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type MavenArtifactList
- type MavenArtifactSpec
- type MavenArtifactStatus
- type MavenArtifactType
- type Repository
Constants ¶
const ( Group = "source.apps.tanzu.vmware.com" Version = "v1alpha1" )
const ( ImageRepositoryConditionReady = apis.ConditionReady ImageRepositoryConditionImageResolved = "ImageResolved" ImageRepositoryConditionArtifactAvailable = "ArtifactAvailable" )
const ( MavenArtifactConditionReady = apis.ConditionReady MavenArtifactConditionArtifactResolved = "ArtifactVersionResolved" MavenArtifactConditionArtifactAvailable = "ArtifactAvailable" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: Group, Version: Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var (
ImageRepositoryLabelKey = GroupVersion.Group + "/image-repository"
)
var MavenArtifactCondSet = apis.NewLivingConditionSet( MavenArtifactConditionArtifactResolved, MavenArtifactConditionArtifactAvailable, )
var (
MavenArtifactLabelKey = GroupVersion.Group + "/maven-artifact"
)
Functions ¶
func ArtifactDir ¶
ArtifactDir returns the artifact dir path in the form of <source-kind>/<source-namespace>/<source-name>.
func ArtifactPath ¶
ArtifactPath returns the artifact path in the form of <source-kind>/<source-namespace>/<source-name>/<artifact-filename>.
Types ¶
type Artifact ¶
type Artifact struct { // Path is the relative file path of this artifact. // +required Path string `json:"path"` // URL is the HTTP address of this artifact. // +required URL string `json:"url"` // Revision is a human readable identifier traceable in the origin source // system. It can be a Git commit SHA, Git tag, a Helm index timestamp, a Helm // chart version, etc. // +optional Revision string `json:"revision"` // Checksum is the SHA1 checksum of the artifact. // +optional Checksum string `json:"checksum"` // LastUpdateTime is the timestamp corresponding to the last update of this // artifact. // +required LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` }
Artifact represents the output of a source synchronisation.
func (*Artifact) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Artifact.
func (*Artifact) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Artifact) HasRevision ¶
HasRevision returns true if the given revision matches the current Revision of the Artifact.
type ImageRepository ¶
type ImageRepository struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ImageRepositorySpec `json:"spec,omitempty"` Status ImageRepositoryStatus `json:"status,omitempty"` }
ImageRepository is the Schema for the imagerepositories API
func (*ImageRepository) DeepCopy ¶
func (in *ImageRepository) DeepCopy() *ImageRepository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRepository.
func (*ImageRepository) DeepCopyInto ¶
func (in *ImageRepository) DeepCopyInto(out *ImageRepository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageRepository) DeepCopyObject ¶
func (in *ImageRepository) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ImageRepository) GetConditionSet ¶
func (s *ImageRepository) GetConditionSet() apis.ConditionSet
func (*ImageRepository) GetConditionsAccessor ¶
func (s *ImageRepository) GetConditionsAccessor() apis.ConditionsAccessor
func (*ImageRepository) ManageConditions ¶
func (s *ImageRepository) ManageConditions() apis.ConditionManager
type ImageRepositoryList ¶
type ImageRepositoryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ImageRepository `json:"items"` }
ImageRepositoryList contains a list of ImageRepository
func (*ImageRepositoryList) DeepCopy ¶
func (in *ImageRepositoryList) DeepCopy() *ImageRepositoryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRepositoryList.
func (*ImageRepositoryList) DeepCopyInto ¶
func (in *ImageRepositoryList) DeepCopyInto(out *ImageRepositoryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageRepositoryList) DeepCopyObject ¶
func (in *ImageRepositoryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageRepositorySpec ¶
type ImageRepositorySpec struct { // Image is a reference to an image in a remote repository Image string `json:"image"` // The interval at which to check for repository updates. Interval metav1.Duration `json:"interval,omitempty"` // ImagePullSecrets contains the names of the Kubernetes Secrets containing registry login // information to resolve image metadata. // +optional ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` // ServiceAccountName is the name of the Kubernetes ServiceAccount used to authenticate // the image pull if the service account has attached pull secrets. For more information: // https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account // +optional ServiceAccountName string `json:"serviceAccountName,omitempty"` }
ImageRepositorySpec defines the desired state of ImageRepository
func (*ImageRepositorySpec) DeepCopy ¶
func (in *ImageRepositorySpec) DeepCopy() *ImageRepositorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRepositorySpec.
func (*ImageRepositorySpec) DeepCopyInto ¶
func (in *ImageRepositorySpec) DeepCopyInto(out *ImageRepositorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageRepositoryStatus ¶
type ImageRepositoryStatus struct { apis.Status `json:",inline"` // URL is the download link for the artifact output of the last repository // sync. // +optional URL string `json:"url,omitempty"` // Artifact represents the output of the last successful repository sync. // +optional Artifact *Artifact `json:"artifact,omitempty"` }
ImageRepositoryStatus defines the observed state of ImageRepository
func (*ImageRepositoryStatus) DeepCopy ¶
func (in *ImageRepositoryStatus) DeepCopy() *ImageRepositoryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRepositoryStatus.
func (*ImageRepositoryStatus) DeepCopyInto ¶
func (in *ImageRepositoryStatus) DeepCopyInto(out *ImageRepositoryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageRepositoryStatus) InitializeConditions ¶
func (s *ImageRepositoryStatus) InitializeConditions()
type MavenArtifact ¶
type MavenArtifact struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MavenArtifactSpec `json:"spec,omitempty"` Status MavenArtifactStatus `json:"status,omitempty"` }
MavenArtifact is the Schema for the mavenartifacts API
func (*MavenArtifact) DeepCopy ¶
func (in *MavenArtifact) DeepCopy() *MavenArtifact
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MavenArtifact.
func (*MavenArtifact) DeepCopyInto ¶
func (in *MavenArtifact) DeepCopyInto(out *MavenArtifact)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MavenArtifact) DeepCopyObject ¶
func (in *MavenArtifact) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MavenArtifact) Default ¶
func (r *MavenArtifact) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*MavenArtifact) GetConditionSet ¶
func (s *MavenArtifact) GetConditionSet() apis.ConditionSet
func (*MavenArtifact) GetConditionsAccessor ¶
func (s *MavenArtifact) GetConditionsAccessor() apis.ConditionsAccessor
func (*MavenArtifact) ManageConditions ¶
func (s *MavenArtifact) ManageConditions() apis.ConditionManager
func (*MavenArtifact) ValidateCreate ¶
func (r *MavenArtifact) ValidateCreate() (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*MavenArtifact) ValidateDelete ¶
func (c *MavenArtifact) ValidateDelete() (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*MavenArtifact) ValidateUpdate ¶
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type MavenArtifactList ¶
type MavenArtifactList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MavenArtifact `json:"items"` }
MavenArtifactList contains a list of MavenArtifact
func (*MavenArtifactList) DeepCopy ¶
func (in *MavenArtifactList) DeepCopy() *MavenArtifactList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MavenArtifactList.
func (*MavenArtifactList) DeepCopyInto ¶
func (in *MavenArtifactList) DeepCopyInto(out *MavenArtifactList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MavenArtifactList) DeepCopyObject ¶
func (in *MavenArtifactList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MavenArtifactSpec ¶
type MavenArtifactSpec struct { // Maven Artifact defines meta Type // +required Artifact MavenArtifactType `json:"artifact"` // Repository defines the parameters for accessing a repository // +required Repository Repository `json:"repository"` // Interval at which to check the repository for updates. // +required Interval metav1.Duration `json:"interval"` // Timeout for artifact download operation. // Defaults to 'Interval' duration. // +optional Timeout *metav1.Duration `json:"timeout,omitempty"` }
MavenArtifactSpec defines the required configuration to provide a MavenArtifact from MavenRepository
func (*MavenArtifactSpec) DeepCopy ¶
func (in *MavenArtifactSpec) DeepCopy() *MavenArtifactSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MavenArtifactSpec.
func (*MavenArtifactSpec) DeepCopyInto ¶
func (in *MavenArtifactSpec) DeepCopyInto(out *MavenArtifactSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MavenArtifactSpec) Default ¶
func (s *MavenArtifactSpec) Default()
type MavenArtifactStatus ¶
type MavenArtifactStatus struct { apis.Status `json:",inline"` // URL is the download link for the artifact output of the last repository // sync. // +optional URL string `json:"url,omitempty"` // Artifact represents the output of the last successful repository sync. // +optional Artifact *Artifact `json:"artifact,omitempty"` }
MavenArtifactStatus defines the observed state of MavenArtifact
func (*MavenArtifactStatus) DeepCopy ¶
func (in *MavenArtifactStatus) DeepCopy() *MavenArtifactStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MavenArtifactStatus.
func (*MavenArtifactStatus) DeepCopyInto ¶
func (in *MavenArtifactStatus) DeepCopyInto(out *MavenArtifactStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MavenArtifactStatus) InitializeConditions ¶
func (s *MavenArtifactStatus) InitializeConditions()
type MavenArtifactType ¶
type MavenArtifactType struct { // Artifact Group ID // +required GroupId string `json:"groupId"` // Artifact Version // The version element identifies the current version of the artifact. // Supported values: "0.1.2" (version) and "RELEASE" // Unsupported values: "LATEST", "SNAPSHOT" and Maven Version Ranges // https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html // +required Version string `json:"version"` // Artifact identifier // +required ArtifactId string `json:"artifactId"` // Package type (jar, war, pom), defaults to jar // +optional Type string `json:"type,omitempty"` // Classifier distinguishes artifacts that were built from the same POM but differed in content // +optional Classifier string `json:"classifier,omitempty"` }
MavenArtifactType describes properties for a maven created artifact
func (*MavenArtifactType) DeepCopy ¶
func (in *MavenArtifactType) DeepCopy() *MavenArtifactType
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MavenArtifactType.
func (*MavenArtifactType) DeepCopyInto ¶
func (in *MavenArtifactType) DeepCopyInto(out *MavenArtifactType)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MavenArtifactType) Default ¶
func (s *MavenArtifactType) Default()
type Repository ¶
type Repository struct { // URL is the HTTPS address of the repository. HTTP is not supported. // +required URL string `json:"url"` // SecretRef can be given the name of a secret containing // Authentication data. // // For Basic Authentication use // - username: <BASE64> // password: <BASE64> // // For mTLS authenticationa use // - certFile: <BASE64> a PEM-encoded client certificate // - keyFile: <BASE64> private key // // For a Certificate Authority to trust while connecting use // - caFile: <BASE64> a PEM-encoded CA certificate // +optional SecretRef corev1.LocalObjectReference `json:"secretRef,omitempty"` }
Repository type defines the parameters for accessing a maven repository
func (*Repository) DeepCopy ¶
func (in *Repository) DeepCopy() *Repository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Repository.
func (*Repository) DeepCopyInto ¶
func (in *Repository) DeepCopyInto(out *Repository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Repository) Default ¶
func (s *Repository) Default()