common

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Runtime_name = map[int32]string{
		0: "Kubernetes",
		1: "Talos",
		2: "Theila",
	}
	Runtime_value = map[string]int32{
		"Kubernetes": 0,
		"Talos":      1,
		"Theila":     2,
	}
)

Enum value maps for Runtime.

View Source
var File_common_theila_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Cluster

type Cluster struct {

	// Name of the cluster.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Namespace of the cluster.
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// UID of the cluster.
	Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

Cluster contains settings for fetching the config from cluster resource in Kubernetes.

func (*Cluster) Descriptor deprecated

func (*Cluster) Descriptor() ([]byte, []int)

Deprecated: Use Cluster.ProtoReflect.Descriptor instead.

func (*Cluster) GetName

func (x *Cluster) GetName() string

func (*Cluster) GetNamespace

func (x *Cluster) GetNamespace() string

func (*Cluster) GetUid

func (x *Cluster) GetUid() string

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) ProtoReflect

func (x *Cluster) ProtoReflect() protoreflect.Message

func (*Cluster) Reset

func (x *Cluster) Reset()

func (*Cluster) String

func (x *Cluster) String() string

type Context

type Context struct {

	// Name fetches the config from the top level Kubeconfig or Talosconfig.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Cluster fetches the context from the cluster resource in Kubernetes.
	Cluster *Cluster `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// Nodes to fetch the data from using Talos client.
	Nodes []string `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// contains filtered or unexported fields
}

Context represents Kubernetes or Talos config source.

func (*Context) Descriptor deprecated

func (*Context) Descriptor() ([]byte, []int)

Deprecated: Use Context.ProtoReflect.Descriptor instead.

func (*Context) GetCluster

func (x *Context) GetCluster() *Cluster

func (*Context) GetName

func (x *Context) GetName() string

func (*Context) GetNodes

func (x *Context) GetNodes() []string

func (*Context) ProtoMessage

func (*Context) ProtoMessage()

func (*Context) ProtoReflect

func (x *Context) ProtoReflect() protoreflect.Message

func (*Context) Reset

func (x *Context) Reset()

func (*Context) String

func (x *Context) String() string

type Runtime

type Runtime int32

Data source.

const (
	// Kubernetes control plane.
	Runtime_Kubernetes Runtime = 0
	// Talos apid.
	Runtime_Talos Runtime = 1
	// Theila internal runtime.
	Runtime_Theila Runtime = 2
)

func (Runtime) Descriptor

func (Runtime) Descriptor() protoreflect.EnumDescriptor

func (Runtime) Enum

func (x Runtime) Enum() *Runtime

func (Runtime) EnumDescriptor deprecated

func (Runtime) EnumDescriptor() ([]byte, []int)

Deprecated: Use Runtime.Descriptor instead.

func (Runtime) Number

func (x Runtime) Number() protoreflect.EnumNumber

func (Runtime) String

func (x Runtime) String() string

func (Runtime) Type

func (Runtime) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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