daemon

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSecretNotExists = errors.New("secret does not exist")
)

Functions

func NewDaemonClient

func NewDaemonClient(ip string, port string) *daemonClient

func NewDaemonServer

func NewDaemonServer(ip string, port string) *daemonServer

func NewSecretServiceHandler

func NewSecretServiceHandler(store SecretStore) (string, http.Handler)

func PopulateStore

func PopulateStore(store SecretStore)

Types

type LocalSecretStore

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

func (*LocalSecretStore) GetSecret

func (s *LocalSecretStore) GetSecret(name string) (string, bool)

func (*LocalSecretStore) SetSecret

func (s *LocalSecretStore) SetSecret(name string, value string)

type SecretStore

type SecretStore interface {
	SetSecret(string, string)
	GetSecret(string) (string, bool)
}

func NewLocalSecretStore

func NewLocalSecretStore() SecretStore

Jump to

Keyboard shortcuts

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