powervs

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, options Options) (*Client, error)

func (*Client) GetAllDHCPServers

func (s *Client) GetAllDHCPServers() (models.DHCPServers, error)

GetAllDHCPServers returns all the DHCP servers in the Power VS service instance.

func (*Client) GetAllInstance

func (s *Client) GetAllInstance() (*models.PVMInstances, error)

GetAllInstance returns all the virtual machine in the Power VS service instance.

func (*Client) GetDHCPServer

func (s *Client) GetDHCPServer(id string) (*models.DHCPServerDetail, error)

GetDHCPServer returns the details for DHCP server associated with id.

func (*Client) GetInstance added in v0.1.2

func (s *Client) GetInstance(id string) (*models.PVMInstance, error)

type Options

type Options struct {
	CloudInstanceID string
	Zone            string
	Debug           bool
}

type PowerVS

type PowerVS interface {
	GetAllInstance() (*models.PVMInstances, error)
	GetAllDHCPServers() (models.DHCPServers, error)
	GetDHCPServer(id string) (*models.DHCPServerDetail, error)
}

Jump to

Keyboard shortcuts

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