secret

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 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 InMemSecret

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

func NewInMemSecret

func NewInMemSecret() *InMemSecret

func (*InMemSecret) Get

func (s *InMemSecret) Get(ctx context.Context, name string) (string, time.Time, error)

func (*InMemSecret) ListItems

func (s *InMemSecret) ListItems(ctx context.Context) (*Items, error)

func (*InMemSecret) Reset

func (s *InMemSecret) Reset()

func (*InMemSecret) Set

func (s *InMemSecret) Set(name string, value string, changedAt time.Time)

type Item

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

func (*Item) LastChange

func (i *Item) LastChange() time.Time

func (*Item) Name

func (i *Item) Name() string

type Items

type Items map[string]Item

func (*Items) Get

func (i *Items) Get(name string) (Item, bool)

type KeyVaultSecret

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

func (*KeyVaultSecret) Get

func (s *KeyVaultSecret) Get(ctx context.Context, name string) (string, time.Time, error)

func (*KeyVaultSecret) ListItems

func (s *KeyVaultSecret) ListItems(ctx context.Context) (*Items, error)

type Secret

type Secret interface {
	ListItems(ctx context.Context) (*Items, error)
	Get(ctx context.Context, name string) (string, time.Time, error)
}

Jump to

Keyboard shortcuts

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