client

package
v25.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2016 License: Apache-2.0 Imports: 12 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 {
	// contains filtered or unexported fields
}

func NewGoogleClient

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

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
	Base            http.RoundTripper
	RequestModifier RequestModifier
}

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