Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindAllEnv ¶
Types ¶
type CLIConfig ¶
type CLIConfig struct {
// ProfileFileName is the name of the profile file, defaults to "profiles.yaml"
ProfileFileName string `mapstructure:"profileFileName" json:"profileFileName,omitempty" default:"profiles.yaml"`
// Logger is the logging configuration for the CLI
Logger CLIConfigLogger `mapstructure:"logger" json:"logger,omitempty"`
}
CLIConfig represents the global configuration for the Hatchet CLI. This is distinct from the CWD project configuration.
type CLIConfigLogger ¶
type CLIConfigLogger struct {
// Level is the logging level for the CLI. Possible values are: debug, info, warn, error
Level string `mapstructure:"level" json:"level,omitempty" default:"warn"`
// Format is the logging format for the CLI. Possible values are: text, json
Format string `mapstructure:"format" json:"format,omitempty" default:"text"`
// Prefix is an optional prefix for log lines
Prefix string `mapstructure:"prefix" json:"prefix,omitempty"`
}
type Profile ¶
type Profile struct {
TenantId string `mapstructure:"tenantId" json:"tenantId"`
Name string `mapstructure:"name" json:"name"`
Token string `mapstructure:"token" json:"token"`
ExpiresAt time.Time `mapstructure:"expiresAt" json:"expiresAt"`
ApiServerURL string `mapstructure:"apiServerURL" json:"apiServerURL"`
GrpcHostPort string `mapstructure:"grpcHostPort" json:"grpcHostPort"`
TLSStrategy string `mapstructure:"tlsStrategy" json:"tlsStrategy" default:"tls"`
}
Profile represents a single profile configuration
type ProfileFile ¶
ProfileFile represents a list of profiles in the profiles config file
Click to show internal directories.
Click to hide internal directories.