Documentation ¶
Overview ¶
Package registry is the internal version of the API.
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Chart
- type ChartGroup
- type ChartGroupImport
- type ChartGroupList
- type ChartGroupPhase
- type ChartGroupSpec
- type ChartGroupStatus
- type ChartInfo
- type ChartInfoSpec
- type ChartList
- type ChartPhase
- type ChartProxyOptions
- type ChartSpec
- type ChartStatus
- type ChartVersion
- type ConfigMap
- type ConfigMapList
- type FinalizerName
- type Namespace
- type NamespaceList
- type NamespaceSpec
- type NamespaceStatus
- type RepoType
- type Repository
- type RepositoryList
- type RepositorySpec
- type RepositoryStatus
- type RepositoryTag
- type Visibility
Constants ¶
const ( // VisibilityPublic indicates the namespace or repo is public. VisibilityPublic Visibility = "Public" // VisibilityUser indicates the namespace or repo is user. VisibilityUser Visibility = "User" // VisibilityProject indicates the namespace or repo is project. VisibilityProject Visibility = "Project" // VisibilityPrivate indicates the namespace or repo is private. // Deprecated! VisibilityPrivate Visibility = "Private" // RepoTypeSelfBuilt indicates the type of namespace or repo is selfbuilt. RepoTypeSelfBuilt RepoType = "SelfBuilt" // RepoTypeImported indicates the type of namespace or repo is imported. RepoTypeImported RepoType = "Imported" // RepoTypeSystem indicates the type of namespace or repo is system. RepoTypeSystem RepoType = "System" // RepoTypeProject indicates the type of namespace or repo is project. // Deprecated! RepoTypeProject RepoType = "project" // RepoTypePersonal indicates the type of namespace or repo is personal. // Deprecated! RepoTypePersonal RepoType = "personal" // ScopeTypeAll indicates all of namespace or repo is all. ScopeTypeAll string = "all" // ScopeTypePublic indicates all of namespace or repo is public. ScopeTypePublic string = "public" // ScopeTypeUser indicates all of namespace or repo is user. ScopeTypeUser string = "user" // ScopeTypeProject indicates all of namespace or repo is project. ScopeTypeProject string = "project" )
const GroupName = "registry.tkestack.io"
GroupName is group name used to register these schema
Variables ¶
var ( // Scheme is the default instance of runtime.Scheme to which types in the TKE API are already registered. Scheme = runtime.NewScheme() // Codecs provides access to encoding and decoding for the scheme Codecs = serializer.NewCodecFactory(Scheme) // ParameterCodec handles versioning of objects that are converted to query parameters. ParameterCodec = runtime.NewParameterCodec(Scheme) )
var ( // SchemeBuilder collects functions that add things to a scheme. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies all the stored functions to the scheme. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
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 back a IdentityProvider qualified GroupResource
Types ¶
type Chart ¶
type Chart struct { metav1.TypeMeta // +optional metav1.ObjectMeta // Spec defines the desired identities of chart in this set. // +optional Spec ChartSpec // +optional Status ChartStatus }
Chart is a chart in chartgroup of chartmuseum registry.
func (*Chart) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Chart.
func (*Chart) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Chart) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChartGroup ¶
type ChartGroup struct { metav1.TypeMeta // +optional metav1.ObjectMeta // Spec defines the desired identities of chartgroup in this set. // +optional Spec ChartGroupSpec // +optional Status ChartGroupStatus }
ChartGroup is a chart container in chartmuseum registry.
func (*ChartGroup) DeepCopy ¶
func (in *ChartGroup) DeepCopy() *ChartGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartGroup.
func (*ChartGroup) DeepCopyInto ¶
func (in *ChartGroup) DeepCopyInto(out *ChartGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ChartGroup) DeepCopyObject ¶
func (in *ChartGroup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChartGroupImport ¶ added in v1.6.0
type ChartGroupImport struct { Addr string // +optional Username string // +optional Password string }
ChartGroupImport is a description of an import chart group.
func (*ChartGroupImport) DeepCopy ¶ added in v1.6.0
func (in *ChartGroupImport) DeepCopy() *ChartGroupImport
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartGroupImport.
func (*ChartGroupImport) DeepCopyInto ¶ added in v1.6.0
func (in *ChartGroupImport) DeepCopyInto(out *ChartGroupImport)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChartGroupList ¶
type ChartGroupList struct { metav1.TypeMeta // +optional metav1.ListMeta // List of chartgroups Items []ChartGroup }
ChartGroupList is the whole list of all chartgroups which owned by a tenant.
func (*ChartGroupList) DeepCopy ¶
func (in *ChartGroupList) DeepCopy() *ChartGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartGroupList.
func (*ChartGroupList) DeepCopyInto ¶
func (in *ChartGroupList) DeepCopyInto(out *ChartGroupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ChartGroupList) DeepCopyObject ¶
func (in *ChartGroupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChartGroupPhase ¶ added in v1.4.0
type ChartGroupPhase string
ChartGroupPhase indicates the phase of chartgroups.
const ( // ChartGroupPending indicates that the chartgroup has been declared, // when the chartgroup has not actually been created. ChartGroupPending ChartGroupPhase = "Pending" // ChartGroupAvailable indicates the chartgroup of the project is available. ChartGroupAvailable ChartGroupPhase = "Available" // ChartGroupFailed indicates that the chartgroup failed to be created or deleted // after it has been created. ChartGroupFailed ChartGroupPhase = "Failed" // ChartGroupTerminating means the chartgroup is undergoing graceful termination. ChartGroupTerminating ChartGroupPhase = "Terminating" )
These are valid phases of chartgroups.
type ChartGroupSpec ¶
type ChartGroupSpec struct { Name string TenantID string // +optional DisplayName string // +optional Visibility Visibility // +optional Type RepoType // +optional Description string // +optional Projects []string // +optional Finalizers []FinalizerName // +optional Users []string // +optional ImportedInfo ChartGroupImport // +optional Creator string }
ChartGroupSpec is a description of a chartgroup.
func (*ChartGroupSpec) DeepCopy ¶
func (in *ChartGroupSpec) DeepCopy() *ChartGroupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartGroupSpec.
func (*ChartGroupSpec) DeepCopyInto ¶
func (in *ChartGroupSpec) DeepCopyInto(out *ChartGroupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChartGroupStatus ¶
type ChartGroupStatus struct { // +optional Locked *bool ChartCount int32 // +optional Phase ChartGroupPhase // The last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time // The reason for the condition's last transition. // +optional Reason string // A human readable message indicating details about the transition. // +optional Message string }
ChartGroupStatus represents information about the status of a chartgroup.
func (*ChartGroupStatus) DeepCopy ¶
func (in *ChartGroupStatus) DeepCopy() *ChartGroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartGroupStatus.
func (*ChartGroupStatus) DeepCopyInto ¶
func (in *ChartGroupStatus) DeepCopyInto(out *ChartGroupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChartInfo ¶ added in v1.4.0
type ChartInfo struct { metav1.TypeMeta // +optional metav1.ObjectMeta // Spec defines the desired identities of a chart. // +optional Spec ChartInfoSpec }
ChartInfo describes detail of a chart version.
func (*ChartInfo) DeepCopy ¶ added in v1.4.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartInfo.
func (*ChartInfo) DeepCopyInto ¶ added in v1.4.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ChartInfo) DeepCopyObject ¶ added in v1.4.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChartInfoSpec ¶ added in v1.4.0
type ChartInfoSpec struct { // +optional Readme map[string]string // +optional Values map[string]string // +optional RawFiles map[string]string // +optional ChartSpec // +optional ChartVersion }
ChartInfoSpec is a description of a ChartInfo.
func (*ChartInfoSpec) DeepCopy ¶ added in v1.4.0
func (in *ChartInfoSpec) DeepCopy() *ChartInfoSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartInfoSpec.
func (*ChartInfoSpec) DeepCopyInto ¶ added in v1.4.0
func (in *ChartInfoSpec) DeepCopyInto(out *ChartInfoSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChartList ¶
type ChartList struct { metav1.TypeMeta // +optional metav1.ListMeta // List of charts Items []Chart }
ChartList is the whole list of all charts which owned by a chartgroup.
func (*ChartList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartList.
func (*ChartList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ChartList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChartPhase ¶ added in v1.4.0
type ChartPhase string
ChartPhase indicates the phase of chart.
const ( // ChartPending indicates that the chart has been declared, // when the chart has not actually been created. ChartPending ChartPhase = "Pending" // ChartAvailable indicates the chart of the project is available. ChartAvailable ChartPhase = "Available" // ChartFailed indicates that the chart failed to be created or deleted // after it has been created. ChartFailed ChartPhase = "Failed" // ChartTerminating means the chart is undergoing graceful termination. ChartTerminating ChartPhase = "Terminating" )
These are valid phases of charts.
type ChartProxyOptions ¶ added in v1.4.0
ChartProxyOptions is the query options to a ChartInfo proxy call.
func (*ChartProxyOptions) DeepCopy ¶ added in v1.4.0
func (in *ChartProxyOptions) DeepCopy() *ChartProxyOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartProxyOptions.
func (*ChartProxyOptions) DeepCopyInto ¶ added in v1.4.0
func (in *ChartProxyOptions) DeepCopyInto(out *ChartProxyOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ChartProxyOptions) DeepCopyObject ¶ added in v1.4.0
func (in *ChartProxyOptions) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChartSpec ¶
type ChartSpec struct { Name string TenantID string ChartGroupName string // +optional DisplayName string // +optional Visibility Visibility // +optional Finalizers []FinalizerName }
func (*ChartSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartSpec.
func (*ChartSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChartStatus ¶
type ChartStatus struct { // +optional Locked *bool PullCount int32 Versions []ChartVersion // +optional Phase ChartPhase // The last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time // The reason for the condition's last transition. // +optional Reason string // A human readable message indicating details about the transition. // +optional Message string }
func (*ChartStatus) DeepCopy ¶
func (in *ChartStatus) DeepCopy() *ChartStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartStatus.
func (*ChartStatus) DeepCopyInto ¶
func (in *ChartStatus) DeepCopyInto(out *ChartStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChartVersion ¶
type ChartVersion struct { Version string ChartSize int64 TimeCreated metav1.Time Description string AppVersion string Icon string }
func (*ChartVersion) DeepCopy ¶
func (in *ChartVersion) DeepCopy() *ChartVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartVersion.
func (*ChartVersion) DeepCopyInto ¶
func (in *ChartVersion) DeepCopyInto(out *ChartVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigMap ¶
type ConfigMap struct { metav1.TypeMeta // +optional metav1.ObjectMeta // Data contains the configuration data. // Each key must consist of alphanumeric characters, '-', '_' or '.'. // Values with non-UTF-8 byte sequences must use the BinaryData field. // The keys stored in Data must not overlap with the keys in // the BinaryData field, this is enforced during validation process. // +optional Data map[string]string // BinaryData contains the binary data. // Each key must consist of alphanumeric characters, '-', '_' or '.'. // BinaryData can contain byte sequences that are not in the UTF-8 range. // The keys stored in BinaryData must not overlap with the ones in // the Data field, this is enforced during validation process. // +optional BinaryData map[string][]byte }
ConfigMap holds configuration data for tke to consume.
func (*ConfigMap) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMap.
func (*ConfigMap) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigMap) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigMapList ¶
type ConfigMapList struct { metav1.TypeMeta // +optional metav1.ListMeta // Items is the list of ConfigMaps. Items []ConfigMap }
ConfigMapList is a resource containing a list of ConfigMap objects.
func (*ConfigMapList) DeepCopy ¶
func (in *ConfigMapList) DeepCopy() *ConfigMapList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapList.
func (*ConfigMapList) DeepCopyInto ¶
func (in *ConfigMapList) DeepCopyInto(out *ConfigMapList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigMapList) DeepCopyObject ¶
func (in *ConfigMapList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FinalizerName ¶ added in v1.4.0
type FinalizerName string
FinalizerName is the name identifying a finalizer during resource lifecycle.
const ( // ChartGroupFinalize is an internal finalizer values to ChartGroup. ChartGroupFinalize FinalizerName = "chartgroup" // ChartFinalize is an internal finalizer values to Chart. ChartFinalize FinalizerName = "chart" // RegistryClientUserAgent is the user agent for tke registry client RegistryClientUserAgent = "tke-registry-client" )
type Namespace ¶
type Namespace struct { metav1.TypeMeta // +optional metav1.ObjectMeta // Spec defines the desired identities of namespace in this set. // +optional Spec NamespaceSpec // +optional Status NamespaceStatus }
Namespace is an image container in registry.
func (*Namespace) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Namespace.
func (*Namespace) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Namespace) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NamespaceList ¶
type NamespaceList struct { metav1.TypeMeta // +optional metav1.ListMeta // List of namespaces Items []Namespace }
NamespaceList is the whole list of all namespaces which owned by a tenant.
func (*NamespaceList) DeepCopy ¶
func (in *NamespaceList) DeepCopy() *NamespaceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceList.
func (*NamespaceList) DeepCopyInto ¶
func (in *NamespaceList) DeepCopyInto(out *NamespaceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NamespaceList) DeepCopyObject ¶
func (in *NamespaceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NamespaceSpec ¶
type NamespaceSpec struct { Name string TenantID string // +optional DisplayName string // +optional Visibility Visibility }
NamespaceSpec is a description of a namespace.
func (*NamespaceSpec) DeepCopy ¶
func (in *NamespaceSpec) DeepCopy() *NamespaceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSpec.
func (*NamespaceSpec) DeepCopyInto ¶
func (in *NamespaceSpec) DeepCopyInto(out *NamespaceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespaceStatus ¶
NamespaceStatus represents information about the status of a namespace.
func (*NamespaceStatus) DeepCopy ¶
func (in *NamespaceStatus) DeepCopy() *NamespaceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceStatus.
func (*NamespaceStatus) DeepCopyInto ¶
func (in *NamespaceStatus) DeepCopyInto(out *NamespaceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepoType ¶ added in v1.4.0
type RepoType string
RepoType defines the type properties of the repo or namespace.
type Repository ¶
type Repository struct { metav1.TypeMeta // +optional metav1.ObjectMeta // Spec defines the desired identities of repository in this set. // +optional Spec RepositorySpec // +optional Status RepositoryStatus }
Repository is a repo in namespace of registry.
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) DeepCopyObject ¶
func (in *Repository) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RepositoryList ¶
type RepositoryList struct { metav1.TypeMeta // +optional metav1.ListMeta // List of repositories Items []Repository }
RepositoryList is the whole list of all repositories which owned by a namespace.
func (*RepositoryList) DeepCopy ¶
func (in *RepositoryList) DeepCopy() *RepositoryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryList.
func (*RepositoryList) DeepCopyInto ¶
func (in *RepositoryList) DeepCopyInto(out *RepositoryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RepositoryList) DeepCopyObject ¶
func (in *RepositoryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RepositorySpec ¶
type RepositorySpec struct { Name string TenantID string NamespaceName string // +optional DisplayName string // +optional Visibility Visibility }
func (*RepositorySpec) DeepCopy ¶
func (in *RepositorySpec) DeepCopy() *RepositorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositorySpec.
func (*RepositorySpec) DeepCopyInto ¶
func (in *RepositorySpec) DeepCopyInto(out *RepositorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryStatus ¶
type RepositoryStatus struct { // +optional Locked *bool PullCount int32 Tags []RepositoryTag }
func (*RepositoryStatus) DeepCopy ¶
func (in *RepositoryStatus) DeepCopy() *RepositoryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryStatus.
func (*RepositoryStatus) DeepCopyInto ¶
func (in *RepositoryStatus) DeepCopyInto(out *RepositoryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryTag ¶
func (*RepositoryTag) DeepCopy ¶
func (in *RepositoryTag) DeepCopy() *RepositoryTag
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryTag.
func (*RepositoryTag) DeepCopyInto ¶
func (in *RepositoryTag) DeepCopyInto(out *RepositoryTag)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Visibility ¶
type Visibility string
Visibility defines the visible properties of the repo or namespace.