Documentation ¶
Overview ¶
Package application is the internal version of the API.
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type BindingPhase
- type ConfigMap
- type ConfigMapList
- type FinalizerName
- type MultiClusterRoleBinding
- type MultiClusterRoleBindingList
- type MultiClusterRoleBindingSpec
- type MultiClusterRoleBindingStatus
- type Policy
- type PolicyList
- type Role
- type RoleList
- type Scope
Constants ¶
const GroupName = "authz.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 Group qualified GroupResource
Types ¶
type BindingPhase ¶
type BindingPhase string
const ( BindingActive BindingPhase = "Active" BindingTerminating BindingPhase = "Terminating" )
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 ¶
type FinalizerName string
const ( PolicyFinalize FinalizerName = "policy" RoleFinalize FinalizerName = "role" MultiClusterRoleBindingFinalize FinalizerName = "rolebinding" )
type MultiClusterRoleBinding ¶
type MultiClusterRoleBinding struct { metav1.TypeMeta metav1.ObjectMeta Spec MultiClusterRoleBindingSpec Status MultiClusterRoleBindingStatus }
func (*MultiClusterRoleBinding) DeepCopy ¶
func (in *MultiClusterRoleBinding) DeepCopy() *MultiClusterRoleBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterRoleBinding.
func (*MultiClusterRoleBinding) DeepCopyInto ¶
func (in *MultiClusterRoleBinding) DeepCopyInto(out *MultiClusterRoleBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MultiClusterRoleBinding) DeepCopyObject ¶
func (in *MultiClusterRoleBinding) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MultiClusterRoleBindingList ¶
type MultiClusterRoleBindingList struct { metav1.TypeMeta metav1.ListMeta // List of rules. Items []MultiClusterRoleBinding }
func (*MultiClusterRoleBindingList) DeepCopy ¶
func (in *MultiClusterRoleBindingList) DeepCopy() *MultiClusterRoleBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterRoleBindingList.
func (*MultiClusterRoleBindingList) DeepCopyInto ¶
func (in *MultiClusterRoleBindingList) DeepCopyInto(out *MultiClusterRoleBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MultiClusterRoleBindingList) DeepCopyObject ¶
func (in *MultiClusterRoleBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MultiClusterRoleBindingSpec ¶
type MultiClusterRoleBindingSpec struct { // +optional TenantID string // +optional Username string // roleNamespace/roleName RoleName string Clusters []string }
func (*MultiClusterRoleBindingSpec) DeepCopy ¶
func (in *MultiClusterRoleBindingSpec) DeepCopy() *MultiClusterRoleBindingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterRoleBindingSpec.
func (*MultiClusterRoleBindingSpec) DeepCopyInto ¶
func (in *MultiClusterRoleBindingSpec) DeepCopyInto(out *MultiClusterRoleBindingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MultiClusterRoleBindingStatus ¶
type MultiClusterRoleBindingStatus struct { // +optional Phase BindingPhase }
func (*MultiClusterRoleBindingStatus) DeepCopy ¶
func (in *MultiClusterRoleBindingStatus) DeepCopy() *MultiClusterRoleBindingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterRoleBindingStatus.
func (*MultiClusterRoleBindingStatus) DeepCopyInto ¶
func (in *MultiClusterRoleBindingStatus) DeepCopyInto(out *MultiClusterRoleBindingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Policy ¶
type Policy struct { metav1.TypeMeta // +optional metav1.ObjectMeta DisplayName string // +optional TenantID string // Username is Creator // +optional Username string // +optional Description string Scope Scope Rules []rbacv1.PolicyRule }
func (*Policy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
func (*Policy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Policy) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PolicyList ¶
type PolicyList struct { metav1.TypeMeta // +optional metav1.ListMeta // List of policies Items []Policy }
PolicyList is the whole list of all policies.
func (*PolicyList) DeepCopy ¶
func (in *PolicyList) DeepCopy() *PolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyList.
func (*PolicyList) DeepCopyInto ¶
func (in *PolicyList) DeepCopyInto(out *PolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PolicyList) DeepCopyObject ¶
func (in *PolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Role ¶
type Role struct { metav1.TypeMeta metav1.ObjectMeta DisplayName string // +optional TenantID string // Username is Creator // +optional Username string // +optional Description string Scope Scope // policyNamespace/policyName Policies []string }
Role is a collection with multiple policies.
func (*Role) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Role.
func (*Role) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Role) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RoleList ¶
RoleList is the whole list of policy.
func (*RoleList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleList.
func (*RoleList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RoleList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.