server

package
v0.0.0-...-d983439 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretsServer

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

SecretsServer is the interface to this component.

func New

func New(secretsDb *dao.DB) *SecretsServer

New creates a new SecretsServer instance.

func (*SecretsServer) Create

func (ss *SecretsServer) Create(ctx context.Context, in *secrets.Secret) (*secrets.Id, error)

Create a new secret

func (*SecretsServer) Delete

Delete a secret

func (*SecretsServer) Health

func (ss *SecretsServer) Health() *health.Service

Health returns the servers embedded health check service

func (*SecretsServer) List

func (ss *SecretsServer) List(ctx context.Context, in *secrets.Query) (*secrets.Secrets, error)

List secrets based on a query

func (*SecretsServer) Read

func (ss *SecretsServer) Read(ctx context.Context, in *secrets.Id) (*secrets.Secret, error)

Read a secret via ID

func (*SecretsServer) Update

Update one secret

Jump to

Keyboard shortcuts

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