Documentation ¶
Index ¶
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" CloudProviderDigitalocean CloudProvider = "digitalocean" CloudProviderOpenstack CloudProvider = "openstack" CloudProviderHetzner CloudProvider = "hetzner" )
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) 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)
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) 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" )
Click to show internal directories.
Click to hide internal directories.