google

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2018 License: Apache-2.0 Imports: 10 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 {
	Name string
}

type APIService

type APIService interface {
	Enable([]API) ([]API, error)
}

func NewAPIService

func NewAPIService(logger *log.Logger, projectId string, client *http.Client) (APIService, error)

type CleanupService added in v1.1.0

type CleanupService interface {
	DeleteVM(...VMFilter) (int, error)
}

func NewCleanupService added in v1.1.0

func NewCleanupService(logger *log.Logger, projectId string, client *http.Client, dryRun bool) (CleanupService, error)

type Quota

type Quota struct {
	Name  string
	Limit float64
}

type QuotaService

type QuotaService interface {
	Project() (map[string]Quota, error)
	Region(string) (map[string]Quota, error)
}

func NewQuotaService

func NewQuotaService(logger *log.Logger, projectId string, client *http.Client) (QuotaService, error)

type VMFilter added in v1.1.0

type VMFilter func(*vmFilter)

func WithLabel added in v1.1.0

func WithLabel(key, value string) VMFilter

func WithNameRegex added in v1.1.0

func WithNameRegex(prefix string) VMFilter

func WithSubNetwork added in v1.1.0

func WithSubNetwork(subnet string) VMFilter

func WithTag added in v1.1.0

func WithTag(tag string) VMFilter

type ZoneResult

type ZoneResult struct {
	Region string
	Zone1  string
	Zone2  string
	Zone3  string
}

func ParseZone

func ParseZone(project, baseZone string, client *compute.Service) (res ZoneResult, err error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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