client

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 14 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

func LoginCommand added in v1.0.7

func LoginCommand(cmd *cobra.Command) error

LoginCommand Login client for command

func LoginContext added in v1.0.7

func LoginContext(context string) error

LoginContext Performs login

func LogoutCommand added in v1.0.7

func LogoutCommand(cmd *cobra.Command) error

LogoutCommand Logout command

Types

This section is empty.

Jump to

Keyboard shortcuts

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