api

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 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 APIClient

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

APIClient wrapper for Cloud Foundry Client

func NewAPIClient

func NewAPIClient(nozzleConfig *config.NozzleConfig) (*APIClient, error)

NewAPIClient crate a new ApiClient

func (*APIClient) FetchAuthToken

func (api *APIClient) FetchAuthToken() (string, error)

FetchAuthToken wrapper for client.GetToken()

func (*APIClient) FetchTrafficControllerURL

func (api *APIClient) FetchTrafficControllerURL() string

FetchTrafficControllerURL return Doppler Endpoint URL

func (*APIClient) GetApp

func (api *APIClient) GetApp(guid string) *AppInfo

GetApp return cached AppInfo for a guid

type AppInfo

type AppInfo struct {
	Name  string
	Space string
	Org   string
}

AppInfo holds Cloud Foundry applications information

Jump to

Keyboard shortcuts

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