sshkeys

package
v0.0.0-...-9f60fe2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService() *Service

func (*Service) Add

func (s *Service) Add(ctx context.Context, userID string, params types.SSHKeyAddParams) (string, error)

func (*Service) Generate

func (s *Service) Generate(ctx context.Context, userID string, params types.SSHKeyGenerateParams) (name string, prv string, pub string, err error)

func (*Service) List

func (s *Service) List(ctx context.Context, userID string) ([]types.SSHKey, error)

type Store

type Store struct{}

func (Store) SSHKeyAdd

func (s Store) SSHKeyAdd(ctx context.Context, userID, name, pub string) error

func (Store) SSHKeyGetByNameIfExists

func (s Store) SSHKeyGetByNameIfExists(ctx context.Context, name, userID string) (*db.UnweaveSshKey, error)

func (Store) SSHKeysList

func (s Store) SSHKeysList(ctx context.Context, ownerID string) ([]db.UnweaveSshKey, error)

Jump to

Keyboard shortcuts

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