repository

package
v0.0.0-...-1a88b7f Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainRegToken

type DomainRegToken struct {
	DomainId     uuid.UUID
	DomainToken  string
	DomainType   public.DomainType
	ExpirationNS uint64
}

type DomainRepository

type DomainRepository interface {
	List(ctx context.Context, orgID string, offset, limit int) (output []model.Domain, count int64, err error)
	// PartialUpdate(ctx context.Context, orgId string, data *model.Domain) (output model.Domain, err error)
	// Update(ctx context.Context, orgId string, data *model.Domain) (output model.Domain, err error)
	FindByID(ctx context.Context, orgID string, UUID uuid.UUID) (output *model.Domain, err error)
	DeleteById(ctx context.Context, orgID string, UUID uuid.UUID) (err error)
	Register(ctx context.Context, orgID string, data *model.Domain) (err error)
	UpdateAgent(ctx context.Context, orgID string, data *model.Domain) (err error)
	UpdateUser(ctx context.Context, orgID string, data *model.Domain) (err error)
	CreateDomainToken(ctx context.Context, key []byte, validity time.Duration, orgID string, domainType public.DomainType) (token *DomainRegToken, err error)
}

DomainRepository interface

type HostRepository

type HostRepository interface {
	MatchDomain(ctx context.Context, options *interactor.HostConfOptions) (output *model.Domain, err error)
	// TODO: hack, actual implementation will take gorm.DB argument
	SignHostConfToken(ctx context.Context, privs []jwk.Key, options *interactor.HostConfOptions, domain *model.Domain) (hctoken public.HostToken, err error)
}

HostRepository interface

type HostconfJwkRepository

type HostconfJwkRepository interface {
	InsertJWK(ctx context.Context, hcjwk *model.HostconfJwk) (err error)
	RevokeJWK(ctx context.Context, kid string) (hcjwk *model.HostconfJwk, err error)
	ListJWKs(ctx context.Context) (hcjwks []model.HostconfJwk, err error)
	PurgeExpiredJWKs(ctx context.Context) (hcjwks []model.HostconfJwk, err error)
	GetPublicKeyArray(ctx context.Context) (pubkeys, revokedKids []string, err error)
	// TODO: refactor code to use jwk.Set instead of []jwk.Key
	GetPrivateSigningKeys(ctx context.Context) (privkeys []jwk.Key, err error)
}

Jump to

Keyboard shortcuts

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