Documentation ¶
Index ¶
- Variables
- func DecodeAuth(input string) (string, string, error)
- func EncodeAuth(username string, password string) string
- func EnsureFile() (string, error)
- func LookupAuthConfig(gateway string) (string, string, error)
- func RemoveAuthConfig(gateway string) error
- func UpdateAuthConfig(gateway string, username string, password string) error
- type AuthConfig
- type ConfigFile
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultDir = "~/.openfaas" DefaultFile = "config.yml" )
Functions ¶
func DecodeAuth ¶
DecodeAuth decodes the input string from base64 to username and password
func EncodeAuth ¶
EncodeAuth encodes the username and password strings to base64
func LookupAuthConfig ¶
LookupAuthConfig returns the username and password for a given gateway
func RemoveAuthConfig ¶
RemoveAuthConfig deletes the username and password for a given gateway
Types ¶
type AuthConfig ¶
type ConfigFile ¶
type ConfigFile struct { AuthConfigs []AuthConfig `yaml:"auths"` FilePath string `yaml:"-"` }
ConfigFile for OpenFaaS CLI exclusively.
func New ¶
func New(filePath string) (*ConfigFile, error)
New initializes a config file for the given file path
Click to show internal directories.
Click to hide internal directories.