client

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleClient

type GoogleClient struct {
	Config config.Config
	// contains filtered or unexported fields
}

func NewGoogleClient

func NewGoogleClient(
	config config.Config,
	logger boshlog.Logger,
) (GoogleClient, error)

func (GoogleClient) ComputeBetaService

func (c GoogleClient) ComputeBetaService() *computebeta.Service

func (GoogleClient) ComputeService

func (c GoogleClient) ComputeService() *compute.Service

func (GoogleClient) DefaultRootDiskSizeGb

func (c GoogleClient) DefaultRootDiskSizeGb() int

func (GoogleClient) DefaultRootDiskType

func (c GoogleClient) DefaultRootDiskType() string

func (GoogleClient) Project

func (c GoogleClient) Project() string

func (GoogleClient) StorageService

func (c GoogleClient) StorageService() *storage.Service

type RequestModifier

type RequestModifier func(req *http.Request)

A function that will modify the request before it is made

type RetryTransport

type RetryTransport struct {
	MaxRetries      int
	FirstRetrySleep time.Duration
	Base            http.RoundTripper
	RequestModifier RequestModifier
	// contains filtered or unexported fields
}

func (*RetryTransport) RoundTrip

func (rt *RetryTransport) RoundTrip(req *http.Request) (*http.Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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