resource

package
v6.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0, UPL-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSSHDCheckerRetryable

func NewSSHDCheckerRetryable(user string, remoteIP string, logger boshlog.Logger) retrystrategy.Retryable

func NewSSHPortForwarderRetryable

func NewSSHPortForwarderRetryable(localPort int, remotePort int, remoteIP string,
	user string, duration time.Duration, logger boshlog.Logger) retrystrategy.Retryable

Types

type Instance

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

func NewInstance

func NewInstance(ocid string, loc Location) *Instance

func NewInstanceWithPrivateIPs

func NewInstanceWithPrivateIPs(ocid string, loc Location, privateIPs []string) *Instance

func (*Instance) EnsureReachable

func (in *Instance) EnsureReachable(c client.Connector, l boshlog.Logger) error

func (*Instance) ID

func (in *Instance) ID() string

func (*Instance) Location

func (in *Instance) Location() Location

func (*Instance) PrivateIP

func (in *Instance) PrivateIP(c client.Connector, l boshlog.Logger) (string, error)

func (*Instance) PrivateIPs

func (in *Instance) PrivateIPs(c client.Connector, l boshlog.Logger) ([]string, error)

func (*Instance) PublicIP

func (in *Instance) PublicIP(c client.Connector, l boshlog.Logger) (string, error)

func (*Instance) PublicIPs

func (in *Instance) PublicIPs(c client.Connector, l boshlog.Logger) ([]string, error)

func (*Instance) WaitUntilStarted

func (in *Instance) WaitUntilStarted(c client.Connector, l boshlog.Logger) (err error)

type Location

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

func NewLocation

func NewLocation(ad string, compartmentId string) Location

func (Location) AvailabilityDomain

func (loc Location) AvailabilityDomain() string

func (Location) CompartmentID

func (loc Location) CompartmentID() string

type Volume

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

func NewVolume

func NewVolume(name string, ocid string) *Volume

func (*Volume) AttachmentID

func (v *Volume) AttachmentID() string

func (*Volume) AttachmentIP

func (v *Volume) AttachmentIP() string

func (*Volume) AttachmentIQN

func (v *Volume) AttachmentIQN() string

func (*Volume) AttachmentPort

func (v *Volume) AttachmentPort() int64

func (*Volume) DevicePath

func (v *Volume) DevicePath() string

func (*Volume) EnsureAttached

func (v *Volume) EnsureAttached(c client.Connector, l boshlog.Logger,
	attachment *models.IScsiVolumeAttachment) error

func (*Volume) EnsureDetached

func (v *Volume) EnsureDetached(c client.Connector, l boshlog.Logger) error

func (*Volume) ID

func (v *Volume) ID() string

func (*Volume) IsAttached

func (v *Volume) IsAttached() bool

func (*Volume) SetAttachment

func (v *Volume) SetAttachment(a *models.IScsiVolumeAttachment)

func (*Volume) SetAttachmentID

func (v *Volume) SetAttachmentID(id string)

func (*Volume) SetAttachmentIP

func (v *Volume) SetAttachmentIP(ip string)

func (*Volume) SetAttachmentIQN

func (v *Volume) SetAttachmentIQN(iqn string)

func (*Volume) SetAttachmentPort

func (v *Volume) SetAttachmentPort(port int64)

func (*Volume) SetDevicePath

func (v *Volume) SetDevicePath(path string)

Jump to

Keyboard shortcuts

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