credentials

package
v0.137.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("credentials not found")
View Source
var ErrValidation = errors.New("credentials validation error")

Functions

This section is empty.

Types

type APICreds

type APICreds struct {
	Host, Key string
}

func (*APICreds) Validate

func (a *APICreds) Validate() error

Validate that the APICreds has all its properties set

type OCIKeypair

type OCIKeypair struct {
	Repo, Username, Password string
}

func (*OCIKeypair) Validate

func (o *OCIKeypair) Validate() error

Validate that the OCIKeypair has all its properties set

type Reader

type Reader interface {
	ReadCredentials(ctx context.Context, secretName string, credentials any) error
}

type ReaderWriter

type ReaderWriter interface {
	Reader
	Writer
}

type Role

type Role int64
const (
	RoleUnknown Role = iota
	RoleReader
	RoleWriter
)

func (Role) String

func (r Role) String() string

Implement string interface for Role

type Writer

type Writer interface {
	SaveCredentials(ctx context.Context, org string, credentials any) (string, error)
	DeleteCredentials(ctx context.Context, credID string) error
}

Directories

Path Synopsis
api
aws
gcp
KeyVal V2 secrets implementation for Hashicorp Vault
KeyVal V2 secrets implementation for Hashicorp Vault

Jump to

Keyboard shortcuts

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