Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomainRegToken ¶
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) }
Click to show internal directories.
Click to hide internal directories.