Documentation ¶
Index ¶
- Constants
- Variables
- func Amend(key string, value string) error
- func Exists() bool
- func FromToken(token string) error
- func PluralDir(p ...string) (string, error)
- func PluralUrl(endpoint string) string
- func Profile(name string) error
- func SetConfig(conf *Config)
- type Config
- type Metadata
- type VersionedConfig
Constants ¶
View Source
const (
ConfigName = "config.yml"
)
Variables ¶
View Source
var ProfileFile string
Functions ¶
Types ¶
type Config ¶
type Config struct { Email string `json:"email"` Token string `yaml:"token" json:"token"` ConsoleToken string `yaml:"consoleToken" json:"consoleToken"` NamespacePrefix string `yaml:"namespacePrefix"` Endpoint string `yaml:"endpoint"` LockProfile string `yaml:"lockProfile"` ReportErrors bool `yaml:"reportErrors"` // contains filtered or unexported fields }
func (*Config) SaveProfile ¶
type VersionedConfig ¶
type VersionedConfig struct { ApiVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Metadata *Metadata `yaml:"metadata"` Spec *Config `yaml:"spec"` }
func Profiles ¶
func Profiles() ([]*VersionedConfig, error)
Click to show internal directories.
Click to hide internal directories.