Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Applier ¶
type Applier struct{}
func (*Applier) ReconcileDisks ¶
func (*Applier) ReconcileHosts ¶
type Driver ¶
type Driver interface { CreateInstances(hosts *v1.Hosts, infra *v1.Infra) error DeleteInstances(hosts *v1.Hosts) error StopInstances(hosts *v1.Hosts) error ModifyInstances(curHosts *v1.Hosts, desHosts *v1.Hosts) error DeleteInstanceByID(_ string, _ *v1.Infra) error GetInstancesByLabel(key string, value string, infra *v1.Infra) (*v1.Hosts, error) // get infra all current hosts GetInstances(infra *v1.Infra, status string) ([]v1.Hosts, error) // Volumes operation // Create and Attach CreateVolumes(infra *v1.Infra, host *v1.Hosts, disks []v1.Disk) error // Delete and Detach DeleteVolume(disks []string) error // Modify ModifyVolume(curDisk *v1.Disk, desDisk *v1.Disk) error CreateKeyPair(infra *v1.Infra) error DeleteKeyPair(infra *v1.Infra) error DeleteInfra(infra *v1.Infra) error }
func NewAWSDriver ¶
func NewAliyunDriver ¶
Click to show internal directories.
Click to hide internal directories.