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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCertEndpoint

func MakeCertEndpoint(s service.Service) endpoint.Endpoint

func MakeCreateCAEndpoint

func MakeCreateCAEndpoint(s service.Service) endpoint.Endpoint

func MakeDeleteCAEndpoint

func MakeDeleteCAEndpoint(s service.Service) endpoint.Endpoint

func MakeDeleteCertEndpoint

func MakeDeleteCertEndpoint(s service.Service) endpoint.Endpoint

func MakeGetCAsEndpoint

func MakeGetCAsEndpoint(s service.Service) endpoint.Endpoint

func MakeHealthEndpoint

func MakeHealthEndpoint(s service.Service) endpoint.Endpoint

func MakeImportCAEndpoint

func MakeImportCAEndpoint(s service.Service) endpoint.Endpoint

func MakeIssuedCertsEndpoint

func MakeIssuedCertsEndpoint(s service.Service) endpoint.Endpoint

func MakeSignCertEndpoint

func MakeSignCertEndpoint(s service.Service) endpoint.Endpoint

func MakeStatsEndpoint

func MakeStatsEndpoint(s service.Service) endpoint.Endpoint

func ValidateCreatrCARequest

func ValidateCreatrCARequest(request CreateCARequest) error

func ValidateImportCARequest

func ValidateImportCARequest(request ImportCARequest) error

func ValidateSignCertificateRquest

func ValidateSignCertificateRquest(request SignCertificateRquest) error

Types

type CaRequest

type CaRequest struct {
	CaType dto.CAType
	CA     string
}

type CreateCARequest

type CreateCARequest struct {
	CaType    string `validate:"oneof='pki' 'dmsenroller'"`
	CaName    string `validate:"required"`
	CaPayload dto.CreateCARequestPayload
}

type DeleteCARequest

type DeleteCARequest struct {
	CaType dto.CAType
	CA     string
}

type DeleteCertRequest

type DeleteCertRequest struct {
	CaName       string
	SerialNumber string
	CaType       dto.CAType
}

type Endpoints

type Endpoints struct {
	HealthEndpoint         endpoint.Endpoint
	StatsEndpoint          endpoint.Endpoint
	GetCAsEndpoint         endpoint.Endpoint
	CreateCAEndpoint       endpoint.Endpoint
	ImportCAEndpoint       endpoint.Endpoint
	DeleteCAEndpoint       endpoint.Endpoint
	GetIssuedCertsEndpoint endpoint.Endpoint
	GetCertEndpoint        endpoint.Endpoint
	SignCertEndpoint       endpoint.Endpoint
	DeleteCertEndpoint     endpoint.Endpoint
}

func MakeServerEndpoints

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

type GetCAsRequest

type GetCAsRequest struct {
	CaType          string
	QueryParameters filters.QueryParameters
}

type GetCertRequest

type GetCertRequest struct {
	CaType       dto.CAType
	CaName       string
	SerialNumber string
}

type GetIssuedCertsRequest

type GetIssuedCertsRequest struct {
	CaType          dto.CAType
	CA              string
	QueryParameters filters.QueryParameters
}

type HealthRequest

type HealthRequest struct{}

type HealthResponse

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

type ImportCARequest

type ImportCARequest struct {
	CaType    string `validate:"oneof='pki' 'dmsenroller'"`
	CaName    string `validate:"required"`
	CaPayload dto.ImportCARequestPayload
}

type SignCertificateRquest

type SignCertificateRquest struct {
	CaType      string `validate:"oneof='pki' 'dmsenroller'"`
	CaName      string `validate:"required"`
	SignPayload dto.SignPayload
}

type StatsRequest

type StatsRequest struct {
	ForceRefesh bool
}

Jump to

Keyboard shortcuts

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