Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func NewGetCaRequest(server string) (*http.Request, error)
- func NewGetCertificateTypeKrlRequest(server string, certificateType GetCertificateTypeKrlParamsCertificateType) (*http.Request, error)
- func NewPostCertificateTypeRevokeRequest(server string, certificateType PostCertificateTypeRevokeParamsCertificateType, ...) (*http.Request, error)
- func NewPostCertificateTypeRevokeRequestWithBody(server string, certificateType PostCertificateTypeRevokeParamsCertificateType, ...) (*http.Request, error)
- func NewPostHostCertificateRequest(server string, params *PostHostCertificateParams, ...) (*http.Request, error)
- func NewPostHostCertificateRequestWithBody(server string, params *PostHostCertificateParams, contentType string, ...) (*http.Request, error)
- func NewPostHostRenewRequest(server string, body PostHostRenewJSONRequestBody) (*http.Request, error)
- func NewPostHostRenewRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostUserCertificateRequest(server string, params *PostUserCertificateParams, ...) (*http.Request, error)
- func NewPostUserCertificateRequestWithBody(server string, params *PostUserCertificateParams, contentType string, ...) (*http.Request, error)
- func StatusError(statusCode int, body []byte) error
- type CertificateResponse
- type CertificateRevocation
- type Client
- func (c *Client) GetCa(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCertificateTypeKrl(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) PostCertificateTypeRevoke(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) PostCertificateTypeRevokeWithBody(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) PostHostCertificate(ctx context.Context, params *PostHostCertificateParams, ...) (*http.Response, error)
- func (c *Client) PostHostCertificateWithBody(ctx context.Context, params *PostHostCertificateParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PostHostRenew(ctx context.Context, body PostHostRenewJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostHostRenewWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostUserCertificate(ctx context.Context, params *PostUserCertificateParams, ...) (*http.Response, error)
- func (c *Client) PostUserCertificateWithBody(ctx context.Context, params *PostUserCertificateParams, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetCaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaResponse, error)
- func (c *ClientWithResponses) GetCertificateTypeKrlWithResponse(ctx context.Context, ...) (*GetCertificateTypeKrlResponse, error)
- func (c *ClientWithResponses) PostCertificateTypeRevokeWithBodyWithResponse(ctx context.Context, ...) (*PostCertificateTypeRevokeResponse, error)
- func (c *ClientWithResponses) PostCertificateTypeRevokeWithResponse(ctx context.Context, ...) (*PostCertificateTypeRevokeResponse, error)
- func (c *ClientWithResponses) PostHostCertificateWithBodyWithResponse(ctx context.Context, params *PostHostCertificateParams, contentType string, ...) (*PostHostCertificateResponse, error)
- func (c *ClientWithResponses) PostHostCertificateWithResponse(ctx context.Context, params *PostHostCertificateParams, ...) (*PostHostCertificateResponse, error)
- func (c *ClientWithResponses) PostHostRenewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostHostRenewResponse, error)
- func (c *ClientWithResponses) PostHostRenewWithResponse(ctx context.Context, body PostHostRenewJSONRequestBody, ...) (*PostHostRenewResponse, error)
- func (c *ClientWithResponses) PostUserCertificateWithBodyWithResponse(ctx context.Context, params *PostUserCertificateParams, contentType string, ...) (*PostUserCertificateResponse, error)
- func (c *ClientWithResponses) PostUserCertificateWithResponse(ctx context.Context, params *PostUserCertificateParams, ...) (*PostUserCertificateResponse, error)
- type ClientWithResponsesInterface
- type GetCa500JSONResponseBodySuccess
- type GetCaResponse
- type GetCertificateTypeKrl500JSONResponseBodySuccess
- type GetCertificateTypeKrlParamsCertificateType
- type GetCertificateTypeKrlResponse
- func (r GetCertificateTypeKrlResponse) ContentType() string
- func (r GetCertificateTypeKrlResponse) GetBody() []byte
- func (r GetCertificateTypeKrlResponse) GetJSON200() *KeyRevocationListResponse
- func (r GetCertificateTypeKrlResponse) GetJSON500() ...
- func (r GetCertificateTypeKrlResponse) Status() string
- func (r GetCertificateTypeKrlResponse) StatusCode() int
- type HostCertificateRenew
- type HostCertificateRequest
- type HttpRequestDoer
- type KeyRevocationListResponse
- type PostCertificateTypeRevoke400JSONResponseBodySuccess
- type PostCertificateTypeRevoke401JSONResponseBodySuccess
- type PostCertificateTypeRevoke403JSONResponseBodySuccess
- type PostCertificateTypeRevoke409JSONResponseBodySuccess
- type PostCertificateTypeRevoke422JSONResponseBodySuccess
- type PostCertificateTypeRevoke500JSONResponseBodySuccess
- type PostCertificateTypeRevokeJSONRequestBody
- type PostCertificateTypeRevokeParamsCertificateType
- type PostCertificateTypeRevokeResponse
- func (r PostCertificateTypeRevokeResponse) ContentType() string
- func (r PostCertificateTypeRevokeResponse) GetBody() []byte
- func (r PostCertificateTypeRevokeResponse) GetJSON200() *RevocationResponse
- func (r PostCertificateTypeRevokeResponse) GetJSON400() ...
- func (r PostCertificateTypeRevokeResponse) GetJSON401() ...
- func (r PostCertificateTypeRevokeResponse) GetJSON403() ...
- func (r PostCertificateTypeRevokeResponse) GetJSON409() ...
- func (r PostCertificateTypeRevokeResponse) GetJSON422() ...
- func (r PostCertificateTypeRevokeResponse) GetJSON500() ...
- func (r PostCertificateTypeRevokeResponse) Status() string
- func (r PostCertificateTypeRevokeResponse) StatusCode() int
- type PostHostCertificate400JSONResponseBodySuccess
- type PostHostCertificate401JSONResponseBodySuccess
- type PostHostCertificate403JSONResponseBodySuccess
- type PostHostCertificate422JSONResponseBodySuccess
- type PostHostCertificate500JSONResponseBodySuccess
- type PostHostCertificateJSONRequestBody
- type PostHostCertificateParams
- type PostHostCertificateResponse
- func (r PostHostCertificateResponse) ContentType() string
- func (r PostHostCertificateResponse) GetBody() []byte
- func (r PostHostCertificateResponse) GetJSON200() *CertificateResponse
- func (r PostHostCertificateResponse) GetJSON400() ...
- func (r PostHostCertificateResponse) GetJSON401() ...
- func (r PostHostCertificateResponse) GetJSON403() ...
- func (r PostHostCertificateResponse) GetJSON422() ...
- func (r PostHostCertificateResponse) GetJSON500() ...
- func (r PostHostCertificateResponse) Status() string
- func (r PostHostCertificateResponse) StatusCode() int
- type PostHostRenew400JSONResponseBodySuccess
- type PostHostRenew401JSONResponseBodySuccess
- type PostHostRenew403JSONResponseBodySuccess
- type PostHostRenew422JSONResponseBodySuccess
- type PostHostRenew500JSONResponseBodySuccess
- type PostHostRenewJSONRequestBody
- type PostHostRenewResponse
- func (r PostHostRenewResponse) ContentType() string
- func (r PostHostRenewResponse) GetBody() []byte
- func (r PostHostRenewResponse) GetJSON200() *CertificateResponse
- func (r PostHostRenewResponse) GetJSON400() ...
- func (r PostHostRenewResponse) GetJSON401() ...
- func (r PostHostRenewResponse) GetJSON403() ...
- func (r PostHostRenewResponse) GetJSON422() ...
- func (r PostHostRenewResponse) GetJSON500() ...
- func (r PostHostRenewResponse) Status() string
- func (r PostHostRenewResponse) StatusCode() int
- type PostUserCertificate400JSONResponseBodySuccess
- type PostUserCertificate401JSONResponseBodySuccess
- type PostUserCertificate403JSONResponseBodySuccess
- type PostUserCertificate422JSONResponseBodySuccess
- type PostUserCertificate500JSONResponseBodySuccess
- type PostUserCertificateJSONRequestBody
- type PostUserCertificateParams
- type PostUserCertificateResponse
- func (r PostUserCertificateResponse) ContentType() string
- func (r PostUserCertificateResponse) GetBody() []byte
- func (r PostUserCertificateResponse) GetJSON200() *CertificateResponse
- func (r PostUserCertificateResponse) GetJSON400() ...
- func (r PostUserCertificateResponse) GetJSON401() ...
- func (r PostUserCertificateResponse) GetJSON403() ...
- func (r PostUserCertificateResponse) GetJSON422() ...
- func (r PostUserCertificateResponse) GetJSON500() ...
- func (r PostUserCertificateResponse) Status() string
- func (r PostUserCertificateResponse) StatusCode() int
- type RequestEditorFn
- type RevocationResponse
- type UserCertificateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetCaRequest ¶ added in v0.21.0
NewGetCaRequest constructs an http.Request for the GetCa method
func NewGetCertificateTypeKrlRequest ¶ added in v0.21.0
func NewGetCertificateTypeKrlRequest(server string, certificateType GetCertificateTypeKrlParamsCertificateType) (*http.Request, error)
NewGetCertificateTypeKrlRequest constructs an http.Request for the GetCertificateTypeKrl method
func NewPostCertificateTypeRevokeRequest ¶ added in v0.21.0
func NewPostCertificateTypeRevokeRequest(server string, certificateType PostCertificateTypeRevokeParamsCertificateType, body PostCertificateTypeRevokeJSONRequestBody) (*http.Request, error)
NewPostCertificateTypeRevokeRequest calls the generic PostCertificateTypeRevoke builder with application/json body
func NewPostCertificateTypeRevokeRequestWithBody ¶ added in v0.21.0
func NewPostCertificateTypeRevokeRequestWithBody(server string, certificateType PostCertificateTypeRevokeParamsCertificateType, contentType string, body io.Reader) (*http.Request, error)
NewPostCertificateTypeRevokeRequestWithBody constructs an http.Request for the PostCertificateTypeRevoke method, with any body, and a specified content type
func NewPostHostCertificateRequest ¶ added in v0.21.0
func NewPostHostCertificateRequest(server string, params *PostHostCertificateParams, body PostHostCertificateJSONRequestBody) (*http.Request, error)
NewPostHostCertificateRequest calls the generic PostHostCertificate builder with application/json body
func NewPostHostCertificateRequestWithBody ¶ added in v0.21.0
func NewPostHostCertificateRequestWithBody(server string, params *PostHostCertificateParams, contentType string, body io.Reader) (*http.Request, error)
NewPostHostCertificateRequestWithBody constructs an http.Request for the PostHostCertificate method, with any body, and a specified content type
func NewPostHostRenewRequest ¶ added in v0.21.0
func NewPostHostRenewRequest(server string, body PostHostRenewJSONRequestBody) (*http.Request, error)
NewPostHostRenewRequest calls the generic PostHostRenew builder with application/json body
func NewPostHostRenewRequestWithBody ¶ added in v0.21.0
func NewPostHostRenewRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostHostRenewRequestWithBody constructs an http.Request for the PostHostRenew method, with any body, and a specified content type
func NewPostUserCertificateRequest ¶ added in v0.21.0
func NewPostUserCertificateRequest(server string, params *PostUserCertificateParams, body PostUserCertificateJSONRequestBody) (*http.Request, error)
NewPostUserCertificateRequest calls the generic PostUserCertificate builder with application/json body
func NewPostUserCertificateRequestWithBody ¶ added in v0.21.0
func NewPostUserCertificateRequestWithBody(server string, params *PostUserCertificateParams, contentType string, body io.Reader) (*http.Request, error)
NewPostUserCertificateRequestWithBody constructs an http.Request for the PostUserCertificate method, with any body, and a specified content type
func StatusError ¶ added in v0.23.0
StatusError returns an error for a response with an unexpected status code, including any error messages from the CA in body.
Types ¶
type CertificateResponse ¶
type CertificateResponse struct {
// Certificate Issued Certificate
Certificate []byte `json:"certificate"`
}
CertificateResponse defines model for Certificate Response.
type CertificateRevocation ¶
type CertificateRevocation struct {
// Proof Proof of possession comprising of ${timestamp}.${fingerprint}.${signature}
Proof string `json:"proof"`
// PublicKey SSH public key to sign
PublicKey []byte `json:"public_key"`
// Serial Serial number of certificate to revoke
Serial string `json:"serial"`
}
CertificateRevocation defines model for Certificate Revocation.
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) GetCa ¶ added in v0.21.0
GetCa performs a GET /api/v3/ca (the `GetCa` operationId) request.
func (*Client) GetCertificateTypeKrl ¶ added in v0.21.0
func (c *Client) GetCertificateTypeKrl(ctx context.Context, certificateType GetCertificateTypeKrlParamsCertificateType, reqEditors ...RequestEditorFn) (*http.Response, error)
GetCertificateTypeKrl performs a GET /api/v3/{certificateType}/krl (the `GetCertificateTypeKrl` operationId) request.
func (*Client) PostCertificateTypeRevoke ¶ added in v0.21.0
func (c *Client) PostCertificateTypeRevoke(ctx context.Context, certificateType PostCertificateTypeRevokeParamsCertificateType, body PostCertificateTypeRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostCertificateTypeRevoke performs a POST /api/v3/{certificateType}/revoke (the `PostCertificateTypeRevoke` operationId) request. Takes a body of the `application/json` content type.
func (*Client) PostCertificateTypeRevokeWithBody ¶ added in v0.21.0
func (c *Client) PostCertificateTypeRevokeWithBody(ctx context.Context, certificateType PostCertificateTypeRevokeParamsCertificateType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostCertificateTypeRevokeWithBody performs a POST /api/v3/{certificateType}/revoke (the `PostCertificateTypeRevoke` operationId) request, with any type of body and a specified content type.
func (*Client) PostHostCertificate ¶ added in v0.21.0
func (c *Client) PostHostCertificate(ctx context.Context, params *PostHostCertificateParams, body PostHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostHostCertificate performs a POST /api/v3/host/certificate (the `PostHostCertificate` operationId) request. Takes a body of the `application/json` content type.
func (*Client) PostHostCertificateWithBody ¶ added in v0.21.0
func (c *Client) PostHostCertificateWithBody(ctx context.Context, params *PostHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostHostCertificateWithBody performs a POST /api/v3/host/certificate (the `PostHostCertificate` operationId) request, with any type of body and a specified content type.
func (*Client) PostHostRenew ¶ added in v0.21.0
func (c *Client) PostHostRenew(ctx context.Context, body PostHostRenewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostHostRenew performs a POST /api/v3/host/renew (the `PostHostRenew` operationId) request. Takes a body of the `application/json` content type.
func (*Client) PostHostRenewWithBody ¶ added in v0.21.0
func (c *Client) PostHostRenewWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostHostRenewWithBody performs a POST /api/v3/host/renew (the `PostHostRenew` operationId) request, with any type of body and a specified content type.
func (*Client) PostUserCertificate ¶ added in v0.21.0
func (c *Client) PostUserCertificate(ctx context.Context, params *PostUserCertificateParams, body PostUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostUserCertificate performs a POST /api/v3/user/certificate (the `PostUserCertificate` operationId) request. Takes a body of the `application/json` content type.
func (*Client) PostUserCertificateWithBody ¶ added in v0.21.0
func (c *Client) PostUserCertificateWithBody(ctx context.Context, params *PostUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostUserCertificateWithBody performs a POST /api/v3/user/certificate (the `PostUserCertificate` operationId) request, with any type of body and a specified content type.
type ClientInterface ¶
type ClientInterface interface {
// GetCa performs a GET /api/v3/ca (the `GetCa` operationId) request.
GetCa(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostHostCertificateWithBody performs a POST /api/v3/host/certificate (the `PostHostCertificate` operationId) request,
// with any type of body and a specified content type.
PostHostCertificateWithBody(ctx context.Context, params *PostHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostHostCertificate performs a POST /api/v3/host/certificate (the `PostHostCertificate` operationId) request.
// Takes a body of the `application/json` content type.
PostHostCertificate(ctx context.Context, params *PostHostCertificateParams, body PostHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostHostRenewWithBody performs a POST /api/v3/host/renew (the `PostHostRenew` operationId) request,
// with any type of body and a specified content type.
PostHostRenewWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostHostRenew performs a POST /api/v3/host/renew (the `PostHostRenew` operationId) request.
// Takes a body of the `application/json` content type.
PostHostRenew(ctx context.Context, body PostHostRenewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostUserCertificateWithBody performs a POST /api/v3/user/certificate (the `PostUserCertificate` operationId) request,
// with any type of body and a specified content type.
PostUserCertificateWithBody(ctx context.Context, params *PostUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostUserCertificate performs a POST /api/v3/user/certificate (the `PostUserCertificate` operationId) request.
// Takes a body of the `application/json` content type.
PostUserCertificate(ctx context.Context, params *PostUserCertificateParams, body PostUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCertificateTypeKrl performs a GET /api/v3/{certificateType}/krl (the `GetCertificateTypeKrl` operationId) request.
GetCertificateTypeKrl(ctx context.Context, certificateType GetCertificateTypeKrlParamsCertificateType, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostCertificateTypeRevokeWithBody performs a POST /api/v3/{certificateType}/revoke (the `PostCertificateTypeRevoke` operationId) request,
// with any type of body and a specified content type.
PostCertificateTypeRevokeWithBody(ctx context.Context, certificateType PostCertificateTypeRevokeParamsCertificateType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostCertificateTypeRevoke performs a POST /api/v3/{certificateType}/revoke (the `PostCertificateTypeRevoke` operationId) request.
// Takes a body of the `application/json` content type.
PostCertificateTypeRevoke(ctx context.Context, certificateType PostCertificateTypeRevokeParamsCertificateType, body PostCertificateTypeRevokeJSONRequestBody, 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) GetCaWithResponse ¶ added in v0.21.0
func (c *ClientWithResponses) GetCaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaResponse, error)
GetCaWithResponse performs a GET /api/v3/ca (the `GetCa` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetCertificateTypeKrlWithResponse ¶ added in v0.21.0
func (c *ClientWithResponses) GetCertificateTypeKrlWithResponse(ctx context.Context, certificateType GetCertificateTypeKrlParamsCertificateType, reqEditors ...RequestEditorFn) (*GetCertificateTypeKrlResponse, error)
GetCertificateTypeKrlWithResponse performs a GET /api/v3/{certificateType}/krl (the `GetCertificateTypeKrl` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) PostCertificateTypeRevokeWithBodyWithResponse ¶ added in v0.21.0
func (c *ClientWithResponses) PostCertificateTypeRevokeWithBodyWithResponse(ctx context.Context, certificateType PostCertificateTypeRevokeParamsCertificateType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostCertificateTypeRevokeResponse, error)
PostCertificateTypeRevokeWithBodyWithResponse performs a POST /api/v3/{certificateType}/revoke (the `PostCertificateTypeRevoke` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) PostCertificateTypeRevokeWithResponse ¶ added in v0.21.0
func (c *ClientWithResponses) PostCertificateTypeRevokeWithResponse(ctx context.Context, certificateType PostCertificateTypeRevokeParamsCertificateType, body PostCertificateTypeRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostCertificateTypeRevokeResponse, error)
PostCertificateTypeRevokeWithResponse performs a POST /api/v3/{certificateType}/revoke (the `PostCertificateTypeRevoke` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) PostHostCertificateWithBodyWithResponse ¶ added in v0.21.0
func (c *ClientWithResponses) PostHostCertificateWithBodyWithResponse(ctx context.Context, params *PostHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostCertificateResponse, error)
PostHostCertificateWithBodyWithResponse performs a POST /api/v3/host/certificate (the `PostHostCertificate` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) PostHostCertificateWithResponse ¶ added in v0.21.0
func (c *ClientWithResponses) PostHostCertificateWithResponse(ctx context.Context, params *PostHostCertificateParams, body PostHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostCertificateResponse, error)
PostHostCertificateWithResponse performs a POST /api/v3/host/certificate (the `PostHostCertificate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) PostHostRenewWithBodyWithResponse ¶ added in v0.21.0
func (c *ClientWithResponses) PostHostRenewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostRenewResponse, error)
PostHostRenewWithBodyWithResponse performs a POST /api/v3/host/renew (the `PostHostRenew` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) PostHostRenewWithResponse ¶ added in v0.21.0
func (c *ClientWithResponses) PostHostRenewWithResponse(ctx context.Context, body PostHostRenewJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostRenewResponse, error)
PostHostRenewWithResponse performs a POST /api/v3/host/renew (the `PostHostRenew` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) PostUserCertificateWithBodyWithResponse ¶ added in v0.21.0
func (c *ClientWithResponses) PostUserCertificateWithBodyWithResponse(ctx context.Context, params *PostUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserCertificateResponse, error)
PostUserCertificateWithBodyWithResponse performs a POST /api/v3/user/certificate (the `PostUserCertificate` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) PostUserCertificateWithResponse ¶ added in v0.21.0
func (c *ClientWithResponses) PostUserCertificateWithResponse(ctx context.Context, params *PostUserCertificateParams, body PostUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserCertificateResponse, error)
PostUserCertificateWithResponse performs a POST /api/v3/user/certificate (the `PostUserCertificate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetCaWithResponse performs a GET /api/v3/ca (the `GetCa` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
GetCaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaResponse, error)
// PostHostCertificateWithBodyWithResponse performs a POST /api/v3/host/certificate (the `PostHostCertificate` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
PostHostCertificateWithBodyWithResponse(ctx context.Context, params *PostHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostCertificateResponse, error)
// PostHostCertificateWithResponse performs a POST /api/v3/host/certificate (the `PostHostCertificate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
PostHostCertificateWithResponse(ctx context.Context, params *PostHostCertificateParams, body PostHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostCertificateResponse, error)
// PostHostRenewWithBodyWithResponse performs a POST /api/v3/host/renew (the `PostHostRenew` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
PostHostRenewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostRenewResponse, error)
// PostHostRenewWithResponse performs a POST /api/v3/host/renew (the `PostHostRenew` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
PostHostRenewWithResponse(ctx context.Context, body PostHostRenewJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostRenewResponse, error)
// PostUserCertificateWithBodyWithResponse performs a POST /api/v3/user/certificate (the `PostUserCertificate` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
PostUserCertificateWithBodyWithResponse(ctx context.Context, params *PostUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserCertificateResponse, error)
// PostUserCertificateWithResponse performs a POST /api/v3/user/certificate (the `PostUserCertificate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
PostUserCertificateWithResponse(ctx context.Context, params *PostUserCertificateParams, body PostUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserCertificateResponse, error)
// GetCertificateTypeKrlWithResponse performs a GET /api/v3/{certificateType}/krl (the `GetCertificateTypeKrl` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
GetCertificateTypeKrlWithResponse(ctx context.Context, certificateType GetCertificateTypeKrlParamsCertificateType, reqEditors ...RequestEditorFn) (*GetCertificateTypeKrlResponse, error)
// PostCertificateTypeRevokeWithBodyWithResponse performs a POST /api/v3/{certificateType}/revoke (the `PostCertificateTypeRevoke` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
PostCertificateTypeRevokeWithBodyWithResponse(ctx context.Context, certificateType PostCertificateTypeRevokeParamsCertificateType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostCertificateTypeRevokeResponse, error)
// PostCertificateTypeRevokeWithResponse performs a POST /api/v3/{certificateType}/revoke (the `PostCertificateTypeRevoke` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
PostCertificateTypeRevokeWithResponse(ctx context.Context, certificateType PostCertificateTypeRevokeParamsCertificateType, body PostCertificateTypeRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostCertificateTypeRevokeResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type GetCa500JSONResponseBodySuccess ¶ added in v0.21.0
type GetCa500JSONResponseBodySuccess bool
GetCa500JSONResponseBodySuccess defines parameters for GetCa.
const (
GetCa500JSONResponseBodySuccessFalse GetCa500JSONResponseBodySuccess = false
)
Defines values for GetCa500JSONResponseBodySuccess.
func (GetCa500JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e GetCa500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the GetCa500JSONResponseBodySuccess enum.
type GetCaResponse ¶ added in v0.21.0
type GetCaResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success GetCa500JSONResponseBodySuccess `json:"success"`
}
}
func ParseGetCaResponse ¶ added in v0.21.0
func ParseGetCaResponse(rsp *http.Response) (*GetCaResponse, error)
ParseGetCaResponse parses an HTTP response from a GetCaWithResponse call
func (GetCaResponse) ContentType ¶ added in v0.21.0
func (r GetCaResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetCaResponse) GetBody ¶ added in v0.21.0
func (r GetCaResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetCaResponse) GetJSON500 ¶ added in v0.21.0
func (r GetCaResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success GetCa500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetCaResponse) Status ¶ added in v0.21.0
func (r GetCaResponse) Status() string
Status returns HTTPResponse.Status
func (GetCaResponse) StatusCode ¶ added in v0.21.0
func (r GetCaResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCertificateTypeKrl500JSONResponseBodySuccess ¶ added in v0.21.0
type GetCertificateTypeKrl500JSONResponseBodySuccess bool
GetCertificateTypeKrl500JSONResponseBodySuccess defines parameters for GetCertificateTypeKrl.
const (
GetCertificateTypeKrl500JSONResponseBodySuccessFalse GetCertificateTypeKrl500JSONResponseBodySuccess = false
)
Defines values for GetCertificateTypeKrl500JSONResponseBodySuccess.
func (GetCertificateTypeKrl500JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e GetCertificateTypeKrl500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the GetCertificateTypeKrl500JSONResponseBodySuccess enum.
type GetCertificateTypeKrlParamsCertificateType ¶ added in v0.21.0
type GetCertificateTypeKrlParamsCertificateType string
GetCertificateTypeKrlParamsCertificateType defines parameters for GetCertificateTypeKrl.
const ( GetCertificateTypeKrlParamsCertificateTypeHost GetCertificateTypeKrlParamsCertificateType = "host" GetCertificateTypeKrlParamsCertificateTypeUser GetCertificateTypeKrlParamsCertificateType = "user" )
Defines values for GetCertificateTypeKrlParamsCertificateType.
func (GetCertificateTypeKrlParamsCertificateType) Valid ¶ added in v0.21.0
func (e GetCertificateTypeKrlParamsCertificateType) Valid() bool
Valid indicates whether the value is a known member of the GetCertificateTypeKrlParamsCertificateType enum.
type GetCertificateTypeKrlResponse ¶ added in v0.21.0
type GetCertificateTypeKrlResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *KeyRevocationListResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success GetCertificateTypeKrl500JSONResponseBodySuccess `json:"success"`
}
}
func ParseGetCertificateTypeKrlResponse ¶ added in v0.21.0
func ParseGetCertificateTypeKrlResponse(rsp *http.Response) (*GetCertificateTypeKrlResponse, error)
ParseGetCertificateTypeKrlResponse parses an HTTP response from a GetCertificateTypeKrlWithResponse call
func (GetCertificateTypeKrlResponse) ContentType ¶ added in v0.21.0
func (r GetCertificateTypeKrlResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetCertificateTypeKrlResponse) GetBody ¶ added in v0.21.0
func (r GetCertificateTypeKrlResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetCertificateTypeKrlResponse) GetJSON200 ¶ added in v0.21.0
func (r GetCertificateTypeKrlResponse) GetJSON200() *KeyRevocationListResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetCertificateTypeKrlResponse) GetJSON500 ¶ added in v0.21.0
func (r GetCertificateTypeKrlResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success GetCertificateTypeKrl500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetCertificateTypeKrlResponse) Status ¶ added in v0.21.0
func (r GetCertificateTypeKrlResponse) Status() string
Status returns HTTPResponse.Status
func (GetCertificateTypeKrlResponse) StatusCode ¶ added in v0.21.0
func (r GetCertificateTypeKrlResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HostCertificateRenew ¶
type HostCertificateRenew struct {
// Certificate SSH certificate to renew
Certificate []byte `json:"certificate"`
// Lifetime Lifetime of renewed Host SSH certificate
Lifetime *int `json:"lifetime,omitempty"`
// Proof Proof of possession comprising of ${timestamp}.${fingerprint}.${signature}
Proof string `json:"proof"`
// PublicKey SSH public key to sign
PublicKey []byte `json:"public_key"`
}
HostCertificateRenew defines model for Host Certificate Renew.
type HostCertificateRequest ¶
type HostCertificateRequest struct {
// Identity Identity Token JWT from OIDC IdP
Identity string `json:"identity"`
// Lifetime Lifetime of issued Host SSH certificate
Lifetime *int `json:"lifetime,omitempty"`
// Principals List of principals to include on the issued certificate
Principals []string `json:"principals"`
// Proof Proof of possession comprising of ${timestamp}.${fingerprint}.${signature}
Proof string `json:"proof"`
// PublicKey SSH public key to sign
PublicKey []byte `json:"public_key"`
}
HostCertificateRequest defines model for Host Certificate Request.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type KeyRevocationListResponse ¶
type KeyRevocationListResponse struct {
// Krl Key Revocation List
Krl []byte `json:"krl"`
Signature string `json:"signature"`
}
KeyRevocationListResponse defines model for Key Revocation List Response.
type PostCertificateTypeRevoke400JSONResponseBodySuccess ¶ added in v0.21.0
type PostCertificateTypeRevoke400JSONResponseBodySuccess bool
PostCertificateTypeRevoke400JSONResponseBodySuccess defines parameters for PostCertificateTypeRevoke.
const (
PostCertificateTypeRevoke400JSONResponseBodySuccessFalse PostCertificateTypeRevoke400JSONResponseBodySuccess = false
)
Defines values for PostCertificateTypeRevoke400JSONResponseBodySuccess.
func (PostCertificateTypeRevoke400JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostCertificateTypeRevoke400JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostCertificateTypeRevoke400JSONResponseBodySuccess enum.
type PostCertificateTypeRevoke401JSONResponseBodySuccess ¶ added in v0.21.0
type PostCertificateTypeRevoke401JSONResponseBodySuccess bool
PostCertificateTypeRevoke401JSONResponseBodySuccess defines parameters for PostCertificateTypeRevoke.
const (
PostCertificateTypeRevoke401JSONResponseBodySuccessFalse PostCertificateTypeRevoke401JSONResponseBodySuccess = false
)
Defines values for PostCertificateTypeRevoke401JSONResponseBodySuccess.
func (PostCertificateTypeRevoke401JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostCertificateTypeRevoke401JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostCertificateTypeRevoke401JSONResponseBodySuccess enum.
type PostCertificateTypeRevoke403JSONResponseBodySuccess ¶ added in v0.21.0
type PostCertificateTypeRevoke403JSONResponseBodySuccess bool
PostCertificateTypeRevoke403JSONResponseBodySuccess defines parameters for PostCertificateTypeRevoke.
const (
PostCertificateTypeRevoke403JSONResponseBodySuccessFalse PostCertificateTypeRevoke403JSONResponseBodySuccess = false
)
Defines values for PostCertificateTypeRevoke403JSONResponseBodySuccess.
func (PostCertificateTypeRevoke403JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostCertificateTypeRevoke403JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostCertificateTypeRevoke403JSONResponseBodySuccess enum.
type PostCertificateTypeRevoke409JSONResponseBodySuccess ¶ added in v0.21.0
type PostCertificateTypeRevoke409JSONResponseBodySuccess bool
PostCertificateTypeRevoke409JSONResponseBodySuccess defines parameters for PostCertificateTypeRevoke.
const (
PostCertificateTypeRevoke409JSONResponseBodySuccessFalse PostCertificateTypeRevoke409JSONResponseBodySuccess = false
)
Defines values for PostCertificateTypeRevoke409JSONResponseBodySuccess.
func (PostCertificateTypeRevoke409JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostCertificateTypeRevoke409JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostCertificateTypeRevoke409JSONResponseBodySuccess enum.
type PostCertificateTypeRevoke422JSONResponseBodySuccess ¶ added in v0.21.0
type PostCertificateTypeRevoke422JSONResponseBodySuccess bool
PostCertificateTypeRevoke422JSONResponseBodySuccess defines parameters for PostCertificateTypeRevoke.
const (
PostCertificateTypeRevoke422JSONResponseBodySuccessFalse PostCertificateTypeRevoke422JSONResponseBodySuccess = false
)
Defines values for PostCertificateTypeRevoke422JSONResponseBodySuccess.
func (PostCertificateTypeRevoke422JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostCertificateTypeRevoke422JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostCertificateTypeRevoke422JSONResponseBodySuccess enum.
type PostCertificateTypeRevoke500JSONResponseBodySuccess ¶ added in v0.21.0
type PostCertificateTypeRevoke500JSONResponseBodySuccess bool
PostCertificateTypeRevoke500JSONResponseBodySuccess defines parameters for PostCertificateTypeRevoke.
const (
PostCertificateTypeRevoke500JSONResponseBodySuccessFalse PostCertificateTypeRevoke500JSONResponseBodySuccess = false
)
Defines values for PostCertificateTypeRevoke500JSONResponseBodySuccess.
func (PostCertificateTypeRevoke500JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostCertificateTypeRevoke500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostCertificateTypeRevoke500JSONResponseBodySuccess enum.
type PostCertificateTypeRevokeJSONRequestBody ¶ added in v0.21.0
type PostCertificateTypeRevokeJSONRequestBody = CertificateRevocation
PostCertificateTypeRevokeJSONRequestBody defines body for PostCertificateTypeRevoke for application/json ContentType.
type PostCertificateTypeRevokeParamsCertificateType ¶ added in v0.21.0
type PostCertificateTypeRevokeParamsCertificateType string
PostCertificateTypeRevokeParamsCertificateType defines parameters for PostCertificateTypeRevoke.
const ( PostCertificateTypeRevokeParamsCertificateTypeHost PostCertificateTypeRevokeParamsCertificateType = "host" PostCertificateTypeRevokeParamsCertificateTypeUser PostCertificateTypeRevokeParamsCertificateType = "user" )
Defines values for PostCertificateTypeRevokeParamsCertificateType.
func (PostCertificateTypeRevokeParamsCertificateType) Valid ¶ added in v0.21.0
func (e PostCertificateTypeRevokeParamsCertificateType) Valid() bool
Valid indicates whether the value is a known member of the PostCertificateTypeRevokeParamsCertificateType enum.
type PostCertificateTypeRevokeResponse ¶ added in v0.21.0
type PostCertificateTypeRevokeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RevocationResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
Path []string `json:"path"`
} `json:"errors"`
Success PostCertificateTypeRevoke400JSONResponseBodySuccess `json:"success"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostCertificateTypeRevoke401JSONResponseBodySuccess `json:"success"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostCertificateTypeRevoke403JSONResponseBodySuccess `json:"success"`
}
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostCertificateTypeRevoke409JSONResponseBodySuccess `json:"success"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
Path []string `json:"path"`
} `json:"errors"`
Success PostCertificateTypeRevoke422JSONResponseBodySuccess `json:"success"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostCertificateTypeRevoke500JSONResponseBodySuccess `json:"success"`
}
}
func ParsePostCertificateTypeRevokeResponse ¶ added in v0.21.0
func ParsePostCertificateTypeRevokeResponse(rsp *http.Response) (*PostCertificateTypeRevokeResponse, error)
ParsePostCertificateTypeRevokeResponse parses an HTTP response from a PostCertificateTypeRevokeWithResponse call
func (PostCertificateTypeRevokeResponse) ContentType ¶ added in v0.21.0
func (r PostCertificateTypeRevokeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostCertificateTypeRevokeResponse) GetBody ¶ added in v0.21.0
func (r PostCertificateTypeRevokeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostCertificateTypeRevokeResponse) GetJSON200 ¶ added in v0.21.0
func (r PostCertificateTypeRevokeResponse) GetJSON200() *RevocationResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostCertificateTypeRevokeResponse) GetJSON400 ¶ added in v0.21.0
func (r PostCertificateTypeRevokeResponse) GetJSON400() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success PostCertificateTypeRevoke400JSONResponseBodySuccess `json:"success"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostCertificateTypeRevokeResponse) GetJSON401 ¶ added in v0.21.0
func (r PostCertificateTypeRevokeResponse) GetJSON401() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostCertificateTypeRevoke401JSONResponseBodySuccess `json:"success"` }
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostCertificateTypeRevokeResponse) GetJSON403 ¶ added in v0.21.0
func (r PostCertificateTypeRevokeResponse) GetJSON403() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostCertificateTypeRevoke403JSONResponseBodySuccess `json:"success"` }
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostCertificateTypeRevokeResponse) GetJSON409 ¶ added in v0.21.0
func (r PostCertificateTypeRevokeResponse) GetJSON409() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostCertificateTypeRevoke409JSONResponseBodySuccess `json:"success"` }
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PostCertificateTypeRevokeResponse) GetJSON422 ¶ added in v0.21.0
func (r PostCertificateTypeRevokeResponse) GetJSON422() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success PostCertificateTypeRevoke422JSONResponseBodySuccess `json:"success"` }
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (PostCertificateTypeRevokeResponse) GetJSON500 ¶ added in v0.21.0
func (r PostCertificateTypeRevokeResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostCertificateTypeRevoke500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostCertificateTypeRevokeResponse) Status ¶ added in v0.21.0
func (r PostCertificateTypeRevokeResponse) Status() string
Status returns HTTPResponse.Status
func (PostCertificateTypeRevokeResponse) StatusCode ¶ added in v0.21.0
func (r PostCertificateTypeRevokeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostHostCertificate400JSONResponseBodySuccess ¶ added in v0.21.0
type PostHostCertificate400JSONResponseBodySuccess bool
PostHostCertificate400JSONResponseBodySuccess defines parameters for PostHostCertificate.
const (
PostHostCertificate400JSONResponseBodySuccessFalse PostHostCertificate400JSONResponseBodySuccess = false
)
Defines values for PostHostCertificate400JSONResponseBodySuccess.
func (PostHostCertificate400JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostHostCertificate400JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostCertificate400JSONResponseBodySuccess enum.
type PostHostCertificate401JSONResponseBodySuccess ¶ added in v0.21.0
type PostHostCertificate401JSONResponseBodySuccess bool
PostHostCertificate401JSONResponseBodySuccess defines parameters for PostHostCertificate.
const (
PostHostCertificate401JSONResponseBodySuccessFalse PostHostCertificate401JSONResponseBodySuccess = false
)
Defines values for PostHostCertificate401JSONResponseBodySuccess.
func (PostHostCertificate401JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostHostCertificate401JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostCertificate401JSONResponseBodySuccess enum.
type PostHostCertificate403JSONResponseBodySuccess ¶ added in v0.21.0
type PostHostCertificate403JSONResponseBodySuccess bool
PostHostCertificate403JSONResponseBodySuccess defines parameters for PostHostCertificate.
const (
PostHostCertificate403JSONResponseBodySuccessFalse PostHostCertificate403JSONResponseBodySuccess = false
)
Defines values for PostHostCertificate403JSONResponseBodySuccess.
func (PostHostCertificate403JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostHostCertificate403JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostCertificate403JSONResponseBodySuccess enum.
type PostHostCertificate422JSONResponseBodySuccess ¶ added in v0.21.0
type PostHostCertificate422JSONResponseBodySuccess bool
PostHostCertificate422JSONResponseBodySuccess defines parameters for PostHostCertificate.
const (
PostHostCertificate422JSONResponseBodySuccessFalse PostHostCertificate422JSONResponseBodySuccess = false
)
Defines values for PostHostCertificate422JSONResponseBodySuccess.
func (PostHostCertificate422JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostHostCertificate422JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostCertificate422JSONResponseBodySuccess enum.
type PostHostCertificate500JSONResponseBodySuccess ¶ added in v0.21.0
type PostHostCertificate500JSONResponseBodySuccess bool
PostHostCertificate500JSONResponseBodySuccess defines parameters for PostHostCertificate.
const (
PostHostCertificate500JSONResponseBodySuccessFalse PostHostCertificate500JSONResponseBodySuccess = false
)
Defines values for PostHostCertificate500JSONResponseBodySuccess.
func (PostHostCertificate500JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostHostCertificate500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostCertificate500JSONResponseBodySuccess enum.
type PostHostCertificateJSONRequestBody ¶ added in v0.21.0
type PostHostCertificateJSONRequestBody = HostCertificateRequest
PostHostCertificateJSONRequestBody defines body for PostHostCertificate for application/json ContentType.
type PostHostCertificateParams ¶ added in v0.21.0
type PostHostCertificateParams struct {
// Authorization Access Token JWT from OIDC IdP
Authorization string `json:"Authorization"`
}
PostHostCertificateParams defines parameters for PostHostCertificate.
type PostHostCertificateResponse ¶ added in v0.21.0
type PostHostCertificateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CertificateResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
Path []string `json:"path"`
} `json:"errors"`
Success PostHostCertificate400JSONResponseBodySuccess `json:"success"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostHostCertificate401JSONResponseBodySuccess `json:"success"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostHostCertificate403JSONResponseBodySuccess `json:"success"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
Path []string `json:"path"`
} `json:"errors"`
Success PostHostCertificate422JSONResponseBodySuccess `json:"success"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostHostCertificate500JSONResponseBodySuccess `json:"success"`
}
}
func ParsePostHostCertificateResponse ¶ added in v0.21.0
func ParsePostHostCertificateResponse(rsp *http.Response) (*PostHostCertificateResponse, error)
ParsePostHostCertificateResponse parses an HTTP response from a PostHostCertificateWithResponse call
func (PostHostCertificateResponse) ContentType ¶ added in v0.21.0
func (r PostHostCertificateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostHostCertificateResponse) GetBody ¶ added in v0.21.0
func (r PostHostCertificateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostHostCertificateResponse) GetJSON200 ¶ added in v0.21.0
func (r PostHostCertificateResponse) GetJSON200() *CertificateResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostHostCertificateResponse) GetJSON400 ¶ added in v0.21.0
func (r PostHostCertificateResponse) GetJSON400() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success PostHostCertificate400JSONResponseBodySuccess `json:"success"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostHostCertificateResponse) GetJSON401 ¶ added in v0.21.0
func (r PostHostCertificateResponse) GetJSON401() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostHostCertificate401JSONResponseBodySuccess `json:"success"` }
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostHostCertificateResponse) GetJSON403 ¶ added in v0.21.0
func (r PostHostCertificateResponse) GetJSON403() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostHostCertificate403JSONResponseBodySuccess `json:"success"` }
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostHostCertificateResponse) GetJSON422 ¶ added in v0.21.0
func (r PostHostCertificateResponse) GetJSON422() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success PostHostCertificate422JSONResponseBodySuccess `json:"success"` }
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (PostHostCertificateResponse) GetJSON500 ¶ added in v0.21.0
func (r PostHostCertificateResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostHostCertificate500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostHostCertificateResponse) Status ¶ added in v0.21.0
func (r PostHostCertificateResponse) Status() string
Status returns HTTPResponse.Status
func (PostHostCertificateResponse) StatusCode ¶ added in v0.21.0
func (r PostHostCertificateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostHostRenew400JSONResponseBodySuccess ¶ added in v0.21.0
type PostHostRenew400JSONResponseBodySuccess bool
PostHostRenew400JSONResponseBodySuccess defines parameters for PostHostRenew.
const (
PostHostRenew400JSONResponseBodySuccessFalse PostHostRenew400JSONResponseBodySuccess = false
)
Defines values for PostHostRenew400JSONResponseBodySuccess.
func (PostHostRenew400JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostHostRenew400JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostRenew400JSONResponseBodySuccess enum.
type PostHostRenew401JSONResponseBodySuccess ¶ added in v0.21.0
type PostHostRenew401JSONResponseBodySuccess bool
PostHostRenew401JSONResponseBodySuccess defines parameters for PostHostRenew.
const (
PostHostRenew401JSONResponseBodySuccessFalse PostHostRenew401JSONResponseBodySuccess = false
)
Defines values for PostHostRenew401JSONResponseBodySuccess.
func (PostHostRenew401JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostHostRenew401JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostRenew401JSONResponseBodySuccess enum.
type PostHostRenew403JSONResponseBodySuccess ¶ added in v0.21.0
type PostHostRenew403JSONResponseBodySuccess bool
PostHostRenew403JSONResponseBodySuccess defines parameters for PostHostRenew.
const (
PostHostRenew403JSONResponseBodySuccessFalse PostHostRenew403JSONResponseBodySuccess = false
)
Defines values for PostHostRenew403JSONResponseBodySuccess.
func (PostHostRenew403JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostHostRenew403JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostRenew403JSONResponseBodySuccess enum.
type PostHostRenew422JSONResponseBodySuccess ¶ added in v0.21.0
type PostHostRenew422JSONResponseBodySuccess bool
PostHostRenew422JSONResponseBodySuccess defines parameters for PostHostRenew.
const (
PostHostRenew422JSONResponseBodySuccessFalse PostHostRenew422JSONResponseBodySuccess = false
)
Defines values for PostHostRenew422JSONResponseBodySuccess.
func (PostHostRenew422JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostHostRenew422JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostRenew422JSONResponseBodySuccess enum.
type PostHostRenew500JSONResponseBodySuccess ¶ added in v0.21.0
type PostHostRenew500JSONResponseBodySuccess bool
PostHostRenew500JSONResponseBodySuccess defines parameters for PostHostRenew.
const (
PostHostRenew500JSONResponseBodySuccessFalse PostHostRenew500JSONResponseBodySuccess = false
)
Defines values for PostHostRenew500JSONResponseBodySuccess.
func (PostHostRenew500JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostHostRenew500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostRenew500JSONResponseBodySuccess enum.
type PostHostRenewJSONRequestBody ¶ added in v0.21.0
type PostHostRenewJSONRequestBody = HostCertificateRenew
PostHostRenewJSONRequestBody defines body for PostHostRenew for application/json ContentType.
type PostHostRenewResponse ¶ added in v0.21.0
type PostHostRenewResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CertificateResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
Path []string `json:"path"`
} `json:"errors"`
Success PostHostRenew400JSONResponseBodySuccess `json:"success"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostHostRenew401JSONResponseBodySuccess `json:"success"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostHostRenew403JSONResponseBodySuccess `json:"success"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
Path []string `json:"path"`
} `json:"errors"`
Success PostHostRenew422JSONResponseBodySuccess `json:"success"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostHostRenew500JSONResponseBodySuccess `json:"success"`
}
}
func ParsePostHostRenewResponse ¶ added in v0.21.0
func ParsePostHostRenewResponse(rsp *http.Response) (*PostHostRenewResponse, error)
ParsePostHostRenewResponse parses an HTTP response from a PostHostRenewWithResponse call
func (PostHostRenewResponse) ContentType ¶ added in v0.21.0
func (r PostHostRenewResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostHostRenewResponse) GetBody ¶ added in v0.21.0
func (r PostHostRenewResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostHostRenewResponse) GetJSON200 ¶ added in v0.21.0
func (r PostHostRenewResponse) GetJSON200() *CertificateResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostHostRenewResponse) GetJSON400 ¶ added in v0.21.0
func (r PostHostRenewResponse) GetJSON400() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success PostHostRenew400JSONResponseBodySuccess `json:"success"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostHostRenewResponse) GetJSON401 ¶ added in v0.21.0
func (r PostHostRenewResponse) GetJSON401() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostHostRenew401JSONResponseBodySuccess `json:"success"` }
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostHostRenewResponse) GetJSON403 ¶ added in v0.21.0
func (r PostHostRenewResponse) GetJSON403() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostHostRenew403JSONResponseBodySuccess `json:"success"` }
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostHostRenewResponse) GetJSON422 ¶ added in v0.21.0
func (r PostHostRenewResponse) GetJSON422() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success PostHostRenew422JSONResponseBodySuccess `json:"success"` }
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (PostHostRenewResponse) GetJSON500 ¶ added in v0.21.0
func (r PostHostRenewResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostHostRenew500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostHostRenewResponse) Status ¶ added in v0.21.0
func (r PostHostRenewResponse) Status() string
Status returns HTTPResponse.Status
func (PostHostRenewResponse) StatusCode ¶ added in v0.21.0
func (r PostHostRenewResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostUserCertificate400JSONResponseBodySuccess ¶ added in v0.21.0
type PostUserCertificate400JSONResponseBodySuccess bool
PostUserCertificate400JSONResponseBodySuccess defines parameters for PostUserCertificate.
const (
PostUserCertificate400JSONResponseBodySuccessFalse PostUserCertificate400JSONResponseBodySuccess = false
)
Defines values for PostUserCertificate400JSONResponseBodySuccess.
func (PostUserCertificate400JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostUserCertificate400JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostUserCertificate400JSONResponseBodySuccess enum.
type PostUserCertificate401JSONResponseBodySuccess ¶ added in v0.21.0
type PostUserCertificate401JSONResponseBodySuccess bool
PostUserCertificate401JSONResponseBodySuccess defines parameters for PostUserCertificate.
const (
PostUserCertificate401JSONResponseBodySuccessFalse PostUserCertificate401JSONResponseBodySuccess = false
)
Defines values for PostUserCertificate401JSONResponseBodySuccess.
func (PostUserCertificate401JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostUserCertificate401JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostUserCertificate401JSONResponseBodySuccess enum.
type PostUserCertificate403JSONResponseBodySuccess ¶ added in v0.21.0
type PostUserCertificate403JSONResponseBodySuccess bool
PostUserCertificate403JSONResponseBodySuccess defines parameters for PostUserCertificate.
const (
PostUserCertificate403JSONResponseBodySuccessFalse PostUserCertificate403JSONResponseBodySuccess = false
)
Defines values for PostUserCertificate403JSONResponseBodySuccess.
func (PostUserCertificate403JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostUserCertificate403JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostUserCertificate403JSONResponseBodySuccess enum.
type PostUserCertificate422JSONResponseBodySuccess ¶ added in v0.21.0
type PostUserCertificate422JSONResponseBodySuccess bool
PostUserCertificate422JSONResponseBodySuccess defines parameters for PostUserCertificate.
const (
PostUserCertificate422JSONResponseBodySuccessFalse PostUserCertificate422JSONResponseBodySuccess = false
)
Defines values for PostUserCertificate422JSONResponseBodySuccess.
func (PostUserCertificate422JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostUserCertificate422JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostUserCertificate422JSONResponseBodySuccess enum.
type PostUserCertificate500JSONResponseBodySuccess ¶ added in v0.21.0
type PostUserCertificate500JSONResponseBodySuccess bool
PostUserCertificate500JSONResponseBodySuccess defines parameters for PostUserCertificate.
const (
PostUserCertificate500JSONResponseBodySuccessFalse PostUserCertificate500JSONResponseBodySuccess = false
)
Defines values for PostUserCertificate500JSONResponseBodySuccess.
func (PostUserCertificate500JSONResponseBodySuccess) Valid ¶ added in v0.21.0
func (e PostUserCertificate500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostUserCertificate500JSONResponseBodySuccess enum.
type PostUserCertificateJSONRequestBody ¶ added in v0.21.0
type PostUserCertificateJSONRequestBody = UserCertificateRequest
PostUserCertificateJSONRequestBody defines body for PostUserCertificate for application/json ContentType.
type PostUserCertificateParams ¶ added in v0.21.0
type PostUserCertificateParams struct {
// Authorization Access Token JWT from OIDC IdP
Authorization string `json:"Authorization"`
}
PostUserCertificateParams defines parameters for PostUserCertificate.
type PostUserCertificateResponse ¶ added in v0.21.0
type PostUserCertificateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CertificateResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
Path []string `json:"path"`
} `json:"errors"`
Success PostUserCertificate400JSONResponseBodySuccess `json:"success"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostUserCertificate401JSONResponseBodySuccess `json:"success"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostUserCertificate403JSONResponseBodySuccess `json:"success"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
Path []string `json:"path"`
} `json:"errors"`
Success PostUserCertificate422JSONResponseBodySuccess `json:"success"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostUserCertificate500JSONResponseBodySuccess `json:"success"`
}
}
func ParsePostUserCertificateResponse ¶ added in v0.21.0
func ParsePostUserCertificateResponse(rsp *http.Response) (*PostUserCertificateResponse, error)
ParsePostUserCertificateResponse parses an HTTP response from a PostUserCertificateWithResponse call
func (PostUserCertificateResponse) ContentType ¶ added in v0.21.0
func (r PostUserCertificateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostUserCertificateResponse) GetBody ¶ added in v0.21.0
func (r PostUserCertificateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostUserCertificateResponse) GetJSON200 ¶ added in v0.21.0
func (r PostUserCertificateResponse) GetJSON200() *CertificateResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostUserCertificateResponse) GetJSON400 ¶ added in v0.21.0
func (r PostUserCertificateResponse) GetJSON400() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success PostUserCertificate400JSONResponseBodySuccess `json:"success"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostUserCertificateResponse) GetJSON401 ¶ added in v0.21.0
func (r PostUserCertificateResponse) GetJSON401() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostUserCertificate401JSONResponseBodySuccess `json:"success"` }
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostUserCertificateResponse) GetJSON403 ¶ added in v0.21.0
func (r PostUserCertificateResponse) GetJSON403() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostUserCertificate403JSONResponseBodySuccess `json:"success"` }
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostUserCertificateResponse) GetJSON422 ¶ added in v0.21.0
func (r PostUserCertificateResponse) GetJSON422() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success PostUserCertificate422JSONResponseBodySuccess `json:"success"` }
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (PostUserCertificateResponse) GetJSON500 ¶ added in v0.21.0
func (r PostUserCertificateResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostUserCertificate500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostUserCertificateResponse) Status ¶ added in v0.21.0
func (r PostUserCertificateResponse) Status() string
Status returns HTTPResponse.Status
func (PostUserCertificateResponse) StatusCode ¶ added in v0.21.0
func (r PostUserCertificateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RevocationResponse ¶
RevocationResponse defines model for Revocation Response.
type UserCertificateRequest ¶
type UserCertificateRequest struct {
// Extensions Extensions to include in the issued SSH certificate
Extensions *[]string `json:"extensions,omitempty"`
// Identity Identity Token JWT from OIDC IdP
Identity string `json:"identity"`
// Lifetime Lifetime of issued SSH certificate
Lifetime *int `json:"lifetime,omitempty"`
// Proof Proof of possession comprising of ${timestamp}.${fingerprint}.${signature}
Proof string `json:"proof"`
// PublicKey SSH public key to sign
PublicKey []byte `json:"public_key"`
}
UserCertificateRequest defines model for User Certificate Request.