Documentation
¶
Index ¶
- type Service
- func (s *Service) CreateDroplet(scope *scope.MachineScope) (*godo.Droplet, error)
- func (s *Service) DeleteDroplet(id string) error
- func (s *Service) GetDroplet(id string) (*godo.Droplet, error)
- func (s *Service) GetDropletAddress(droplet *godo.Droplet) ([]corev1.NodeAddress, error)
- func (s *Service) GetImage(imageSpec intstr.IntOrString) (*godo.Image, error)
- func (s *Service) GetSSHKey(sshkey intstr.IntOrString) (*godo.Key, 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.
func NewService ¶
func NewService(ctx context.Context, scope *scope.ClusterScope) *Service
NewService returns a new service given the digitalocean api client.
func (*Service) CreateDroplet ¶
CreateDroplet create a droplet instance.
func (*Service) DeleteDroplet ¶
DeleteDroplet delete a droplet instance. Returns nil on success, error in all other cases.
func (*Service) GetDroplet ¶
GetDroplet get a droplet instance.
func (*Service) GetDropletAddress ¶
GetDropletAddress convert droplet IPs to corev1.NodeAddresses.
Click to show internal directories.
Click to hide internal directories.