Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the imageregistry v1alpha1 API group. +kubebuilder:object:generate=true +groupName=imageregistry.vmware.com
Index ¶
- Constants
- Variables
- func RegisterTypeWithScheme(object ...runtime.Object)
- func Resource(resource string) schema.GroupResource
- type CertVerificationStatus
- type CertificateVerificationInfo
- type ClusterContentLibrary
- func (in *ClusterContentLibrary) DeepCopy() *ClusterContentLibrary
- func (in *ClusterContentLibrary) DeepCopyInto(out *ClusterContentLibrary)
- func (in *ClusterContentLibrary) DeepCopyObject() runtime.Object
- func (ccl *ClusterContentLibrary) GetConditions() Conditions
- func (ccl *ClusterContentLibrary) SetConditions(conditions Conditions)
- type ClusterContentLibraryItem
- func (in *ClusterContentLibraryItem) DeepCopy() *ClusterContentLibraryItem
- func (in *ClusterContentLibraryItem) DeepCopyInto(out *ClusterContentLibraryItem)
- func (in *ClusterContentLibraryItem) DeepCopyObject() runtime.Object
- func (cclItem *ClusterContentLibraryItem) GetConditions() Conditions
- func (cclItem *ClusterContentLibraryItem) SetConditions(conditions Conditions)
- type ClusterContentLibraryItemList
- type ClusterContentLibraryList
- type ClusterContentLibrarySpec
- type Condition
- type ConditionSeverity
- type ConditionType
- type Conditions
- type ContentLibrary
- func (in *ContentLibrary) DeepCopy() *ContentLibrary
- func (in *ContentLibrary) DeepCopyInto(out *ContentLibrary)
- func (in *ContentLibrary) DeepCopyObject() runtime.Object
- func (contentLibrary *ContentLibrary) GetConditions() Conditions
- func (contentLibrary *ContentLibrary) SetConditions(conditions Conditions)
- type ContentLibraryItem
- func (in *ContentLibraryItem) DeepCopy() *ContentLibraryItem
- func (in *ContentLibraryItem) DeepCopyInto(out *ContentLibraryItem)
- func (in *ContentLibraryItem) DeepCopyObject() runtime.Object
- func (contentLibraryItem *ContentLibraryItem) GetConditions() Conditions
- func (contentLibraryItem *ContentLibraryItem) SetConditions(conditions Conditions)
- type ContentLibraryItemList
- type ContentLibraryItemSpec
- type ContentLibraryItemStatus
- type ContentLibraryItemType
- type ContentLibraryList
- type ContentLibrarySpec
- type ContentLibraryStatus
- type ContentLibraryType
- type FileInfo
- type NameAndKindRef
- type PublishInfo
- type StorageBacking
- type StorageBackingType
- type SubscriptionInfo
Constants ¶
const ( // DeletingReason (Severity=Info) documents a condition not in Status=True because the object is currently being deleted. DeletingReason = "Deleting" // DeletedReason (Severity=Error) documents a condition not in Status=True because the underlying object was deleted. DeletedReason = "Deleted" )
Common Condition.Reason used by Image Registry Operator API objects.
const ( ClusterContentLibraryRefValidationFailedReason = "ClusterContentLibraryRefValidationFailed" ContentLibraryRefValidationFailedReason = "ContentLibraryRefValidationFailed" )
Condition.Reasons related to ClusterContentLibraryItem or ContentLibraryItem API objects.
const ( // ContentLibraryItemTypeOvf indicates an OVF content library item in vCenter. ContentLibraryItemTypeOvf ContentLibraryItemType = "OVF" // ContentLibraryItemTypeIso indicates an ISO content library item in vCenter. ContentLibraryItemTypeIso ContentLibraryItemType = "ISO" // CertVerificationStatusNotAvailable indicates the certificate verification status is not available. CertVerificationStatusNotAvailable CertVerificationStatus = "NOT_AVAILABLE" // CertVerificationStatusVerified indicates the library item has been fully validated during importing or file syncing. CertVerificationStatusVerified CertVerificationStatus = "VERIFIED" // CertVerificationStatusInternal indicates the library item is cloned/created through vCenter. CertVerificationStatusInternal CertVerificationStatus = "INTERNAL" // CertVerificationStatusVerificationFailure indicates certificate or manifest validation failed on the library item. CertVerificationStatusVerificationFailure CertVerificationStatus = "VERIFICATION_FAILURE" // CertVerificationStatusVerificationInProgress indicates the library item certificate verification is in progress. CertVerificationStatusVerificationInProgress CertVerificationStatus = "VERIFICATION_IN_PROGRESS" // CertVerificationStatusUntrusted indicates the certificate used to sign the library item is not trusted. CertVerificationStatusUntrusted CertVerificationStatus = "UNTRUSTED" )
const GroupName = "imageregistry.vmware.com"
GroupName specifies the group name used to register the objects.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &runtime.SchemeBuilder{} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func RegisterTypeWithScheme ¶
RegisterTypeWithScheme adds objects to the SchemeBuilder.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type CertVerificationStatus ¶
type CertVerificationStatus string
CertVerificationStatus is a constant for the certificate verification status of a content library item in vCenter.
type CertificateVerificationInfo ¶
type CertificateVerificationInfo struct {
// Status shows the certificate verification status of the library item.
// +kubebuilder:validation:Enum=NOT_AVAILABLE;VERIFIED;INTERNAL;VERIFICATION_FAILURE;VERIFICATION_IN_PROGRESS;UNTRUSTED
// +optional
Status CertVerificationStatus `json:"status,omitempty"`
// CertChain shows the signing certificate chain in base64 encoding if the library item is signed.
// +optional
CertChain []string `json:"certChain,omitempty"`
}
CertificateVerificationInfo shows the certificate verification status and the signing certificate.
func (*CertificateVerificationInfo) DeepCopy ¶
func (in *CertificateVerificationInfo) DeepCopy() *CertificateVerificationInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateVerificationInfo.
func (*CertificateVerificationInfo) DeepCopyInto ¶
func (in *CertificateVerificationInfo) DeepCopyInto(out *CertificateVerificationInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterContentLibrary ¶
type ClusterContentLibrary struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ClusterContentLibrarySpec `json:"spec,omitempty"`
Status ContentLibraryStatus `json:"status,omitempty"`
}
ClusterContentLibrary is the schema for the cluster scoped content library API. Currently, ClusterContentLibrary is immutable to end users.
func (*ClusterContentLibrary) DeepCopy ¶
func (in *ClusterContentLibrary) DeepCopy() *ClusterContentLibrary
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterContentLibrary.
func (*ClusterContentLibrary) DeepCopyInto ¶
func (in *ClusterContentLibrary) DeepCopyInto(out *ClusterContentLibrary)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterContentLibrary) DeepCopyObject ¶
func (in *ClusterContentLibrary) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterContentLibrary) GetConditions ¶
func (ccl *ClusterContentLibrary) GetConditions() Conditions
func (*ClusterContentLibrary) SetConditions ¶
func (ccl *ClusterContentLibrary) SetConditions(conditions Conditions)
type ClusterContentLibraryItem ¶
type ClusterContentLibraryItem struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ContentLibraryItemSpec `json:"spec,omitempty"`
Status ContentLibraryItemStatus `json:"status,omitempty"`
}
ClusterContentLibraryItem is the schema for the content library item API at the cluster scope. Currently, ClusterContentLibraryItem is immutable to end users.
func (*ClusterContentLibraryItem) DeepCopy ¶
func (in *ClusterContentLibraryItem) DeepCopy() *ClusterContentLibraryItem
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterContentLibraryItem.
func (*ClusterContentLibraryItem) DeepCopyInto ¶
func (in *ClusterContentLibraryItem) DeepCopyInto(out *ClusterContentLibraryItem)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterContentLibraryItem) DeepCopyObject ¶
func (in *ClusterContentLibraryItem) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterContentLibraryItem) GetConditions ¶
func (cclItem *ClusterContentLibraryItem) GetConditions() Conditions
func (*ClusterContentLibraryItem) SetConditions ¶
func (cclItem *ClusterContentLibraryItem) SetConditions(conditions Conditions)
type ClusterContentLibraryItemList ¶
type ClusterContentLibraryItemList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterContentLibraryItem `json:"items"`
}
ClusterContentLibraryItemList contains a list of ClusterContentLibraryItem.
func (*ClusterContentLibraryItemList) DeepCopy ¶
func (in *ClusterContentLibraryItemList) DeepCopy() *ClusterContentLibraryItemList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterContentLibraryItemList.
func (*ClusterContentLibraryItemList) DeepCopyInto ¶
func (in *ClusterContentLibraryItemList) DeepCopyInto(out *ClusterContentLibraryItemList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterContentLibraryItemList) DeepCopyObject ¶
func (in *ClusterContentLibraryItemList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterContentLibraryList ¶
type ClusterContentLibraryList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterContentLibrary `json:"items"`
}
ClusterContentLibraryList contains a list of ClusterContentLibrary.
func (*ClusterContentLibraryList) DeepCopy ¶
func (in *ClusterContentLibraryList) DeepCopy() *ClusterContentLibraryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterContentLibraryList.
func (*ClusterContentLibraryList) DeepCopyInto ¶
func (in *ClusterContentLibraryList) DeepCopyInto(out *ClusterContentLibraryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterContentLibraryList) DeepCopyObject ¶
func (in *ClusterContentLibraryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterContentLibrarySpec ¶
type ClusterContentLibrarySpec struct {
// UUID is the identifier which uniquely identifies the library in vCenter. This field is immutable.
// +required
UUID types.UID `json:"uuid"`
}
ClusterContentLibrarySpec defines the desired state of a ClusterContentLibrary.
func (*ClusterContentLibrarySpec) DeepCopy ¶
func (in *ClusterContentLibrarySpec) DeepCopy() *ClusterContentLibrarySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterContentLibrarySpec.
func (*ClusterContentLibrarySpec) DeepCopyInto ¶
func (in *ClusterContentLibrarySpec) DeepCopyInto(out *ClusterContentLibrarySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Condition ¶
type Condition struct {
// Type of condition in CamelCase or in foo.example.com/CamelCase.
// Many .condition.type values are consistent across resources like Available, but because arbitrary conditions
// can be useful (see .node.status.conditions), the ability to deconflict is important.
// +required
Type ConditionType `json:"type"`
// Status of the condition, one of True, False, Unknown.
// +required
Status corev1.ConditionStatus `json:"status"`
// Severity provides an explicit classification of Reason code, so the users or machines can immediately
// understand the current situation and act accordingly.
// The Severity field MUST be set only when Status=False.
// +optional
Severity ConditionSeverity `json:"severity,omitempty"`
// Last time the condition transitioned from one status to another.
// This should be when the underlying condition changed. If that is not known, then using the time when
// the API field changed is acceptable.
// +required
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
// The reason for the condition's last transition in CamelCase.
// The specific API may choose whether or not this field is considered a guaranteed API.
// This field may not be empty.
// +optional
Reason string `json:"reason,omitempty"`
// A human readable message indicating details about the transition.
// This field may be empty.
// +optional
Message string `json:"message,omitempty"`
}
Condition defines an observation of an Image Registry Operator API resource operational state.
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionSeverity ¶
type ConditionSeverity string
ConditionSeverity expresses the severity of a Condition Type failing.
const ( // ConditionSeverityError specifies that a condition with `Status=False` is an error. ConditionSeverityError ConditionSeverity = "Error" // ConditionSeverityWarning specifies that a condition with `Status=False` is a warning. ConditionSeverityWarning ConditionSeverity = "Warning" // ConditionSeverityInfo specifies that a condition with `Status=False` is informative. ConditionSeverityInfo ConditionSeverity = "Info" // ConditionSeverityNone should apply only to conditions with `Status=True`. ConditionSeverityNone ConditionSeverity = "" )
type ConditionType ¶
type ConditionType string
ConditionType is a valid value for Condition.Type.
const ( // ReadyCondition defines the Ready condition type that summarizes the operational state of an Image Registry Operator API object. ReadyCondition ConditionType = "Ready" )
Common ConditionTypes used by Image Registry Operator API objects.
type Conditions ¶
type Conditions []Condition
Conditions provide observations of the operational state of a Image Registry Operator API resource.
func (Conditions) DeepCopy ¶
func (in Conditions) DeepCopy() Conditions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Conditions.
func (Conditions) DeepCopyInto ¶
func (in Conditions) DeepCopyInto(out *Conditions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContentLibrary ¶
type ContentLibrary struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ContentLibrarySpec `json:"spec,omitempty"`
Status ContentLibraryStatus `json:"status,omitempty"`
}
ContentLibrary is the schema for the content library API. Currently, ContentLibrary is immutable to end users.
func (*ContentLibrary) DeepCopy ¶
func (in *ContentLibrary) DeepCopy() *ContentLibrary
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentLibrary.
func (*ContentLibrary) DeepCopyInto ¶
func (in *ContentLibrary) DeepCopyInto(out *ContentLibrary)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ContentLibrary) DeepCopyObject ¶
func (in *ContentLibrary) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ContentLibrary) GetConditions ¶
func (contentLibrary *ContentLibrary) GetConditions() Conditions
func (*ContentLibrary) SetConditions ¶
func (contentLibrary *ContentLibrary) SetConditions(conditions Conditions)
type ContentLibraryItem ¶
type ContentLibraryItem struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ContentLibraryItemSpec `json:"spec,omitempty"`
Status ContentLibraryItemStatus `json:"status,omitempty"`
}
ContentLibraryItem is the schema for the content library item API. Currently, ContentLibraryItem is immutable to end users.
func (*ContentLibraryItem) DeepCopy ¶
func (in *ContentLibraryItem) DeepCopy() *ContentLibraryItem
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentLibraryItem.
func (*ContentLibraryItem) DeepCopyInto ¶
func (in *ContentLibraryItem) DeepCopyInto(out *ContentLibraryItem)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ContentLibraryItem) DeepCopyObject ¶
func (in *ContentLibraryItem) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ContentLibraryItem) GetConditions ¶
func (contentLibraryItem *ContentLibraryItem) GetConditions() Conditions
func (*ContentLibraryItem) SetConditions ¶
func (contentLibraryItem *ContentLibraryItem) SetConditions(conditions Conditions)
type ContentLibraryItemList ¶
type ContentLibraryItemList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ContentLibraryItem `json:"items"`
}
ContentLibraryItemList contains a list of ContentLibraryItem.
func (*ContentLibraryItemList) DeepCopy ¶
func (in *ContentLibraryItemList) DeepCopy() *ContentLibraryItemList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentLibraryItemList.
func (*ContentLibraryItemList) DeepCopyInto ¶
func (in *ContentLibraryItemList) DeepCopyInto(out *ContentLibraryItemList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ContentLibraryItemList) DeepCopyObject ¶
func (in *ContentLibraryItemList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ContentLibraryItemSpec ¶
type ContentLibraryItemSpec struct {
// UUID is the identifier which uniquely identifies the library item in vCenter. This field is immutable.
// +required
UUID types.UID `json:"uuid"`
}
ContentLibraryItemSpec defines the desired state of a ContentLibraryItem.
func (*ContentLibraryItemSpec) DeepCopy ¶
func (in *ContentLibraryItemSpec) DeepCopy() *ContentLibraryItemSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentLibraryItemSpec.
func (*ContentLibraryItemSpec) DeepCopyInto ¶
func (in *ContentLibraryItemSpec) DeepCopyInto(out *ContentLibraryItemSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContentLibraryItemStatus ¶
type ContentLibraryItemStatus struct {
// Name specifies the name of the content library item in vCenter specified by the user.
// +optional
Name string `json:"name,omitempty"`
// ContentLibraryRef refers to the ContentLibrary custom resource that this item belongs to.
// +optional
ContentLibraryRef *NameAndKindRef `json:"contentLibraryRef,omitempty"`
// Description is a human-readable description for this library item.
// +optional
Description string `json:"description,omitempty"`
// MetadataVersion indicates the version of the library item metadata in vCenter.
// This value is incremented when the library item properties such as name or description are changed in vCenter.
// +optional
MetadataVersion string `json:"metadataVersion,omitempty"`
// ContentVersion indicates the version of the library item content in vCenter.
// This value is incremented when the files comprising the content library item are changed in vCenter.
// +optional
ContentVersion string `json:"contentVersion,omitempty"`
// Type indicates the type of the library item in vCenter.
// +kubebuilder:validation:Enum=OVF;ISO
// +optional
Type ContentLibraryItemType `json:"type,omitempty"`
// SizeInBytes indicates the library item size in bytes on storage in vCenter.
// +optional
SizeInBytes resource.Quantity `json:"sizeInBytes,omitempty"`
// Cached indicates if the library item files are on storage in vCenter.
// +optional
// +kubebuilder:default=false
Cached bool `json:"cached,omitempty"`
// SecurityCompliance shows the security compliance of the library item.
// +optional
SecurityCompliance *bool `json:"securityCompliance,omitempty"`
// CertificateVerificationInfo shows the certificate verification status and the signing certificate.
// +optional
CertificateVerificationInfo *CertificateVerificationInfo `json:"certificateVerificationInfo,omitempty"`
// FileInfo represents zero, one or more files belonging to the content library item in vCenter.
// +optional
FileInfo []FileInfo `json:"fileInfo,omitempty"`
// CreationTime indicates the date and time when this library item was created in vCenter.
// +optional
CreationTime metav1.Time `json:"creationTime,omitempty"`
// LastModifiedTime indicates the date and time when this library item was last updated in vCenter.
// This field is updated when the library item properties are changed or the file content is changed.
// +optional
LastModifiedTime metav1.Time `json:"lastModifiedTime,omitempty"`
// LastSyncTime indicates the date and time when this library item was last synchronized in vCenter.
// This field applies only to the library items belonging to the library of Type=Subscribed.
// +optional
LastSyncTime metav1.Time `json:"lastSyncTime,omitempty"`
// Conditions describes the current condition information of the ContentLibraryItem.
// +optional
Conditions Conditions `json:"conditions,omitempty"`
}
ContentLibraryItemStatus defines the observed state of ContentLibraryItem.
func (*ContentLibraryItemStatus) DeepCopy ¶
func (in *ContentLibraryItemStatus) DeepCopy() *ContentLibraryItemStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentLibraryItemStatus.
func (*ContentLibraryItemStatus) DeepCopyInto ¶
func (in *ContentLibraryItemStatus) DeepCopyInto(out *ContentLibraryItemStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContentLibraryItemType ¶
type ContentLibraryItemType string
ContentLibraryItemType is a constant for the type of a content library item in vCenter.
type ContentLibraryList ¶
type ContentLibraryList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ContentLibrary `json:"items"`
}
ContentLibraryList contains a list of ContentLibrary.
func (*ContentLibraryList) DeepCopy ¶
func (in *ContentLibraryList) DeepCopy() *ContentLibraryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentLibraryList.
func (*ContentLibraryList) DeepCopyInto ¶
func (in *ContentLibraryList) DeepCopyInto(out *ContentLibraryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ContentLibraryList) DeepCopyObject ¶
func (in *ContentLibraryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ContentLibrarySpec ¶
type ContentLibrarySpec struct {
// UUID is the identifier which uniquely identifies the library in vCenter. This field is immutable.
// +required
UUID types.UID `json:"uuid"`
// Writable flag indicates if users can create new library items in this library.
// +required
Writable bool `json:"writable"`
// AllowImport flag indicates if users can import OVF/OVA templates from remote HTTPS URLs
// as new content library items in this library.
// +optional
AllowImport bool `json:"allowImport,omitempty"`
}
ContentLibrarySpec defines the desired state of a ContentLibrary.
func (*ContentLibrarySpec) DeepCopy ¶
func (in *ContentLibrarySpec) DeepCopy() *ContentLibrarySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentLibrarySpec.
func (*ContentLibrarySpec) DeepCopyInto ¶
func (in *ContentLibrarySpec) DeepCopyInto(out *ContentLibrarySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContentLibraryStatus ¶
type ContentLibraryStatus struct {
// Name specifies the name of the content library in vCenter.
// +optional
Name string `json:"name,omitempty"`
// Description is a human-readable description for this library in vCenter.
// +optional
Description string `json:"description,omitempty"`
// +kubebuilder:validation:Enum=Local;Subscribed
// +optional
Type ContentLibraryType `json:"type,omitempty"`
// StorageBacking indicates the default storage backing available for this library in vCenter.
// +optional
StorageBacking *StorageBacking `json:"storageBacking,omitempty"`
// Version is a number that can identify metadata changes. This value is incremented when the library
// properties such as name or description are changed in vCenter.
// +optional
Version string `json:"version,omitempty"`
// Published indicates how the library is published so that it can be subscribed to by a remote subscribed library.
// +optional
PublishInfo *PublishInfo `json:"publishInfo,omitempty"`
// SubscriptionInfo defines how the subscribed library synchronizes to a remote source.
// This field is populated only if Type=Subscribed.
// +optional
SubscriptionInfo *SubscriptionInfo `json:"subscriptionInfo,omitempty"`
// SecurityPolicyID defines the security policy applied to this library.
// Setting this field will make the library secure.
// +optional
SecurityPolicyID string `json:"securityPolicyID,omitempty"`
// CreationTime indicates the date and time when this library was created in vCenter.
// +optional
CreationTime metav1.Time `json:"creationTime,omitempty"`
// LastModifiedTime indicates the date and time when this library was last updated in vCenter.
// This field is updated only when the library properties are changed. This field is not updated when a library
// item is added, modified or deleted or its content is changed.
// +optional
LastModifiedTime metav1.Time `json:"lastModifiedTime,omitempty"`
// LastSyncTime indicates the date and time when this library was last synchronized in vCenter.
// This field applies only if the library is of the "Subscribed" Type.
// +optional
LastSyncTime metav1.Time `json:"lastSyncTime,omitempty"`
// Conditions describes the current condition information of the ContentLibrary.
// +optional
Conditions Conditions `json:"conditions,omitempty"`
}
ContentLibraryStatus defines the observed state of ContentLibrary.
func (*ContentLibraryStatus) DeepCopy ¶
func (in *ContentLibraryStatus) DeepCopy() *ContentLibraryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentLibraryStatus.
func (*ContentLibraryStatus) DeepCopyInto ¶
func (in *ContentLibraryStatus) DeepCopyInto(out *ContentLibraryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContentLibraryType ¶
type ContentLibraryType string
ContentLibraryType is a constant type that indicates the type of a content library in vCenter.
const ( // ContentLibraryTypeLocal indicates a local content library in vCenter. ContentLibraryTypeLocal ContentLibraryType = "Local" // ContentLibraryTypeSubscribed indicates a subscribed content library in vCenter. ContentLibraryTypeSubscribed ContentLibraryType = "Subscribed" )
type FileInfo ¶ added in v1.8.2
type FileInfo struct {
// Name specifies the name of the file in vCenter.
// +required
Name string `json:"name"`
// SizeInBytes indicates the library item file size in bytes on storage in vCenter.
// +required
SizeInBytes resource.Quantity `json:"sizeInBytes"`
// Version indicates the version of the library item file in vCenter.
// This value is incremented when a new copy of the file is uploaded to vCenter.
// +required
Version string `json:"version"`
// Cached indicates if the library item file is on storage in vCenter.
// +required
// +kubebuilder:default=false
Cached bool `json:"cached"`
}
FileInfo represents the information of a file in a content library item in vCenter.
func (*FileInfo) DeepCopy ¶ added in v1.8.2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileInfo.
func (*FileInfo) DeepCopyInto ¶ added in v1.8.2
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NameAndKindRef ¶ added in v1.8.2
type NameAndKindRef struct {
// Kind is a string value representing the kind of resource to which this
// object refers.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
// +optional
Kind string `json:"kind,omitempty"`
// Name refers to a unique resource in the current namespace.
// More info: http://kubernetes.io/docs/user-guide/identifiers#names
Name string `json:"name"`
}
NameAndKindRef describes a reference to another object in the same namespace as the referrer. The reference can be just a name but may also include the referred resource's Kind.
func (*NameAndKindRef) DeepCopy ¶ added in v1.8.2
func (in *NameAndKindRef) DeepCopy() *NameAndKindRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NameAndKindRef.
func (*NameAndKindRef) DeepCopyInto ¶ added in v1.8.2
func (in *NameAndKindRef) DeepCopyInto(out *NameAndKindRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PublishInfo ¶
type PublishInfo struct {
// Published indicates if the local library is published so that it can be subscribed to by a remote subscribed library.
// +required
Published bool `json:"published"`
// URL to which the library metadata is published by the vSphere Content Library Service.
// This value can be used to set the SubscriptionInfo.URL property when creating a subscribed library.
// +required
URL string `json:"URL"`
}
PublishInfo defines how the library is published so that it can be subscribed to by a remote subscribed library.
func (*PublishInfo) DeepCopy ¶
func (in *PublishInfo) DeepCopy() *PublishInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PublishInfo.
func (*PublishInfo) DeepCopyInto ¶
func (in *PublishInfo) DeepCopyInto(out *PublishInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageBacking ¶
type StorageBacking struct {
// Type indicates the type of storage where the content would be stored.
// +kubebuilder:validation:Enum=Datastore;Other
// +required
Type StorageBackingType `json:"type"`
// DatastoreID indicates the identifier of the datastore used to store the content
// in the library for the "Datastore" storageType in vCenter.
// +optional
DatastoreID string `json:"datastoreID,omitempty"`
}
StorageBacking describes the default storage backing which is available for the library.
func (*StorageBacking) DeepCopy ¶
func (in *StorageBacking) DeepCopy() *StorageBacking
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageBacking.
func (*StorageBacking) DeepCopyInto ¶
func (in *StorageBacking) DeepCopyInto(out *StorageBacking)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageBackingType ¶
type StorageBackingType string
StorageBackingType is a constant type that indicates the type of the storage backing for a content library in vCenter.
const ( // StorageBackingTypeDatastore indicates a datastore backed content library in vCenter. StorageBackingTypeDatastore StorageBackingType = "Datastore" // StorageBackingTypeOther indicates a remote file system backed content library in vCenter. // Supports NFS and SMB remote file systems. StorageBackingTypeOther StorageBackingType = "Other" )
type SubscriptionInfo ¶
type SubscriptionInfo struct {
// URL of the endpoint where the metadata for the remotely published library is being served.
// The value from PublishInfo.URL of the published library should be used while creating a subscribed library.
// +required
URL string `json:"URL"`
// OnDemand indicates whether a library item’s content will be synchronized only on demand.
// +required
OnDemand bool `json:"onDemand"`
// AutomaticSync indicates whether the library should participate in automatic library synchronization.
// +required
AutomaticSync bool `json:"automaticSync"`
}
SubscriptionInfo defines how the subscribed library synchronizes to a remote source.
func (*SubscriptionInfo) DeepCopy ¶
func (in *SubscriptionInfo) DeepCopy() *SubscriptionInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubscriptionInfo.
func (*SubscriptionInfo) DeepCopyInto ¶
func (in *SubscriptionInfo) DeepCopyInto(out *SubscriptionInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.