digitalocean

package
v0.0.0-...-599403d Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UID           = "digitalocean"
	DEVICE_PREFIX = "/dev/disk/by-id/scsi-0DO_Volume_"
)

Variables

This section is empty.

Functions

func New

func New(ctx context.Context) Interface

Types

type DigitalOceanOptions

type DigitalOceanOptions struct {
	DefaultOptions
}

type TokenSource

type TokenSource struct {
	AccessToken string `json:"token"`
}

func (*TokenSource) Token

func (t *TokenSource) Token() (*oauth2.Token, error)

type VolumeManager

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

func (*VolumeManager) Attach

func (v *VolumeManager) Attach(options interface{}, nodeName string) (string, error)

func (*VolumeManager) Detach

func (v *VolumeManager) Detach(device, nodeName string) error

func (*VolumeManager) Init

func (v *VolumeManager) Init() error

func (*VolumeManager) Initialize

func (v *VolumeManager) Initialize() error

func (*VolumeManager) Mount

func (v *VolumeManager) Mount(mountDir string, options interface{}) error

func (*VolumeManager) MountDevice

func (v *VolumeManager) MountDevice(mountDir string, device string, options interface{}) error

func (*VolumeManager) NewOptions

func (v *VolumeManager) NewOptions() interface{}

func (*VolumeManager) Unmount

func (v *VolumeManager) Unmount(mountDir string) error

Jump to

Keyboard shortcuts

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