Documentation ¶
Index ¶
- type PowerVS
- type Service
- func (s *Service) CreateInstance(body *models.PVMInstanceCreate) (*models.PVMInstanceList, error)
- func (s *Service) DeleteInstance(id string) error
- func (s *Service) GetAllImage() (*models.Images, error)
- func (s *Service) GetAllInstance() (*models.PVMInstances, error)
- func (s *Service) GetAllNetwork() (*models.Networks, error)
- func (s *Service) GetInstance(id string) (*models.PVMInstance, error)
- type ServiceOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { InstanceClient *instance.IBMPIInstanceClient NetworkClient *instance.IBMPINetworkClient ImageClient *instance.IBMPIImageClient // contains filtered or unexported fields }
Service holds the PowerVS Service specific information
func NewService ¶
func NewService(options ServiceOptions) (*Service, error)
NewService returns a new service for the Power VS api client.
func (*Service) CreateInstance ¶
func (s *Service) CreateInstance(body *models.PVMInstanceCreate) (*models.PVMInstanceList, error)
CreateInstance creates the virtual machine in the Power VS service instance.
func (*Service) DeleteInstance ¶
DeleteInstance deletes the virtual machine in the Power VS service instance.
func (*Service) GetAllImage ¶
GetAllImage returns all the images in the Power VS service instance.
func (*Service) GetAllInstance ¶
func (s *Service) GetAllInstance() (*models.PVMInstances, error)
GetAllInstance returns all the virtual machine in the Power VS service instance.
func (*Service) GetAllNetwork ¶
GetAllNetwork returns all the networks in the Power VS service instance.
func (*Service) GetInstance ¶
func (s *Service) GetInstance(id string) (*models.PVMInstance, error)
GetInstance returns the virtual machine in the Power VS service instance.
type ServiceOptions ¶
type ServiceOptions struct { *ibmpisession.IBMPIOptions CloudInstanceID string }
Click to show internal directories.
Click to hide internal directories.