common

package
v0.33.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Enum value maps for Runtime.

View Source
var File_common_omni_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

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"`
	// contains filtered or unexported fields
}

Context represents Kubernetes or Talos config source.

func (*Context) CloneMessageVT

func (m *Context) CloneMessageVT() proto.Message

func (*Context) CloneVT

func (m *Context) CloneVT() *Context

func (*Context) Descriptor deprecated

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

Deprecated: Use Context.ProtoReflect.Descriptor instead.

func (*Context) EqualMessageVT

func (this *Context) EqualMessageVT(thatMsg proto.Message) bool

func (*Context) EqualVT

func (this *Context) EqualVT(that *Context) bool

func (*Context) GetName

func (x *Context) GetName() string

func (*Context) MarshalToSizedBufferVT

func (m *Context) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Context) MarshalToVT

func (m *Context) MarshalToVT(dAtA []byte) (int, error)

func (*Context) MarshalVT

func (m *Context) MarshalVT() (dAtA []byte, err error)

func (*Context) ProtoMessage

func (*Context) ProtoMessage()

func (*Context) ProtoReflect

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

func (*Context) Reset

func (x *Context) Reset()

func (*Context) SizeVT

func (m *Context) SizeVT() (n int)

func (*Context) String

func (x *Context) String() string

func (*Context) UnmarshalVT

func (m *Context) UnmarshalVT(dAtA []byte) error

type Runtime

type Runtime int32

Data source.

const (
	// Kubernetes control plane.
	Runtime_Kubernetes Runtime = 0
	// Talos apid.
	Runtime_Talos Runtime = 1
	// Omni internal runtime.
	Runtime_Omni 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