Documentation ¶
Index ¶
- Variables
- type CloudProvider
- type Config
- type ConfigVarBool
- type ConfigVarResolver
- func (configVarResolver *ConfigVarResolver) GetConfigVarBoolValue(configVar ConfigVarBool) (bool, error)
- func (configVarResolver *ConfigVarResolver) GetConfigVarStringValue(configVar ConfigVarString) (string, error)
- func (configVarResolver *ConfigVarResolver) GetConfigVarStringValueOrEnv(configVar ConfigVarString, envVarName string) (string, error)
- type ConfigVarString
- type GlobaObjectKeySelector
- type GlobalConfigMapKeySelector
- type GlobalSecretKeySelector
- type OperatingSystem
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrOSNotSupported = errors.New("os not supported")
)
Functions ¶
This section is empty.
Types ¶
type CloudProvider ¶
type CloudProvider string
const ( CloudProviderAWS CloudProvider = "aws" CloudProviderAzure CloudProvider = "azure" CloudProviderDigitalocean CloudProvider = "digitalocean" CloudProviderOpenstack CloudProvider = "openstack" CloudProviderHetzner CloudProvider = "hetzner" CloudProviderVsphere CloudProvider = "vsphere" CloudProviderFake CloudProvider = "fake" )
type Config ¶
type Config struct { SSHPublicKeys []string `json:"sshPublicKeys"` CloudProvider CloudProvider `json:"cloudProvider,omitempty"` CloudProviderSpec runtime.RawExtension `json:"cloudProviderSpec,omitempty"` OperatingSystem OperatingSystem `json:"operatingSystem"` OperatingSystemSpec runtime.RawExtension `json:"operatingSystemSpec"` }
type ConfigVarBool ¶ added in v0.2.0
type ConfigVarBool struct { Value bool `json:"value,omitempty"` SecretKeyRef GlobalSecretKeySelector `json:"secretKeyRef,omitempty"` ConfigMapKeyRef GlobalConfigMapKeySelector `json:"configMapKeyRef,omitempty"` }
func (ConfigVarBool) MarshalJSON ¶ added in v0.4.0
func (configVarBool ConfigVarBool) MarshalJSON() ([]byte, error)
This is done to not have the json object cluttered with empty strings This will eventually hopefully be resolved within golang itself https://github.com/golang/go/issues/11939
func (*ConfigVarBool) UnmarshalJSON ¶ added in v0.2.0
func (configVarBool *ConfigVarBool) UnmarshalJSON(b []byte) error
type ConfigVarResolver ¶ added in v0.2.0
type ConfigVarResolver struct {
// contains filtered or unexported fields
}
func NewConfigVarResolver ¶ added in v0.2.0
func NewConfigVarResolver(kubeClient kubernetes.Interface) *ConfigVarResolver
func (*ConfigVarResolver) GetConfigVarBoolValue ¶ added in v0.2.0
func (configVarResolver *ConfigVarResolver) GetConfigVarBoolValue(configVar ConfigVarBool) (bool, error)
func (*ConfigVarResolver) GetConfigVarStringValue ¶ added in v0.2.0
func (configVarResolver *ConfigVarResolver) GetConfigVarStringValue(configVar ConfigVarString) (string, error)
func (*ConfigVarResolver) GetConfigVarStringValueOrEnv ¶ added in v0.3.0
func (configVarResolver *ConfigVarResolver) GetConfigVarStringValueOrEnv(configVar ConfigVarString, envVarName string) (string, error)
GetConfigVarStringValueOrEvn tries to get the value from ConfigVarString, when it fails, it falls back to getting the value from an environment variable specified by envVarName parameter
type ConfigVarString ¶ added in v0.2.0
type ConfigVarString struct { Value string `json:"value,omitempty"` SecretKeyRef GlobalSecretKeySelector `json:"secretKeyRef,omitempty"` ConfigMapKeyRef GlobalConfigMapKeySelector `json:"configMapKeyRef,omitempty"` }
func (ConfigVarString) MarshalJSON ¶ added in v0.4.0
func (configVarString ConfigVarString) MarshalJSON() ([]byte, error)
This is done to not have the json object cluttered with empty strings This will eventually hopefully be resolved within golang itself https://github.com/golang/go/issues/11939
func (*ConfigVarString) UnmarshalJSON ¶ added in v0.2.0
func (configVarString *ConfigVarString) UnmarshalJSON(b []byte) error
type GlobaObjectKeySelector ¶ added in v0.2.0
type GlobaObjectKeySelector struct { v1.ObjectReference `json:",inline"` Key string `json:"key"` }
We can not use v1.SecretKeySelector because it is not cross namespace
type GlobalConfigMapKeySelector ¶ added in v0.2.0
type GlobalConfigMapKeySelector GlobaObjectKeySelector
type GlobalSecretKeySelector ¶ added in v0.2.0
type GlobalSecretKeySelector GlobaObjectKeySelector
type OperatingSystem ¶
type OperatingSystem string
const ( OperatingSystemCoreos OperatingSystem = "coreos" OperatingSystemUbuntu OperatingSystem = "ubuntu" OperatingSystemCentOS OperatingSystem = "centos" )
Click to show internal directories.
Click to hide internal directories.