Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateCredentialSecret ¶
func UpdateCredentialSecret(namespace, secret, datafield string, newc Credentials) error
Types ¶
type Credentials ¶
type Credentials struct { Users []struct { Username string `yaml:"username"` Password string `yaml:"password"` Orgid int `yaml:"orgid"` TenantID string `yaml:"tenantid"` } `yaml:"users"` }
func AllCredentials ¶
func AllCredentials(namespace, secret string) (Credentials, error)
collects all credentials
func GetCredentials ¶
func GetCredentials(file string) (Credentials, error)
input is a decoded yaml config file from the secret
Click to show internal directories.
Click to hide internal directories.