Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigFileName = "weave-gitops-config.json" WrongConfigFormatMsg = `` /* 169-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func GenerateUserID ¶
GenerateUserID generates a string of specified length made of random characters and encodes it in base64 format
func SaveConfig ¶
func SaveConfig(config *GitopsCLIConfig) error
SaveConfig saves the CLI configuration for Weave GitOps to the config file
func SetConfig ¶ added in v0.11.0
func SetConfig(config *GitopsCLIConfig)
SetConfig sets global config to the provided value
Types ¶
type GitopsCLIConfig ¶
func GetConfig ¶
func GetConfig(shouldCreate bool) (*GitopsCLIConfig, error)
GetConfig reads the CLI configuration for Weave GitOps from the config file
func (*GitopsCLIConfig) String ¶
func (config *GitopsCLIConfig) String() (string, error)
Click to show internal directories.
Click to hide internal directories.