Documentation
¶
Index ¶
- type Cluster
- func (in *Cluster) DeepCopy() *Cluster
- func (in *Cluster) DeepCopyInto(out *Cluster)
- func (*Cluster) Descriptor() ([]byte, []int)
- func (m *Cluster) GetCloud() string
- func (m *Cluster) GetConfig() *Config
- func (m *Cluster) GetName() string
- func (*Cluster) ProtoMessage()
- func (m *Cluster) Reset()
- func (m *Cluster) String() string
- func (m *Cluster) XXX_DiscardUnknown()
- func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cluster) XXX_Merge(src proto.Message)
- func (m *Cluster) XXX_Size() int
- func (m *Cluster) XXX_Unmarshal(b []byte) error
- type Config
- func (in *Config) DeepCopy() *Config
- func (in *Config) DeepCopyInto(out *Config)
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetBearerToken() string
- func (m *Config) GetBearerTokenSecret() string
- func (m *Config) GetHost() string
- func (m *Config) GetPassword() string
- func (m *Config) GetTlsClientConfig() *TLSClientConfig
- func (m *Config) GetUsername() string
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type TLSClientConfig
- func (in *TLSClientConfig) DeepCopy() *TLSClientConfig
- func (in *TLSClientConfig) DeepCopyInto(out *TLSClientConfig)
- func (*TLSClientConfig) Descriptor() ([]byte, []int)
- func (m *TLSClientConfig) GetCaData() []byte
- func (m *TLSClientConfig) GetCertData() []byte
- func (m *TLSClientConfig) GetInSecure() bool
- func (m *TLSClientConfig) GetKeyData() []byte
- func (m *TLSClientConfig) GetNextProtos() []string
- func (m *TLSClientConfig) GetServerName() string
- func (*TLSClientConfig) ProtoMessage()
- func (m *TLSClientConfig) Reset()
- func (m *TLSClientConfig) String() string
- func (m *TLSClientConfig) XXX_DiscardUnknown()
- func (m *TLSClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TLSClientConfig) XXX_Merge(src proto.Message)
- func (m *TLSClientConfig) XXX_Size() int
- func (m *TLSClientConfig) XXX_Unmarshal(b []byte) error
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (*Cluster) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Cluster) Descriptor ¶
func (*Cluster) ProtoMessage ¶
func (*Cluster) ProtoMessage()
func (*Cluster) XXX_DiscardUnknown ¶
func (m *Cluster) XXX_DiscardUnknown()
func (*Cluster) XXX_Marshal ¶
func (*Cluster) XXX_Unmarshal ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (*Config) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Config) Descriptor ¶
func (*Config) GetBearerToken ¶
func (*Config) GetBearerTokenSecret ¶
func (*Config) GetPassword ¶
func (*Config) GetTlsClientConfig ¶
func (m *Config) GetTlsClientConfig() *TLSClientConfig
func (*Config) GetUsername ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
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