vault

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Secret

type Secret struct {
	Name          string    `json:"name"`
	CreatedAt     time.Time `json:"created_at"`
	LatestVersion string    `json:"latest_version"`
	CreatedBy     User      `json:"created_by"`
	Version       struct {
		Version   string    `json:"version"`
		Type      string    `json:"type"`
		CreatedAt time.Time `json:"created_at"`
		Value     string    `json:"value"`
		CreatedBy User      `json:"created_by"`
	} `json:"version"`
}

type User

type User struct {
	Name  string `json:"name"`
	Type  string `json:"type"`
	Email string `json:"email"`
}

type Vault

type Vault struct {
	// contains filtered or unexported fields
}

func (*Vault) GetSecret

func (v *Vault) GetSecret(appid, name string) string

func (*Vault) Login

func (v *Vault) Login(clientId, clientSecret, company, project string, debug bool) error

Jump to

Keyboard shortcuts

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