Documentation
¶
Index ¶
- Constants
- func ExportData(renderer model.Renderer, config ExportConfig) error
- 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 SaveTokens(ctx *context.Context, tokens model.Tokens) error
- func SyncConfig(ctx *context.Context) error
- type ExportConfig
- type ExportFormat
Constants ¶
View Source
const ( // ErrUnableToSaveConfig -- unable to save config ErrUnableToSaveConfig chkitErrors.Err = "unable to save config" // ErrUnableToLoadConfig -- unable to load config ErrUnableToLoadConfig chkitErrors.Err = "unable to load config" )
View Source
const (
ErrNoNamespaces chkitErrors.Err = "no namespaces in account"
)
Variables ¶
This section is empty.
Functions ¶
func ExportData ¶
func ExportData(renderer model.Renderer, config ExportConfig) error
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 ¶
type ExportConfig ¶
type ExportConfig struct { Filename string Format ExportFormat }
type ExportFormat ¶
type ExportFormat string
const ( PRETTY ExportFormat = "" JSON ExportFormat = "json" YAML ExportFormat = "yaml" )
Click to show internal directories.
Click to hide internal directories.