image

package
v25.7.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2017 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 GoogleImageService

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

func NewGoogleImageService

func NewGoogleImageService(
	project string,
	computeService *compute.Service,
	storageService *storage.Service,
	operationService operation.Service,
	uuidGen boshuuid.Generator,
	logger boshlog.Logger,
) GoogleImageService

func (GoogleImageService) CreateFromTarball

func (i GoogleImageService) CreateFromTarball(imagePath string, description string) (string, error)

func (GoogleImageService) CreateFromURL

func (i GoogleImageService) CreateFromURL(sourceURL string, sourceSha1 string, description string) (string, error)

func (GoogleImageService) Delete

func (i GoogleImageService) Delete(id string) error

func (GoogleImageService) Find

func (i GoogleImageService) Find(id string) (Image, bool, error)

type Image

type Image struct {
	Name     string
	SelfLink string
	Status   string
}

type Service

type Service interface {
	CreateFromURL(sourceURL string, sourceSha1 string, description string) (string, error)
	CreateFromTarball(imagePath string, description string) (string, error)
	Delete(id string) error
	Find(id string) (Image, bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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