v1alpha1

package
v0.0.0-...-7b34d14 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

func (*Configuration) GetContext

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

func (*Configuration) GetContexts

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

func (*Configuration) GetControlPlane

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

func (*Configuration) GetControlPlanes

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

func (*Configuration) GetCurrent

func (cfg *Configuration) GetCurrent() *Context

func (*Configuration) GetCurrentContext

func (m *Configuration) GetCurrentContext() string

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) RemoveContext

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

func (*Configuration) RemoveControlPlane

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

func (*Configuration) Reset

func (m *Configuration) Reset()

func (*Configuration) String

func (m *Configuration) String() string

func (*Configuration) SwitchContext

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

func (*Configuration) Validate

func (m *Configuration) Validate() error

Validate checks the field values on Configuration with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Configuration) XXX_DiscardUnknown

func (m *Configuration) XXX_DiscardUnknown()

func (*Configuration) XXX_Marshal

func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Configuration) XXX_Merge

func (m *Configuration) XXX_Merge(src proto.Message)

func (*Configuration) XXX_Size

func (m *Configuration) XXX_Size() int

func (*Configuration) XXX_Unmarshal

func (m *Configuration) XXX_Unmarshal(b []byte) error

type ConfigurationValidationError

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

ConfigurationValidationError is the validation error returned by Configuration.Validate if the designated constraints aren't met.

func (ConfigurationValidationError) Cause

Cause function returns cause value.

func (ConfigurationValidationError) Error

Error satisfies the builtin error interface

func (ConfigurationValidationError) ErrorName

func (e ConfigurationValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigurationValidationError) Field

Field function returns field value.

func (ConfigurationValidationError) Key

Key function returns key value.

func (ConfigurationValidationError) Reason

Reason function returns reason value.

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"`
	Credentials          *Context_Credentials `protobuf:"bytes,4,opt,name=credentials,proto3" json:"credentials,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

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

func (*Context) Descriptor

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

func (*Context) GetControlPlane

func (m *Context) GetControlPlane() string

func (*Context) GetCredentials

func (m *Context) GetCredentials() *Context_Credentials

func (*Context) GetDefaults

func (m *Context) GetDefaults() *Context_Defaults

func (*Context) GetName

func (m *Context) GetName() string

func (*Context) ProtoMessage

func (*Context) ProtoMessage()

func (*Context) Reset

func (m *Context) Reset()

func (*Context) String

func (m *Context) String() string

func (*Context) Validate

func (m *Context) Validate() error

Validate checks the field values on Context with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Context) XXX_DiscardUnknown

func (m *Context) XXX_DiscardUnknown()

func (*Context) XXX_Marshal

func (m *Context) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Context) XXX_Merge

func (m *Context) XXX_Merge(src proto.Message)

func (*Context) XXX_Size

func (m *Context) XXX_Size() int

func (*Context) XXX_Unmarshal

func (m *Context) XXX_Unmarshal(b []byte) error

type ContextValidationError

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

ContextValidationError is the validation error returned by Context.Validate if the designated constraints aren't met.

func (ContextValidationError) Cause

func (e ContextValidationError) Cause() error

Cause function returns cause value.

func (ContextValidationError) Error

func (e ContextValidationError) Error() string

Error satisfies the builtin error interface

func (ContextValidationError) ErrorName

func (e ContextValidationError) ErrorName() string

ErrorName returns error name.

func (ContextValidationError) Field

func (e ContextValidationError) Field() string

Field function returns field value.

func (ContextValidationError) Key

func (e ContextValidationError) Key() bool

Key function returns key value.

func (ContextValidationError) Reason

func (e ContextValidationError) Reason() string

Reason function returns reason value.

type Context_AdminApiCredentials

type Context_AdminApiCredentials struct {
	// ClientCert defines certificate of authorized client of admin server
	ClientCert string `protobuf:"bytes,2,opt,name=client_cert,json=clientCert,proto3" json:"client_cert,omitempty"`
	// ClientKey defines key of authorized client of admin server
	ClientKey            string   `protobuf:"bytes,3,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

AdminApiCredentials defines credential configuration of admin client

func (*Context_AdminApiCredentials) Descriptor

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

func (*Context_AdminApiCredentials) GetClientCert

func (m *Context_AdminApiCredentials) GetClientCert() string

func (*Context_AdminApiCredentials) GetClientKey

func (m *Context_AdminApiCredentials) GetClientKey() string

func (*Context_AdminApiCredentials) HasClientCert

func (cfg *Context_AdminApiCredentials) HasClientCert() bool

func (*Context_AdminApiCredentials) ProtoMessage

func (*Context_AdminApiCredentials) ProtoMessage()

func (*Context_AdminApiCredentials) Reset

func (m *Context_AdminApiCredentials) Reset()

func (*Context_AdminApiCredentials) String

func (m *Context_AdminApiCredentials) String() string

func (*Context_AdminApiCredentials) Validate

func (m *Context_AdminApiCredentials) Validate() error

Validate checks the field values on Context_AdminApiCredentials with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Context_AdminApiCredentials) XXX_DiscardUnknown

func (m *Context_AdminApiCredentials) XXX_DiscardUnknown()

func (*Context_AdminApiCredentials) XXX_Marshal

func (m *Context_AdminApiCredentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Context_AdminApiCredentials) XXX_Merge

func (m *Context_AdminApiCredentials) XXX_Merge(src proto.Message)

func (*Context_AdminApiCredentials) XXX_Size

func (m *Context_AdminApiCredentials) XXX_Size() int

func (*Context_AdminApiCredentials) XXX_Unmarshal

func (m *Context_AdminApiCredentials) XXX_Unmarshal(b []byte) error

type Context_AdminApiCredentialsValidationError

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

Context_AdminApiCredentialsValidationError is the validation error returned by Context_AdminApiCredentials.Validate if the designated constraints aren't met.

func (Context_AdminApiCredentialsValidationError) Cause

Cause function returns cause value.

func (Context_AdminApiCredentialsValidationError) Error

Error satisfies the builtin error interface

func (Context_AdminApiCredentialsValidationError) ErrorName

ErrorName returns error name.

func (Context_AdminApiCredentialsValidationError) Field

Field function returns field value.

func (Context_AdminApiCredentialsValidationError) Key

Key function returns key value.

func (Context_AdminApiCredentialsValidationError) Reason

Reason function returns reason value.

type Context_Credentials

type Context_Credentials struct {
	// AdminApiCredentials defines credentials for admin client
	AdminApi             *Context_AdminApiCredentials `protobuf:"bytes,1,opt,name=adminApi,proto3" json:"adminApi,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

Credentials defines credentials for various APIs

func (*Context_Credentials) Descriptor

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

func (*Context_Credentials) GetAdminApi

func (*Context_Credentials) ProtoMessage

func (*Context_Credentials) ProtoMessage()

func (*Context_Credentials) Reset

func (m *Context_Credentials) Reset()

func (*Context_Credentials) String

func (m *Context_Credentials) String() string

func (*Context_Credentials) Validate

func (m *Context_Credentials) Validate() error

Validate checks the field values on Context_Credentials with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Context_Credentials) XXX_DiscardUnknown

func (m *Context_Credentials) XXX_DiscardUnknown()

func (*Context_Credentials) XXX_Marshal

func (m *Context_Credentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Context_Credentials) XXX_Merge

func (m *Context_Credentials) XXX_Merge(src proto.Message)

func (*Context_Credentials) XXX_Size

func (m *Context_Credentials) XXX_Size() int

func (*Context_Credentials) XXX_Unmarshal

func (m *Context_Credentials) XXX_Unmarshal(b []byte) error

type Context_CredentialsValidationError

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

Context_CredentialsValidationError is the validation error returned by Context_Credentials.Validate if the designated constraints aren't met.

func (Context_CredentialsValidationError) Cause

Cause function returns cause value.

func (Context_CredentialsValidationError) Error

Error satisfies the builtin error interface

func (Context_CredentialsValidationError) ErrorName

ErrorName returns error name.

func (Context_CredentialsValidationError) Field

Field function returns field value.

func (Context_CredentialsValidationError) Key

Key function returns key value.

func (Context_CredentialsValidationError) Reason

Reason function returns reason value.

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Defaults defines default settings for a context.

func (*Context_Defaults) Descriptor

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

func (*Context_Defaults) GetMesh

func (m *Context_Defaults) GetMesh() string

func (*Context_Defaults) ProtoMessage

func (*Context_Defaults) ProtoMessage()

func (*Context_Defaults) Reset

func (m *Context_Defaults) Reset()

func (*Context_Defaults) String

func (m *Context_Defaults) String() string

func (*Context_Defaults) Validate

func (m *Context_Defaults) Validate() error

Validate checks the field values on Context_Defaults with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Context_Defaults) XXX_DiscardUnknown

func (m *Context_Defaults) XXX_DiscardUnknown()

func (*Context_Defaults) XXX_Marshal

func (m *Context_Defaults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Context_Defaults) XXX_Merge

func (m *Context_Defaults) XXX_Merge(src proto.Message)

func (*Context_Defaults) XXX_Size

func (m *Context_Defaults) XXX_Size() int

func (*Context_Defaults) XXX_Unmarshal

func (m *Context_Defaults) XXX_Unmarshal(b []byte) error

type Context_DefaultsValidationError

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

Context_DefaultsValidationError is the validation error returned by Context_Defaults.Validate if the designated constraints aren't met.

func (Context_DefaultsValidationError) Cause

Cause function returns cause value.

func (Context_DefaultsValidationError) Error

Error satisfies the builtin error interface

func (Context_DefaultsValidationError) ErrorName

ErrorName returns error name.

func (Context_DefaultsValidationError) Field

Field function returns field value.

func (Context_DefaultsValidationError) Key

Key function returns key value.

func (Context_DefaultsValidationError) Reason

Reason function returns reason value.

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"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

ControlPlane defines a Control Plane.

func (*ControlPlane) Descriptor

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

func (*ControlPlane) GetCoordinates

func (m *ControlPlane) GetCoordinates() *ControlPlaneCoordinates

func (*ControlPlane) GetName

func (m *ControlPlane) GetName() string

func (*ControlPlane) ProtoMessage

func (*ControlPlane) ProtoMessage()

func (*ControlPlane) Reset

func (m *ControlPlane) Reset()

func (*ControlPlane) String

func (m *ControlPlane) String() string

func (*ControlPlane) Validate

func (m *ControlPlane) Validate() error

Validate checks the field values on ControlPlane with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ControlPlane) XXX_DiscardUnknown

func (m *ControlPlane) XXX_DiscardUnknown()

func (*ControlPlane) XXX_Marshal

func (m *ControlPlane) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ControlPlane) XXX_Merge

func (m *ControlPlane) XXX_Merge(src proto.Message)

func (*ControlPlane) XXX_Size

func (m *ControlPlane) XXX_Size() int

func (*ControlPlane) XXX_Unmarshal

func (m *ControlPlane) XXX_Unmarshal(b []byte) error

type ControlPlaneCoordinates

type ControlPlaneCoordinates struct {
	ApiServer            *ControlPlaneCoordinates_ApiServer `protobuf:"bytes,1,opt,name=api_server,json=apiServer,proto3" json:"api_server,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

ControlPlaneCoordinates defines coordinates of a Control Plane.

func (*ControlPlaneCoordinates) Descriptor

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

func (*ControlPlaneCoordinates) GetApiServer

func (*ControlPlaneCoordinates) ProtoMessage

func (*ControlPlaneCoordinates) ProtoMessage()

func (*ControlPlaneCoordinates) Reset

func (m *ControlPlaneCoordinates) Reset()

func (*ControlPlaneCoordinates) String

func (m *ControlPlaneCoordinates) String() string

func (*ControlPlaneCoordinates) Validate

func (m *ControlPlaneCoordinates) Validate() error

Validate checks the field values on ControlPlaneCoordinates with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ControlPlaneCoordinates) XXX_DiscardUnknown

func (m *ControlPlaneCoordinates) XXX_DiscardUnknown()

func (*ControlPlaneCoordinates) XXX_Marshal

func (m *ControlPlaneCoordinates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ControlPlaneCoordinates) XXX_Merge

func (m *ControlPlaneCoordinates) XXX_Merge(src proto.Message)

func (*ControlPlaneCoordinates) XXX_Size

func (m *ControlPlaneCoordinates) XXX_Size() int

func (*ControlPlaneCoordinates) XXX_Unmarshal

func (m *ControlPlaneCoordinates) XXX_Unmarshal(b []byte) error

type ControlPlaneCoordinatesValidationError

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

ControlPlaneCoordinatesValidationError is the validation error returned by ControlPlaneCoordinates.Validate if the designated constraints aren't met.

func (ControlPlaneCoordinatesValidationError) Cause

Cause function returns cause value.

func (ControlPlaneCoordinatesValidationError) Error

Error satisfies the builtin error interface

func (ControlPlaneCoordinatesValidationError) ErrorName

ErrorName returns error name.

func (ControlPlaneCoordinatesValidationError) Field

Field function returns field value.

func (ControlPlaneCoordinatesValidationError) Key

Key function returns key value.

func (ControlPlaneCoordinatesValidationError) Reason

Reason function returns reason value.

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ControlPlaneCoordinates_ApiServer) Descriptor

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

func (*ControlPlaneCoordinates_ApiServer) GetUrl

func (*ControlPlaneCoordinates_ApiServer) ProtoMessage

func (*ControlPlaneCoordinates_ApiServer) ProtoMessage()

func (*ControlPlaneCoordinates_ApiServer) Reset

func (*ControlPlaneCoordinates_ApiServer) String

func (*ControlPlaneCoordinates_ApiServer) Validate

Validate checks the field values on ControlPlaneCoordinates_ApiServer with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ControlPlaneCoordinates_ApiServer) XXX_DiscardUnknown

func (m *ControlPlaneCoordinates_ApiServer) XXX_DiscardUnknown()

func (*ControlPlaneCoordinates_ApiServer) XXX_Marshal

func (m *ControlPlaneCoordinates_ApiServer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ControlPlaneCoordinates_ApiServer) XXX_Merge

func (*ControlPlaneCoordinates_ApiServer) XXX_Size

func (m *ControlPlaneCoordinates_ApiServer) XXX_Size() int

func (*ControlPlaneCoordinates_ApiServer) XXX_Unmarshal

func (m *ControlPlaneCoordinates_ApiServer) XXX_Unmarshal(b []byte) error

type ControlPlaneCoordinates_ApiServerValidationError

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

ControlPlaneCoordinates_ApiServerValidationError is the validation error returned by ControlPlaneCoordinates_ApiServer.Validate if the designated constraints aren't met.

func (ControlPlaneCoordinates_ApiServerValidationError) Cause

Cause function returns cause value.

func (ControlPlaneCoordinates_ApiServerValidationError) Error

Error satisfies the builtin error interface

func (ControlPlaneCoordinates_ApiServerValidationError) ErrorName

ErrorName returns error name.

func (ControlPlaneCoordinates_ApiServerValidationError) Field

Field function returns field value.

func (ControlPlaneCoordinates_ApiServerValidationError) Key

Key function returns key value.

func (ControlPlaneCoordinates_ApiServerValidationError) Reason

Reason function returns reason value.

type ControlPlaneValidationError

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

ControlPlaneValidationError is the validation error returned by ControlPlane.Validate if the designated constraints aren't met.

func (ControlPlaneValidationError) Cause

Cause function returns cause value.

func (ControlPlaneValidationError) Error

Error satisfies the builtin error interface

func (ControlPlaneValidationError) ErrorName

func (e ControlPlaneValidationError) ErrorName() string

ErrorName returns error name.

func (ControlPlaneValidationError) Field

Field function returns field value.

func (ControlPlaneValidationError) Key

Key function returns key value.

func (ControlPlaneValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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