kubernetes

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, dynamic dynamic.DynamicClient, clientSet kubernetes.Clientset) *Client

func (*Client) GetMachineConfig

func (client *Client) GetMachineConfig(name, ns string) (MachineConfig, error)

func (*Client) GetMachineConfigs

func (client *Client) GetMachineConfigs(ns string) (map[string]MachineConfig, error)

func (*Client) V1alpha1

func (client *Client) V1alpha1() *V1alpha1

type Machine

type Machine struct {
	// contains filtered or unexported fields
}

func (*Machine) Create

func (machine *Machine) Create(m v1alpha1.Machine) (v1alpha1.Machine, error)

func (*Machine) Get

func (machine *Machine) Get(name string) (v1alpha1.Machine, error)

func (*Machine) GetAll

func (machine *Machine) GetAll() ([]v1alpha1.Machine, error)

func (*Machine) Patch

func (machine *Machine) Patch(m v1alpha1.Machine) (v1alpha1.Machine, error)

func (*Machine) UpdateStatus

func (machine *Machine) UpdateStatus(m v1alpha1.Machine) (v1alpha1.Machine, error)

type MachineConfig

type MachineConfig struct {
	Name           string
	MachineConfig  string
	MachineSecrets MachineSecrets
	TalosConfig    string
	KubeConfig     string
}

type MachineSecrets

type MachineSecrets struct {
	CA  string `yaml:"ca"`
	Crt string `yaml:"crt"`
	Key string `yaml:"key"`
}

type MachineSelector

type MachineSelector struct {
	// contains filtered or unexported fields
}

func (*MachineSelector) Get

func (selector *MachineSelector) Get(name string) (v1alpha1.MachineSelector, error)

func (*MachineSelector) GetAll

func (selector *MachineSelector) GetAll() ([]v1alpha1.MachineSelector, error)

type V1alpha1

type V1alpha1 struct {
	// contains filtered or unexported fields
}

func (*V1alpha1) Machine

func (v1alpha1 *V1alpha1) Machine() *Machine

func (*V1alpha1) MachineSelector

func (v1alpha1 *V1alpha1) MachineSelector() *MachineSelector

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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