secrets

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructPath

func ConstructPath(credInfo CredentialInfo) string

Types

type Client

type Client interface {
	Read(string) (map[string]interface{}, error)
	Create(map[string]interface{}, string) error
	Append(map[string]interface{}, string) error
	Update(map[string]interface{}, string) error
	Override(map[string]interface{}, string) error
	Delete(string) error

	// admin
	// domainId, accountName
	GetAccount(string, string) (nodeconfig.Account, error)
	GetSecretPhrase(string, string) (string, error)
	DeleteSingleSecretEntry(CredentialInfo, string) error
	AppendSecret(CredentialInfo, map[string]interface{}) error

	//api
	StoreAccount(string, nodeconfig.Account, string) error
	InitEnv()
}

type CredentialInfo

type CredentialInfo struct {
	Environment string
	Domain      string
	Service     string
	Variable    string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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