Documentation ¶
Index ¶
- Constants
- Variables
- func NewScheme() (*runtime.Scheme, error)
- type MachineRole
- type SSHClusterProviderConfig
- type SSHClusterProviderStatus
- type SSHConfig
- type SSHMachineProviderConfig
- type SSHMachineProviderStatus
- type SSHProviderConfigCodec
- func (codec *SSHProviderConfigCodec) DecodeFromProviderConfig(providerConfig clusterv1.ProviderConfig, out runtime.Object) error
- func (codec *SSHProviderConfigCodec) DecodeProviderStatus(providerStatus *runtime.RawExtension, out runtime.Object) error
- func (codec *SSHProviderConfigCodec) EncodeProviderStatus(in runtime.Object) (*runtime.RawExtension, error)
- func (codec *SSHProviderConfigCodec) EncodeToProviderConfig(in runtime.Object) (*clusterv1.ProviderConfig, error)
Constants ¶
const GroupName = "sshproviderconfig"
Variables ¶
var ( SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
Functions ¶
Types ¶
type MachineRole ¶
type MachineRole string
The MachineRole indicates the purpose of the Machine, and will determine what software and configuration will be used when provisioning and managing the Machine. A single Machine may have more than one role, and the list and definitions of supported roles is expected to evolve over time.
const ( MasterRole MachineRole = "Master" NodeRole MachineRole = "Node" EtcdRole MachineRole = "Etcd" )
type SSHClusterProviderConfig ¶
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SSHClusterProviderConfig) DeepCopy ¶
func (in *SSHClusterProviderConfig) DeepCopy() *SSHClusterProviderConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHClusterProviderConfig.
func (*SSHClusterProviderConfig) DeepCopyInto ¶
func (in *SSHClusterProviderConfig) DeepCopyInto(out *SSHClusterProviderConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SSHClusterProviderConfig) DeepCopyObject ¶
func (in *SSHClusterProviderConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SSHClusterProviderStatus ¶
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SSHClusterProviderStatus) DeepCopy ¶
func (in *SSHClusterProviderStatus) DeepCopy() *SSHClusterProviderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHClusterProviderStatus.
func (*SSHClusterProviderStatus) DeepCopyInto ¶
func (in *SSHClusterProviderStatus) DeepCopyInto(out *SSHClusterProviderStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SSHClusterProviderStatus) DeepCopyObject ¶
func (in *SSHClusterProviderStatus) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SSHConfig ¶
type SSHConfig struct { // The Username to use for the PrivateKey in secretName Username string `json:"username"` // The IP or hostname used to SSH to the machine Host string `json:"host"` // The Port used to SSH to the machine Port int `json:"port"` // The SSH public keys of the machine PublicKeys []string `json:"publicKeys,omitempty"` // The Secret with the username and private key used to SSH to the machine SecretName string `json:"secretName"` }
SSHConfig specifies everything needed to ssh to a host
func (*SSHConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHConfig.
func (*SSHConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SSHMachineProviderConfig ¶
type SSHMachineProviderConfig struct { metav1.TypeMeta `json:",inline"` // A list of roles for this Machine to use. Roles []MachineRole `json:"roles,omitempty"` // ProvisionedMachineName is the binding reference to the Provisioned // Machine backing this Machine. ProvisionedMachineName string `json:"provisionedMachineName,omitempty"` // The data needed to ssh to the host SSHConfig SSHConfig `json:"sshConfig"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SSHMachineProviderConfig) DeepCopy ¶
func (in *SSHMachineProviderConfig) DeepCopy() *SSHMachineProviderConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHMachineProviderConfig.
func (*SSHMachineProviderConfig) DeepCopyInto ¶
func (in *SSHMachineProviderConfig) DeepCopyInto(out *SSHMachineProviderConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SSHMachineProviderConfig) DeepCopyObject ¶
func (in *SSHMachineProviderConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SSHMachineProviderStatus ¶
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SSHMachineProviderStatus) DeepCopy ¶
func (in *SSHMachineProviderStatus) DeepCopy() *SSHMachineProviderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHMachineProviderStatus.
func (*SSHMachineProviderStatus) DeepCopyInto ¶
func (in *SSHMachineProviderStatus) DeepCopyInto(out *SSHMachineProviderStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SSHMachineProviderStatus) DeepCopyObject ¶
func (in *SSHMachineProviderStatus) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SSHProviderConfigCodec ¶
type SSHProviderConfigCodec struct {
// contains filtered or unexported fields
}
+k8s:deepcopy-gen=false
func NewCodec ¶
func NewCodec() (*SSHProviderConfigCodec, error)
func (*SSHProviderConfigCodec) DecodeFromProviderConfig ¶
func (codec *SSHProviderConfigCodec) DecodeFromProviderConfig(providerConfig clusterv1.ProviderConfig, out runtime.Object) error
func (*SSHProviderConfigCodec) DecodeProviderStatus ¶
func (codec *SSHProviderConfigCodec) DecodeProviderStatus(providerStatus *runtime.RawExtension, out runtime.Object) error
func (*SSHProviderConfigCodec) EncodeProviderStatus ¶
func (codec *SSHProviderConfigCodec) EncodeProviderStatus(in runtime.Object) (*runtime.RawExtension, error)
func (*SSHProviderConfigCodec) EncodeToProviderConfig ¶
func (codec *SSHProviderConfigCodec) EncodeToProviderConfig(in runtime.Object) (*clusterv1.ProviderConfig, error)