cluster

package
v0.0.0-...-d0d6462 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	//Name contains cluster name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	//Type contains kubernetes cluster installation type. ex: AWS, GCP
	Cloud string `protobuf:"bytes,2,opt,name=cloud,proto3" json:"cloud,omitempty"`
	//Config contains info to connect to the target cluster
	//This is same as config struct in https://github.com/kubernetes/client-go/blob/master/rest/config.go
	// but have to define it again here with whatever we need
	Config               *Config  `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Cluster) Descriptor

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

func (*Cluster) GetCloud

func (m *Cluster) GetCloud() string

func (*Cluster) GetConfig

func (m *Cluster) GetConfig() *Config

func (*Cluster) GetName

func (m *Cluster) GetName() string

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) Reset

func (m *Cluster) Reset()

func (*Cluster) String

func (m *Cluster) String() string

func (*Cluster) XXX_DiscardUnknown

func (m *Cluster) XXX_DiscardUnknown()

func (*Cluster) XXX_Marshal

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

func (*Cluster) XXX_Merge

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

func (*Cluster) XXX_Size

func (m *Cluster) XXX_Size() int

func (*Cluster) XXX_Unmarshal

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

type Config

type Config struct {
	// Host must be a host string, a host:port pair, or a URL to the base of the apiserver.
	// If a URL is given then the (optional) Path of that URL represents a prefix that must
	// be appended to all request URIs used to access the apiserver. This allows a frontend
	// proxy to easily relocate all of the apiserver endpoints.
	Host     string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// password contains basic auth password
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// Server requires Bearer authentication. This client will not attempt to use
	// refresh tokens for an OAuth2 flow.
	// TODO: demonstrate an OAuth2 compatible client.
	BearerToken string `protobuf:"bytes,4,opt,name=bearerToken,proto3" json:"bearerToken,omitempty"`
	// Secret containing a BearerToken.
	// If set, The last successfully read value takes precedence over BearerToken.
	// +optional
	BearerTokenSecret string `protobuf:"bytes,5,opt,name=bearerTokenSecret,proto3" json:"bearerTokenSecret,omitempty"`
	// TLSClientConfig contains settings to enable transport layer security
	// +optional
	TlsClientConfig      *TLSClientConfig `protobuf:"bytes,6,opt,name=tlsClientConfig,proto3" json:"tlsClientConfig,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Config holds the common attributes that can be passed to a Kubernetes client on initialization. +optional

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Config) Descriptor

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

func (*Config) GetBearerToken

func (m *Config) GetBearerToken() string

func (*Config) GetBearerTokenSecret

func (m *Config) GetBearerTokenSecret() string

func (*Config) GetHost

func (m *Config) GetHost() string

func (*Config) GetPassword

func (m *Config) GetPassword() string

func (*Config) GetTlsClientConfig

func (m *Config) GetTlsClientConfig() *TLSClientConfig

func (*Config) GetUsername

func (m *Config) GetUsername() string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

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

func (*Config) XXX_Merge

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

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

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

type TLSClientConfig

type TLSClientConfig struct {
	// Server should be accessed without verifying the TLS certificate. For testing only.
	InSecure bool `protobuf:"varint,1,opt,name=inSecure,proto3" json:"inSecure,omitempty"`
	// ServerName is passed to the server for SNI and is used in the client to check server
	// ceritificates against. If ServerName is empty, the hostname used to contact the
	// server is used.
	ServerName string `protobuf:"bytes,2,opt,name=serverName,proto3" json:"serverName,omitempty"`
	// CertData holds PEM-encoded bytes (typically read from a client certificate file).
	// CertData takes precedence over CertFile
	CertData []byte `protobuf:"bytes,3,opt,name=certData,proto3" json:"certData,omitempty"`
	// KeyData holds PEM-encoded bytes (typically read from a client certificate key file).
	// KeyData takes precedence over KeyFile
	KeyData []byte `protobuf:"bytes,4,opt,name=keyData,proto3" json:"keyData,omitempty"`
	// CAData holds PEM-encoded bytes (typically read from a root certificates bundle).
	// CAData takes precedence over CAFile
	CaData []byte `protobuf:"bytes,5,opt,name=caData,proto3" json:"caData,omitempty"`
	// NextProtos is a list of supported application level protocols, in order of preference.
	// Used to populate tls.Config.NextProtos.
	// To indicate to the server http/1.1 is preferred over http/2, set to ["http/1.1", "h2"] (though the server is free to ignore that preference).
	// To use only http/1.1, set to ["http/1.1"].
	NextProtos           []string `protobuf:"bytes,6,rep,name=nextProtos,proto3" json:"nextProtos,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

TLSClientConfig contains settings to enable transport layer security

func (*TLSClientConfig) DeepCopy

func (in *TLSClientConfig) DeepCopy() *TLSClientConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSClientConfig.

func (*TLSClientConfig) DeepCopyInto

func (in *TLSClientConfig) DeepCopyInto(out *TLSClientConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TLSClientConfig) Descriptor

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

func (*TLSClientConfig) GetCaData

func (m *TLSClientConfig) GetCaData() []byte

func (*TLSClientConfig) GetCertData

func (m *TLSClientConfig) GetCertData() []byte

func (*TLSClientConfig) GetInSecure

func (m *TLSClientConfig) GetInSecure() bool

func (*TLSClientConfig) GetKeyData

func (m *TLSClientConfig) GetKeyData() []byte

func (*TLSClientConfig) GetNextProtos

func (m *TLSClientConfig) GetNextProtos() []string

func (*TLSClientConfig) GetServerName

func (m *TLSClientConfig) GetServerName() string

func (*TLSClientConfig) ProtoMessage

func (*TLSClientConfig) ProtoMessage()

func (*TLSClientConfig) Reset

func (m *TLSClientConfig) Reset()

func (*TLSClientConfig) String

func (m *TLSClientConfig) String() string

func (*TLSClientConfig) XXX_DiscardUnknown

func (m *TLSClientConfig) XXX_DiscardUnknown()

func (*TLSClientConfig) XXX_Marshal

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

func (*TLSClientConfig) XXX_Merge

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

func (*TLSClientConfig) XXX_Size

func (m *TLSClientConfig) XXX_Size() int

func (*TLSClientConfig) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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