azureAKSClient

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(rg string, name string, admin bool) (*api.Config, error)

func GetOSVar

func GetOSVar(envVar string) string

func IfAdmin

func IfAdmin(cond bool) string

func RespError

func RespError(err error)

Types

type AuthData

type AuthData struct {
	TokenType    string `json:"token_type"`
	ExpiresIn    string `json:"expires_in"`
	ExtExpiresIn string `json:"ext_expires_in"`
	ExpiresOn    string `json:"expires_on"`
	NotBefore    string `json:"not_before"`
	Resource     string `json:"resource"`
	AccessToken  string `json:"access_token"`
}

type AzureAKSCredentials

type AzureAKSCredentials struct {
	Kubeconfigs []Kubeconfig `json:"kubeconfigs"`
}

type Kubeconfig

type Kubeconfig struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Token

type Token struct {
	Token string
	Type  string
}

func GetToken

func GetToken() Token

Jump to

Keyboard shortcuts

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