client

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// TokenEnvironmentName Name of environment variable to load token from
	TokenEnvironmentName = "APP_SERVICE_ACCOUNT_TOKEN"
)

Variables

This section is empty.

Functions

func Get

func Get() *apiclient.Radixapi

Get Gets API client for set context

func GetForCluster

func GetForCluster(cluster, environment string) *apiclient.Radixapi

GetForCluster Gets API client for cluster

func GetForCommand

func GetForCommand(cmd *cobra.Command) (*apiclient.Radixapi, error)

GetForCommand Gets client for command

func GetForContext

func GetForContext(context string) *apiclient.Radixapi

GetForContext Gets API client for set context

func GetForToken

func GetForToken(context, cluster, environment, token string) *apiclient.Radixapi

GetForToken Gets API client with passed token

Types

This section is empty.

Jump to

Keyboard shortcuts

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