v1alpha1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=client.miscord.win

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "client.miscord.win", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type CNIConfig

type CNIConfig struct {
	metav1.TypeMeta                                   `json:",inline"`
	configv1alpha1.ControllerManagerConfigurationSpec `json:",inline"`
	ClusterName                                       string       `json:"clusterName"`
	NodeName                                          string       `json:"nodeName"`
	ControlPlane                                      ControlPlane `json:"controlPlane"`
	NetworkNamespace                                  string       `json:"networkNamespace"`
	Wireguard                                         Wireguard    `json:"wireguard"`
	Cleanup                                           bool         `json:"cleanup"`
	StaticAdvertisedRoutes                            []string     `json:"staticAdvertisedRoutes"`
	CNID                                              CNIDConfig   `json:"cnid"`
}

CNIConfig is the Schema for the cniconfigs API

func (*CNIConfig) DeepCopy

func (in *CNIConfig) DeepCopy() *CNIConfig

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

func (*CNIConfig) DeepCopyInto

func (in *CNIConfig) DeepCopyInto(out *CNIConfig)

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

func (*CNIConfig) DeepCopyObject

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

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

func (*CNIConfig) Load

func (cc *CNIConfig) Load(configPath string) error

type CNIDConfig

type CNIDConfig struct {
	AddressClaimTemplates []string   `json:"addressClaimTemplates"`
	Extra                 bool       `json:"extra"`
	SocketPath            string     `json:"socketPath"`
	KubeConfig            KubeConfig `json:"kubeconfig"`
}

func (*CNIDConfig) DeepCopy

func (in *CNIDConfig) DeepCopy() *CNIDConfig

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

func (*CNIDConfig) DeepCopyInto

func (in *CNIDConfig) DeepCopyInto(out *CNIDConfig)

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

func (*CNIDConfig) Load

func (c *CNIDConfig) Load(configPath string)

type ControlPlane

type ControlPlane struct {
	APIEndpoint string     `json:"apiEndpoint"`
	RootCACert  string     `json:"rootCACert"`
	Token       string     `json:"token"`
	Namespace   string     `json:"namespace"`
	KubeConfig  KubeConfig `json:"kubeconfig"`

	AddressClaimTemplates []string `json:"addressClaimTemplates"`
}

func (*ControlPlane) DeepCopy

func (in *ControlPlane) DeepCopy() *ControlPlane

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

func (*ControlPlane) DeepCopyInto

func (in *ControlPlane) DeepCopyInto(out *ControlPlane)

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

func (*ControlPlane) Load

func (cp *ControlPlane) Load(configPath string)

type KubeConfig

type KubeConfig struct {
	File    string                 `json:"file"`
	Inline  *clientcmdapiv1.Config `json:"inline"`
	Context string                 `json:"context"`
}

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) Load

func (kc *KubeConfig) Load(configPath string)

type Wireguard

type Wireguard struct {
	PrivateKey   string `json:"privateKey"`
	ListenPort   int    `json:"listenPort"`
	STUNEndpoint string `json:"stunEndpoint"`
	Name         string `json:"name"`
	VRF          string `json:"vrf"`
	Table        int    `json:"table"`
}

func (*Wireguard) DeepCopy

func (in *Wireguard) DeepCopy() *Wireguard

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

func (*Wireguard) DeepCopyInto

func (in *Wireguard) DeepCopyInto(out *Wireguard)

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

func (*Wireguard) Load

func (wg *Wireguard) Load()

Jump to

Keyboard shortcuts

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