cloudcontroller

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name string
	Guid string
}

type AppListerClient

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

func NewAppListerClient

func NewAppListerClient(c Curler) *AppListerClient

func (*AppListerClient) ListApps

func (c *AppListerClient) ListApps(spaceGuid string) ([]App, error)

type AuthCurler

type AuthCurler interface {
	Curl(url, method, body string) ([]byte, error)
}

type BindDrainClient

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

func NewBindDrainClient

func NewBindDrainClient(c Curler) *BindDrainClient

func (*BindDrainClient) BindDrain

func (c *BindDrainClient) BindDrain(appGuid, serviceInstanceGuid string) error

type CLICurlClient

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

func NewCLICurlClient

func NewCLICurlClient(cli plugin.CliConnection) *CLICurlClient

func (*CLICurlClient) Curl

func (c *CLICurlClient) Curl(URL, method, body string) ([]byte, error)

type Client

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

func NewClient

func NewClient(c Curler) *Client

func (*Client) EnvVars

func (c *Client) EnvVars(appGUID string) (map[string]string, error)

type CreateDrainClient

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

func NewCreateDrainClient

func NewCreateDrainClient(c Curler) *CreateDrainClient

func (*CreateDrainClient) CreateDrain

func (c *CreateDrainClient) CreateDrain(name, url, spaceGuid, drainType string) error

type Curler

type Curler interface {
	Curl(URL, method, body string) ([]byte, error)
}

type Doer

type Doer interface {
	Do(*http.Request) (*http.Response, error)
}

type HTTPCurlClient

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

func NewHTTPCurlClient

func NewHTTPCurlClient(apiAddr string, d Doer, f TokenFetcher, r SaveAndRestager) *HTTPCurlClient

func (*HTTPCurlClient) Curl

func (c *HTTPCurlClient) Curl(url, method, body string) ([]byte, error)

type Logger

type Logger interface {
	Fatalf(format string, v ...interface{})
}

type Restager

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

func NewRestager

func NewRestager(appGUID string, c AuthCurler, log Logger) *Restager

func (*Restager) SaveAndRestage

func (r *Restager) SaveAndRestage(refreshToken string)

type SaveAndRestager

type SaveAndRestager interface {
	SaveAndRestage(refreshToken string)
}

type SaveAndRestagerFunc

type SaveAndRestagerFunc func(string)

func (SaveAndRestagerFunc) SaveAndRestage

func (f SaveAndRestagerFunc) SaveAndRestage(refToken string)

type TokenFetcher

type TokenFetcher interface {
	Token() (string, string, error)
}

type TokenManager

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

func NewTokenManager

func NewTokenManager(
	uaa UAAClient,
	clientID string,
	initialRefreshToken string,
	appGUID string,
	skipCertVerify bool,
	log Logger,

) *TokenManager

func (*TokenManager) Token

func (m *TokenManager) Token() (string, string, error)

type UAAClient

type UAAClient interface {
	GetRefreshToken(clientID, refreshToken string, insecureSkipVerify bool) (string, string, error)
}

Jump to

Keyboard shortcuts

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