service

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LamssuAuthClaims

type LamssuAuthClaims struct {
	RealmAccess Roles `json:"realm_access,omitempty"`
	stdjwt.StandardClaims
}

type Middleware

type Middleware func(Service) Service

func LoggingMiddleware

func LoggingMiddleware(logger log.Logger) Middleware

func NewInstrumentingMiddleware

func NewInstrumentingMiddleware(counter metrics.Counter, latency metrics.Histogram) Middleware

type Roles

type Roles struct {
	RoleNames []string `json:"roles"`
}

type Service

type Service interface {
	Health(ctx context.Context) bool
	CreateDMS(ctx context.Context, csrBase64Encoded string, dmsName string) (dto.DMS, error)
	CreateDMSForm(ctx context.Context, subject dto.Subject, PrivateKeyMetadata dto.PrivateKeyMetadata, dmsName string) (string, dto.DMS, error)
	UpdateDMSStatus(ctx context.Context, status string, id string, CAList []string) (dto.DMS, error)
	DeleteDMS(ctx context.Context, id string) error
	GetDMSs(ctx context.Context, queryParameters filters.QueryParameters) ([]dto.DMS, int, error)
	GetDMSbyID(ctx context.Context, id string) (dto.DMS, error)
}

func NewEnrollerService

func NewEnrollerService(dmsDbStore dmsstore.DB, lamassuCa *lamassucaclient.LamassuCaClient, logger log.Logger) Service

Jump to

Keyboard shortcuts

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