oci

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func New

func New(opts *Options) (*API, error)

func (*API) CreateDefaultRouteTable

func (a *API) CreateDefaultRouteTable(vcnID, igwID string) (*baremetal.RouteTable, error)

func (*API) CreateDefaultSecurityList

func (a *API) CreateDefaultSecurityList(vcnID string) (*baremetal.SecurityList, error)

func (*API) CreateInstance

func (a *API) CreateInstance(name, userdata, sshKey string) (*Machine, error)

func (*API) CreateInternetGateway

func (a *API) CreateInternetGateway(vcnID string) (*baremetal.InternetGateway, error)

func (*API) CreateSubnet

func (a *API) CreateSubnet(subdomain, availabilityDomain, cidrBlock, vcnID, securityListID, routeTableID string) (*baremetal.Subnet, error)

func (*API) CreateVCN

func (a *API) CreateVCN(name, cidrBlock string) (*baremetal.VirtualNetwork, error)

func (*API) DeleteInternetGateway

func (a *API) DeleteInternetGateway(ID string) error

func (*API) DeleteRouteTable

func (a *API) DeleteRouteTable(ID string) error

func (*API) DeleteSecurityList

func (a *API) DeleteSecurityList(ID string) error

func (*API) DeleteSubnet

func (a *API) DeleteSubnet(ID string) error

func (*API) DeleteVCN

func (a *API) DeleteVCN(ID string) error

func (*API) GC

func (a *API) GC(gracePeriod time.Duration) error

func (*API) GetConsoleOutput

func (a *API) GetConsoleOutput(instanceID string) (string, error)

ConsoleHistory is deleted when an instance is terminated, as such we just return errors and let the history be deleted when the instance is terminated.

func (*API) GetVCN

func (a *API) GetVCN(name string) (*baremetal.VirtualNetwork, error)

func (*API) ListAvailabilityDomains

func (a *API) ListAvailabilityDomains() ([]baremetal.AvailabilityDomain, error)

func (*API) ListInternetGateways

func (a *API) ListInternetGateways(vcnID string) ([]baremetal.InternetGateway, error)

func (*API) ListRouteTables

func (a *API) ListRouteTables(vcnID string) ([]baremetal.RouteTable, error)

func (*API) ListSecurityLists

func (a *API) ListSecurityLists(vcnID string) ([]baremetal.SecurityList, error)

func (*API) ListSubnets

func (a *API) ListSubnets(vcnID string) ([]baremetal.Subnet, error)

func (*API) TerminateInstance

func (a *API) TerminateInstance(instanceID string) error

func (*API) UploadImage

func (a *API) UploadImage(bucketName, name, filePath string) (*baremetal.Object, error)

type Machine

type Machine struct {
	Name             string
	ID               string
	PublicIPAddress  string
	PrivateIPAddress string
}

type Options

type Options struct {
	*platform.Options

	ConfigPath string
	Profile    string

	TenancyID          string
	UserID             string
	Fingerprint        string
	KeyFile            string
	PrivateKeyPassword string
	Region             string

	CompartmentID string
	Image         string
	Shape         string
}

Jump to

Keyboard shortcuts

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