Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadClientFromEnv ¶
func LoadClientFromEnv() error
Types ¶
type ClientSet ¶
type ClientSet struct {
// contains filtered or unexported fields
}
func (*ClientSet) Token ¶
func (c *ClientSet) Token() TokenService
type Config ¶
type Config struct { Token string `json:"token" toml:"token" yaml:"token" env:"MCENTER_TOKEN"` Address string `json:"address" toml:"address" yaml:"address" env:"MCENTER_HTTP_ADDRESS" validate:"required"` PathPrefix string `json:"path_prefix" toml:"path_prefix" yaml:"path_prefix" env:"MCENTER_HTTP_PATH_PREFIX" validate:"required"` }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type TokenService ¶
Click to show internal directories.
Click to hide internal directories.