Documentation
¶
Index ¶
Constants ¶
View Source
const ColorAuto = "auto"
ColorAuto represents the auto-state for colors
View Source
const ColorOff = "off"
ColorOff represents the off-state for colors
View Source
const ColorOn = "on"
ColorOn represnets the on-state for colors
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Profile Profile Color string LogLevel string DeviceName string // Helpers APIBaseURL string DashboardBaseURL string ConsoleBaseURL string WSBaseURL string Insecure bool // Config ConfigFileFlag string // flag -- should NOT use this directly // contains filtered or unexported fields }
Config handles all overall configuration for the CLI
func (*Config) GetClient ¶
func (c *Config) GetClient() *hookdeckclient.Client
func (*Config) InitConfig ¶
func (c *Config) InitConfig()
InitConfig reads in profiles file and ENV variables if set.
func (*Config) ListProfiles ¶
func (*Config) RemoveAllProfiles ¶
RemoveAllProfiles removes all the profiles from the config file. TODO: consider adding log to clarify which config file is being used
type ConfigFS ¶ added in v1.0.3
type ConfigFS interface {
// contains filtered or unexported methods
}
type Profile ¶
type Profile struct { Name string // profile name APIKey string ProjectId string ProjectMode string Config *Config }
func (*Profile) RemoveProfile ¶
func (*Profile) SaveProfile ¶
func (*Profile) UseProfile ¶
func (*Profile) ValidateAPIKey ¶
Click to show internal directories.
Click to hide internal directories.