secrets

package
v0.6.0-b1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	secretsgrpc.UnimplementedSecretsServiceServer
	// contains filtered or unexported fields
}

Server serves backend implementation

func NewServer

func NewServer(backend string) (*Server, error)

NewServer creates a new secrets server

func (*Server) DeleteSecret

func (s *Server) DeleteSecret(ctx context.Context, in *secretsgrpc.SecretsDeleteRequest) (*empty.Empty, error)

DeleteSecret deletes single secret from backend

func (*Server) DeleteSecrets

func (s *Server) DeleteSecrets(ctx context.Context, in *secretsgrpc.DeleteSecretsRequest) (*empty.Empty, error)

DeleteSecrets deletes secrets for a namespace

func (*Server) GetSecrets

GetSecrets returns secrets for one namespace

func (*Server) Kill

func (s *Server) Kill()

Kill kills the server

func (*Server) Lifeline

func (s *Server) Lifeline() chan bool

Lifeline interface impl

func (*Server) RetrieveSecret

RetrieveSecret retrieves secret from backend

func (*Server) Run

func (s *Server) Run()

Run starts the secrets server

func (*Server) Stop

func (s *Server) Stop()

Stop stops the server gracefully

func (*Server) StoreSecret

func (s *Server) StoreSecret(ctx context.Context, in *secretsgrpc.SecretsStoreRequest) (*empty.Empty, error)

StoreSecret stores secrets in backends

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

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