mem

package
v0.0.0-...-7eb8b13 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: NCSA Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemoryKeyRingBackend

func NewMemoryKeyRingBackend(namespace *api.Namespace) (api.NamespaceHandler, error)

Types

type MemoryKeyRingBackend

type MemoryKeyRingBackend struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*MemoryKeyRingBackend) AddKey

func (t *MemoryKeyRingBackend) AddKey(keyring, name string, key *api.Key) error

func (*MemoryKeyRingBackend) AddKeyRing

func (t *MemoryKeyRingBackend) AddKeyRing(keyring *api.KeyRing) error

func (*MemoryKeyRingBackend) CreateKeyRing

func (t *MemoryKeyRingBackend) CreateKeyRing(name string, ttl int) (*api.KeyRing, error)

func (*MemoryKeyRingBackend) DestroyKeyRing

func (t *MemoryKeyRingBackend) DestroyKeyRing(name string) error

func (*MemoryKeyRingBackend) DestroyNamespace

func (t *MemoryKeyRingBackend) DestroyNamespace(name string) error

func (*MemoryKeyRingBackend) GetKey

func (t *MemoryKeyRingBackend) GetKey(keyring, name string) (*api.Key, error)

func (*MemoryKeyRingBackend) GetKeyRing

func (t *MemoryKeyRingBackend) GetKeyRing(name string) (*api.KeyRing, error)

func (*MemoryKeyRingBackend) Init

func (t *MemoryKeyRingBackend) Init(namespace *api.Namespace) error

func (*MemoryKeyRingBackend) Keys

func (t *MemoryKeyRingBackend) Keys(name string) (map[string]*api.Key, error)

func (*MemoryKeyRingBackend) RemoveKey

func (t *MemoryKeyRingBackend) RemoveKey(keyring, name string) error

func (*MemoryKeyRingBackend) RotateKeyRing

func (t *MemoryKeyRingBackend) RotateKeyRing(keyring string, keys map[string]*api.Key) error

func (*MemoryKeyRingBackend) UpdateKeyRing

func (t *MemoryKeyRingBackend) UpdateKeyRing(keyring *api.KeyRing) error

Jump to

Keyboard shortcuts

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