endpoint

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCreateRouteEndpoint

func MakeCreateRouteEndpoint(s proxy.Service) endpoint.Endpoint

func MakeDeleteRouteEndpoint

func MakeDeleteRouteEndpoint(s proxy.Service) endpoint.Endpoint

func MakeGetAttestationPolicyEndpoint

func MakeGetAttestationPolicyEndpoint(s proxy.Service) endpoint.Endpoint

func MakeGetRouteEndpoint

func MakeGetRouteEndpoint(s proxy.Service) endpoint.Endpoint

func MakeListRoutesEndpoint

func MakeListRoutesEndpoint(s proxy.Service) endpoint.Endpoint

func MakeProxyRequestEndpoint

func MakeProxyRequestEndpoint(s proxy.Service) endpoint.Endpoint

func MakeUpdateAttestationPolicyEndpoint

func MakeUpdateAttestationPolicyEndpoint(s proxy.Service) endpoint.Endpoint

func MakeUpdateRouteEndpoint

func MakeUpdateRouteEndpoint(s proxy.Service) endpoint.Endpoint

Types

type CreateRouteRequest

type CreateRouteRequest struct {
	Session *authn.Session
	Route   *router.RouteRule
}

type CreateRouteResponse

type CreateRouteResponse struct {
	Route *router.RouteRule
	Err   error
}

func (CreateRouteResponse) Failed

func (r CreateRouteResponse) Failed() error

type DeleteRouteRequest

type DeleteRouteRequest struct {
	Session *authn.Session
	Name    string
}

type DeleteRouteResponse

type DeleteRouteResponse struct {
	Err error
}

func (DeleteRouteResponse) Failed

func (r DeleteRouteResponse) Failed() error

type Endpoints

type Endpoints struct {
	ProxyRequest            endpoint.Endpoint
	GetAttestationPolicy    endpoint.Endpoint
	UpdateAttestationPolicy endpoint.Endpoint
	CreateRoute             endpoint.Endpoint
	GetRoute                endpoint.Endpoint
	UpdateRoute             endpoint.Endpoint
	DeleteRoute             endpoint.Endpoint
	ListRoutes              endpoint.Endpoint
}

func MakeEndpoints

func MakeEndpoints(s proxy.Service) Endpoints

type GetAttestationPolicyRequest

type GetAttestationPolicyRequest struct {
	Session *authn.Session
}

type GetAttestationPolicyResponse

type GetAttestationPolicyResponse struct {
	Policy []byte
	Err    error
}

func (GetAttestationPolicyResponse) Failed

type GetRouteRequest

type GetRouteRequest struct {
	Session *authn.Session
	Name    string
}

type GetRouteResponse

type GetRouteResponse struct {
	Route *router.RouteRule
	Err   error
}

func (GetRouteResponse) Failed

func (r GetRouteResponse) Failed() error

type ListRoutesRequest

type ListRoutesRequest struct {
	Session *authn.Session
	Offset  uint64
	Limit   uint64
}

type ListRoutesResponse

type ListRoutesResponse struct {
	Routes []router.RouteRule
	Offset uint64
	Limit  uint64
	Total  uint64
	Err    error
}

func (ListRoutesResponse) Failed

func (r ListRoutesResponse) Failed() error

type ProxyRequestRequest

type ProxyRequestRequest struct {
	Session  authn.Session
	DomainID string
	Path     string
}

type ProxyRequestResponse

type ProxyRequestResponse struct {
	Err error
}

func (ProxyRequestResponse) Failed

func (r ProxyRequestResponse) Failed() error

type UpdateAttestationPolicyRequest

type UpdateAttestationPolicyRequest struct {
	Session *authn.Session
	Policy  []byte
}

type UpdateAttestationPolicyResponse

type UpdateAttestationPolicyResponse struct {
	Err error
}

func (UpdateAttestationPolicyResponse) Failed

type UpdateRouteRequest

type UpdateRouteRequest struct {
	Session *authn.Session
	Name    string
	Route   *router.RouteRule
}

type UpdateRouteResponse

type UpdateRouteResponse struct {
	Route *router.RouteRule
	Err   error
}

func (UpdateRouteResponse) Failed

func (r UpdateRouteResponse) Failed() error

Jump to

Keyboard shortcuts

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