endpoint

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeEventHandlerEndpoint

func MakeEventHandlerEndpoint(s service.Service) endpoint.Endpoint

func MakeGetCloudConnectorsEndpoint

func MakeGetCloudConnectorsEndpoint(s service.Service) endpoint.Endpoint

func MakeGetDeviceConfigurationEndpoint

func MakeGetDeviceConfigurationEndpoint(s service.Service) endpoint.Endpoint

func MakeHealthEndpoint

func MakeHealthEndpoint(s service.Service) endpoint.Endpoint

func MakeSynchronizeCAEndpoint

func MakeSynchronizeCAEndpoint(s service.Service) endpoint.Endpoint

func MakeUpdateCaStatusEndpoint

func MakeUpdateCaStatusEndpoint(s service.Service) endpoint.Endpoint

func MakeUpdateDeviceStatusEndpoint

func MakeUpdateDeviceStatusEndpoint(s service.Service) endpoint.Endpoint

func MakeUpdateSecurityAccessPolicyEndpoint

func MakeUpdateSecurityAccessPolicyEndpoint(s service.Service) endpoint.Endpoint

Types

type AttachCAPolicyRequest

type AttachCAPolicyRequest struct {
	Policy      string `json:"policy"`
	ConnectorID string `json:"connector_id"`
}

type CreateCAResponse

type CreateCAResponse struct {
	// contains filtered or unexported fields
}

type EmptyRequest

type EmptyRequest struct{}

type Endpoints

type Endpoints struct {
	HealthEndpoint                 endpoint.Endpoint
	GetCloudConnectorsEndpoint     endpoint.Endpoint
	GetDeviceConfigurationEndpoint endpoint.Endpoint
	SynchronizedCAEndpoint         endpoint.Endpoint
	UpdateSecurityAccessPolicy     endpoint.Endpoint
	UpdateDeviceCertStatusEndpoint endpoint.Endpoint
	EventHandlerEndpoint           endpoint.Endpoint
	UpdateCaStatusEndpoint         endpoint.Endpoint
}

func MakeServerEndpoints

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

type GetActiveCloudConnectorsResponse

type GetActiveCloudConnectorsResponse struct {
	CloudConnectors []cloudproviders.CloudConnector
}

type GetDeviceConfigurationRequest

type GetDeviceConfigurationRequest struct {
	ConnectorID string
	DeviceID    string
}

type GetDeviceConfigurationResponse

type GetDeviceConfigurationResponse struct {
	CloudConnectorDevices []interface{}
}

type GetSynchronizedCAsByConnector

type GetSynchronizedCAsByConnector struct {
	ConnectorID string
}

type GetSynchronizedCAsResponse

type GetSynchronizedCAsResponse struct {
	SynchronizeCAs []cloudproviders.SynchronizedCA
}

type HealthRequest

type HealthRequest struct{}

type HealthResponse

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

type LamassuCaCreateEvent

type LamassuCaCreateEvent struct {
	CaName       string `json:"name"`
	CaCert       string `json:"cert"`
	SerialNumber string `json:"serial_number"`
}

io.lamassu.ca.create & io.lamassu.ca.import

type LamassuCaUpdateStatusEvent added in v0.0.2

type LamassuCaUpdateStatusEvent struct {
	CaName string `json:"name"`
	Status string `json:"status"`
}

io.lamassu.ca.update

type LamassuCertUpdateStatusEvent added in v0.0.2

type LamassuCertUpdateStatusEvent struct {
	CaName       string `json:"name"`
	Status       string `json:"status"`
	SerialNumber string `json:"serial_number"`
}

io.lamassu.cert.update

type SynchronizeCARequest

type SynchronizeCARequest struct {
	ConnectorID string `json:"connector_id"`
	CAName      string `json:"ca_name"`
}

type SynchronizedCAResponse

type SynchronizedCAResponse struct {
	CloudConnector cloudproviders.CloudConnector
}

type UpdateCaStatusRequest

type UpdateCaStatusRequest struct {
	CaName  string `json:"device_id"`
	Payload struct {
		Status string `json:"status"`
	}
}

type UpdateDeviceCertStatusRequest

type UpdateDeviceCertStatusRequest struct {
	DeviceID    string `json:"device_id"`
	ConnectorID string `json:"connector_id"`
	Payload     struct {
		Status       string `json:"status"`
		SerialNumber string `json:"serial_number"`
		CaName       string `json:"ca_name"`
	}
}

type UpdateSecurityAccessPolicyRequest

type UpdateSecurityAccessPolicyRequest struct {
	ConnectorID string `json:"connector_id"`
	Payload     struct {
		CAName       string `json:"ca_name"`
		AccessPolicy string `json:"access_policy"`
	}
}

type UpdateSecurityAccessPolicyResponse

type UpdateSecurityAccessPolicyResponse struct {
	CloudConnector cloudproviders.CloudConnector
}

Jump to

Keyboard shortcuts

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