deploymentkey

package
v0.0.0-...-8540621 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 14 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
}

Service is used to provision and manage deployment keys.

func New

func New(db *sqlx.DB, dbKey string) *Service

New creates a new Service.

func (*Service) Create

Create a key with the org/user as an owner.

func (*Service) Delete

Delete will remove the key.

func (*Service) FetchOrgUserIDUsingDeploymentKey

func (s *Service) FetchOrgUserIDUsingDeploymentKey(ctx context.Context, key string) (uuid.UUID, uuid.UUID, uuid.UUID, error)

FetchOrgUserIDUsingDeploymentKey gets the org and user ID based on the deployment key.

func (*Service) Get

Get returns a specific key if it's owned by the org.

func (*Service) List

List returns all the keys belonging to an org.

func (*Service) LookupDeploymentKey

LookupDeploymentKey gets the complete Deployment key information using just the Key.

Jump to

Keyboard shortcuts

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