v1alpha1

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_config_app_kumactl_v1alpha1_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Configuration

type Configuration struct {

	// List of known Control Planes.
	ControlPlanes []*ControlPlane `protobuf:"bytes,1,rep,name=control_planes,json=controlPlanes,proto3" json:"control_planes,omitempty"`
	// List of configured `kumactl` contexts.
	Contexts []*Context `protobuf:"bytes,2,rep,name=contexts,proto3" json:"contexts,omitempty"`
	// Name of the context to use by default.
	CurrentContext string `protobuf:"bytes,3,opt,name=current_context,json=currentContext,proto3" json:"current_context,omitempty"`
	// contains filtered or unexported fields
}

Configuration defines configuration of `kumactl`.

func (*Configuration) AddContext

func (cfg *Configuration) AddContext(c *Context, force bool) bool

func (*Configuration) AddControlPlane

func (cfg *Configuration) AddControlPlane(cp *ControlPlane, force bool) bool

func (*Configuration) Descriptor deprecated

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

Deprecated: Use Configuration.ProtoReflect.Descriptor instead.

func (*Configuration) GetContext

func (cfg *Configuration) GetContext(name string) (int, *Context)

func (*Configuration) GetContexts

func (x *Configuration) GetContexts() []*Context

func (*Configuration) GetControlPlane

func (cfg *Configuration) GetControlPlane(name string) (int, *ControlPlane)

func (*Configuration) GetControlPlanes

func (x *Configuration) GetControlPlanes() []*ControlPlane

func (*Configuration) GetCurrent

func (cfg *Configuration) GetCurrent() *Context

func (*Configuration) GetCurrentContext

func (x *Configuration) GetCurrentContext() string

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) ProtoReflect

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

func (*Configuration) RemoveContext

func (cfg *Configuration) RemoveContext(name string) bool

func (*Configuration) RemoveControlPlane

func (cfg *Configuration) RemoveControlPlane(name string) bool

func (*Configuration) Reset

func (x *Configuration) Reset()

func (*Configuration) String

func (x *Configuration) String() string

func (*Configuration) SwitchContext

func (cfg *Configuration) SwitchContext(name string) bool

type Context

type Context struct {

	// Name defines a reference name for a given context.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// ControlPlane defines a reference to a known Control Plane.
	ControlPlane string `protobuf:"bytes,2,opt,name=control_plane,json=controlPlane,proto3" json:"control_plane,omitempty"`
	// Defaults defines default settings for a given context.
	Defaults *Context_Defaults `protobuf:"bytes,3,opt,name=defaults,proto3" json:"defaults,omitempty"`
	// contains filtered or unexported fields
}

Context defines a context in which individual `kumactl` commands run.

func (*Context) Descriptor deprecated

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

Deprecated: Use Context.ProtoReflect.Descriptor instead.

func (*Context) GetControlPlane

func (x *Context) GetControlPlane() string

func (*Context) GetDefaults

func (x *Context) GetDefaults() *Context_Defaults

func (*Context) GetName

func (x *Context) GetName() 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 Context_Defaults

type Context_Defaults struct {

	// Mesh defines a Mesh to use in requests if one is not provided explicitly.
	Mesh string `protobuf:"bytes,1,opt,name=mesh,proto3" json:"mesh,omitempty"`
	// contains filtered or unexported fields
}

Defaults defines default settings for a context.

func (*Context_Defaults) Descriptor deprecated

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

Deprecated: Use Context_Defaults.ProtoReflect.Descriptor instead.

func (*Context_Defaults) GetMesh

func (x *Context_Defaults) GetMesh() string

func (*Context_Defaults) ProtoMessage

func (*Context_Defaults) ProtoMessage()

func (*Context_Defaults) ProtoReflect

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

func (*Context_Defaults) Reset

func (x *Context_Defaults) Reset()

func (*Context_Defaults) String

func (x *Context_Defaults) String() string

type ControlPlane

type ControlPlane struct {

	// Name defines a reference name for a given Control Plane.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Coordinates defines coordinates of a given Control Plane.
	Coordinates *ControlPlaneCoordinates `protobuf:"bytes,2,opt,name=coordinates,proto3" json:"coordinates,omitempty"`
	// contains filtered or unexported fields
}

ControlPlane defines a Control Plane.

func (*ControlPlane) Descriptor deprecated

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

Deprecated: Use ControlPlane.ProtoReflect.Descriptor instead.

func (*ControlPlane) GetCoordinates

func (x *ControlPlane) GetCoordinates() *ControlPlaneCoordinates

func (*ControlPlane) GetName

func (x *ControlPlane) GetName() string

func (*ControlPlane) ProtoMessage

func (*ControlPlane) ProtoMessage()

func (*ControlPlane) ProtoReflect

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

func (*ControlPlane) Reset

func (x *ControlPlane) Reset()

func (*ControlPlane) String

func (x *ControlPlane) String() string

type ControlPlaneCoordinates

type ControlPlaneCoordinates struct {
	ApiServer *ControlPlaneCoordinates_ApiServer `protobuf:"bytes,1,opt,name=api_server,json=apiServer,proto3" json:"api_server,omitempty"`
	// contains filtered or unexported fields
}

ControlPlaneCoordinates defines coordinates of a Control Plane.

func (*ControlPlaneCoordinates) Descriptor deprecated

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

Deprecated: Use ControlPlaneCoordinates.ProtoReflect.Descriptor instead.

func (*ControlPlaneCoordinates) GetApiServer

func (*ControlPlaneCoordinates) ProtoMessage

func (*ControlPlaneCoordinates) ProtoMessage()

func (*ControlPlaneCoordinates) ProtoReflect

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

func (*ControlPlaneCoordinates) Reset

func (x *ControlPlaneCoordinates) Reset()

func (*ControlPlaneCoordinates) String

func (x *ControlPlaneCoordinates) String() string

type ControlPlaneCoordinates_ApiServer

type ControlPlaneCoordinates_ApiServer struct {

	// URL defines URL of the Control Plane API Server.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// CaCert defines the certificate authority which will be used to verify
	// connection to the control plane API server
	CaCertFile string `protobuf:"bytes,2,opt,name=ca_cert_file,json=caCertFile,proto3" json:"ca_cert_file,omitempty"`
	// ClientCert defines the certificate of the authorized client of the
	// control plane API server
	ClientCertFile string `protobuf:"bytes,3,opt,name=client_cert_file,json=clientCertFile,proto3" json:"client_cert_file,omitempty"`
	// ClientKey defines the key of the authorized client of the control plane
	// API server
	ClientKeyFile string `protobuf:"bytes,4,opt,name=client_key_file,json=clientKeyFile,proto3" json:"client_key_file,omitempty"`
	// Headers to be added for communication with Kuma control plane
	Headers []*ControlPlaneCoordinates_Headers `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty"`
	// Authentication type
	AuthType string `protobuf:"bytes,6,opt,name=auth_type,json=authType,proto3" json:"auth_type,omitempty"`
	// Authentication configuration for defined authentication type
	AuthConf map[string]string `` /* 173-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ControlPlaneCoordinates_ApiServer) Descriptor deprecated

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

Deprecated: Use ControlPlaneCoordinates_ApiServer.ProtoReflect.Descriptor instead.

func (*ControlPlaneCoordinates_ApiServer) GetAuthConf added in v1.8.1

func (x *ControlPlaneCoordinates_ApiServer) GetAuthConf() map[string]string

func (*ControlPlaneCoordinates_ApiServer) GetAuthType added in v1.8.1

func (x *ControlPlaneCoordinates_ApiServer) GetAuthType() string

func (*ControlPlaneCoordinates_ApiServer) GetCaCertFile

func (x *ControlPlaneCoordinates_ApiServer) GetCaCertFile() string

func (*ControlPlaneCoordinates_ApiServer) GetClientCertFile

func (x *ControlPlaneCoordinates_ApiServer) GetClientCertFile() string

func (*ControlPlaneCoordinates_ApiServer) GetClientKeyFile

func (x *ControlPlaneCoordinates_ApiServer) GetClientKeyFile() string

func (*ControlPlaneCoordinates_ApiServer) GetHeaders

func (*ControlPlaneCoordinates_ApiServer) GetUrl

func (*ControlPlaneCoordinates_ApiServer) HasCerts

func (cfg *ControlPlaneCoordinates_ApiServer) HasCerts() bool

func (*ControlPlaneCoordinates_ApiServer) ProtoMessage

func (*ControlPlaneCoordinates_ApiServer) ProtoMessage()

func (*ControlPlaneCoordinates_ApiServer) ProtoReflect

func (*ControlPlaneCoordinates_ApiServer) Reset

func (*ControlPlaneCoordinates_ApiServer) String

type ControlPlaneCoordinates_Headers

type ControlPlaneCoordinates_Headers struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ControlPlaneCoordinates_Headers) Descriptor deprecated

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

Deprecated: Use ControlPlaneCoordinates_Headers.ProtoReflect.Descriptor instead.

func (*ControlPlaneCoordinates_Headers) GetKey

func (*ControlPlaneCoordinates_Headers) GetValue

func (*ControlPlaneCoordinates_Headers) ProtoMessage

func (*ControlPlaneCoordinates_Headers) ProtoMessage()

func (*ControlPlaneCoordinates_Headers) ProtoReflect

func (*ControlPlaneCoordinates_Headers) Reset

func (*ControlPlaneCoordinates_Headers) String

Jump to

Keyboard shortcuts

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