powervs

package
v0.2.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PowerVS

type PowerVS interface {
	CreateInstance(body *models.PVMInstanceCreate) (*models.PVMInstanceList, error)
	DeleteInstance(id string) error
	GetAllInstance() (*models.PVMInstances, error)
	GetAllImage() (*models.Images, error)
	GetAllNetwork() (*models.Networks, error)
	GetInstance(id string) (*models.PVMInstance, error)
	GetImage(id string) (*models.Image, error)
	DeleteImage(id string) error
	CreateCosImage(body *models.CreateCosImageImportJob) (*models.JobReference, error)
	GetCosImages(id string) (*models.Job, error)
	GetJob(id string) (*models.Job, error)
	DeleteJob(id string) error
}

func NewService

func NewService(options ServiceOptions) (PowerVS, error)

NewService returns a new service for the Power VS api client.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service holds the PowerVS Service specific information

func (*Service) CreateCosImage

func (s *Service) CreateCosImage(body *models.CreateCosImageImportJob) (*models.JobReference, error)

CreateCosImage creates a import job to import the image in the Power VS service instance.

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) DeleteImage

func (s *Service) DeleteImage(id string) error

DeleteImage deletes the image in the Power VS service instance.

func (*Service) DeleteInstance

func (s *Service) DeleteInstance(id string) error

DeleteInstance deletes the virtual machine in the Power VS service instance.

func (*Service) DeleteJob

func (s *Service) DeleteJob(id string) error

DeleteJob deletes the image import job in the Power VS service instance.

func (*Service) GetAllImage

func (s *Service) GetAllImage() (*models.Images, error)

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

func (s *Service) GetAllNetwork() (*models.Networks, error)

GetAllNetwork returns all the networks in the Power VS service instance.

func (*Service) GetCosImages

func (s *Service) GetCosImages(id string) (*models.Job, error)

GetCosImages returns the last import job in the Power VS service instance.

func (*Service) GetImage

func (s *Service) GetImage(id string) (*models.Image, error)

GetImage returns the image 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.

func (*Service) GetJob

func (s *Service) GetJob(id string) (*models.Job, error)

GetJob returns the import job to in the Power VS service instance.

type ServiceOptions

type ServiceOptions struct {
	*ibmpisession.IBMPIOptions

	CloudInstanceID string
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL