credential

package
v0.0.0-...-f65cf6b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 4 Imported by: 0

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

type Users

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

Jump to

Keyboard shortcuts

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