publickeyservice

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicKeyService

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

func New

func (*PublicKeyService) AddPublicKey

func (s *PublicKeyService) AddPublicKey(ctx context.Context, pkey *entity.PublicKey) (err error)

func (*PublicKeyService) GetPublicKeys

func (s *PublicKeyService) GetPublicKeys(ctx context.Context) (pkeys []entity.PublicKey, err error)

func (*PublicKeyService) PublicKeyExists

func (s *PublicKeyService) PublicKeyExists(ctx context.Context, pkey ssh.PublicKey) (exists bool, err error)

func (*PublicKeyService) RemovePublicKey

func (s *PublicKeyService) RemovePublicKey(ctx context.Context, pkey ssh.PublicKey) (err error)

type PublicKeyServiceParams

type PublicKeyServiceParams struct {
	Logger zerolog.Logger
	Repo   db.Repo
}

Jump to

Keyboard shortcuts

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