Documentation ¶
Overview ¶
RorConfig represents a ror configuration and clients for ror and Kubernetes.
Index ¶
- Constants
- Variables
- func InitRorClientConfig(conf ClientConfig)
- func MustInitializeKubernetesClient()
- type ClientConfig
- type RorClientConfig
- func (a *RorClientConfig) CreateOwnerref() rortypes.RorResourceOwnerReference
- func (a *RorClientConfig) GetApiKey() string
- func (a *RorClientConfig) GetClusterId() string
- func (a *RorClientConfig) GetKubernetesClientSet() *kubernetesclient.K8sClientsets
- func (a *RorClientConfig) GetRole() string
- func (a *RorClientConfig) GetRorClient() *rorclient.RorClient
- func (a *RorClientConfig) InitRorClient() error
- func (a *RorClientConfig) SetApiKey(apiKey string)
- func (a *RorClientConfig) SetClusterId(clusterId string)
- func (a *RorClientConfig) SetRole(role string)
Constants ¶
View Source
const ERR_SECRET_NOT_FOUND = "___secret_not_found___"
Variables ¶
View Source
var Kubernetes *kubernetesclient.K8sClientsets
Functions ¶
func InitRorClientConfig ¶
func InitRorClientConfig(conf ClientConfig)
func MustInitializeKubernetesClient ¶
func MustInitializeKubernetesClient()
Types ¶
type ClientConfig ¶
type ClientConfig struct { Role string Namespace string ApiEndpoint string ApiKey string ApiKeySecret string RorVersion rorversion.RorVersion MustInitializeKubernetes bool }
type RorClientConfig ¶
type RorClientConfig struct {
// contains filtered or unexported fields
}
var RorConfig *RorClientConfig
func NewRorConfig ¶
func NewRorConfig(conf ClientConfig) *RorClientConfig
func (*RorClientConfig) CreateOwnerref ¶
func (a *RorClientConfig) CreateOwnerref() rortypes.RorResourceOwnerReference
func (*RorClientConfig) GetApiKey ¶
func (a *RorClientConfig) GetApiKey() string
func (*RorClientConfig) GetClusterId ¶
func (a *RorClientConfig) GetClusterId() string
func (*RorClientConfig) GetKubernetesClientSet ¶
func (a *RorClientConfig) GetKubernetesClientSet() *kubernetesclient.K8sClientsets
func (*RorClientConfig) GetRole ¶
func (a *RorClientConfig) GetRole() string
func (*RorClientConfig) GetRorClient ¶
func (a *RorClientConfig) GetRorClient() *rorclient.RorClient
func (*RorClientConfig) InitRorClient ¶
func (a *RorClientConfig) InitRorClient() error
func (*RorClientConfig) SetApiKey ¶
func (a *RorClientConfig) SetApiKey(apiKey string)
func (*RorClientConfig) SetClusterId ¶
func (a *RorClientConfig) SetClusterId(clusterId string)
func (*RorClientConfig) SetRole ¶
func (a *RorClientConfig) SetRole(role string)
Click to show internal directories.
Click to hide internal directories.