endpoint

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeChangeDMSStatusEndpoint

func MakeChangeDMSStatusEndpoint(s service.Service) endpoint.Endpoint

func MakeCreateDMSEndpoint

func MakeCreateDMSEndpoint(s service.Service) endpoint.Endpoint

func MakeCreateDMSFormEndpoint

func MakeCreateDMSFormEndpoint(s service.Service) endpoint.Endpoint

func MakeDeleteDMSEndpoint

func MakeDeleteDMSEndpoint(s service.Service) endpoint.Endpoint

func MakeGetDMSbyIDEndpoint

func MakeGetDMSbyIDEndpoint(s service.Service) endpoint.Endpoint

func MakeGetDMSsEndpoint

func MakeGetDMSsEndpoint(s service.Service) endpoint.Endpoint

func MakeHealthEndpoint

func MakeHealthEndpoint(s service.Service) endpoint.Endpoint

func ValidatePostDmsCreationFormRequest

func ValidatePostDmsCreationFormRequest(request dto.PostDmsCreationFormRequest) error

func ValidatetPostCSRRequest

func ValidatetPostCSRRequest(request dto.PostCSRRequest) error

func ValidatetPutChangeDmsStatusRequest

func ValidatetPutChangeDmsStatusRequest(request dto.PutChangeDmsStatusRequest) error

Types

type DeleteCSRRequest

type DeleteCSRRequest struct {
	ID string
}

type DeleteCSRResponse

type DeleteCSRResponse struct {
	Err error
}

type Endpoints

type Endpoints struct {
	HealthEndpoint             endpoint.Endpoint
	PostCreateDMSEndpoint      endpoint.Endpoint
	PostCreateDMSFormEndpoint  endpoint.Endpoint
	PutChangeDMSStatusEndpoint endpoint.Endpoint
	DeleteDMSEndpoint          endpoint.Endpoint
	GetDMSsEndpoint            endpoint.Endpoint
	GetDMSbyIDEndpoint         endpoint.Endpoint
}

func MakeServerEndpoints

func MakeServerEndpoints(s service.Service, otTracer stdopentracing.Tracer) Endpoints

type GetCRTRequest

type GetCRTRequest struct {
	ID string
}

type GetCRTResponse

type GetCRTResponse struct {
	Data *x509.Certificate
}

type GetDmsIDRequest

type GetDmsIDRequest struct {
	ID string
}

type GetDmsRequest

type GetDmsRequest struct {
	QueryParameters filters.QueryParameters
}

type GetPendingCSRFileResponse

type GetPendingCSRFileResponse struct {
	Data []byte
	Err  error
}

type HealthRequest

type HealthRequest struct{}

type HealthResponse

type HealthResponse struct {
	Healthy bool  `json:"healthy,omitempty"`
	Err     error `json:"err,omitempty"`
}

type PostDirectCsr

type PostDirectCsr struct {
	CsrBase64Encoded string `json:"csr" validate:"base64"`
}

type PostDmsResponse

type PostDmsResponse struct {
	Dms dto.DMS `json:"dms,omitempty"`
	Err error   `json:"err,omitempty"`
}

type PutChangeCSRsResponse

type PutChangeCSRsResponse struct {
	Dms dto.DMS
	Err error
}

Jump to

Keyboard shortcuts

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