v1alpha1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: Apache-2.0, BSD-3-Clause, MIT Imports: 6 Imported by: 14

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=kubelink.mandelsoft.org

Index

Constants

View Source
const (
	Version   = "v1alpha1"
	GroupName = kubelink.GroupName
)
View Source
const STATE_ERROR = "Error"
View Source
const STATE_INVALID = "Invalid"
View Source
const STATE_UP = "Up"

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var KUBELINK = resources.NewGroupKind(GroupName, "KubeLink")
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}

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 RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resources and returns a Group qualified GroupResource

Types

type KubeLink struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              KubeLinkSpec `json:"spec"`
	// +optional
	Status KubeLinkStatus `json:"status,omitempty"`
}

func (*KubeLink) DeepCopy

func (in *KubeLink) DeepCopy() *KubeLink

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

func (*KubeLink) DeepCopyInto

func (in *KubeLink) DeepCopyInto(out *KubeLink)

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

func (*KubeLink) DeepCopyObject

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

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

type KubeLinkDNS

type KubeLinkDNS struct {
	// +optional
	OmitDNSPropagation *bool `json:"omitDNSPropagation,omitempty"`
	// +optional
	DNSIP string `json:"dnsIP,omitempty"`
	// +optional
	BaseDomain string `json:"baseDomain,omitempty"`
}

func (*KubeLinkDNS) DeepCopy

func (in *KubeLinkDNS) DeepCopy() *KubeLinkDNS

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

func (*KubeLinkDNS) DeepCopyInto

func (in *KubeLinkDNS) DeepCopyInto(out *KubeLinkDNS)

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

type KubeLinkList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KubeLink `json:"items"`
}

func (*KubeLinkList) DeepCopy

func (in *KubeLinkList) DeepCopy() *KubeLinkList

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

func (*KubeLinkList) DeepCopyInto

func (in *KubeLinkList) DeepCopyInto(out *KubeLinkList)

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

func (*KubeLinkList) DeepCopyObject

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

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

type KubeLinkSpec

type KubeLinkSpec struct {
	// +optional
	CIDR string `json:"cidr"`
	// +optional
	Ingress []string `json:"ingress,omitempty"`
	// +optional
	Egress         []string `json:"egress,omitempty"`
	ClusterAddress string   `json:"clusterAddress"`
	Endpoint       string   `json:"endpoint"`

	// +optional
	APIAccess *core.SecretReference `json:"apiAccess,omitempty"`

	// +optional
	DNS *KubeLinkDNS `json:"dns,omitempty"`
}

func (*KubeLinkSpec) DeepCopy

func (in *KubeLinkSpec) DeepCopy() *KubeLinkSpec

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

func (*KubeLinkSpec) DeepCopyInto

func (in *KubeLinkSpec) DeepCopyInto(out *KubeLinkSpec)

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

type KubeLinkStatus

type KubeLinkStatus struct {
	// +optional
	State string `json:"state,omitempty"`
	// +optional
	Message string `json:"message,omitempty"`
	// +optional
	Gateway string `json:"gateway,omitempty"`
}

func (*KubeLinkStatus) DeepCopy

func (in *KubeLinkStatus) DeepCopy() *KubeLinkStatus

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

func (*KubeLinkStatus) DeepCopyInto

func (in *KubeLinkStatus) DeepCopyInto(out *KubeLinkStatus)

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