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 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 NewDeleteSegmentRequest(server string, segmentId SegmentID) (*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 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 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)
- type BadRequest
- type Certificate
- type Chain
- type ChainBrief
- type ChainID
- type ChiServerOptions
- type Client
- func (c *Client) DeleteSegment(ctx context.Context, segmentId SegmentID, 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) 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) 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) DeleteSegmentWithResponse(ctx context.Context, segmentId SegmentID, reqEditors ...RequestEditorFn) (*DeleteSegmentResponse, 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) 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) 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 DeleteSegmentResponse
- type GetCertificateBlobResponse
- type GetCertificateResponse
- type GetCertificatesParams
- type GetCertificatesResponse
- type GetConfigResponse
- type GetInfoResponse
- type GetLogLevelResponse
- type GetSegmentBlobResponse
- type GetSegmentResponse
- type GetSegmentsParams
- type GetSegmentsResponse
- type GetTrcBlobResponse
- type GetTrcResponse
- type GetTrcsParams
- type GetTrcsResponse
- type Hop
- type HttpRequestDoer
- type InvalidParamFormatError
- type IsdAs
- type LogLevel
- type LogLevelLevel
- type MiddlewareFunc
- type Problem
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type Segment
- type SegmentBrief
- type SegmentID
- type Server
- func (s *Server) DeleteSegment(w http.ResponseWriter, r *http.Request, id SegmentID)
- 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) 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) 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) DeleteSegment(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) 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) 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 StandardError
- type SubjectKeyID
- type TRC
- type TRCBrief
- type TRCID
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) DeleteSegment(w http.ResponseWriter, r *http.Request, segmentId SegmentID)
- 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) 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) 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 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 NewDeleteSegmentRequest ¶ added in v0.11.0
NewDeleteSegmentRequest generates requests for DeleteSegment
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 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 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.
Types ¶
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 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) DeleteSegment ¶ added in v0.11.0
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) 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 { // 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) // 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) // 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) 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) 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) 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) 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 { // 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) // 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) // 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 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 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 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 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 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 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 Config http.HandlerFunc Info http.HandlerFunc LogLevel http.HandlerFunc }
Server implements the SCION Daemon Service API.
func (*Server) DeleteSegment ¶ added in v0.11.0
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 reads the known segments from the pathdb and returns them encoded as json.
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 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) // 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) // 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) DeleteSegment ¶ added in v0.11.0
func (siw *ServerInterfaceWrapper) DeleteSegment(w http.ResponseWriter, r *http.Request)
DeleteSegment 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) 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) 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 StandardError ¶
type StandardError struct { // Error Error message Error string `json:"error"` }
StandardError defines model for StandardError.
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 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) 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) 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) 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) 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