Documentation ¶
Overview ¶
Package mgmtapi provides primitives to interact with the openapi HTTP API.
Code generated by unknown module path version unknown version DO NOT EDIT.
Package mgmtapi provides primitives to interact with the openapi HTTP API.
Code generated by unknown module path version unknown version DO NOT EDIT.
Package mgmtapi provides primitives to interact with the openapi HTTP API.
Code generated by unknown module path version unknown version DO NOT EDIT.
Package mgmtapi provides primitives to interact with the openapi HTTP API.
Code generated by unknown module path version unknown version DO NOT EDIT.
Index ¶
- func ErrorResponse(w http.ResponseWriter, p Problem)
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- func NewDeleteBeaconRequest(server string, segmentId SegmentID) (*http.Request, error)
- func NewDeleteSegmentRequest(server string, segmentId SegmentID) (*http.Request, error)
- func NewGetBeaconBlobRequest(server string, segmentId SegmentID) (*http.Request, error)
- func NewGetBeaconRequest(server string, segmentId SegmentID) (*http.Request, error)
- func NewGetBeaconsRequest(server string, params *GetBeaconsParams) (*http.Request, error)
- func NewGetCaRequest(server string) (*http.Request, error)
- func NewGetCertificateBlobRequest(server string, chainId ChainID) (*http.Request, error)
- func NewGetCertificateRequest(server string, chainId ChainID) (*http.Request, error)
- func NewGetCertificatesRequest(server string, params *GetCertificatesParams) (*http.Request, error)
- func NewGetConfigRequest(server string) (*http.Request, error)
- func NewGetHealthRequest(server string) (*http.Request, error)
- func NewGetInfoRequest(server string) (*http.Request, error)
- func NewGetLogLevelRequest(server string) (*http.Request, error)
- func NewGetSegmentBlobRequest(server string, segmentId SegmentID) (*http.Request, error)
- func NewGetSegmentRequest(server string, segmentId SegmentID) (*http.Request, error)
- func NewGetSegmentsRequest(server string, params *GetSegmentsParams) (*http.Request, error)
- func NewGetSignerChainRequest(server string) (*http.Request, error)
- func NewGetSignerRequest(server string) (*http.Request, error)
- func NewGetTopologyRequest(server string) (*http.Request, error)
- func NewGetTrcBlobRequest(server string, isd int, base int, serial int) (*http.Request, error)
- func NewGetTrcRequest(server string, isd int, base int, serial int) (*http.Request, error)
- func NewGetTrcsRequest(server string, params *GetTrcsParams) (*http.Request, error)
- func NewSetLogLevelRequest(server string, body SetLogLevelJSONRequestBody) (*http.Request, error)
- func NewSetLogLevelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func ServeSpecInteractive(w http.ResponseWriter, r *http.Request)
- func ServeSpecJSON(w http.ResponseWriter, r *http.Request)
- func UnpackBeaconUsages(u beacon.Usage) []string
- type BadRequest
- type Beacon
- type BeaconGetResponseJson
- type BeaconStore
- type BeaconUsage
- type BeaconUsages
- type CA
- type CAHealthStatus
- type Certificate
- type Chain
- type ChainBrief
- type ChainID
- type Check
- type CheckData
- type ChiServerOptions
- type Client
- func (c *Client) DeleteBeacon(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSegment(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBeacon(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBeaconBlob(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBeacons(ctx context.Context, params *GetBeaconsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCa(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCertificate(ctx context.Context, chainId ChainID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCertificateBlob(ctx context.Context, chainId ChainID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCertificates(ctx context.Context, params *GetCertificatesParams, ...) (*http.Response, error)
- func (c *Client) GetConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLogLevel(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSegment(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSegmentBlob(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSegments(ctx context.Context, params *GetSegmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSigner(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSignerChain(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTopology(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTrc(ctx context.Context, isd int, base int, serial int, ...) (*http.Response, error)
- func (c *Client) GetTrcBlob(ctx context.Context, isd int, base int, serial int, ...) (*http.Response, error)
- func (c *Client) GetTrcs(ctx context.Context, params *GetTrcsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SetLogLevel(ctx context.Context, body SetLogLevelJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetLogLevelWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteBeaconWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*DeleteBeaconResponse, error)
- func (c *ClientWithResponses) DeleteSegmentWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*DeleteSegmentResponse, error)
- func (c *ClientWithResponses) GetBeaconBlobWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*GetBeaconBlobResponse, error)
- func (c *ClientWithResponses) GetBeaconWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*GetBeaconResponse, error)
- func (c *ClientWithResponses) GetBeaconsWithResponse(ctx context.Context, params *GetBeaconsParams, reqEditors ...RequestEditorFn) (*GetBeaconsResponse, error)
- func (c *ClientWithResponses) GetCaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaResponse, error)
- func (c *ClientWithResponses) GetCertificateBlobWithResponse(ctx context.Context, chainId ChainID, reqEditors ...RequestEditorFn) (*GetCertificateBlobResponse, error)
- func (c *ClientWithResponses) GetCertificateWithResponse(ctx context.Context, chainId ChainID, reqEditors ...RequestEditorFn) (*GetCertificateResponse, error)
- func (c *ClientWithResponses) GetCertificatesWithResponse(ctx context.Context, params *GetCertificatesParams, ...) (*GetCertificatesResponse, error)
- func (c *ClientWithResponses) GetConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConfigResponse, error)
- func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
- func (c *ClientWithResponses) GetInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInfoResponse, error)
- func (c *ClientWithResponses) GetLogLevelWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLogLevelResponse, error)
- func (c *ClientWithResponses) GetSegmentBlobWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*GetSegmentBlobResponse, error)
- func (c *ClientWithResponses) GetSegmentWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*GetSegmentResponse, error)
- func (c *ClientWithResponses) GetSegmentsWithResponse(ctx context.Context, params *GetSegmentsParams, reqEditors ...RequestEditorFn) (*GetSegmentsResponse, error)
- func (c *ClientWithResponses) GetSignerChainWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSignerChainResponse, error)
- func (c *ClientWithResponses) GetSignerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSignerResponse, error)
- func (c *ClientWithResponses) GetTopologyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTopologyResponse, error)
- func (c *ClientWithResponses) GetTrcBlobWithResponse(ctx context.Context, isd int, base int, serial int, ...) (*GetTrcBlobResponse, error)
- func (c *ClientWithResponses) GetTrcWithResponse(ctx context.Context, isd int, base int, serial int, ...) (*GetTrcResponse, error)
- func (c *ClientWithResponses) GetTrcsWithResponse(ctx context.Context, params *GetTrcsParams, reqEditors ...RequestEditorFn) (*GetTrcsResponse, error)
- func (c *ClientWithResponses) SetLogLevelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetLogLevelResponse, error)
- func (c *ClientWithResponses) SetLogLevelWithResponse(ctx context.Context, body SetLogLevelJSONRequestBody, ...) (*SetLogLevelResponse, error)
- type ClientWithResponsesInterface
- type DeleteBeaconResponse
- type DeleteSegmentResponse
- type GetBeaconBlobResponse
- type GetBeaconResponse
- type GetBeaconsParams
- type GetBeaconsParamsSort
- type GetBeaconsResponse
- type GetCaResponse
- type GetCertificateBlobResponse
- type GetCertificateResponse
- type GetCertificatesParams
- type GetCertificatesResponse
- type GetConfigResponse
- type GetHealthResponse
- type GetInfoResponse
- type GetLogLevelResponse
- type GetSegmentBlobResponse
- type GetSegmentResponse
- type GetSegmentsParams
- type GetSegmentsResponse
- type GetSignerChainResponse
- type GetSignerResponse
- type GetTopologyResponse
- type GetTrcBlobResponse
- type GetTrcResponse
- type GetTrcsParams
- type GetTrcsResponse
- type Health
- type HealthResponse
- type Healther
- type Hop
- type HttpRequestDoer
- type Internal
- type InvalidParamFormatError
- type IsdAs
- type LogLevel
- type LogLevelLevel
- type MiddlewareFunc
- type Policy
- type Problem
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type Segment
- type SegmentBrief
- type SegmentID
- type Server
- func (s *Server) DeleteBeacon(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
- func (s *Server) DeleteSegment(w http.ResponseWriter, r *http.Request, id SegmentID)
- func (s *Server) GetBeacon(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
- func (s *Server) GetBeaconBlob(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
- func (s *Server) GetBeacons(w http.ResponseWriter, r *http.Request, params GetBeaconsParams)
- func (s *Server) GetCa(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetCertificate(w http.ResponseWriter, r *http.Request, chainID ChainID)
- func (s *Server) GetCertificateBlob(w http.ResponseWriter, r *http.Request, chainID ChainID)
- func (s *Server) GetCertificates(w http.ResponseWriter, r *http.Request, params GetCertificatesParams)
- func (s *Server) GetConfig(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetHealth(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetInfo(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetLogLevel(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetSegment(w http.ResponseWriter, r *http.Request, id SegmentID)
- func (s *Server) GetSegmentBlob(w http.ResponseWriter, r *http.Request, id SegmentID)
- func (s *Server) GetSegments(w http.ResponseWriter, r *http.Request, params GetSegmentsParams)
- func (s *Server) GetSigner(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetSignerChain(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetTopology(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetTrc(w http.ResponseWriter, r *http.Request, isd int, base int, serial int)
- func (s *Server) GetTrcBlob(w http.ResponseWriter, r *http.Request, isd int, base int, serial int)
- func (s *Server) GetTrcs(w http.ResponseWriter, r *http.Request, params GetTrcsParams)
- func (s *Server) SetLogLevel(w http.ResponseWriter, r *http.Request)
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) DeleteBeacon(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteSegment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetBeacon(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetBeaconBlob(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetBeacons(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCa(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCertificate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCertificateBlob(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCertificates(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetConfig(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetInfo(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLogLevel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSegment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSegmentBlob(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSegments(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSigner(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSignerChain(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTopology(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTrc(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTrcBlob(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTrcs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SetLogLevel(w http.ResponseWriter, r *http.Request)
- type SetLogLevelJSONRequestBody
- type SetLogLevelResponse
- type Signer
- type SignerHealthData
- type StandardError
- type Status
- type Subject
- type SubjectKeyID
- type TRC
- type TRCBrief
- type TRCHealthData
- type TRCID
- type TooManyValuesForParamError
- type Topology
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) DeleteBeacon(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
- func (_ Unimplemented) DeleteSegment(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
- func (_ Unimplemented) GetBeacon(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
- func (_ Unimplemented) GetBeaconBlob(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
- func (_ Unimplemented) GetBeacons(w http.ResponseWriter, r *http.Request, params GetBeaconsParams)
- func (_ Unimplemented) GetCa(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetCertificate(w http.ResponseWriter, r *http.Request, chainId ChainID)
- func (_ Unimplemented) GetCertificateBlob(w http.ResponseWriter, r *http.Request, chainId ChainID)
- func (_ Unimplemented) GetCertificates(w http.ResponseWriter, r *http.Request, params GetCertificatesParams)
- func (_ Unimplemented) GetConfig(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetHealth(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetInfo(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetLogLevel(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetSegment(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
- func (_ Unimplemented) GetSegmentBlob(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
- func (_ Unimplemented) GetSegments(w http.ResponseWriter, r *http.Request, params GetSegmentsParams)
- func (_ Unimplemented) GetSigner(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetSignerChain(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetTopology(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetTrc(w http.ResponseWriter, r *http.Request, isd int, base int, serial int)
- func (_ Unimplemented) GetTrcBlob(w http.ResponseWriter, r *http.Request, isd int, base int, serial int)
- func (_ Unimplemented) GetTrcs(w http.ResponseWriter, r *http.Request, params GetTrcsParams)
- func (_ Unimplemented) SetLogLevel(w http.ResponseWriter, r *http.Request)
- type UnmarshalingParamError
- type Validity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorResponse ¶ added in v0.9.0
func ErrorResponse(w http.ResponseWriter, p Problem)
Error creates an detailed error response.
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func NewDeleteBeaconRequest ¶ added in v0.11.0
NewDeleteBeaconRequest generates requests for DeleteBeacon
func NewDeleteSegmentRequest ¶ added in v0.11.0
NewDeleteSegmentRequest generates requests for DeleteSegment
func NewGetBeaconBlobRequest ¶
NewGetBeaconBlobRequest generates requests for GetBeaconBlob
func NewGetBeaconRequest ¶
NewGetBeaconRequest generates requests for GetBeacon
func NewGetBeaconsRequest ¶
func NewGetBeaconsRequest(server string, params *GetBeaconsParams) (*http.Request, error)
NewGetBeaconsRequest generates requests for GetBeacons
func NewGetCaRequest ¶
NewGetCaRequest generates requests for GetCa
func NewGetCertificateBlobRequest ¶
NewGetCertificateBlobRequest generates requests for GetCertificateBlob
func NewGetCertificateRequest ¶
NewGetCertificateRequest generates requests for GetCertificate
func NewGetCertificatesRequest ¶
func NewGetCertificatesRequest(server string, params *GetCertificatesParams) (*http.Request, error)
NewGetCertificatesRequest generates requests for GetCertificates
func NewGetConfigRequest ¶
NewGetConfigRequest generates requests for GetConfig
func NewGetHealthRequest ¶
NewGetHealthRequest generates requests for GetHealth
func NewGetInfoRequest ¶
NewGetInfoRequest generates requests for GetInfo
func NewGetLogLevelRequest ¶
NewGetLogLevelRequest generates requests for GetLogLevel
func NewGetSegmentBlobRequest ¶
NewGetSegmentBlobRequest generates requests for GetSegmentBlob
func NewGetSegmentRequest ¶
NewGetSegmentRequest generates requests for GetSegment
func NewGetSegmentsRequest ¶
func NewGetSegmentsRequest(server string, params *GetSegmentsParams) (*http.Request, error)
NewGetSegmentsRequest generates requests for GetSegments
func NewGetSignerChainRequest ¶
NewGetSignerChainRequest generates requests for GetSignerChain
func NewGetSignerRequest ¶
NewGetSignerRequest generates requests for GetSigner
func NewGetTopologyRequest ¶
NewGetTopologyRequest generates requests for GetTopology
func NewGetTrcBlobRequest ¶
NewGetTrcBlobRequest generates requests for GetTrcBlob
func NewGetTrcRequest ¶
NewGetTrcRequest generates requests for GetTrc
func NewGetTrcsRequest ¶
func NewGetTrcsRequest(server string, params *GetTrcsParams) (*http.Request, error)
NewGetTrcsRequest generates requests for GetTrcs
func NewSetLogLevelRequest ¶
func NewSetLogLevelRequest(server string, body SetLogLevelJSONRequestBody) (*http.Request, error)
NewSetLogLevelRequest calls the generic SetLogLevel builder with application/json body
func NewSetLogLevelRequestWithBody ¶
func NewSetLogLevelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetLogLevelRequestWithBody generates requests for SetLogLevel with any type of body
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
func ServeSpecInteractive ¶
func ServeSpecInteractive(w http.ResponseWriter, r *http.Request)
ServeSpecInteractive serves the interactive redocly OpenAPI3 spec.
func ServeSpecJSON ¶
func ServeSpecJSON(w http.ResponseWriter, r *http.Request)
ServeSpecJSON serves the json encoded OpenAPI3 spec.
func UnpackBeaconUsages ¶
UnpackBeaconUsages extracts the Usage's bits as snake case string constants for the API.
Types ¶
type Beacon ¶
type Beacon struct { Expiration time.Time `json:"expiration"` Hops []Hop `json:"hops"` Id SegmentID `json:"id"` // IngressInterface Ingress interface of the beacon. IngressInterface int `json:"ingress_interface"` LastUpdated time.Time `json:"last_updated"` Timestamp time.Time `json:"timestamp"` Usages BeaconUsages `json:"usages"` }
Beacon defines model for Beacon.
type BeaconGetResponseJson ¶
type BeaconGetResponseJson struct {
Beacon Beacon `json:"beacon"`
}
BeaconGetResponseJson defines model for BeaconGetResponseJson.
type BeaconStore ¶
type BeaconStore interface { GetBeacons(context.Context, *beaconstorage.QueryParams) ([]beaconstorage.Beacon, error) DeleteBeacon(ctx context.Context, idPrefix string) error }
type BeaconUsage ¶
type BeaconUsage string
BeaconUsage defines model for BeaconUsage.
const ( CoreRegistration BeaconUsage = "core_registration" DownRegistration BeaconUsage = "down_registration" Propagation BeaconUsage = "propagation" UpRegistration BeaconUsage = "up_registration" )
Defines values for BeaconUsage.
type CA ¶
type CA struct { CertValidity Validity `json:"cert_validity"` Policy Policy `json:"policy"` Subject Subject `json:"subject"` SubjectKeyId SubjectKeyID `json:"subject_key_id"` }
CA defines model for CA.
type CAHealthStatus ¶
type CAHealthStatus string
const ( Available CAHealthStatus = "available" Starting CAHealthStatus = "starting" Stopping CAHealthStatus = "stopping" )
type Certificate ¶
type Certificate struct { DistinguishedName string `json:"distinguished_name"` IsdAs IsdAs `json:"isd_as"` SubjectKeyAlgo string `json:"subject_key_algo"` SubjectKeyId SubjectKeyID `json:"subject_key_id"` Validity Validity `json:"validity"` }
Certificate defines model for Certificate.
type Chain ¶
type Chain struct { Issuer Certificate `json:"issuer"` Subject Certificate `json:"subject"` }
Chain defines model for Chain.
type ChainBrief ¶
type ChainBrief struct { Id ChainID `json:"id"` Issuer IsdAs `json:"issuer"` Subject IsdAs `json:"subject"` Validity Validity `json:"validity"` }
ChainBrief defines model for ChainBrief.
type Check ¶
type Check struct { Data CheckData `json:"data"` // Detail Additional information. Detail *string `json:"detail,omitempty"` // Name Name of health check. Name string `json:"name"` // Reason Reason for check failure. Reason *string `json:"reason,omitempty"` Status Status `json:"status"` }
Check defines model for Check.
type ChiServerOptions ¶
type ChiServerOptions struct { BaseURL string BaseRouter chi.Router Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) DeleteBeacon ¶ added in v0.11.0
func (*Client) DeleteSegment ¶ added in v0.11.0
func (*Client) GetBeaconBlob ¶
func (*Client) GetBeacons ¶
func (c *Client) GetBeacons(ctx context.Context, params *GetBeaconsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCertificate ¶
func (*Client) GetCertificateBlob ¶
func (*Client) GetCertificates ¶
func (c *Client) GetCertificates(ctx context.Context, params *GetCertificatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetLogLevel ¶
func (*Client) GetSegment ¶
func (*Client) GetSegmentBlob ¶
func (*Client) GetSegments ¶
func (c *Client) GetSegments(ctx context.Context, params *GetSegmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSignerChain ¶
func (*Client) GetTopology ¶
func (*Client) GetTrcBlob ¶
func (*Client) GetTrcs ¶
func (c *Client) GetTrcs(ctx context.Context, params *GetTrcsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetLogLevel ¶
func (c *Client) SetLogLevel(ctx context.Context, body SetLogLevelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // GetBeacons request GetBeacons(ctx context.Context, params *GetBeaconsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteBeacon request DeleteBeacon(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetBeacon request GetBeacon(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetBeaconBlob request GetBeaconBlob(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCa request GetCa(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCertificates request GetCertificates(ctx context.Context, params *GetCertificatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCertificate request GetCertificate(ctx context.Context, chainId ChainID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCertificateBlob request GetCertificateBlob(ctx context.Context, chainId ChainID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetConfig request GetConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetHealth request GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetInfo request GetInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetLogLevel request GetLogLevel(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // SetLogLevelWithBody request with any body SetLogLevelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) SetLogLevel(ctx context.Context, body SetLogLevelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSegments request GetSegments(ctx context.Context, params *GetSegmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteSegment request DeleteSegment(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSegment request GetSegment(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSegmentBlob request GetSegmentBlob(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSigner request GetSigner(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSignerChain request GetSignerChain(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTopology request GetTopology(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTrcs request GetTrcs(ctx context.Context, params *GetTrcsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTrc request GetTrc(ctx context.Context, isd int, base int, serial int, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTrcBlob request GetTrcBlob(ctx context.Context, isd int, base int, serial int, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeleteBeaconWithResponse ¶ added in v0.11.0
func (c *ClientWithResponses) DeleteBeaconWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*DeleteBeaconResponse, error)
DeleteBeaconWithResponse request returning *DeleteBeaconResponse
func (*ClientWithResponses) DeleteSegmentWithResponse ¶ added in v0.11.0
func (c *ClientWithResponses) DeleteSegmentWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*DeleteSegmentResponse, error)
DeleteSegmentWithResponse request returning *DeleteSegmentResponse
func (*ClientWithResponses) GetBeaconBlobWithResponse ¶
func (c *ClientWithResponses) GetBeaconBlobWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*GetBeaconBlobResponse, error)
GetBeaconBlobWithResponse request returning *GetBeaconBlobResponse
func (*ClientWithResponses) GetBeaconWithResponse ¶
func (c *ClientWithResponses) GetBeaconWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*GetBeaconResponse, error)
GetBeaconWithResponse request returning *GetBeaconResponse
func (*ClientWithResponses) GetBeaconsWithResponse ¶
func (c *ClientWithResponses) GetBeaconsWithResponse(ctx context.Context, params *GetBeaconsParams, reqEditors ...RequestEditorFn) (*GetBeaconsResponse, error)
GetBeaconsWithResponse request returning *GetBeaconsResponse
func (*ClientWithResponses) GetCaWithResponse ¶
func (c *ClientWithResponses) GetCaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaResponse, error)
GetCaWithResponse request returning *GetCaResponse
func (*ClientWithResponses) GetCertificateBlobWithResponse ¶
func (c *ClientWithResponses) GetCertificateBlobWithResponse(ctx context.Context, chainId ChainID, reqEditors ...RequestEditorFn) (*GetCertificateBlobResponse, error)
GetCertificateBlobWithResponse request returning *GetCertificateBlobResponse
func (*ClientWithResponses) GetCertificateWithResponse ¶
func (c *ClientWithResponses) GetCertificateWithResponse(ctx context.Context, chainId ChainID, reqEditors ...RequestEditorFn) (*GetCertificateResponse, error)
GetCertificateWithResponse request returning *GetCertificateResponse
func (*ClientWithResponses) GetCertificatesWithResponse ¶
func (c *ClientWithResponses) GetCertificatesWithResponse(ctx context.Context, params *GetCertificatesParams, reqEditors ...RequestEditorFn) (*GetCertificatesResponse, error)
GetCertificatesWithResponse request returning *GetCertificatesResponse
func (*ClientWithResponses) GetConfigWithResponse ¶
func (c *ClientWithResponses) GetConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConfigResponse, error)
GetConfigWithResponse request returning *GetConfigResponse
func (*ClientWithResponses) GetHealthWithResponse ¶
func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
GetHealthWithResponse request returning *GetHealthResponse
func (*ClientWithResponses) GetInfoWithResponse ¶
func (c *ClientWithResponses) GetInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInfoResponse, error)
GetInfoWithResponse request returning *GetInfoResponse
func (*ClientWithResponses) GetLogLevelWithResponse ¶
func (c *ClientWithResponses) GetLogLevelWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLogLevelResponse, error)
GetLogLevelWithResponse request returning *GetLogLevelResponse
func (*ClientWithResponses) GetSegmentBlobWithResponse ¶
func (c *ClientWithResponses) GetSegmentBlobWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*GetSegmentBlobResponse, error)
GetSegmentBlobWithResponse request returning *GetSegmentBlobResponse
func (*ClientWithResponses) GetSegmentWithResponse ¶
func (c *ClientWithResponses) GetSegmentWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*GetSegmentResponse, error)
GetSegmentWithResponse request returning *GetSegmentResponse
func (*ClientWithResponses) GetSegmentsWithResponse ¶
func (c *ClientWithResponses) GetSegmentsWithResponse(ctx context.Context, params *GetSegmentsParams, reqEditors ...RequestEditorFn) (*GetSegmentsResponse, error)
GetSegmentsWithResponse request returning *GetSegmentsResponse
func (*ClientWithResponses) GetSignerChainWithResponse ¶
func (c *ClientWithResponses) GetSignerChainWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSignerChainResponse, error)
GetSignerChainWithResponse request returning *GetSignerChainResponse
func (*ClientWithResponses) GetSignerWithResponse ¶
func (c *ClientWithResponses) GetSignerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSignerResponse, error)
GetSignerWithResponse request returning *GetSignerResponse
func (*ClientWithResponses) GetTopologyWithResponse ¶
func (c *ClientWithResponses) GetTopologyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTopologyResponse, error)
GetTopologyWithResponse request returning *GetTopologyResponse
func (*ClientWithResponses) GetTrcBlobWithResponse ¶
func (c *ClientWithResponses) GetTrcBlobWithResponse(ctx context.Context, isd int, base int, serial int, reqEditors ...RequestEditorFn) (*GetTrcBlobResponse, error)
GetTrcBlobWithResponse request returning *GetTrcBlobResponse
func (*ClientWithResponses) GetTrcWithResponse ¶
func (c *ClientWithResponses) GetTrcWithResponse(ctx context.Context, isd int, base int, serial int, reqEditors ...RequestEditorFn) (*GetTrcResponse, error)
GetTrcWithResponse request returning *GetTrcResponse
func (*ClientWithResponses) GetTrcsWithResponse ¶
func (c *ClientWithResponses) GetTrcsWithResponse(ctx context.Context, params *GetTrcsParams, reqEditors ...RequestEditorFn) (*GetTrcsResponse, error)
GetTrcsWithResponse request returning *GetTrcsResponse
func (*ClientWithResponses) SetLogLevelWithBodyWithResponse ¶
func (c *ClientWithResponses) SetLogLevelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetLogLevelResponse, error)
SetLogLevelWithBodyWithResponse request with arbitrary body returning *SetLogLevelResponse
func (*ClientWithResponses) SetLogLevelWithResponse ¶
func (c *ClientWithResponses) SetLogLevelWithResponse(ctx context.Context, body SetLogLevelJSONRequestBody, reqEditors ...RequestEditorFn) (*SetLogLevelResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetBeaconsWithResponse request GetBeaconsWithResponse(ctx context.Context, params *GetBeaconsParams, reqEditors ...RequestEditorFn) (*GetBeaconsResponse, error) // DeleteBeaconWithResponse request DeleteBeaconWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*DeleteBeaconResponse, error) // GetBeaconWithResponse request GetBeaconWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*GetBeaconResponse, error) // GetBeaconBlobWithResponse request GetBeaconBlobWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*GetBeaconBlobResponse, error) // GetCaWithResponse request GetCaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaResponse, error) // GetCertificatesWithResponse request GetCertificatesWithResponse(ctx context.Context, params *GetCertificatesParams, reqEditors ...RequestEditorFn) (*GetCertificatesResponse, error) // GetCertificateWithResponse request GetCertificateWithResponse(ctx context.Context, chainId ChainID, reqEditors ...RequestEditorFn) (*GetCertificateResponse, error) // GetCertificateBlobWithResponse request GetCertificateBlobWithResponse(ctx context.Context, chainId ChainID, reqEditors ...RequestEditorFn) (*GetCertificateBlobResponse, error) // GetConfigWithResponse request GetConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConfigResponse, error) // GetHealthWithResponse request GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error) // GetInfoWithResponse request GetInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInfoResponse, error) // GetLogLevelWithResponse request GetLogLevelWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLogLevelResponse, error) // SetLogLevelWithBodyWithResponse request with any body SetLogLevelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetLogLevelResponse, error) SetLogLevelWithResponse(ctx context.Context, body SetLogLevelJSONRequestBody, reqEditors ...RequestEditorFn) (*SetLogLevelResponse, error) // GetSegmentsWithResponse request GetSegmentsWithResponse(ctx context.Context, params *GetSegmentsParams, reqEditors ...RequestEditorFn) (*GetSegmentsResponse, error) // DeleteSegmentWithResponse request DeleteSegmentWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*DeleteSegmentResponse, error) // GetSegmentWithResponse request GetSegmentWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*GetSegmentResponse, error) // GetSegmentBlobWithResponse request GetSegmentBlobWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*GetSegmentBlobResponse, error) // GetSignerWithResponse request GetSignerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSignerResponse, error) // GetSignerChainWithResponse request GetSignerChainWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSignerChainResponse, error) // GetTopologyWithResponse request GetTopologyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTopologyResponse, error) // GetTrcsWithResponse request GetTrcsWithResponse(ctx context.Context, params *GetTrcsParams, reqEditors ...RequestEditorFn) (*GetTrcsResponse, error) // GetTrcWithResponse request GetTrcWithResponse(ctx context.Context, isd int, base int, serial int, reqEditors ...RequestEditorFn) (*GetTrcResponse, error) // GetTrcBlobWithResponse request GetTrcBlobWithResponse(ctx context.Context, isd int, base int, serial int, reqEditors ...RequestEditorFn) (*GetTrcBlobResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DeleteBeaconResponse ¶ added in v0.11.0
type DeleteBeaconResponse struct { Body []byte HTTPResponse *http.Response JSON400 *BadRequest JSON500 *Internal }
func ParseDeleteBeaconResponse ¶ added in v0.11.0
func ParseDeleteBeaconResponse(rsp *http.Response) (*DeleteBeaconResponse, error)
ParseDeleteBeaconResponse parses an HTTP response from a DeleteBeaconWithResponse call
func (DeleteBeaconResponse) Status ¶ added in v0.11.0
func (r DeleteBeaconResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteBeaconResponse) StatusCode ¶ added in v0.11.0
func (r DeleteBeaconResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSegmentResponse ¶ added in v0.11.0
type DeleteSegmentResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *Problem ApplicationproblemJSON500 *Problem }
func ParseDeleteSegmentResponse ¶ added in v0.11.0
func ParseDeleteSegmentResponse(rsp *http.Response) (*DeleteSegmentResponse, error)
ParseDeleteSegmentResponse parses an HTTP response from a DeleteSegmentWithResponse call
func (DeleteSegmentResponse) Status ¶ added in v0.11.0
func (r DeleteSegmentResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSegmentResponse) StatusCode ¶ added in v0.11.0
func (r DeleteSegmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBeaconBlobResponse ¶
type GetBeaconBlobResponse struct { Body []byte HTTPResponse *http.Response JSON400 *BadRequest }
func ParseGetBeaconBlobResponse ¶
func ParseGetBeaconBlobResponse(rsp *http.Response) (*GetBeaconBlobResponse, error)
ParseGetBeaconBlobResponse parses an HTTP response from a GetBeaconBlobWithResponse call
func (GetBeaconBlobResponse) Status ¶
func (r GetBeaconBlobResponse) Status() string
Status returns HTTPResponse.Status
func (GetBeaconBlobResponse) StatusCode ¶
func (r GetBeaconBlobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBeaconResponse ¶
type GetBeaconResponse struct { Body []byte HTTPResponse *http.Response JSON200 *BeaconGetResponseJson JSON400 *BadRequest }
func ParseGetBeaconResponse ¶
func ParseGetBeaconResponse(rsp *http.Response) (*GetBeaconResponse, error)
ParseGetBeaconResponse parses an HTTP response from a GetBeaconWithResponse call
func (GetBeaconResponse) Status ¶
func (r GetBeaconResponse) Status() string
Status returns HTTPResponse.Status
func (GetBeaconResponse) StatusCode ¶
func (r GetBeaconResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBeaconsParams ¶
type GetBeaconsParams struct { // StartIsdAs Start ISD-AS of beacons. The address can include wildcards (0) both for the ISD and AS identifier. StartIsdAs *IsdAs `form:"start_isd_as,omitempty" json:"start_isd_as,omitempty"` // Usages Minimum allowed usages of the returned beacons. Only beacons that are allowed in all the usages in the list will be returned. Usages *BeaconUsages `form:"usages,omitempty" json:"usages,omitempty"` // IngressInterface Ingress interface id. IngressInterface *int `form:"ingress_interface,omitempty" json:"ingress_interface,omitempty"` // ValidAt Timestamp at which returned beacons are valid. If unset then the current datetime is used. This only has an effect if `all=false`. ValidAt *time.Time `form:"valid_at,omitempty" json:"valid_at,omitempty"` // All Include beacons regardless of expiration and creation time. All *bool `form:"all,omitempty" json:"all,omitempty"` // Desc Whether to reverse the sort order (ascending by default). Desc *bool `form:"desc,omitempty" json:"desc,omitempty"` // Sort Attribute by which results are sorted. The value `start_isd_as` refers to the ISD-AS identifier of the first hop. Sort *GetBeaconsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` }
GetBeaconsParams defines parameters for GetBeacons.
type GetBeaconsParamsSort ¶
type GetBeaconsParamsSort string
GetBeaconsParamsSort defines parameters for GetBeacons.
const ( Expiration GetBeaconsParamsSort = "expiration" IngressInterface GetBeaconsParamsSort = "ingress_interface" LastUpdated GetBeaconsParamsSort = "last_updated" StartIsdAs GetBeaconsParamsSort = "start_isd_as" Timestamp GetBeaconsParamsSort = "timestamp" )
Defines values for GetBeaconsParamsSort.
type GetBeaconsResponse ¶
type GetBeaconsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Beacons *[]Beacon `json:"beacons,omitempty"` } JSON400 *BadRequest }
func ParseGetBeaconsResponse ¶
func ParseGetBeaconsResponse(rsp *http.Response) (*GetBeaconsResponse, error)
ParseGetBeaconsResponse parses an HTTP response from a GetBeaconsWithResponse call
func (GetBeaconsResponse) Status ¶
func (r GetBeaconsResponse) Status() string
Status returns HTTPResponse.Status
func (GetBeaconsResponse) StatusCode ¶
func (r GetBeaconsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCaResponse ¶
type GetCaResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CA JSON400 *BadRequest }
func ParseGetCaResponse ¶
func ParseGetCaResponse(rsp *http.Response) (*GetCaResponse, error)
ParseGetCaResponse parses an HTTP response from a GetCaWithResponse call
func (GetCaResponse) Status ¶
func (r GetCaResponse) Status() string
Status returns HTTPResponse.Status
func (GetCaResponse) StatusCode ¶
func (r GetCaResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCertificateBlobResponse ¶
type GetCertificateBlobResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *Problem }
func ParseGetCertificateBlobResponse ¶
func ParseGetCertificateBlobResponse(rsp *http.Response) (*GetCertificateBlobResponse, error)
ParseGetCertificateBlobResponse parses an HTTP response from a GetCertificateBlobWithResponse call
func (GetCertificateBlobResponse) Status ¶
func (r GetCertificateBlobResponse) Status() string
Status returns HTTPResponse.Status
func (GetCertificateBlobResponse) StatusCode ¶
func (r GetCertificateBlobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCertificateResponse ¶
type GetCertificateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Chain ApplicationproblemJSON400 *Problem }
func ParseGetCertificateResponse ¶
func ParseGetCertificateResponse(rsp *http.Response) (*GetCertificateResponse, error)
ParseGetCertificateResponse parses an HTTP response from a GetCertificateWithResponse call
func (GetCertificateResponse) Status ¶
func (r GetCertificateResponse) Status() string
Status returns HTTPResponse.Status
func (GetCertificateResponse) StatusCode ¶
func (r GetCertificateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCertificatesParams ¶
type GetCertificatesParams struct { IsdAs *IsdAs `form:"isd_as,omitempty" json:"isd_as,omitempty"` ValidAt *time.Time `form:"valid_at,omitempty" json:"valid_at,omitempty"` All *bool `form:"all,omitempty" json:"all,omitempty"` }
GetCertificatesParams defines parameters for GetCertificates.
type GetCertificatesResponse ¶
type GetCertificatesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]ChainBrief ApplicationproblemJSON400 *Problem }
func ParseGetCertificatesResponse ¶
func ParseGetCertificatesResponse(rsp *http.Response) (*GetCertificatesResponse, error)
ParseGetCertificatesResponse parses an HTTP response from a GetCertificatesWithResponse call
func (GetCertificatesResponse) Status ¶
func (r GetCertificatesResponse) Status() string
Status returns HTTPResponse.Status
func (GetCertificatesResponse) StatusCode ¶
func (r GetCertificatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetConfigResponse ¶
type GetConfigResponse struct { Body []byte HTTPResponse *http.Response JSON400 *BadRequest }
func ParseGetConfigResponse ¶
func ParseGetConfigResponse(rsp *http.Response) (*GetConfigResponse, error)
ParseGetConfigResponse parses an HTTP response from a GetConfigWithResponse call
func (GetConfigResponse) Status ¶
func (r GetConfigResponse) Status() string
Status returns HTTPResponse.Status
func (GetConfigResponse) StatusCode ¶
func (r GetConfigResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHealthResponse ¶
type GetHealthResponse struct { Body []byte HTTPResponse *http.Response JSON200 *HealthResponse JSON400 *BadRequest }
func ParseGetHealthResponse ¶
func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)
ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call
func (GetHealthResponse) Status ¶
func (r GetHealthResponse) Status() string
Status returns HTTPResponse.Status
func (GetHealthResponse) StatusCode ¶
func (r GetHealthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInfoResponse ¶
type GetInfoResponse struct { Body []byte HTTPResponse *http.Response JSON400 *BadRequest }
func ParseGetInfoResponse ¶
func ParseGetInfoResponse(rsp *http.Response) (*GetInfoResponse, error)
ParseGetInfoResponse parses an HTTP response from a GetInfoWithResponse call
func (GetInfoResponse) Status ¶
func (r GetInfoResponse) Status() string
Status returns HTTPResponse.Status
func (GetInfoResponse) StatusCode ¶
func (r GetInfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLogLevelResponse ¶
type GetLogLevelResponse struct { Body []byte HTTPResponse *http.Response JSON200 *LogLevel JSON400 *BadRequest }
func ParseGetLogLevelResponse ¶
func ParseGetLogLevelResponse(rsp *http.Response) (*GetLogLevelResponse, error)
ParseGetLogLevelResponse parses an HTTP response from a GetLogLevelWithResponse call
func (GetLogLevelResponse) Status ¶
func (r GetLogLevelResponse) Status() string
Status returns HTTPResponse.Status
func (GetLogLevelResponse) StatusCode ¶
func (r GetLogLevelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSegmentBlobResponse ¶
type GetSegmentBlobResponse struct { Body []byte HTTPResponse *http.Response ApplicationproblemJSON400 *Problem }
func ParseGetSegmentBlobResponse ¶
func ParseGetSegmentBlobResponse(rsp *http.Response) (*GetSegmentBlobResponse, error)
ParseGetSegmentBlobResponse parses an HTTP response from a GetSegmentBlobWithResponse call
func (GetSegmentBlobResponse) Status ¶
func (r GetSegmentBlobResponse) Status() string
Status returns HTTPResponse.Status
func (GetSegmentBlobResponse) StatusCode ¶
func (r GetSegmentBlobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSegmentResponse ¶
type GetSegmentResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Segment ApplicationproblemJSON400 *Problem }
func ParseGetSegmentResponse ¶
func ParseGetSegmentResponse(rsp *http.Response) (*GetSegmentResponse, error)
ParseGetSegmentResponse parses an HTTP response from a GetSegmentWithResponse call
func (GetSegmentResponse) Status ¶
func (r GetSegmentResponse) Status() string
Status returns HTTPResponse.Status
func (GetSegmentResponse) StatusCode ¶
func (r GetSegmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSegmentsParams ¶
type GetSegmentsParams struct { // StartIsdAs Start ISD-AS of segment. StartIsdAs *IsdAs `form:"start_isd_as,omitempty" json:"start_isd_as,omitempty"` // EndIsdAs Terminal AS of segment. EndIsdAs *IsdAs `form:"end_isd_as,omitempty" json:"end_isd_as,omitempty"` }
GetSegmentsParams defines parameters for GetSegments.
type GetSegmentsResponse ¶
type GetSegmentsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]SegmentBrief ApplicationproblemJSON400 *Problem }
func ParseGetSegmentsResponse ¶
func ParseGetSegmentsResponse(rsp *http.Response) (*GetSegmentsResponse, error)
ParseGetSegmentsResponse parses an HTTP response from a GetSegmentsWithResponse call
func (GetSegmentsResponse) Status ¶
func (r GetSegmentsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSegmentsResponse) StatusCode ¶
func (r GetSegmentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSignerChainResponse ¶
type GetSignerChainResponse struct { Body []byte HTTPResponse *http.Response JSON400 *BadRequest }
func ParseGetSignerChainResponse ¶
func ParseGetSignerChainResponse(rsp *http.Response) (*GetSignerChainResponse, error)
ParseGetSignerChainResponse parses an HTTP response from a GetSignerChainWithResponse call
func (GetSignerChainResponse) Status ¶
func (r GetSignerChainResponse) Status() string
Status returns HTTPResponse.Status
func (GetSignerChainResponse) StatusCode ¶
func (r GetSignerChainResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSignerResponse ¶
type GetSignerResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Signer JSON400 *BadRequest }
func ParseGetSignerResponse ¶
func ParseGetSignerResponse(rsp *http.Response) (*GetSignerResponse, error)
ParseGetSignerResponse parses an HTTP response from a GetSignerWithResponse call
func (GetSignerResponse) Status ¶
func (r GetSignerResponse) Status() string
Status returns HTTPResponse.Status
func (GetSignerResponse) StatusCode ¶
func (r GetSignerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTopologyResponse ¶
type GetTopologyResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Topology JSON400 *BadRequest }
func ParseGetTopologyResponse ¶
func ParseGetTopologyResponse(rsp *http.Response) (*GetTopologyResponse, error)
ParseGetTopologyResponse parses an HTTP response from a GetTopologyWithResponse call
func (GetTopologyResponse) Status ¶
func (r GetTopologyResponse) Status() string
Status returns HTTPResponse.Status
func (GetTopologyResponse) StatusCode ¶
func (r GetTopologyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTrcBlobResponse ¶
type GetTrcBlobResponse struct { Body []byte HTTPResponse *http.Response JSON400 *BadRequest }
func ParseGetTrcBlobResponse ¶
func ParseGetTrcBlobResponse(rsp *http.Response) (*GetTrcBlobResponse, error)
ParseGetTrcBlobResponse parses an HTTP response from a GetTrcBlobWithResponse call
func (GetTrcBlobResponse) Status ¶
func (r GetTrcBlobResponse) Status() string
Status returns HTTPResponse.Status
func (GetTrcBlobResponse) StatusCode ¶
func (r GetTrcBlobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTrcResponse ¶
type GetTrcResponse struct { Body []byte HTTPResponse *http.Response JSON200 *TRC JSON400 *BadRequest }
func ParseGetTrcResponse ¶
func ParseGetTrcResponse(rsp *http.Response) (*GetTrcResponse, error)
ParseGetTrcResponse parses an HTTP response from a GetTrcWithResponse call
func (GetTrcResponse) Status ¶
func (r GetTrcResponse) Status() string
Status returns HTTPResponse.Status
func (GetTrcResponse) StatusCode ¶
func (r GetTrcResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTrcsParams ¶
type GetTrcsParams struct { Isd *[]int `form:"isd,omitempty" json:"isd,omitempty"` All *bool `form:"all,omitempty" json:"all,omitempty"` }
GetTrcsParams defines parameters for GetTrcs.
type GetTrcsResponse ¶
type GetTrcsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]TRCBrief JSON400 *BadRequest }
func ParseGetTrcsResponse ¶
func ParseGetTrcsResponse(rsp *http.Response) (*GetTrcsResponse, error)
ParseGetTrcsResponse parses an HTTP response from a GetTrcsWithResponse call
func (GetTrcsResponse) Status ¶
func (r GetTrcsResponse) Status() string
Status returns HTTPResponse.Status
func (GetTrcsResponse) StatusCode ¶
func (r GetTrcsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Health ¶
type Health struct { // Checks List of health checks. Checks []Check `json:"checks"` Status Status `json:"status"` }
Health defines model for Health.
type HealthResponse ¶
type HealthResponse struct {
Health Health `json:"health"`
}
HealthResponse defines model for HealthResponse.
type Healther ¶
type Healther interface { GetSignerHealth(context.Context) SignerHealthData GetTRCHealth(context.Context) TRCHealthData GetCAHealth(context.Context) (CAHealthStatus, bool) }
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type LogLevel ¶
type LogLevel struct { // Level Logging level Level LogLevelLevel `json:"level"` }
LogLevel defines model for LogLevel.
type LogLevelLevel ¶
type LogLevelLevel string
LogLevelLevel Logging level
const ( Debug LogLevelLevel = "debug" Error LogLevelLevel = "error" Info LogLevelLevel = "info" )
Defines values for LogLevelLevel.
type Policy ¶
type Policy struct {
ChainLifetime string `json:"chain_lifetime"`
}
Policy defines model for Policy.
type Problem ¶
type Problem struct { // Detail A human readable explanation specific to this occurrence of the problem that is helpful to locate the problem and give advice on how to proceed. Written in English and readable for engineers, usually not suited for non technical stakeholders and not localized. Detail *string `json:"detail,omitempty"` // Instance A URI reference that identifies the specific occurrence of the problem, e.g. by adding a fragment identifier or sub-path to the problem type. May be used to locate the root of this problem in the source code. Instance *string `json:"instance,omitempty"` // Status The HTTP status code generated by the origin server for this occurrence of the problem. Status int `json:"status"` // Title A short summary of the problem type. Written in English and readable for engineers, usually not suited for non technical stakeholders and not localized. Title string `json:"title"` // Type A URI reference that uniquely identifies the problem type only in the context of the provided API. Opposed to the specification in RFC-7807, it is neither recommended to be dereferencable and point to a human-readable documentation nor globally unique for the problem type. Type *string `json:"type,omitempty"` }
Problem defines model for Problem.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type Segment ¶
type Segment struct { Expiration time.Time `json:"expiration"` Hops []Hop `json:"hops"` Id SegmentID `json:"id"` LastUpdated time.Time `json:"last_updated"` Timestamp time.Time `json:"timestamp"` }
Segment defines model for Segment.
type SegmentBrief ¶
type SegmentBrief struct { EndIsdAs IsdAs `json:"end_isd_as"` Id SegmentID `json:"id"` // Length Length of the segment. Length int `json:"length"` StartIsdAs IsdAs `json:"start_isd_as"` }
SegmentBrief defines model for SegmentBrief.
type Server ¶
type Server struct { SegmentsServer segapi.Server CPPKIServer cppkiapi.Server Beacons BeaconStore CA renewal.ChainBuilder Config http.HandlerFunc Info http.HandlerFunc LogLevel http.HandlerFunc Signer cstrust.RenewingSigner Topology http.HandlerFunc TrustDB storage.TrustDB Healther Healther // contains filtered or unexported fields }
Server implements the Control Service API.
func (*Server) DeleteBeacon ¶ added in v0.11.0
func (*Server) DeleteSegment ¶ added in v0.11.0
func (*Server) GetBeaconBlob ¶
func (*Server) GetBeacons ¶
func (s *Server) GetBeacons(w http.ResponseWriter, r *http.Request, params GetBeaconsParams)
GetBeacons gets the stored in the BeaconDB.
func (*Server) GetCa ¶
func (s *Server) GetCa(w http.ResponseWriter, r *http.Request)
GetCa gets the CA info.
func (*Server) GetCertificate ¶
GetCertificate lists the certificate chain for a given ChainID.
func (*Server) GetCertificateBlob ¶
GetCertificateBlob gnerates a certificate chain blob response encoded as PEM for a given chainId.
func (*Server) GetCertificates ¶
func (s *Server) GetCertificates(w http.ResponseWriter, r *http.Request, params GetCertificatesParams)
GetCertificates lists the certificate chains.
func (*Server) GetConfig ¶
func (s *Server) GetConfig(w http.ResponseWriter, r *http.Request)
GetConfig is an indirection to the http handler.
func (*Server) GetInfo ¶
func (s *Server) GetInfo(w http.ResponseWriter, r *http.Request)
GetInfo is an indirection to the http handler.
func (*Server) GetLogLevel ¶
func (s *Server) GetLogLevel(w http.ResponseWriter, r *http.Request)
GetLogLevel is an indirection to the http handler.
func (*Server) GetSegment ¶
func (*Server) GetSegmentBlob ¶
func (*Server) GetSegments ¶
func (s *Server) GetSegments(w http.ResponseWriter, r *http.Request, params GetSegmentsParams)
GetSegments gets the stored in the PathDB.
func (*Server) GetSigner ¶
func (s *Server) GetSigner(w http.ResponseWriter, r *http.Request)
GetSigner generates the singer response content.
func (*Server) GetSignerChain ¶
func (s *Server) GetSignerChain(w http.ResponseWriter, r *http.Request)
GetSignerChain generates a certificate chain blob response encoded as PEM.
func (*Server) GetTopology ¶
func (s *Server) GetTopology(w http.ResponseWriter, r *http.Request)
GetTopology is an indirection to the http handler.
func (*Server) GetTrcBlob ¶
GetTrcBlob gets the trc encoded pem blob.
func (*Server) GetTrcs ¶
func (s *Server) GetTrcs( w http.ResponseWriter, r *http.Request, params GetTrcsParams, )
GetTrcs gets the trcs specified by it's params.
func (*Server) SetLogLevel ¶
func (s *Server) SetLogLevel(w http.ResponseWriter, r *http.Request)
SetLogLevel is an indirection to the http handler.
type ServerInterface ¶
type ServerInterface interface { // List the SCION beacons // (GET /beacons) GetBeacons(w http.ResponseWriter, r *http.Request, params GetBeaconsParams) // Delete the SCION beacon // (DELETE /beacons/{segment-id}) DeleteBeacon(w http.ResponseWriter, r *http.Request, segmentId SegmentID) // Get the SCION beacon description // (GET /beacons/{segment-id}) GetBeacon(w http.ResponseWriter, r *http.Request, segmentId SegmentID) // Get the SCION beacon blob // (GET /beacons/{segment-id}/blob) GetBeaconBlob(w http.ResponseWriter, r *http.Request, segmentId SegmentID) // Information about the CA. // (GET /ca) GetCa(w http.ResponseWriter, r *http.Request) // List the certificate chains // (GET /certificates) GetCertificates(w http.ResponseWriter, r *http.Request, params GetCertificatesParams) // Get the certificate chain // (GET /certificates/{chain-id}) GetCertificate(w http.ResponseWriter, r *http.Request, chainId ChainID) // Get the certificate chain blob // (GET /certificates/{chain-id}/blob) GetCertificateBlob(w http.ResponseWriter, r *http.Request, chainId ChainID) // Prints the TOML configuration file. // (GET /config) GetConfig(w http.ResponseWriter, r *http.Request) // Indicate the service health. // (GET /health) GetHealth(w http.ResponseWriter, r *http.Request) // Basic information page about the control service process. // (GET /info) GetInfo(w http.ResponseWriter, r *http.Request) // Get logging level // (GET /log/level) GetLogLevel(w http.ResponseWriter, r *http.Request) // Set logging level // (PUT /log/level) SetLogLevel(w http.ResponseWriter, r *http.Request) // List the SCION path segments // (GET /segments) GetSegments(w http.ResponseWriter, r *http.Request, params GetSegmentsParams) // Delete the SCION path segment // (DELETE /segments/{segment-id}) DeleteSegment(w http.ResponseWriter, r *http.Request, segmentId SegmentID) // Get the SCION path segment description // (GET /segments/{segment-id}) GetSegment(w http.ResponseWriter, r *http.Request, segmentId SegmentID) // Get the SCION path segment blob // (GET /segments/{segment-id}/blob) GetSegmentBlob(w http.ResponseWriter, r *http.Request, segmentId SegmentID) // Prints information about the AS Certificate used to sign the control-plane message. // (GET /signer) GetSigner(w http.ResponseWriter, r *http.Request) // Get the certificate chain blob // (GET /signer/blob) GetSignerChain(w http.ResponseWriter, r *http.Request) // Prints the contents of the AS topology file. // (GET /topology) GetTopology(w http.ResponseWriter, r *http.Request) // List the TRCs // (GET /trcs) GetTrcs(w http.ResponseWriter, r *http.Request, params GetTrcsParams) // Get the TRC // (GET /trcs/isd{isd}-b{base}-s{serial}) GetTrc(w http.ResponseWriter, r *http.Request, isd int, base int, serial int) // Get the TRC blob // (GET /trcs/isd{isd}-b{base}-s{serial}/blob) GetTrcBlob(w http.ResponseWriter, r *http.Request, isd int, base int, serial int) }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) DeleteBeacon ¶ added in v0.11.0
func (siw *ServerInterfaceWrapper) DeleteBeacon(w http.ResponseWriter, r *http.Request)
DeleteBeacon operation middleware
func (*ServerInterfaceWrapper) DeleteSegment ¶ added in v0.11.0
func (siw *ServerInterfaceWrapper) DeleteSegment(w http.ResponseWriter, r *http.Request)
DeleteSegment operation middleware
func (*ServerInterfaceWrapper) GetBeacon ¶
func (siw *ServerInterfaceWrapper) GetBeacon(w http.ResponseWriter, r *http.Request)
GetBeacon operation middleware
func (*ServerInterfaceWrapper) GetBeaconBlob ¶
func (siw *ServerInterfaceWrapper) GetBeaconBlob(w http.ResponseWriter, r *http.Request)
GetBeaconBlob operation middleware
func (*ServerInterfaceWrapper) GetBeacons ¶
func (siw *ServerInterfaceWrapper) GetBeacons(w http.ResponseWriter, r *http.Request)
GetBeacons operation middleware
func (*ServerInterfaceWrapper) GetCa ¶
func (siw *ServerInterfaceWrapper) GetCa(w http.ResponseWriter, r *http.Request)
GetCa operation middleware
func (*ServerInterfaceWrapper) GetCertificate ¶
func (siw *ServerInterfaceWrapper) GetCertificate(w http.ResponseWriter, r *http.Request)
GetCertificate operation middleware
func (*ServerInterfaceWrapper) GetCertificateBlob ¶
func (siw *ServerInterfaceWrapper) GetCertificateBlob(w http.ResponseWriter, r *http.Request)
GetCertificateBlob operation middleware
func (*ServerInterfaceWrapper) GetCertificates ¶
func (siw *ServerInterfaceWrapper) GetCertificates(w http.ResponseWriter, r *http.Request)
GetCertificates operation middleware
func (*ServerInterfaceWrapper) GetConfig ¶
func (siw *ServerInterfaceWrapper) GetConfig(w http.ResponseWriter, r *http.Request)
GetConfig operation middleware
func (*ServerInterfaceWrapper) GetHealth ¶
func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)
GetHealth operation middleware
func (*ServerInterfaceWrapper) GetInfo ¶
func (siw *ServerInterfaceWrapper) GetInfo(w http.ResponseWriter, r *http.Request)
GetInfo operation middleware
func (*ServerInterfaceWrapper) GetLogLevel ¶
func (siw *ServerInterfaceWrapper) GetLogLevel(w http.ResponseWriter, r *http.Request)
GetLogLevel operation middleware
func (*ServerInterfaceWrapper) GetSegment ¶
func (siw *ServerInterfaceWrapper) GetSegment(w http.ResponseWriter, r *http.Request)
GetSegment operation middleware
func (*ServerInterfaceWrapper) GetSegmentBlob ¶
func (siw *ServerInterfaceWrapper) GetSegmentBlob(w http.ResponseWriter, r *http.Request)
GetSegmentBlob operation middleware
func (*ServerInterfaceWrapper) GetSegments ¶
func (siw *ServerInterfaceWrapper) GetSegments(w http.ResponseWriter, r *http.Request)
GetSegments operation middleware
func (*ServerInterfaceWrapper) GetSigner ¶
func (siw *ServerInterfaceWrapper) GetSigner(w http.ResponseWriter, r *http.Request)
GetSigner operation middleware
func (*ServerInterfaceWrapper) GetSignerChain ¶
func (siw *ServerInterfaceWrapper) GetSignerChain(w http.ResponseWriter, r *http.Request)
GetSignerChain operation middleware
func (*ServerInterfaceWrapper) GetTopology ¶
func (siw *ServerInterfaceWrapper) GetTopology(w http.ResponseWriter, r *http.Request)
GetTopology operation middleware
func (*ServerInterfaceWrapper) GetTrc ¶
func (siw *ServerInterfaceWrapper) GetTrc(w http.ResponseWriter, r *http.Request)
GetTrc operation middleware
func (*ServerInterfaceWrapper) GetTrcBlob ¶
func (siw *ServerInterfaceWrapper) GetTrcBlob(w http.ResponseWriter, r *http.Request)
GetTrcBlob operation middleware
func (*ServerInterfaceWrapper) GetTrcs ¶
func (siw *ServerInterfaceWrapper) GetTrcs(w http.ResponseWriter, r *http.Request)
GetTrcs operation middleware
func (*ServerInterfaceWrapper) SetLogLevel ¶
func (siw *ServerInterfaceWrapper) SetLogLevel(w http.ResponseWriter, r *http.Request)
SetLogLevel operation middleware
type SetLogLevelJSONRequestBody ¶
type SetLogLevelJSONRequestBody = LogLevel
SetLogLevelJSONRequestBody defines body for SetLogLevel for application/json ContentType.
type SetLogLevelResponse ¶
type SetLogLevelResponse struct { Body []byte HTTPResponse *http.Response JSON200 *LogLevel JSON400 *BadRequest }
func ParseSetLogLevelResponse ¶
func ParseSetLogLevelResponse(rsp *http.Response) (*SetLogLevelResponse, error)
ParseSetLogLevelResponse parses an HTTP response from a SetLogLevelWithResponse call
func (SetLogLevelResponse) Status ¶
func (r SetLogLevelResponse) Status() string
Status returns HTTPResponse.Status
func (SetLogLevelResponse) StatusCode ¶
func (r SetLogLevelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Signer ¶
type Signer struct { AsCertificate Certificate `json:"as_certificate"` // Expiration Signer expiration imposed by chain and TRC validity. Expiration time.Time `json:"expiration"` TrcId TRCID `json:"trc_id"` // TrcInGracePeriod TRC used as trust root is in grace period, and the latest TRC cannot // be used as trust root. TrcInGracePeriod bool `json:"trc_in_grace_period"` }
Signer defines model for Signer.
type SignerHealthData ¶
type SignerHealthData struct { SignerMissing bool SignerMissingDetail string Expiration time.Time InGrace bool }
SignerHealthData is used to extract the relevant signer data for the signer health check.
type StandardError ¶
type StandardError struct { // Error Error message Error string `json:"error"` }
StandardError defines model for StandardError.
type Subject ¶
type Subject struct {
IsdAs IsdAs `json:"isd_as"`
}
Subject defines model for Subject.
type TRC ¶
type TRC struct { AuthoritativeAses []IsdAs `json:"authoritative_ases"` CoreAses []IsdAs `json:"core_ases"` Description string `json:"description"` Id TRCID `json:"id"` Validity Validity `json:"validity"` }
TRC defines model for TRC.
type TRCHealthData ¶
TRCHealthData is used to extract the relevant TRC data for the TRC health check.
type TRCID ¶
type TRCID struct { BaseNumber int `json:"base_number"` Isd int `json:"isd"` SerialNumber int `json:"serial_number"` }
TRCID defines model for TRCID.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type Unimplemented ¶ added in v0.10.0
type Unimplemented struct{}
func (Unimplemented) DeleteBeacon ¶ added in v0.11.0
func (_ Unimplemented) DeleteBeacon(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
Delete the SCION beacon (DELETE /beacons/{segment-id})
func (Unimplemented) DeleteSegment ¶ added in v0.11.0
func (_ Unimplemented) DeleteSegment(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
Delete the SCION path segment (DELETE /segments/{segment-id})
func (Unimplemented) GetBeacon ¶ added in v0.10.0
func (_ Unimplemented) GetBeacon(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
Get the SCION beacon description (GET /beacons/{segment-id})
func (Unimplemented) GetBeaconBlob ¶ added in v0.10.0
func (_ Unimplemented) GetBeaconBlob(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
Get the SCION beacon blob (GET /beacons/{segment-id}/blob)
func (Unimplemented) GetBeacons ¶ added in v0.10.0
func (_ Unimplemented) GetBeacons(w http.ResponseWriter, r *http.Request, params GetBeaconsParams)
List the SCION beacons (GET /beacons)
func (Unimplemented) GetCa ¶ added in v0.10.0
func (_ Unimplemented) GetCa(w http.ResponseWriter, r *http.Request)
Information about the CA. (GET /ca)
func (Unimplemented) GetCertificate ¶ added in v0.10.0
func (_ Unimplemented) GetCertificate(w http.ResponseWriter, r *http.Request, chainId ChainID)
Get the certificate chain (GET /certificates/{chain-id})
func (Unimplemented) GetCertificateBlob ¶ added in v0.10.0
func (_ Unimplemented) GetCertificateBlob(w http.ResponseWriter, r *http.Request, chainId ChainID)
Get the certificate chain blob (GET /certificates/{chain-id}/blob)
func (Unimplemented) GetCertificates ¶ added in v0.10.0
func (_ Unimplemented) GetCertificates(w http.ResponseWriter, r *http.Request, params GetCertificatesParams)
List the certificate chains (GET /certificates)
func (Unimplemented) GetConfig ¶ added in v0.10.0
func (_ Unimplemented) GetConfig(w http.ResponseWriter, r *http.Request)
Prints the TOML configuration file. (GET /config)
func (Unimplemented) GetHealth ¶ added in v0.10.0
func (_ Unimplemented) GetHealth(w http.ResponseWriter, r *http.Request)
Indicate the service health. (GET /health)
func (Unimplemented) GetInfo ¶ added in v0.10.0
func (_ Unimplemented) GetInfo(w http.ResponseWriter, r *http.Request)
Basic information page about the control service process. (GET /info)
func (Unimplemented) GetLogLevel ¶ added in v0.10.0
func (_ Unimplemented) GetLogLevel(w http.ResponseWriter, r *http.Request)
Get logging level (GET /log/level)
func (Unimplemented) GetSegment ¶ added in v0.10.0
func (_ Unimplemented) GetSegment(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
Get the SCION path segment description (GET /segments/{segment-id})
func (Unimplemented) GetSegmentBlob ¶ added in v0.10.0
func (_ Unimplemented) GetSegmentBlob(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
Get the SCION path segment blob (GET /segments/{segment-id}/blob)
func (Unimplemented) GetSegments ¶ added in v0.10.0
func (_ Unimplemented) GetSegments(w http.ResponseWriter, r *http.Request, params GetSegmentsParams)
List the SCION path segments (GET /segments)
func (Unimplemented) GetSigner ¶ added in v0.10.0
func (_ Unimplemented) GetSigner(w http.ResponseWriter, r *http.Request)
Prints information about the AS Certificate used to sign the control-plane message. (GET /signer)
func (Unimplemented) GetSignerChain ¶ added in v0.10.0
func (_ Unimplemented) GetSignerChain(w http.ResponseWriter, r *http.Request)
Get the certificate chain blob (GET /signer/blob)
func (Unimplemented) GetTopology ¶ added in v0.10.0
func (_ Unimplemented) GetTopology(w http.ResponseWriter, r *http.Request)
Prints the contents of the AS topology file. (GET /topology)
func (Unimplemented) GetTrc ¶ added in v0.10.0
func (_ Unimplemented) GetTrc(w http.ResponseWriter, r *http.Request, isd int, base int, serial int)
Get the TRC (GET /trcs/isd{isd}-b{base}-s{serial})
func (Unimplemented) GetTrcBlob ¶ added in v0.10.0
func (_ Unimplemented) GetTrcBlob(w http.ResponseWriter, r *http.Request, isd int, base int, serial int)
Get the TRC blob (GET /trcs/isd{isd}-b{base}-s{serial}/blob)
func (Unimplemented) GetTrcs ¶ added in v0.10.0
func (_ Unimplemented) GetTrcs(w http.ResponseWriter, r *http.Request, params GetTrcsParams)
List the TRCs (GET /trcs)
func (Unimplemented) SetLogLevel ¶ added in v0.10.0
func (_ Unimplemented) SetLogLevel(w http.ResponseWriter, r *http.Request)
Set logging level (PUT /log/level)
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock_mgmtapi is a generated GoMock package.
|
Package mock_mgmtapi is a generated GoMock package. |