Documentation ¶
Overview ¶
Package business is the internal version of the API.
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ChartGroup
- type ChartGroupList
- type ChartGroupPhase
- type ChartGroupSpec
- type ChartGroupStatus
- type ClusterHard
- type ClusterUsed
- type ConfigMap
- type ConfigMapList
- type FinalizerName
- type HardQuantity
- type ImageNamespace
- type ImageNamespaceList
- type ImageNamespacePhase
- type ImageNamespaceSpec
- type ImageNamespaceStatus
- type Namespace
- type NamespaceCert
- type NamespaceCertOptions
- type NamespaceList
- type NamespacePhase
- type NamespaceSpec
- type NamespaceStatus
- type NsEmigration
- type NsEmigrationList
- type NsEmigrationPhase
- type NsEmigrationSpec
- type NsEmigrationStatus
- type Platform
- type PlatformList
- type PlatformSpec
- type Portal
- type PortalProject
- type Project
- type ProjectExtension
- type ProjectList
- type ProjectPhase
- type ProjectSpec
- type ProjectStatus
- type ResourceList
- type UsedQuantity
Constants ¶
const CertOptionValidDays = "validDays"
const GroupName = "business.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 ChartGroup ¶
type ChartGroup struct { metav1.TypeMeta // +optional metav1.ObjectMeta // Spec defines the desired identities of namespaces in this set. // +optional Spec ChartGroupSpec // +optional Status ChartGroupStatus }
ChartGroup is a chart group.
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 ChartGroupList ¶
type ChartGroupList struct { metav1.TypeMeta // +optional metav1.ListMeta // List of ChartGroups Items []ChartGroup }
ChartGroupList is the whole list of all chart groups 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 ¶
type ChartGroupPhase string
ChartGroupPhase indicates the phase of chart groups.
const ( // ChartGroupPending indicates that the chart group has been declared, // when the chart group has not actually been created. ChartGroupPending ChartGroupPhase = "Pending" // ChartGroupAvailable indicates the chart group of the project is available. ChartGroupAvailable ChartGroupPhase = "Available" // ChartGroupLocked indicates the chart group of the project is locked. ChartGroupLocked ChartGroupPhase = "Locked" // ChartGroupFailed indicates that the chart group failed to be created or deleted // after it has been created. ChartGroupFailed ChartGroupPhase = "Failed" // ChartGroupTerminating means the chart group is undergoing graceful termination. ChartGroupTerminating ChartGroupPhase = "Terminating" )
These are valid phases of chart groups.
type ChartGroupSpec ¶
type ChartGroupSpec struct { // Finalizers is an opaque list of values that must be empty to permanently remove object from storage. // +optional Finalizers []FinalizerName Name string TenantID string // +optional DisplayName string }
ChartGroupSpec represents a chart group.
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 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 chart group.
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 ClusterHard ¶
type ClusterHard map[string]HardQuantity
ClusterHard is a set of (cluster name, ResourceQuantity) pairs.
func (ClusterHard) DeepCopy ¶
func (in ClusterHard) DeepCopy() ClusterHard
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterHard.
func (ClusterHard) DeepCopyInto ¶
func (in ClusterHard) DeepCopyInto(out *ClusterHard)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterUsed ¶
type ClusterUsed map[string]UsedQuantity
ClusterUsed is a set of (cluster name, ResourceQuantity) pairs.
func (ClusterUsed) DeepCopy ¶
func (in ClusterUsed) DeepCopy() ClusterUsed
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterUsed.
func (ClusterUsed) DeepCopyInto ¶
func (in ClusterUsed) DeepCopyInto(out *ClusterUsed)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigMap ¶
type ConfigMap struct { metav1.TypeMeta `json:",inline"` // +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 ¶
type FinalizerName string
FinalizerName is the name identifying a finalizer during project lifecycle.
const ( // ProjectFinalize is an internal finalizer values to Project. ProjectFinalize FinalizerName = "project" // NamespaceFinalize is an internal finalizer values to Namespace. NamespaceFinalize FinalizerName = "namespace" // ImageNamespaceFinalize is an internal finalizer values to ImageNamespace. ImageNamespaceFinalize FinalizerName = "imagenamespace" // ChartGroupFinalize is an internal finalizer values to ChartGroup. ChartGroupFinalize FinalizerName = "chartgroup" )
type HardQuantity ¶
type HardQuantity struct {
Hard ResourceList
}
HardQuantity is a straightforward wrapper of ResourceList.
func (*HardQuantity) DeepCopy ¶
func (in *HardQuantity) DeepCopy() *HardQuantity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HardQuantity.
func (*HardQuantity) DeepCopyInto ¶
func (in *HardQuantity) DeepCopyInto(out *HardQuantity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageNamespace ¶
type ImageNamespace struct { metav1.TypeMeta // +optional metav1.ObjectMeta // Spec defines the desired identities of namespaces in this set. // +optional Spec ImageNamespaceSpec // +optional Status ImageNamespaceStatus }
ImageNamespace is an image namespace.
func (*ImageNamespace) DeepCopy ¶
func (in *ImageNamespace) DeepCopy() *ImageNamespace
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageNamespace.
func (*ImageNamespace) DeepCopyInto ¶
func (in *ImageNamespace) DeepCopyInto(out *ImageNamespace)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageNamespace) DeepCopyObject ¶
func (in *ImageNamespace) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageNamespaceList ¶
type ImageNamespaceList struct { metav1.TypeMeta // +optional metav1.ListMeta // List of namespaces Items []ImageNamespace }
ImageNamespaceList is the whole list of all image namespaces which owned by a tenant.
func (*ImageNamespaceList) DeepCopy ¶
func (in *ImageNamespaceList) DeepCopy() *ImageNamespaceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageNamespaceList.
func (*ImageNamespaceList) DeepCopyInto ¶
func (in *ImageNamespaceList) DeepCopyInto(out *ImageNamespaceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageNamespaceList) DeepCopyObject ¶
func (in *ImageNamespaceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageNamespacePhase ¶
type ImageNamespacePhase string
ImageNamespacePhase indicates the phase of image namespaces.
const ( // ImageNamespacePending indicates that the image namespace has been declared, // when the image namespace has not actually been created. ImageNamespacePending ImageNamespacePhase = "Pending" // ImageNamespaceAvailable indicates the image namespace of the project is available. ImageNamespaceAvailable ImageNamespacePhase = "Available" // ImageNamespaceLocked indicates the image namespace of the project is locked. ImageNamespaceLocked ImageNamespacePhase = "Locked" // ImageNamespaceFailed indicates that the image namespace failed to be created or deleted // after it has been created. ImageNamespaceFailed ImageNamespacePhase = "Failed" // ImageNamespaceTerminating means the image namespace is undergoing graceful termination. ImageNamespaceTerminating ImageNamespacePhase = "Terminating" )
These are valid phases of image namespaces.
type ImageNamespaceSpec ¶
type ImageNamespaceSpec struct { // Finalizers is an opaque list of values that must be empty to permanently remove object from storage. // +optional Finalizers []FinalizerName Name string TenantID string // +optional DisplayName string }
ImageNamespaceSpec represents an image namespace.
func (*ImageNamespaceSpec) DeepCopy ¶
func (in *ImageNamespaceSpec) DeepCopy() *ImageNamespaceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageNamespaceSpec.
func (*ImageNamespaceSpec) DeepCopyInto ¶
func (in *ImageNamespaceSpec) DeepCopyInto(out *ImageNamespaceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageNamespaceStatus ¶
type ImageNamespaceStatus struct { // +optional Phase ImageNamespacePhase // 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 }
ImageNamespaceStatus represents information about the status of an image namespace.
func (*ImageNamespaceStatus) DeepCopy ¶
func (in *ImageNamespaceStatus) DeepCopy() *ImageNamespaceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageNamespaceStatus.
func (*ImageNamespaceStatus) DeepCopyInto ¶
func (in *ImageNamespaceStatus) DeepCopyInto(out *ImageNamespaceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Namespace ¶
type Namespace struct { metav1.TypeMeta // +optional metav1.ObjectMeta // Spec defines the desired identities of namespaces in this set. // +optional Spec NamespaceSpec // +optional Status NamespaceStatus }
Namespace is a namespace in cluster.
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 NamespaceCert ¶ added in v1.2.5
type NamespaceCert struct { // +optional CertPem []byte // +optional KeyPem []byte // +optional CACertPem []byte // +optional APIServer string }
NamespaceCert represents a x509 certificate of a namespace in project.
func (*NamespaceCert) DeepCopy ¶ added in v1.2.5
func (in *NamespaceCert) DeepCopy() *NamespaceCert
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceCert.
func (*NamespaceCert) DeepCopyInto ¶ added in v1.2.5
func (in *NamespaceCert) DeepCopyInto(out *NamespaceCert)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespaceCertOptions ¶ added in v1.2.5
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object NamespaceCertOptions is query options of getting namespace with a x509 certificate.
func (*NamespaceCertOptions) DeepCopy ¶ added in v1.2.5
func (in *NamespaceCertOptions) DeepCopy() *NamespaceCertOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceCertOptions.
func (*NamespaceCertOptions) DeepCopyInto ¶ added in v1.2.5
func (in *NamespaceCertOptions) DeepCopyInto(out *NamespaceCertOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NamespaceCertOptions) DeepCopyObject ¶ added in v1.2.5
func (in *NamespaceCertOptions) DeepCopyObject() runtime.Object
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 NamespacePhase ¶
type NamespacePhase string
NamespacePhase indicates the status of namespace in project.
const ( // NamespacePending indicates that the namespace has been declared, when the namespace // has not actually been created in the cluster. NamespacePending NamespacePhase = "Pending" // NamespaceAvailable indicates the namespace of the project is available. NamespaceAvailable NamespacePhase = "Available" // NamespaceLocked indicates the namespace is locked. NamespaceLocked NamespacePhase = "Locked" // Namespace indicates that the namespace failed to be created in the cluster or // deleted in the cluster after it has been created. NamespaceFailed NamespacePhase = "Failed" // NamespaceTerminating means the namespace is undergoing graceful termination. NamespaceTerminating NamespacePhase = "Terminating" )
These are valid namespace status of project.
type NamespaceSpec ¶
type NamespaceSpec struct { // Finalizers is an opaque list of values that must be empty to permanently remove object from storage. // +optional Finalizers []FinalizerName TenantID string ClusterName string ClusterType string ClusterVersion string ClusterDisplayName string Namespace string // Hard represents the total resources of a namespace. // +optional Hard ResourceList }
NamespaceSpec represents a namespace in cluster of a project.
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 ¶
type NamespaceStatus struct { // +optional Phase NamespacePhase // 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 // +optional ResourceQuotaName string // Used represents the resources of a namespace that are used. // +optional Used ResourceList // +optional CachedSpecHard ResourceList // +optional Certificate *NamespaceCert }
NamespaceStatus represents information about the status of a namespace in project.
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 NsEmigration ¶ added in v1.3.1
type NsEmigration struct { metav1.TypeMeta // +optional metav1.ObjectMeta // Spec defines the desired identities of emigrations in this set. // +optional Spec NsEmigrationSpec // +optional Status NsEmigrationStatus }
NsEmigration is a namespace emigration.
func (*NsEmigration) DeepCopy ¶ added in v1.3.1
func (in *NsEmigration) DeepCopy() *NsEmigration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NsEmigration.
func (*NsEmigration) DeepCopyInto ¶ added in v1.3.1
func (in *NsEmigration) DeepCopyInto(out *NsEmigration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NsEmigration) DeepCopyObject ¶ added in v1.3.1
func (in *NsEmigration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NsEmigrationList ¶ added in v1.3.1
type NsEmigrationList struct { metav1.TypeMeta // +optional metav1.ListMeta // List of namespace emigrations Items []NsEmigration }
NsEmigrationList is the whole list of all namespace emigrations which owned by a tenant.
func (*NsEmigrationList) DeepCopy ¶ added in v1.3.1
func (in *NsEmigrationList) DeepCopy() *NsEmigrationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NsEmigrationList.
func (*NsEmigrationList) DeepCopyInto ¶ added in v1.3.1
func (in *NsEmigrationList) DeepCopyInto(out *NsEmigrationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NsEmigrationList) DeepCopyObject ¶ added in v1.3.1
func (in *NsEmigrationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NsEmigrationPhase ¶ added in v1.3.1
type NsEmigrationPhase string
NsEmigrationPhase indicates the phase of namespace emigrations.
const ( // NsEmigrationPending indicates that the emigration is waiting to be executed. NsEmigrationPending NsEmigrationPhase = "Pending" // NsEmigrationOldOneLocked indicates that old namespace has been locked. NsEmigrationOldOneLocked NsEmigrationPhase = "OldOneLocked" // NsEmigrationOldOneDetached indicates that old namespace has been detached from k8s cluster namespace. NsEmigrationOldOneDetached NsEmigrationPhase = "OldOneDetached" // NsEmigrationNewOneCreated indicates that new namespace has been created. NsEmigrationNewOneCreated NsEmigrationPhase = "NewOneCreated" // NsEmigrationOldOneTerminating indicates that old namespace is terminating. NsEmigrationOldOneTerminating NsEmigrationPhase = "OldOneTerminating" // NsEmigrationFinished indicates that the emigration finished. NsEmigrationFinished NsEmigrationPhase = "Finished" // NsEmigrationFailed indicates that the emigration failed. NsEmigrationFailed NsEmigrationPhase = "Failed" )
These are valid phases of namespace emigrations.
type NsEmigrationSpec ¶ added in v1.3.1
type NsEmigrationSpec struct { TenantID string Namespace string NsShowName string Destination string }
NsEmigrationSpec represents a namespace emigration.
func (*NsEmigrationSpec) DeepCopy ¶ added in v1.3.1
func (in *NsEmigrationSpec) DeepCopy() *NsEmigrationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NsEmigrationSpec.
func (*NsEmigrationSpec) DeepCopyInto ¶ added in v1.3.1
func (in *NsEmigrationSpec) DeepCopyInto(out *NsEmigrationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NsEmigrationStatus ¶ added in v1.3.1
type NsEmigrationStatus struct { // +optional Phase NsEmigrationPhase // 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 }
NsEmigrationStatus represents information about the status of a namespace emigration.
func (*NsEmigrationStatus) DeepCopy ¶ added in v1.3.1
func (in *NsEmigrationStatus) DeepCopy() *NsEmigrationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NsEmigrationStatus.
func (*NsEmigrationStatus) DeepCopyInto ¶ added in v1.3.1
func (in *NsEmigrationStatus) DeepCopyInto(out *NsEmigrationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Platform ¶
type Platform struct { metav1.TypeMeta // +optional metav1.ObjectMeta // Spec defines the desired identities of platforms in this set. // +optional Spec PlatformSpec }
Platform is a platform in TKE.
func (*Platform) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Platform.
func (*Platform) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Platform) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PlatformList ¶
type PlatformList struct { metav1.TypeMeta // +optional metav1.ListMeta // List of platform. Items []Platform }
PlatformList is the whole list of all platforms which owned by a tenant.
func (*PlatformList) DeepCopy ¶
func (in *PlatformList) DeepCopy() *PlatformList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformList.
func (*PlatformList) DeepCopyInto ¶
func (in *PlatformList) DeepCopyInto(out *PlatformList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PlatformList) DeepCopyObject ¶
func (in *PlatformList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PlatformSpec ¶
PlatformSpec is a description of a platform.
func (*PlatformSpec) DeepCopy ¶
func (in *PlatformSpec) DeepCopy() *PlatformSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformSpec.
func (*PlatformSpec) DeepCopyInto ¶
func (in *PlatformSpec) DeepCopyInto(out *PlatformSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Portal ¶
type Portal struct { metav1.TypeMeta // +optional metav1.ObjectMeta // Administrator indicates whether the user is a platform administrator Administrator bool // Projects represents the list of projects to which the user belongs, where the key represents // project name and the value represents the project display name. Projects map[string]string // Extension is extension info. for projects. Extension ProjectExtension }
Portal is a user in TKE.
func (*Portal) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Portal.
func (*Portal) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Portal) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PortalProject ¶ added in v1.3.1
type PortalProject struct { // Phases of projects. Phase string `json:"phase" protobuf:"bytes,1,opt,name=phase"` // Parents of projects. Parent string `json:"parent" protobuf:"bytes,2,opt,name=parent"` }
PortalProject is a project extension info for portal.
func (*PortalProject) DeepCopy ¶ added in v1.3.1
func (in *PortalProject) DeepCopy() *PortalProject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortalProject.
func (*PortalProject) DeepCopyInto ¶ added in v1.3.1
func (in *PortalProject) DeepCopyInto(out *PortalProject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Project ¶
type Project struct { metav1.TypeMeta // +optional metav1.ObjectMeta // Spec defines the desired identities of clusters in this set. // +optional Spec ProjectSpec // +optional Status ProjectStatus }
Project is a project in TKE.
func (*Project) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Project.
func (*Project) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Project) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProjectExtension ¶ added in v1.3.1
type ProjectExtension map[string]PortalProject
ProjectExtension is a map from project name to PortalProject.
func (ProjectExtension) DeepCopy ¶ added in v1.3.1
func (in ProjectExtension) DeepCopy() ProjectExtension
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectExtension.
func (ProjectExtension) DeepCopyInto ¶ added in v1.3.1
func (in ProjectExtension) DeepCopyInto(out *ProjectExtension)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectList ¶
type ProjectList struct { metav1.TypeMeta // +optional metav1.ListMeta // List of projects Items []Project }
ProjectList is the whole list of all projects which owned by a tenant.
func (*ProjectList) DeepCopy ¶
func (in *ProjectList) DeepCopy() *ProjectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectList.
func (*ProjectList) DeepCopyInto ¶
func (in *ProjectList) DeepCopyInto(out *ProjectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectList) DeepCopyObject ¶
func (in *ProjectList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProjectPhase ¶
type ProjectPhase string
ProjectPhase defines the phase of project constructor.
const ( // ProjectActive indicates the project is active. ProjectActive ProjectPhase = "Active" // ProjectPending indicates that the project has been declared. ProjectPending ProjectPhase = "Pending" // ProjectTerminating means the project is undergoing graceful termination. ProjectTerminating ProjectPhase = "Terminating" // ProjectFailed indicates that the project has been failed. ProjectFailed ProjectPhase = "Failed" )
type ProjectSpec ¶
type ProjectSpec struct { // Finalizers is an opaque list of values that must be empty to permanently remove object from storage. // +optional Finalizers []FinalizerName TenantID string // +optional DisplayName string // Users represents the user list of project. Members []string // +optional ParentProjectName string // Clusters represents clusters that can be used and the resource limits of each cluster. // +optional Clusters ClusterHard }
ProjectSpec is a description of a project.
func (*ProjectSpec) DeepCopy ¶
func (in *ProjectSpec) DeepCopy() *ProjectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSpec.
func (*ProjectSpec) DeepCopyInto ¶
func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectStatus ¶
type ProjectStatus struct { // +optional Locked *bool // +optional Phase ProjectPhase // Clusters represents clusters that have been used and the resource usage of each cluster. // +optional Clusters ClusterUsed // +optional CalculatedChildProjects []string // +optional CalculatedNamespaces []string // +optional CachedSpecClusters ClusterHard // +optional CachedParent *string // 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 }
ProjectStatus represents information about the status of a project.
func (*ProjectStatus) DeepCopy ¶
func (in *ProjectStatus) DeepCopy() *ProjectStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectStatus.
func (*ProjectStatus) DeepCopyInto ¶
func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceList ¶
ResourceList is a set of (resource name, quantity) pairs.
func (ResourceList) DeepCopy ¶
func (in ResourceList) DeepCopy() ResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceList.
func (ResourceList) DeepCopyInto ¶
func (in ResourceList) DeepCopyInto(out *ResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UsedQuantity ¶
type UsedQuantity struct {
Used ResourceList
}
UsedQuantity is a straightforward wrapper of ResourceList.
func (*UsedQuantity) DeepCopy ¶
func (in *UsedQuantity) DeepCopy() *UsedQuantity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UsedQuantity.
func (*UsedQuantity) DeepCopyInto ¶
func (in *UsedQuantity) DeepCopyInto(out *UsedQuantity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.