Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=klum.cattle.io
+k8s:deepcopy-gen=package +groupName=klum.cattle.io
+k8s:deepcopy-gen=package +groupName=klum.cattle.io
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AuthInfo
- type Cluster
- type Context
- type Kubeconfig
- type KubeconfigList
- type KubeconfigSpec
- type NamedAuthInfo
- type NamedCluster
- type NamedContext
- type NamespaceRole
- type User
- type UserList
- type UserSpec
- type UserStatus
Constants ¶
This section is empty.
Variables ¶
var ( KubeconfigResourceName = "kubeconfigs" UserResourceName = "users" )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: klum.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
var (
UserReadyCondition = condition.Cond("Ready")
)
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type AuthInfo ¶
type AuthInfo struct { // Token is the bearer token for authentication to the kubernetes cluster. // +optional Token string `json:"token,omitempty"` }
AuthInfo contains information that describes identity information. This is use to tell the kubernetes cluster who you are.
func (*AuthInfo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthInfo.
func (*AuthInfo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Cluster ¶
type Cluster struct { // Server is the address of the kubernetes cluster (https://hostname:port). Server string `json:"server"` // CertificateAuthorityData contains PEM-encoded certificate authority certificates. Overrides CertificateAuthority // +optional CertificateAuthorityData string `json:"certificate-authority-data,omitempty"` }
Cluster contains information about how to communicate with a kubernetes cluster
func (*Cluster) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (*Cluster) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Context ¶
type Context struct { // Cluster is the name of the cluster for this context Cluster string `json:"cluster"` // AuthInfo is the name of the authInfo for this context AuthInfo string `json:"user"` }
Context is a tuple of references to a cluster (how do I communicate with a kubernetes cluster), a user (how do I identify myself), and a namespace (what subset of resources do I want to work with)
func (*Context) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Context.
func (*Context) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Kubeconfig ¶
type Kubeconfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KubeconfigSpec `json:"spec,omitempty"` }
func NewKubeconfig ¶
func NewKubeconfig(namespace, name string, obj Kubeconfig) *Kubeconfig
func (*Kubeconfig) DeepCopy ¶
func (in *Kubeconfig) DeepCopy() *Kubeconfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kubeconfig.
func (*Kubeconfig) DeepCopyInto ¶
func (in *Kubeconfig) DeepCopyInto(out *Kubeconfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Kubeconfig) DeepCopyObject ¶
func (in *Kubeconfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubeconfigList ¶
type KubeconfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Kubeconfig `json:"items"` }
KubeconfigList is a list of Kubeconfig resources
func (*KubeconfigList) DeepCopy ¶
func (in *KubeconfigList) DeepCopy() *KubeconfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeconfigList.
func (*KubeconfigList) DeepCopyInto ¶
func (in *KubeconfigList) DeepCopyInto(out *KubeconfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubeconfigList) DeepCopyObject ¶
func (in *KubeconfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubeconfigSpec ¶
type KubeconfigSpec struct { Clusters []NamedCluster `json:"clusters"` // AuthInfos is a map of referencable names to user configs AuthInfos []NamedAuthInfo `json:"users"` // Contexts is a map of referencable names to context configs Contexts []NamedContext `json:"contexts"` // CurrentContext is the name of the context that you would like to use by default CurrentContext string `json:"current-context"` }
func (*KubeconfigSpec) DeepCopy ¶
func (in *KubeconfigSpec) DeepCopy() *KubeconfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeconfigSpec.
func (*KubeconfigSpec) DeepCopyInto ¶
func (in *KubeconfigSpec) DeepCopyInto(out *KubeconfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamedAuthInfo ¶
type NamedAuthInfo struct { // Name is the nickname for this AuthInfo Name string `json:"name"` // AuthInfo holds the auth information AuthInfo AuthInfo `json:"user"` }
NamedAuthInfo relates nicknames to auth information
func (*NamedAuthInfo) DeepCopy ¶
func (in *NamedAuthInfo) DeepCopy() *NamedAuthInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedAuthInfo.
func (*NamedAuthInfo) DeepCopyInto ¶
func (in *NamedAuthInfo) DeepCopyInto(out *NamedAuthInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamedCluster ¶
type NamedCluster struct { // Name is the nickname for this Cluster Name string `json:"name"` // Cluster holds the cluster information Cluster Cluster `json:"cluster"` }
NamedCluster relates nicknames to cluster information
func (*NamedCluster) DeepCopy ¶
func (in *NamedCluster) DeepCopy() *NamedCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedCluster.
func (*NamedCluster) DeepCopyInto ¶
func (in *NamedCluster) DeepCopyInto(out *NamedCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamedContext ¶
type NamedContext struct { // Name is the nickname for this Context Name string `json:"name"` // Context holds the context information Context Context `json:"context"` }
NamedContext relates nicknames to context information
func (*NamedContext) DeepCopy ¶
func (in *NamedContext) DeepCopy() *NamedContext
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedContext.
func (*NamedContext) DeepCopyInto ¶
func (in *NamedContext) DeepCopyInto(out *NamedContext)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespaceRole ¶
type NamespaceRole struct { Namespace string `json:"namespace,omitempty"` ClusterRole string `json:"clusterRole,omitempty"` Role string `json:"role,omitempty"` }
func (*NamespaceRole) DeepCopy ¶
func (in *NamespaceRole) DeepCopy() *NamespaceRole
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceRole.
func (*NamespaceRole) DeepCopyInto ¶
func (in *NamespaceRole) DeepCopyInto(out *NamespaceRole)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type User ¶
type User struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec UserSpec `json:"spec,omitempty"` Status UserStatus `json:"status,omitempty"` }
func (*User) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new User.
func (*User) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*User) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UserList ¶
type UserList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []User `json:"items"` }
UserList is a list of User resources
func (*UserList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserList.
func (*UserList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UserList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UserSpec ¶
type UserSpec struct { Enabled *bool `json:"enabled,omitempty"` ClusterRoles []string `json:"clusterRoles,omitempty"` Roles []NamespaceRole `json:"roles,omitempty"` }
func (*UserSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpec.
func (*UserSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserStatus ¶
type UserStatus struct {
Conditions []genericcondition.GenericCondition `json:"conditions,omitempty"`
}
func (*UserStatus) DeepCopy ¶
func (in *UserStatus) DeepCopy() *UserStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserStatus.
func (*UserStatus) DeepCopyInto ¶
func (in *UserStatus) DeepCopyInto(out *UserStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.