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 NewGetHostKrlRequest(server string) (*http.Request, error)
- func NewGetUserKrlRequest(server string) (*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 NewPostHostRevokeRequest(server string, body PostHostRevokeJSONRequestBody) (*http.Request, error)
- func NewPostHostRevokeRequestWithBody(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 NewPostUserRevokeRequest(server string, body PostUserRevokeJSONRequestBody) (*http.Request, error)
- func NewPostUserRevokeRequestWithBody(server string, contentType string, body io.Reader) (*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) GetHostKrl(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUserKrl(ctx context.Context, reqEditors ...RequestEditorFn) (*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) PostHostRevoke(ctx context.Context, body PostHostRevokeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostHostRevokeWithBody(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)
- func (c *Client) PostUserRevoke(ctx context.Context, body PostUserRevokeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostUserRevokeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetCaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaResponse, error)
- func (c *ClientWithResponses) GetHostKrlWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHostKrlResponse, error)
- func (c *ClientWithResponses) GetUserKrlWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserKrlResponse, 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) PostHostRevokeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostHostRevokeResponse, error)
- func (c *ClientWithResponses) PostHostRevokeWithResponse(ctx context.Context, body PostHostRevokeJSONRequestBody, ...) (*PostHostRevokeResponse, 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)
- func (c *ClientWithResponses) PostUserRevokeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostUserRevokeResponse, error)
- func (c *ClientWithResponses) PostUserRevokeWithResponse(ctx context.Context, body PostUserRevokeJSONRequestBody, ...) (*PostUserRevokeResponse, error)
- type ClientWithResponsesInterface
- type GetCa500JSONResponseBodySuccess
- type GetCaResponse
- type GetHostKrl500JSONResponseBodySuccess
- type GetHostKrlResponse
- type GetUserKrl500JSONResponseBodySuccess
- type GetUserKrlResponse
- type HostCertificateRenew
- type HostCertificateRequest
- type HttpRequestDoer
- type KeyRevocationListResponse
- 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 PostHostRevoke400JSONResponseBodySuccess
- type PostHostRevoke401JSONResponseBodySuccess
- type PostHostRevoke403JSONResponseBodySuccess
- type PostHostRevoke409JSONResponseBodySuccess
- type PostHostRevoke422JSONResponseBodySuccess
- type PostHostRevoke500JSONResponseBodySuccess
- type PostHostRevokeJSONRequestBody
- type PostHostRevokeResponse
- func (r PostHostRevokeResponse) ContentType() string
- func (r PostHostRevokeResponse) GetBody() []byte
- func (r PostHostRevokeResponse) GetJSON200() *RevocationResponse
- func (r PostHostRevokeResponse) GetJSON400() ...
- func (r PostHostRevokeResponse) GetJSON401() ...
- func (r PostHostRevokeResponse) GetJSON403() ...
- func (r PostHostRevokeResponse) GetJSON409() ...
- func (r PostHostRevokeResponse) GetJSON422() ...
- func (r PostHostRevokeResponse) GetJSON500() ...
- func (r PostHostRevokeResponse) Status() string
- func (r PostHostRevokeResponse) 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 PostUserRevoke400JSONResponseBodySuccess
- type PostUserRevoke401JSONResponseBodySuccess
- type PostUserRevoke403JSONResponseBodySuccess
- type PostUserRevoke409JSONResponseBodySuccess
- type PostUserRevoke422JSONResponseBodySuccess
- type PostUserRevoke500JSONResponseBodySuccess
- type PostUserRevokeJSONRequestBody
- type PostUserRevokeResponse
- func (r PostUserRevokeResponse) ContentType() string
- func (r PostUserRevokeResponse) GetBody() []byte
- func (r PostUserRevokeResponse) GetJSON200() *RevocationResponse
- func (r PostUserRevokeResponse) GetJSON400() ...
- func (r PostUserRevokeResponse) GetJSON401() ...
- func (r PostUserRevokeResponse) GetJSON403() ...
- func (r PostUserRevokeResponse) GetJSON409() ...
- func (r PostUserRevokeResponse) GetJSON422() ...
- func (r PostUserRevokeResponse) GetJSON500() ...
- func (r PostUserRevokeResponse) Status() string
- func (r PostUserRevokeResponse) 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 NewGetHostKrlRequest ¶ added in v0.23.1
NewGetHostKrlRequest constructs an http.Request for the GetHostKrl method
func NewGetUserKrlRequest ¶ added in v0.23.1
NewGetUserKrlRequest constructs an http.Request for the GetUserKrl method
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 NewPostHostRevokeRequest ¶ added in v0.23.1
func NewPostHostRevokeRequest(server string, body PostHostRevokeJSONRequestBody) (*http.Request, error)
NewPostHostRevokeRequest calls the generic PostHostRevoke builder with application/json body
func NewPostHostRevokeRequestWithBody ¶ added in v0.23.1
func NewPostHostRevokeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostHostRevokeRequestWithBody constructs an http.Request for the PostHostRevoke 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 NewPostUserRevokeRequest ¶ added in v0.23.1
func NewPostUserRevokeRequest(server string, body PostUserRevokeJSONRequestBody) (*http.Request, error)
NewPostUserRevokeRequest calls the generic PostUserRevoke builder with application/json body
func NewPostUserRevokeRequestWithBody ¶ added in v0.23.1
func NewPostUserRevokeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostUserRevokeRequestWithBody constructs an http.Request for the PostUserRevoke 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) GetHostKrl ¶ added in v0.23.1
func (c *Client) GetHostKrl(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHostKrl Get the Key Revocation List for host certificates
Corresponds with GET /api/v3/host/krl (the `GetHostKrl` operationId).
func (*Client) GetUserKrl ¶ added in v0.23.1
func (c *Client) GetUserKrl(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetUserKrl Get the Key Revocation List for user certificates
Corresponds with GET /api/v3/user/krl (the `GetUserKrl` operationId).
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) PostHostRevoke ¶ added in v0.23.1
func (c *Client) PostHostRevoke(ctx context.Context, body PostHostRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostHostRevoke Revoke a host certificate
Takes a body of the `application/json` content type.
Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).
func (*Client) PostHostRevokeWithBody ¶ added in v0.23.1
func (c *Client) PostHostRevokeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostHostRevokeWithBody Revoke a host certificate
Takes any type of body and a specified content type.
Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).
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.
func (*Client) PostUserRevoke ¶ added in v0.23.1
func (c *Client) PostUserRevoke(ctx context.Context, body PostUserRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostUserRevoke Revoke a user certificate
Takes a body of the `application/json` content type.
Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).
func (*Client) PostUserRevokeWithBody ¶ added in v0.23.1
func (c *Client) PostUserRevokeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostUserRevokeWithBody Revoke a user certificate
Takes any type of body and a specified content type.
Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).
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)
// GetHostKrl Get the Key Revocation List for host certificates
//
// Corresponds with GET /api/v3/host/krl (the `GetHostKrl` operationId).
GetHostKrl(ctx context.Context, 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)
// PostHostRevokeWithBody Revoke a host certificate
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).
PostHostRevokeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostHostRevoke Revoke a host certificate
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).
PostHostRevoke(ctx context.Context, body PostHostRevokeJSONRequestBody, 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)
// GetUserKrl Get the Key Revocation List for user certificates
//
// Corresponds with GET /api/v3/user/krl (the `GetUserKrl` operationId).
GetUserKrl(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostUserRevokeWithBody Revoke a user certificate
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).
PostUserRevokeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostUserRevoke Revoke a user certificate
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).
PostUserRevoke(ctx context.Context, body PostUserRevokeJSONRequestBody, 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) GetHostKrlWithResponse ¶ added in v0.23.1
func (c *ClientWithResponses) GetHostKrlWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHostKrlResponse, error)
GetHostKrlWithResponse Get the Key Revocation List for host certificates
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v3/host/krl (the `GetHostKrl` operationId).
func (*ClientWithResponses) GetUserKrlWithResponse ¶ added in v0.23.1
func (c *ClientWithResponses) GetUserKrlWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserKrlResponse, error)
GetUserKrlWithResponse Get the Key Revocation List for user certificates
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v3/user/krl (the `GetUserKrl` operationId).
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) PostHostRevokeWithBodyWithResponse ¶ added in v0.23.1
func (c *ClientWithResponses) PostHostRevokeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostRevokeResponse, error)
PostHostRevokeWithBodyWithResponse Revoke a host certificate
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).
func (*ClientWithResponses) PostHostRevokeWithResponse ¶ added in v0.23.1
func (c *ClientWithResponses) PostHostRevokeWithResponse(ctx context.Context, body PostHostRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostRevokeResponse, error)
PostHostRevokeWithResponse Revoke a host certificate
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).
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).
func (*ClientWithResponses) PostUserRevokeWithBodyWithResponse ¶ added in v0.23.1
func (c *ClientWithResponses) PostUserRevokeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserRevokeResponse, error)
PostUserRevokeWithBodyWithResponse Revoke a user certificate
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).
func (*ClientWithResponses) PostUserRevokeWithResponse ¶ added in v0.23.1
func (c *ClientWithResponses) PostUserRevokeWithResponse(ctx context.Context, body PostUserRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserRevokeResponse, error)
PostUserRevokeWithResponse Revoke a user certificate
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).
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)
// GetHostKrlWithResponse Get the Key Revocation List for host certificates
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v3/host/krl (the `GetHostKrl` operationId).
GetHostKrlWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHostKrlResponse, 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)
// PostHostRevokeWithBodyWithResponse Revoke a host certificate
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).
PostHostRevokeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostRevokeResponse, error)
// PostHostRevokeWithResponse Revoke a host certificate
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).
PostHostRevokeWithResponse(ctx context.Context, body PostHostRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostRevokeResponse, 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)
// GetUserKrlWithResponse Get the Key Revocation List for user certificates
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v3/user/krl (the `GetUserKrl` operationId).
GetUserKrlWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserKrlResponse, error)
// PostUserRevokeWithBodyWithResponse Revoke a user certificate
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).
PostUserRevokeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserRevokeResponse, error)
// PostUserRevokeWithResponse Revoke a user certificate
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).
PostUserRevokeWithResponse(ctx context.Context, body PostUserRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserRevokeResponse, 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 GetHostKrl500JSONResponseBodySuccess ¶ added in v0.23.1
type GetHostKrl500JSONResponseBodySuccess bool
GetHostKrl500JSONResponseBodySuccess defines parameters for GetHostKrl.
const (
GetHostKrl500JSONResponseBodySuccessFalse GetHostKrl500JSONResponseBodySuccess = false
)
Defines values for GetHostKrl500JSONResponseBodySuccess.
func (GetHostKrl500JSONResponseBodySuccess) Valid ¶ added in v0.23.1
func (e GetHostKrl500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the GetHostKrl500JSONResponseBodySuccess enum.
type GetHostKrlResponse ¶ added in v0.23.1
type GetHostKrlResponse 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 GetHostKrl500JSONResponseBodySuccess `json:"success"`
}
}
func ParseGetHostKrlResponse ¶ added in v0.23.1
func ParseGetHostKrlResponse(rsp *http.Response) (*GetHostKrlResponse, error)
ParseGetHostKrlResponse parses an HTTP response from a GetHostKrlWithResponse call
func (GetHostKrlResponse) ContentType ¶ added in v0.23.1
func (r GetHostKrlResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHostKrlResponse) GetBody ¶ added in v0.23.1
func (r GetHostKrlResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHostKrlResponse) GetJSON200 ¶ added in v0.23.1
func (r GetHostKrlResponse) GetJSON200() *KeyRevocationListResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetHostKrlResponse) GetJSON500 ¶ added in v0.23.1
func (r GetHostKrlResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success GetHostKrl500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetHostKrlResponse) Status ¶ added in v0.23.1
func (r GetHostKrlResponse) Status() string
Status returns HTTPResponse.Status
func (GetHostKrlResponse) StatusCode ¶ added in v0.23.1
func (r GetHostKrlResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserKrl500JSONResponseBodySuccess ¶ added in v0.23.1
type GetUserKrl500JSONResponseBodySuccess bool
GetUserKrl500JSONResponseBodySuccess defines parameters for GetUserKrl.
const (
GetUserKrl500JSONResponseBodySuccessFalse GetUserKrl500JSONResponseBodySuccess = false
)
Defines values for GetUserKrl500JSONResponseBodySuccess.
func (GetUserKrl500JSONResponseBodySuccess) Valid ¶ added in v0.23.1
func (e GetUserKrl500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the GetUserKrl500JSONResponseBodySuccess enum.
type GetUserKrlResponse ¶ added in v0.23.1
type GetUserKrlResponse 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 GetUserKrl500JSONResponseBodySuccess `json:"success"`
}
}
func ParseGetUserKrlResponse ¶ added in v0.23.1
func ParseGetUserKrlResponse(rsp *http.Response) (*GetUserKrlResponse, error)
ParseGetUserKrlResponse parses an HTTP response from a GetUserKrlWithResponse call
func (GetUserKrlResponse) ContentType ¶ added in v0.23.1
func (r GetUserKrlResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetUserKrlResponse) GetBody ¶ added in v0.23.1
func (r GetUserKrlResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetUserKrlResponse) GetJSON200 ¶ added in v0.23.1
func (r GetUserKrlResponse) GetJSON200() *KeyRevocationListResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetUserKrlResponse) GetJSON500 ¶ added in v0.23.1
func (r GetUserKrlResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success GetUserKrl500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetUserKrlResponse) Status ¶ added in v0.23.1
func (r GetUserKrlResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserKrlResponse) StatusCode ¶ added in v0.23.1
func (r GetUserKrlResponse) 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 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 PostHostRevoke400JSONResponseBodySuccess ¶ added in v0.23.1
type PostHostRevoke400JSONResponseBodySuccess bool
PostHostRevoke400JSONResponseBodySuccess defines parameters for PostHostRevoke.
const (
PostHostRevoke400JSONResponseBodySuccessFalse PostHostRevoke400JSONResponseBodySuccess = false
)
Defines values for PostHostRevoke400JSONResponseBodySuccess.
func (PostHostRevoke400JSONResponseBodySuccess) Valid ¶ added in v0.23.1
func (e PostHostRevoke400JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostRevoke400JSONResponseBodySuccess enum.
type PostHostRevoke401JSONResponseBodySuccess ¶ added in v0.23.1
type PostHostRevoke401JSONResponseBodySuccess bool
PostHostRevoke401JSONResponseBodySuccess defines parameters for PostHostRevoke.
const (
PostHostRevoke401JSONResponseBodySuccessFalse PostHostRevoke401JSONResponseBodySuccess = false
)
Defines values for PostHostRevoke401JSONResponseBodySuccess.
func (PostHostRevoke401JSONResponseBodySuccess) Valid ¶ added in v0.23.1
func (e PostHostRevoke401JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostRevoke401JSONResponseBodySuccess enum.
type PostHostRevoke403JSONResponseBodySuccess ¶ added in v0.23.1
type PostHostRevoke403JSONResponseBodySuccess bool
PostHostRevoke403JSONResponseBodySuccess defines parameters for PostHostRevoke.
const (
PostHostRevoke403JSONResponseBodySuccessFalse PostHostRevoke403JSONResponseBodySuccess = false
)
Defines values for PostHostRevoke403JSONResponseBodySuccess.
func (PostHostRevoke403JSONResponseBodySuccess) Valid ¶ added in v0.23.1
func (e PostHostRevoke403JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostRevoke403JSONResponseBodySuccess enum.
type PostHostRevoke409JSONResponseBodySuccess ¶ added in v0.23.1
type PostHostRevoke409JSONResponseBodySuccess bool
PostHostRevoke409JSONResponseBodySuccess defines parameters for PostHostRevoke.
const (
PostHostRevoke409JSONResponseBodySuccessFalse PostHostRevoke409JSONResponseBodySuccess = false
)
Defines values for PostHostRevoke409JSONResponseBodySuccess.
func (PostHostRevoke409JSONResponseBodySuccess) Valid ¶ added in v0.23.1
func (e PostHostRevoke409JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostRevoke409JSONResponseBodySuccess enum.
type PostHostRevoke422JSONResponseBodySuccess ¶ added in v0.23.1
type PostHostRevoke422JSONResponseBodySuccess bool
PostHostRevoke422JSONResponseBodySuccess defines parameters for PostHostRevoke.
const (
PostHostRevoke422JSONResponseBodySuccessFalse PostHostRevoke422JSONResponseBodySuccess = false
)
Defines values for PostHostRevoke422JSONResponseBodySuccess.
func (PostHostRevoke422JSONResponseBodySuccess) Valid ¶ added in v0.23.1
func (e PostHostRevoke422JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostRevoke422JSONResponseBodySuccess enum.
type PostHostRevoke500JSONResponseBodySuccess ¶ added in v0.23.1
type PostHostRevoke500JSONResponseBodySuccess bool
PostHostRevoke500JSONResponseBodySuccess defines parameters for PostHostRevoke.
const (
PostHostRevoke500JSONResponseBodySuccessFalse PostHostRevoke500JSONResponseBodySuccess = false
)
Defines values for PostHostRevoke500JSONResponseBodySuccess.
func (PostHostRevoke500JSONResponseBodySuccess) Valid ¶ added in v0.23.1
func (e PostHostRevoke500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostRevoke500JSONResponseBodySuccess enum.
type PostHostRevokeJSONRequestBody ¶ added in v0.23.1
type PostHostRevokeJSONRequestBody = CertificateRevocation
PostHostRevokeJSONRequestBody defines body for PostHostRevoke for application/json ContentType.
type PostHostRevokeResponse ¶ added in v0.23.1
type PostHostRevokeResponse 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 PostHostRevoke400JSONResponseBodySuccess `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 PostHostRevoke401JSONResponseBodySuccess `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 PostHostRevoke403JSONResponseBodySuccess `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 PostHostRevoke409JSONResponseBodySuccess `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 PostHostRevoke422JSONResponseBodySuccess `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 PostHostRevoke500JSONResponseBodySuccess `json:"success"`
}
}
func ParsePostHostRevokeResponse ¶ added in v0.23.1
func ParsePostHostRevokeResponse(rsp *http.Response) (*PostHostRevokeResponse, error)
ParsePostHostRevokeResponse parses an HTTP response from a PostHostRevokeWithResponse call
func (PostHostRevokeResponse) ContentType ¶ added in v0.23.1
func (r PostHostRevokeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostHostRevokeResponse) GetBody ¶ added in v0.23.1
func (r PostHostRevokeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostHostRevokeResponse) GetJSON200 ¶ added in v0.23.1
func (r PostHostRevokeResponse) GetJSON200() *RevocationResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostHostRevokeResponse) GetJSON400 ¶ added in v0.23.1
func (r PostHostRevokeResponse) GetJSON400() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success PostHostRevoke400JSONResponseBodySuccess `json:"success"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostHostRevokeResponse) GetJSON401 ¶ added in v0.23.1
func (r PostHostRevokeResponse) GetJSON401() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostHostRevoke401JSONResponseBodySuccess `json:"success"` }
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostHostRevokeResponse) GetJSON403 ¶ added in v0.23.1
func (r PostHostRevokeResponse) GetJSON403() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostHostRevoke403JSONResponseBodySuccess `json:"success"` }
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostHostRevokeResponse) GetJSON409 ¶ added in v0.23.1
func (r PostHostRevokeResponse) GetJSON409() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostHostRevoke409JSONResponseBodySuccess `json:"success"` }
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PostHostRevokeResponse) GetJSON422 ¶ added in v0.23.1
func (r PostHostRevokeResponse) GetJSON422() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success PostHostRevoke422JSONResponseBodySuccess `json:"success"` }
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (PostHostRevokeResponse) GetJSON500 ¶ added in v0.23.1
func (r PostHostRevokeResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostHostRevoke500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostHostRevokeResponse) Status ¶ added in v0.23.1
func (r PostHostRevokeResponse) Status() string
Status returns HTTPResponse.Status
func (PostHostRevokeResponse) StatusCode ¶ added in v0.23.1
func (r PostHostRevokeResponse) 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 PostUserRevoke400JSONResponseBodySuccess ¶ added in v0.23.1
type PostUserRevoke400JSONResponseBodySuccess bool
PostUserRevoke400JSONResponseBodySuccess defines parameters for PostUserRevoke.
const (
PostUserRevoke400JSONResponseBodySuccessFalse PostUserRevoke400JSONResponseBodySuccess = false
)
Defines values for PostUserRevoke400JSONResponseBodySuccess.
func (PostUserRevoke400JSONResponseBodySuccess) Valid ¶ added in v0.23.1
func (e PostUserRevoke400JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostUserRevoke400JSONResponseBodySuccess enum.
type PostUserRevoke401JSONResponseBodySuccess ¶ added in v0.23.1
type PostUserRevoke401JSONResponseBodySuccess bool
PostUserRevoke401JSONResponseBodySuccess defines parameters for PostUserRevoke.
const (
PostUserRevoke401JSONResponseBodySuccessFalse PostUserRevoke401JSONResponseBodySuccess = false
)
Defines values for PostUserRevoke401JSONResponseBodySuccess.
func (PostUserRevoke401JSONResponseBodySuccess) Valid ¶ added in v0.23.1
func (e PostUserRevoke401JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostUserRevoke401JSONResponseBodySuccess enum.
type PostUserRevoke403JSONResponseBodySuccess ¶ added in v0.23.1
type PostUserRevoke403JSONResponseBodySuccess bool
PostUserRevoke403JSONResponseBodySuccess defines parameters for PostUserRevoke.
const (
PostUserRevoke403JSONResponseBodySuccessFalse PostUserRevoke403JSONResponseBodySuccess = false
)
Defines values for PostUserRevoke403JSONResponseBodySuccess.
func (PostUserRevoke403JSONResponseBodySuccess) Valid ¶ added in v0.23.1
func (e PostUserRevoke403JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostUserRevoke403JSONResponseBodySuccess enum.
type PostUserRevoke409JSONResponseBodySuccess ¶ added in v0.23.1
type PostUserRevoke409JSONResponseBodySuccess bool
PostUserRevoke409JSONResponseBodySuccess defines parameters for PostUserRevoke.
const (
PostUserRevoke409JSONResponseBodySuccessFalse PostUserRevoke409JSONResponseBodySuccess = false
)
Defines values for PostUserRevoke409JSONResponseBodySuccess.
func (PostUserRevoke409JSONResponseBodySuccess) Valid ¶ added in v0.23.1
func (e PostUserRevoke409JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostUserRevoke409JSONResponseBodySuccess enum.
type PostUserRevoke422JSONResponseBodySuccess ¶ added in v0.23.1
type PostUserRevoke422JSONResponseBodySuccess bool
PostUserRevoke422JSONResponseBodySuccess defines parameters for PostUserRevoke.
const (
PostUserRevoke422JSONResponseBodySuccessFalse PostUserRevoke422JSONResponseBodySuccess = false
)
Defines values for PostUserRevoke422JSONResponseBodySuccess.
func (PostUserRevoke422JSONResponseBodySuccess) Valid ¶ added in v0.23.1
func (e PostUserRevoke422JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostUserRevoke422JSONResponseBodySuccess enum.
type PostUserRevoke500JSONResponseBodySuccess ¶ added in v0.23.1
type PostUserRevoke500JSONResponseBodySuccess bool
PostUserRevoke500JSONResponseBodySuccess defines parameters for PostUserRevoke.
const (
PostUserRevoke500JSONResponseBodySuccessFalse PostUserRevoke500JSONResponseBodySuccess = false
)
Defines values for PostUserRevoke500JSONResponseBodySuccess.
func (PostUserRevoke500JSONResponseBodySuccess) Valid ¶ added in v0.23.1
func (e PostUserRevoke500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostUserRevoke500JSONResponseBodySuccess enum.
type PostUserRevokeJSONRequestBody ¶ added in v0.23.1
type PostUserRevokeJSONRequestBody = CertificateRevocation
PostUserRevokeJSONRequestBody defines body for PostUserRevoke for application/json ContentType.
type PostUserRevokeResponse ¶ added in v0.23.1
type PostUserRevokeResponse 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 PostUserRevoke400JSONResponseBodySuccess `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 PostUserRevoke401JSONResponseBodySuccess `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 PostUserRevoke403JSONResponseBodySuccess `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 PostUserRevoke409JSONResponseBodySuccess `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 PostUserRevoke422JSONResponseBodySuccess `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 PostUserRevoke500JSONResponseBodySuccess `json:"success"`
}
}
func ParsePostUserRevokeResponse ¶ added in v0.23.1
func ParsePostUserRevokeResponse(rsp *http.Response) (*PostUserRevokeResponse, error)
ParsePostUserRevokeResponse parses an HTTP response from a PostUserRevokeWithResponse call
func (PostUserRevokeResponse) ContentType ¶ added in v0.23.1
func (r PostUserRevokeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostUserRevokeResponse) GetBody ¶ added in v0.23.1
func (r PostUserRevokeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostUserRevokeResponse) GetJSON200 ¶ added in v0.23.1
func (r PostUserRevokeResponse) GetJSON200() *RevocationResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostUserRevokeResponse) GetJSON400 ¶ added in v0.23.1
func (r PostUserRevokeResponse) GetJSON400() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success PostUserRevoke400JSONResponseBodySuccess `json:"success"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostUserRevokeResponse) GetJSON401 ¶ added in v0.23.1
func (r PostUserRevokeResponse) GetJSON401() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostUserRevoke401JSONResponseBodySuccess `json:"success"` }
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostUserRevokeResponse) GetJSON403 ¶ added in v0.23.1
func (r PostUserRevokeResponse) GetJSON403() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostUserRevoke403JSONResponseBodySuccess `json:"success"` }
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostUserRevokeResponse) GetJSON409 ¶ added in v0.23.1
func (r PostUserRevokeResponse) GetJSON409() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostUserRevoke409JSONResponseBodySuccess `json:"success"` }
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PostUserRevokeResponse) GetJSON422 ¶ added in v0.23.1
func (r PostUserRevokeResponse) GetJSON422() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success PostUserRevoke422JSONResponseBodySuccess `json:"success"` }
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (PostUserRevokeResponse) GetJSON500 ¶ added in v0.23.1
func (r PostUserRevokeResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostUserRevoke500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostUserRevokeResponse) Status ¶ added in v0.23.1
func (r PostUserRevokeResponse) Status() string
Status returns HTTPResponse.Status
func (PostUserRevokeResponse) StatusCode ¶ added in v0.23.1
func (r PostUserRevokeResponse) 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.