v1alpha1

package
Version: v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 6 Imported by: 0

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 EP_INBOUND = "Inbound"
View Source
const STATE_DELETING = "Deleting" // (Mesh) Link is marked for deletion
View Source
const STATE_DOWN = "Down" // Link is down because of unknown connectivity problem
View Source
const STATE_ERROR = "Error" // Known error on connection
View Source
const STATE_IDLE = "Idle" // Link ready for connections, but not yet active
View Source
const STATE_INVALID = "Invalid" // Invalid because of erroneous link configuration
View Source
const STATE_STALE = "Stale" // Invalid because problem in mesh setup
View Source
const STATE_UP = "Up" // Link is up and connected

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"`
	// IP Address of DNS Service. For LocalLinks this is the mesh global dns service
	// for regular links it is the link (cluster) dns service
	// +optional
	DNSIP string `json:"dnsIP,omitempty"`
	// Base DNS Domain. For LocalLinks this is the mesh domain, for regular
	// links it is the links local (cluster) domain
	// +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"`

	// +optional
	Endpoint string `json:"endpoint,omitempty"`
	// +optional
	GatewayLink string `json:"gatewayLink,omitempty"`

	// public key for wireguard
	// +optional
	PublicKey string `json:"publicKey,omitempty"`
	// +optional
	PresharedKey string `json:"presharedKey,omitempty"`

	// +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"`
	// +optional
	PublicKey string `json:"publicKey,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