Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLocation ¶
DefaultLocation returns the standard location for the settings file
Types ¶
type Settings ¶
type Settings struct { Namespace string `mapstructure:"namespace"` // Currently targeted namespace User string `mapstructure:"user"` Password string `mapstructure:"pass"` Token TokenSetting `mapstructure:"token"` API string `mapstructure:"api"` WSS string `mapstructure:"wss"` Certs string `mapstructure:"certs"` Colors bool `mapstructure:"colors"` AppChart string `mapstructure:"appchart"` // Current default app chart (name) Location string // Origin of data, file which was loaded // contains filtered or unexported fields }
Settings represents a epinio settings
type TokenSetting ¶ added in v1.3.0
type TokenSetting struct { AccessToken string `json:"accesstoken" mapstructure:"accesstoken"` TokenType string `json:"tokentype,omitempty" mapstructure:"tokentype,omitempty"` RefreshToken string `json:"refreshtoken,omitempty" mapstructure:"refreshtoken,omitempty"` Expiry time.Time `json:"expiry,omitempty" mapstructure:"expiry,omitempty"` }
Click to show internal directories.
Click to hide internal directories.