disk

package
v29.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disk

type Disk struct {
	Name     string
	SelfLink string
	Status   string
	Zone     string
	Users    []string
}

type GoogleDiskService

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

func NewGoogleDiskService

func NewGoogleDiskService(
	project string,
	computeService *compute.Service,
	operationService operation.Service,
	uuidGen boshuuid.Generator,
	logger boshlog.Logger,
) GoogleDiskService

func (GoogleDiskService) Create

func (d GoogleDiskService) Create(size int, diskType string, zone string) (string, error)

func (GoogleDiskService) Delete

func (d GoogleDiskService) Delete(id string) error

func (GoogleDiskService) Find

func (d GoogleDiskService) Find(id string, zone string) (Disk, bool, error)

type Service

type Service interface {
	Create(size int, diskType string, zone string) (string, error)
	Delete(id string) error
	Find(id string, zone string) (Disk, bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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