v1

package
v0.0.0-...-5fab299 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=k3s.ibtc.io

+k8s:deepcopy-gen=package +groupName=k3s.ibtc.io

+k8s:deepcopy-gen=package +groupName=k3s.ibtc.io

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	K3sResourceName = "k3ses"
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: k3s.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 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 GenericMap

type GenericMap struct {
	Data map[string]interface{} `json:"-"`
}

func (*GenericMap) DeepCopy

func (in *GenericMap) DeepCopy() *GenericMap

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

func (*GenericMap) DeepCopyInto

func (in *GenericMap) DeepCopyInto(out *GenericMap)

func (GenericMap) MarshalJSON

func (in GenericMap) MarshalJSON() ([]byte, error)

func (*GenericMap) UnmarshalJSON

func (in *GenericMap) UnmarshalJSON(data []byte) error

type K3s

type K3s struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              K3sSpec   `json:"spec"`
	Status            K3sStatus `json:"status,omitempty"`
}

func NewK3s

func NewK3s(namespace, name string, obj K3s) *K3s

func (*K3s) DeepCopy

func (in *K3s) DeepCopy() *K3s

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

func (*K3s) DeepCopyInto

func (in *K3s) DeepCopyInto(out *K3s)

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

func (*K3s) DeepCopyObject

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

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

type K3sList

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

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

K3sList is a list of K3s resources

func (*K3sList) DeepCopy

func (in *K3sList) DeepCopy() *K3sList

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

func (*K3sList) DeepCopyInto

func (in *K3sList) DeepCopyInto(out *K3sList)

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

func (*K3sList) DeepCopyObject

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

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

type K3sSpec

type K3sSpec struct {
	ControlPlaneEndpoint *Endpoint `json:"controlPlaneEndpoint,omitempty"`
	Channel              string    `json:"channel,omitempty"`
}

func (*K3sSpec) DeepCopy

func (in *K3sSpec) DeepCopy() *K3sSpec

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

func (*K3sSpec) DeepCopyInto

func (in *K3sSpec) DeepCopyInto(out *K3sSpec)

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

type K3sStatus

type K3sStatus struct {
	ObservedGeneration   int64                               `json:"observedGeneration"`
	Ready                bool                                `json:"ready,omitempty"`
	CredentialSecretName string                              `json:"credentialSecretName,omitempty"`
	Token                string                              `json:"token,omitempty"`
	Conditions           []genericcondition.GenericCondition `json:"conditions,omitempty"`
}

func (*K3sStatus) DeepCopy

func (in *K3sStatus) DeepCopy() *K3sStatus

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

func (*K3sStatus) DeepCopyInto

func (in *K3sStatus) DeepCopyInto(out *K3sStatus)

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