gpgkeys

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package gpgkeys handles the gpg key management functionality of tofutf.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOptions

type CreateOptions struct {
	RegistryName string `schema:"registry_name,required"`
	Organization string
	ASCIIArmor   string
	Type         string
}

type DeleteOptions

type DeleteOptions struct {
	RegistryName string
	Organization string
	KeyID        string
}

type GPGKey

type GPGKey struct {
	ID               string
	OrganizationName string
	ASCIIArmor       string
	CreatedAt        time.Time
	UpdatedAt        time.Time

	KeyID string
}

type GetOptions

type GetOptions struct {
	RegistryName string
	Organization string
	KeyID        string
}

type ListOptions

type ListOptions struct {
	RegistryName string
	Namespaces   []string
}

type Options

type Options struct {
	logr.Logger

	*sql.DB
	*internal.HostnameService
	*surl.Signer
	html.Renderer
	*tfeapi.Responder
	OrganizationAuthorizer internal.Authorizer
}

type Service

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

func NewService

func NewService(opts Options) (*Service, error)

NewService returns a new instance of the service.

func (*Service) AddHandlers

func (s *Service) AddHandlers(r *mux.Router)

func (*Service) Create

func (s *Service) Create(ctx context.Context, opts CreateOptions) (*GPGKey, error)

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, opts DeleteOptions) (*GPGKey, error)

func (*Service) Get

func (s *Service) Get(ctx context.Context, opts GetOptions) (*GPGKey, error)

func (*Service) List

func (s *Service) List(ctx context.Context, opts ListOptions) ([]*GPGKey, error)

func (*Service) Update

func (s *Service) Update(ctx context.Context, opts UpdateOptions) (*GPGKey, error)

type UpdateOptions

type UpdateOptions struct {
	RegistryName string `schema:"registry_name,required"`
	Organization string `schema:"namespace,required"`
	KeyID        string `schema:"key_id,required"`

	NewType      string
	NewNamespace string
}

Jump to

Keyboard shortcuts

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