credential

package
v0.0.0-...-dc8d137 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateCredentialSecret

func UpdateCredentialSecret(namespace, datafield string, newc Credentials) error

Types

type Credentials

type Credentials struct {
	Users []struct {
		Username string `yaml:"username"`
		Password string `yaml:"password"`
		Orgid    string `yaml:"orgid"`
		TenantID string `yaml:"tenantid"`
	} `yaml:"users"`
}

func AllCredentials

func AllCredentials() (Credentials, error)

collects all credentials

func GetCredentials

func GetCredentials(file string) (Credentials, error)

input is a decoded yaml config file from the secret

type Users

type Users struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	Orgid    string `yaml:"orgid"`
	TenantID string `yaml:"tenantid"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL