v1

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=rancher.cattle.io

+k8s:deepcopy-gen=package +groupName=rancher.cattle.io

+k8s:deepcopy-gen=package +groupName=rancher.cattle.io

Index

Constants

This section is empty.

Variables

View Source
var (
	ClusterResourceName             = "clusters"
	ProjectResourceName             = "projects"
	RoleTemplateResourceName        = "roletemplates"
	RoleTemplateBindingResourceName = "roletemplatebindings"
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: rancher.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Cluster

type Cluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ClusterSpec   `json:"spec"`
	Status            ClusterStatus `json:"status,omitempty"`
}

func NewCluster

func NewCluster(namespace, name string, obj Cluster) *Cluster

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Cluster) DeepCopyObject

func (in *Cluster) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterList

type ClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Cluster `json:"items"`
}

ClusterList is a list of Cluster resources

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList.

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterList) DeepCopyObject

func (in *ClusterList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterSpec

type ClusterSpec struct {
	ControlPlaneEndpoint          *Endpoint                               `json:"controlPlaneEndpoint,omitempty"`
	EKSConfig                     *eksv1.EKSClusterConfigSpec             `json:"eksConfig,omitempty"`
	ImportedConfig                *ImportedConfig                         `json:"importedConfig,omitempty"`
	ReferencedConfig              *ReferencedConfig                       `json:"referencedConfig,omitempty"`
	K3SConfig                     *v3.K3sConfig                           `json:"k3sConfig,omitempty"`
	LocalClusterAuthEndpoint      v3.LocalClusterAuthEndpoint             `json:"localClusterAuthEndpoint,omitempty"`
	RancherKubernetesEngineConfig *rketypes.RancherKubernetesEngineConfig `json:"rancherKubernetesEngineConfig,omitempty"`
	RKE2Config                    *v3.Rke2Config                          `json:"rke2Config,omitempty"`
}

func (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterStatus

type ClusterStatus struct {
	ClusterName        string                              `json:"clusterName,omitempty"`
	ClientSecretName   string                              `json:"clientSecretName,omitempty"`
	AgentDeployed      bool                                `json:"agentDeployed,omitempty"`
	ObservedGeneration int64                               `json:"observedGeneration"`
	Conditions         []genericcondition.GenericCondition `json:"conditions,omitempty"`
	Ready              bool                                `json:"ready,omitempty"`
}

func (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Endpoint

type Endpoint struct {
	Host string `json:"host,omitempty"`
	Port int    `json:"port,omitempty"`
}

func (*Endpoint) DeepCopy

func (in *Endpoint) DeepCopy() *Endpoint

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.

func (*Endpoint) DeepCopyInto

func (in *Endpoint) DeepCopyInto(out *Endpoint)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ImportedConfig

type ImportedConfig struct {
	KubeConfigSecret string `json:"kubeConfigSecret,omitempty"`
}

func (*ImportedConfig) DeepCopy

func (in *ImportedConfig) DeepCopy() *ImportedConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImportedConfig.

func (*ImportedConfig) DeepCopyInto

func (in *ImportedConfig) DeepCopyInto(out *ImportedConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Project

type Project struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ProjectSpec   `json:"spec"`
	Status ProjectStatus `json:"status,omitempty"`
}

func NewProject

func NewProject(namespace, name string, obj Project) *Project

func (*Project) DeepCopy

func (in *Project) DeepCopy() *Project

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Project.

func (*Project) DeepCopyInto

func (in *Project) DeepCopyInto(out *Project)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Project) DeepCopyObject

func (in *Project) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ProjectList

type ProjectList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Project `json:"items"`
}

ProjectList is a list of Project resources

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 ProjectSpec

type ProjectSpec struct {
	ClusterSelector *metav1.LabelSelector `json:"clusterSelector,omitempty"`
}

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 {
}

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 ReferencedConfig

type ReferencedConfig struct {
	Selector *metav1.LabelSelector `json:"selector,omitempty"`
}

func (*ReferencedConfig) DeepCopy

func (in *ReferencedConfig) DeepCopy() *ReferencedConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReferencedConfig.

func (*ReferencedConfig) DeepCopyInto

func (in *ReferencedConfig) DeepCopyInto(out *ReferencedConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RoleTemplate

type RoleTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Rules  []rbacv1.PolicyRule `json:"rules,omitempty"`
	Status RoleTemplateStatus  `json:"status,omitempty"`
}

func NewRoleTemplate

func NewRoleTemplate(namespace, name string, obj RoleTemplate) *RoleTemplate

func (*RoleTemplate) DeepCopy

func (in *RoleTemplate) DeepCopy() *RoleTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleTemplate.

func (*RoleTemplate) DeepCopyInto

func (in *RoleTemplate) DeepCopyInto(out *RoleTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RoleTemplate) DeepCopyObject

func (in *RoleTemplate) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RoleTemplateBinding

type RoleTemplateBinding struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	RoleTemplateName string                   `json:"roleTemplateName,omitempty"`
	BindingScope     RoleTemplateBindingScope `json:"bindingScope,omitempty"`
	// Subjects of only kind User/Group and apiGroup rancher.cattle.io are supported
	Subjects []rbacv1.Subject `json:"subjects,omitempty"`

	Status RoleTemplateBindingStatus `json:"status,omitempty"`
}

func NewRoleTemplateBinding

func NewRoleTemplateBinding(namespace, name string, obj RoleTemplateBinding) *RoleTemplateBinding

func (*RoleTemplateBinding) DeepCopy

func (in *RoleTemplateBinding) DeepCopy() *RoleTemplateBinding

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleTemplateBinding.

func (*RoleTemplateBinding) DeepCopyInto

func (in *RoleTemplateBinding) DeepCopyInto(out *RoleTemplateBinding)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RoleTemplateBinding) DeepCopyObject

func (in *RoleTemplateBinding) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RoleTemplateBindingList

type RoleTemplateBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []RoleTemplateBinding `json:"items"`
}

RoleTemplateBindingList is a list of RoleTemplateBinding resources

func (*RoleTemplateBindingList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleTemplateBindingList.

func (*RoleTemplateBindingList) DeepCopyInto

func (in *RoleTemplateBindingList) DeepCopyInto(out *RoleTemplateBindingList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RoleTemplateBindingList) DeepCopyObject

func (in *RoleTemplateBindingList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RoleTemplateBindingScope

type RoleTemplateBindingScope struct {
	Selector *metav1.LabelSelector `json:"selector,omitempty"`
	// Kind only Cluster and Project are supported
	Kind string `json:"kind,omitempty"`
	// APIGroup only rancher.cattle.io is supported
	APIGroup string `json:"apiGroup,omitempty"`
}

func (*RoleTemplateBindingScope) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleTemplateBindingScope.

func (*RoleTemplateBindingScope) DeepCopyInto

func (in *RoleTemplateBindingScope) DeepCopyInto(out *RoleTemplateBindingScope)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RoleTemplateBindingStatus

type RoleTemplateBindingStatus struct {
}

func (*RoleTemplateBindingStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleTemplateBindingStatus.

func (*RoleTemplateBindingStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RoleTemplateList

type RoleTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []RoleTemplate `json:"items"`
}

RoleTemplateList is a list of RoleTemplate resources

func (*RoleTemplateList) DeepCopy

func (in *RoleTemplateList) DeepCopy() *RoleTemplateList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleTemplateList.

func (*RoleTemplateList) DeepCopyInto

func (in *RoleTemplateList) DeepCopyInto(out *RoleTemplateList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RoleTemplateList) DeepCopyObject

func (in *RoleTemplateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RoleTemplateStatus

type RoleTemplateStatus struct {
}

func (*RoleTemplateStatus) DeepCopy

func (in *RoleTemplateStatus) DeepCopy() *RoleTemplateStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleTemplateStatus.

func (*RoleTemplateStatus) DeepCopyInto

func (in *RoleTemplateStatus) DeepCopyInto(out *RoleTemplateStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL