Documentation ¶
Index ¶
- type Service
- func (s *Service) CreateOrGetMachine(machine *actuators.MachineScope, bootstrapToken, kubeConfig string) (*v1alpha1.VM, error)
- func (s *Service) DeleteManagedDisk(resourceGroup string, name string) (compute.DisksDeleteFuture, error)
- func (s *Service) DeleteVM(resourceGroup string, name string) (compute.VirtualMachinesDeleteFuture, error)
- func (s *Service) MachineExists(machine *actuators.MachineScope) (bool, error)
- func (s *Service) RunCommand(resoureGroup string, name string, cmd string) (compute.VirtualMachinesRunCommandFuture, error)
- func (s *Service) VMIfExists(name string) (*v1alpha1.VM, error)
- func (s *Service) WaitForDisksDeleteFuture(future compute.DisksDeleteFuture) error
- func (s *Service) WaitForVMDeletionFuture(future compute.VirtualMachinesDeleteFuture) error
- func (s *Service) WaitForVMRunCommandFuture(future compute.VirtualMachinesRunCommandFuture) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service holds a collection of interfaces. The interfaces are broken down like this to group functions together. One alternative is to have a large list of functions from the ec2 client.
func NewService ¶
NewService returns a new service given the api clients.
func (*Service) CreateOrGetMachine ¶
func (s *Service) CreateOrGetMachine(machine *actuators.MachineScope, bootstrapToken, kubeConfig string) (*v1alpha1.VM, error)
CreateOrGetMachine will either return an existing instance or create and return an instance.
func (*Service) DeleteManagedDisk ¶
func (s *Service) DeleteManagedDisk(resourceGroup string, name string) (compute.DisksDeleteFuture, error)
DeleteManagedDisk deletes a managed disk resource.
func (*Service) DeleteVM ¶
func (s *Service) DeleteVM(resourceGroup string, name string) (compute.VirtualMachinesDeleteFuture, error)
DeleteVM deletes the virtual machine.
func (*Service) MachineExists ¶
func (s *Service) MachineExists(machine *actuators.MachineScope) (bool, error)
MachineExists will return whether or not a machine exists.
func (*Service) RunCommand ¶
func (s *Service) RunCommand(resoureGroup string, name string, cmd string) (compute.VirtualMachinesRunCommandFuture, error)
RunCommand executes a command on the VM.
func (*Service) VMIfExists ¶
VMIfExists returns the existing instance or nothing if it doesn't exist.
func (*Service) WaitForDisksDeleteFuture ¶
func (s *Service) WaitForDisksDeleteFuture(future compute.DisksDeleteFuture) error
WaitForDisksDeleteFuture returns when the DeleteManagedDisk operation completes.
func (*Service) WaitForVMDeletionFuture ¶
func (s *Service) WaitForVMDeletionFuture(future compute.VirtualMachinesDeleteFuture) error
WaitForVMDeletionFuture returns when the DeleteVM operation completes.
func (*Service) WaitForVMRunCommandFuture ¶
func (s *Service) WaitForVMRunCommandFuture(future compute.VirtualMachinesRunCommandFuture) error
WaitForVMRunCommandFuture returns when the RunCommand operation completes.