config

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFile = "config.yaml"
View Source
const KUBECONFIG_TMPL = `` /* 1278-byte string literal not displayed */

Variables

This section is empty.

Functions

func GetConfigDir

func GetConfigDir() (string, error)

func GetKubeConfig

func GetKubeConfig(idToken, clientSecret, refreshToken string) (string, error)

func MakeConfigDir

func MakeConfigDir() error

func WriteFile

func WriteFile(file, data string) error

func WriteKubeConfig

func WriteKubeConfig(data string) error

Types

type Config

type Config struct {
	Token string `json:"token" yaml:"token"`
}

func DefaultConfig

func DefaultConfig() *Config

func ReadConfig

func ReadConfig() (*Config, error)

Jump to

Keyboard shortcuts

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