Documentation ¶
Index ¶
- Constants
- func GetFirstClientNamespace(ctx *context.Context) (string, error)
- func LoadConfig(ctx *context.Context) error
- func LoadTokens(ctx *context.Context) (model.Tokens, error)
- func LogFileName() string
- func ReadConfigFromDisk(configPath string) (context.Storable, error)
- func SaveTokens(ctx *context.Context, tokens model.Tokens) error
- func SyncConfig(ctx *context.Context) error
Constants ¶
View Source
const ( // ErrUnableToSaveConfig -- unable to save config ErrUnableToSaveConfig chkitErrors.Err = "unable to sync config" // ErrUnableToLoadConfig -- unable to load config ErrUnableToLoadConfig chkitErrors.Err = "unable to load config" ErrIncompatibleConfig chkitErrors.Err = "it seems you try to run chkit with incompatible config file. " + "Please, delete config file and run 'chkit login'" )
View Source
const (
ErrNoNamespaces chkitErrors.Err = "no namespaces in account"
)
Variables ¶
This section is empty.
Functions ¶
func GetFirstClientNamespace ¶
GetFirstClientNamespace -- fetches namespace list and returns first element. Needed for login.
func LoadTokens ¶
LoadTokens -- loads tokens from fs
func LogFileName ¶
func LogFileName() string
func SaveTokens ¶
SaveTokens -- save tokens in config path
func SyncConfig ¶
SyncConfig -- writes config from Context to config dir
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.