cliconfig

package
v0.0.0-...-2798f75 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFCliConfig

type CFCliConfig struct {
	Contexts       map[string]CliConfigItem `yaml:"contexts"`
	CurrentContext string                   `yaml:"current-context"`
}

type CliConfig

type CliConfig interface {
	GetCurrentConfig() (*CliConfigItem, error)
}

func NewCliConfig

func NewCliConfig() CliConfig

type CliConfigItem

type CliConfigItem struct {
	Name  string `yaml:"name"`
	Url   string `yaml:"url"`
	Token string `yaml:"token"`
}

Jump to

Keyboard shortcuts

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