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.1 DO NOT EDIT.
Index ¶
- func NewGetCaPublicKeyRequest(server string) (*http.Request, error)
- func NewGetCaRequest(server string) (*http.Request, error)
- func NewGetHostKrlRequest(server string) (*http.Request, error)
- func NewGetHostRevocationListRequest(server string) (*http.Request, error)
- func NewGetUserKrlRequest(server string) (*http.Request, error)
- func NewGetUserRevocationListRequest(server string) (*http.Request, error)
- func NewIssueHostCertificateRequest(server string, params *IssueHostCertificateParams, ...) (*http.Request, error)
- func NewIssueHostCertificateRequestWithBody(server string, params *IssueHostCertificateParams, contentType string, ...) (*http.Request, error)
- func NewIssueUserCertificateRequest(server string, params *IssueUserCertificateParams, ...) (*http.Request, error)
- func NewIssueUserCertificateRequestWithBody(server string, params *IssueUserCertificateParams, contentType 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 NewRenewHostCertificateRequest(server string, serial string, params *RenewHostCertificateParams, ...) (*http.Request, error)
- func NewRenewHostCertificateRequestWithBody(server string, serial string, params *RenewHostCertificateParams, ...) (*http.Request, error)
- func NewRevokeHostCertificateRequest(server string, serial string, params *RevokeHostCertificateParams) (*http.Request, error)
- func NewRevokeUserCertificateRequest(server string, serial string, params *RevokeUserCertificateParams) (*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) GetCaPublicKey(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHostKrl(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHostRevocationList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUserKrl(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUserRevocationList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) IssueHostCertificate(ctx context.Context, params *IssueHostCertificateParams, ...) (*http.Response, error)
- func (c *Client) IssueHostCertificateWithBody(ctx context.Context, params *IssueHostCertificateParams, contentType string, ...) (*http.Response, error)
- func (c *Client) IssueUserCertificate(ctx context.Context, params *IssueUserCertificateParams, ...) (*http.Response, error)
- func (c *Client) IssueUserCertificateWithBody(ctx context.Context, params *IssueUserCertificateParams, contentType string, ...) (*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)
- func (c *Client) RenewHostCertificate(ctx context.Context, serial string, params *RenewHostCertificateParams, ...) (*http.Response, error)
- func (c *Client) RenewHostCertificateWithBody(ctx context.Context, serial string, params *RenewHostCertificateParams, ...) (*http.Response, error)
- func (c *Client) RevokeHostCertificate(ctx context.Context, serial string, params *RevokeHostCertificateParams, ...) (*http.Response, error)
- func (c *Client) RevokeUserCertificate(ctx context.Context, serial string, params *RevokeUserCertificateParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetCaPublicKeyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaPublicKeyResponse, error)
- 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) GetHostRevocationListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHostRevocationListResponse, error)
- func (c *ClientWithResponses) GetUserKrlWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserKrlResponse, error)
- func (c *ClientWithResponses) GetUserRevocationListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserRevocationListResponse, error)
- func (c *ClientWithResponses) IssueHostCertificateWithBodyWithResponse(ctx context.Context, params *IssueHostCertificateParams, contentType string, ...) (*IssueHostCertificateResponse, error)
- func (c *ClientWithResponses) IssueHostCertificateWithResponse(ctx context.Context, params *IssueHostCertificateParams, ...) (*IssueHostCertificateResponse, error)
- func (c *ClientWithResponses) IssueUserCertificateWithBodyWithResponse(ctx context.Context, params *IssueUserCertificateParams, contentType string, ...) (*IssueUserCertificateResponse, error)
- func (c *ClientWithResponses) IssueUserCertificateWithResponse(ctx context.Context, params *IssueUserCertificateParams, ...) (*IssueUserCertificateResponse, 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)
- func (c *ClientWithResponses) RenewHostCertificateWithBodyWithResponse(ctx context.Context, serial string, params *RenewHostCertificateParams, ...) (*RenewHostCertificateResponse, error)
- func (c *ClientWithResponses) RenewHostCertificateWithResponse(ctx context.Context, serial string, params *RenewHostCertificateParams, ...) (*RenewHostCertificateResponse, error)
- func (c *ClientWithResponses) RevokeHostCertificateWithResponse(ctx context.Context, serial string, params *RevokeHostCertificateParams, ...) (*RevokeHostCertificateResponse, error)
- func (c *ClientWithResponses) RevokeUserCertificateWithResponse(ctx context.Context, serial string, params *RevokeUserCertificateParams, ...) (*RevokeUserCertificateResponse, error)
- type ClientWithResponsesInterface
- type GetCa500JSONResponseBodySuccess
- type GetCaPublicKey500JSONResponseBodySuccess
- type GetCaPublicKeyResponse
- type GetCaResponse
- type GetHostKrl500JSONResponseBodySuccess
- type GetHostKrlResponse
- type GetHostRevocationList500JSONResponseBodySuccess
- type GetHostRevocationListResponse
- func (r GetHostRevocationListResponse) ContentType() string
- func (r GetHostRevocationListResponse) GetBody() []byte
- func (r GetHostRevocationListResponse) GetJSON200() *KeyRevocationListResponse
- func (r GetHostRevocationListResponse) GetJSON500() ...
- func (r GetHostRevocationListResponse) Status() string
- func (r GetHostRevocationListResponse) StatusCode() int
- type GetUserKrl500JSONResponseBodySuccess
- type GetUserKrlResponse
- type GetUserRevocationList500JSONResponseBodySuccess
- type GetUserRevocationListResponse
- func (r GetUserRevocationListResponse) ContentType() string
- func (r GetUserRevocationListResponse) GetBody() []byte
- func (r GetUserRevocationListResponse) GetJSON200() *KeyRevocationListResponse
- func (r GetUserRevocationListResponse) GetJSON500() ...
- func (r GetUserRevocationListResponse) Status() string
- func (r GetUserRevocationListResponse) StatusCode() int
- type HostCertificateIssueRequest
- type HostCertificateRenew
- type HostCertificateRenewalRequest
- type HostCertificateRequest
- type HttpRequestDoer
- type IssueHostCertificate400JSONResponseBodySuccess
- type IssueHostCertificate401JSONResponseBodySuccess
- type IssueHostCertificate403JSONResponseBodySuccess
- type IssueHostCertificate422JSONResponseBodySuccess
- type IssueHostCertificate429JSONResponseBodySuccess
- type IssueHostCertificate500JSONResponseBodySuccess
- type IssueHostCertificateJSONRequestBody
- type IssueHostCertificateParams
- type IssueHostCertificateResponse
- func (r IssueHostCertificateResponse) ContentType() string
- func (r IssueHostCertificateResponse) GetBody() []byte
- func (r IssueHostCertificateResponse) GetJSON200() *CertificateResponse
- func (r IssueHostCertificateResponse) GetJSON400() ...
- func (r IssueHostCertificateResponse) GetJSON401() ...
- func (r IssueHostCertificateResponse) GetJSON403() ...
- func (r IssueHostCertificateResponse) GetJSON422() ...
- func (r IssueHostCertificateResponse) GetJSON429() ...
- func (r IssueHostCertificateResponse) GetJSON500() ...
- func (r IssueHostCertificateResponse) Status() string
- func (r IssueHostCertificateResponse) StatusCode() int
- type IssueUserCertificate400JSONResponseBodySuccess
- type IssueUserCertificate401JSONResponseBodySuccess
- type IssueUserCertificate403JSONResponseBodySuccess
- type IssueUserCertificate422JSONResponseBodySuccess
- type IssueUserCertificate429JSONResponseBodySuccess
- type IssueUserCertificate500JSONResponseBodySuccess
- type IssueUserCertificateJSONRequestBody
- type IssueUserCertificateParams
- type IssueUserCertificateResponse
- func (r IssueUserCertificateResponse) ContentType() string
- func (r IssueUserCertificateResponse) GetBody() []byte
- func (r IssueUserCertificateResponse) GetJSON200() *CertificateResponse
- func (r IssueUserCertificateResponse) GetJSON400() ...
- func (r IssueUserCertificateResponse) GetJSON401() ...
- func (r IssueUserCertificateResponse) GetJSON403() ...
- func (r IssueUserCertificateResponse) GetJSON422() ...
- func (r IssueUserCertificateResponse) GetJSON429() ...
- func (r IssueUserCertificateResponse) GetJSON500() ...
- func (r IssueUserCertificateResponse) Status() string
- func (r IssueUserCertificateResponse) StatusCode() int
- type KeyRevocationListResponse
- type PostHostCertificate400JSONResponseBodySuccess
- type PostHostCertificate401JSONResponseBodySuccess
- type PostHostCertificate403JSONResponseBodySuccess
- type PostHostCertificate422JSONResponseBodySuccess
- type PostHostCertificate429JSONResponseBodySuccess
- 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) GetJSON429() ...
- func (r PostHostCertificateResponse) GetJSON500() ...
- func (r PostHostCertificateResponse) Status() string
- func (r PostHostCertificateResponse) StatusCode() int
- type PostHostRenew400JSONResponseBodySuccess
- type PostHostRenew401JSONResponseBodySuccess
- type PostHostRenew403JSONResponseBodySuccess
- type PostHostRenew422JSONResponseBodySuccess
- type PostHostRenew429JSONResponseBodySuccess
- 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) GetJSON429() ...
- 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 PostHostRevoke429JSONResponseBodySuccess
- 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) GetJSON429() ...
- func (r PostHostRevokeResponse) GetJSON500() ...
- func (r PostHostRevokeResponse) Status() string
- func (r PostHostRevokeResponse) StatusCode() int
- type PostUserCertificate400JSONResponseBodySuccess
- type PostUserCertificate401JSONResponseBodySuccess
- type PostUserCertificate403JSONResponseBodySuccess
- type PostUserCertificate422JSONResponseBodySuccess
- type PostUserCertificate429JSONResponseBodySuccess
- 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) GetJSON429() ...
- 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 PostUserRevoke429JSONResponseBodySuccess
- 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) GetJSON429() ...
- func (r PostUserRevokeResponse) GetJSON500() ...
- func (r PostUserRevokeResponse) Status() string
- func (r PostUserRevokeResponse) StatusCode() int
- type RenewHostCertificate400JSONResponseBodySuccess
- type RenewHostCertificate401JSONResponseBodySuccess
- type RenewHostCertificate403JSONResponseBodySuccess
- type RenewHostCertificate422JSONResponseBodySuccess
- type RenewHostCertificate429JSONResponseBodySuccess
- type RenewHostCertificate500JSONResponseBodySuccess
- type RenewHostCertificateJSONRequestBody
- type RenewHostCertificateParams
- type RenewHostCertificateResponse
- func (r RenewHostCertificateResponse) ContentType() string
- func (r RenewHostCertificateResponse) GetBody() []byte
- func (r RenewHostCertificateResponse) GetJSON200() *CertificateResponse
- func (r RenewHostCertificateResponse) GetJSON400() ...
- func (r RenewHostCertificateResponse) GetJSON401() ...
- func (r RenewHostCertificateResponse) GetJSON403() ...
- func (r RenewHostCertificateResponse) GetJSON422() ...
- func (r RenewHostCertificateResponse) GetJSON429() ...
- func (r RenewHostCertificateResponse) GetJSON500() ...
- func (r RenewHostCertificateResponse) Status() string
- func (r RenewHostCertificateResponse) StatusCode() int
- type RequestEditorFn
- type RevocationResponse
- type RevokeHostCertificate400JSONResponseBodySuccess
- type RevokeHostCertificate404JSONResponseBodySuccess
- type RevokeHostCertificate409JSONResponseBodySuccess
- type RevokeHostCertificate429JSONResponseBodySuccess
- type RevokeHostCertificate500JSONResponseBodySuccess
- type RevokeHostCertificateParams
- type RevokeHostCertificateResponse
- func (r RevokeHostCertificateResponse) ContentType() string
- func (r RevokeHostCertificateResponse) GetBody() []byte
- func (r RevokeHostCertificateResponse) GetJSON200() *RevocationResponse
- func (r RevokeHostCertificateResponse) GetJSON400() ...
- func (r RevokeHostCertificateResponse) GetJSON404() ...
- func (r RevokeHostCertificateResponse) GetJSON409() ...
- func (r RevokeHostCertificateResponse) GetJSON429() ...
- func (r RevokeHostCertificateResponse) GetJSON500() ...
- func (r RevokeHostCertificateResponse) Status() string
- func (r RevokeHostCertificateResponse) StatusCode() int
- type RevokeUserCertificate400JSONResponseBodySuccess
- type RevokeUserCertificate404JSONResponseBodySuccess
- type RevokeUserCertificate409JSONResponseBodySuccess
- type RevokeUserCertificate429JSONResponseBodySuccess
- type RevokeUserCertificate500JSONResponseBodySuccess
- type RevokeUserCertificateParams
- type RevokeUserCertificateResponse
- func (r RevokeUserCertificateResponse) ContentType() string
- func (r RevokeUserCertificateResponse) GetBody() []byte
- func (r RevokeUserCertificateResponse) GetJSON200() *RevocationResponse
- func (r RevokeUserCertificateResponse) GetJSON400() ...
- func (r RevokeUserCertificateResponse) GetJSON404() ...
- func (r RevokeUserCertificateResponse) GetJSON409() ...
- func (r RevokeUserCertificateResponse) GetJSON429() ...
- func (r RevokeUserCertificateResponse) GetJSON500() ...
- func (r RevokeUserCertificateResponse) Status() string
- func (r RevokeUserCertificateResponse) StatusCode() int
- type UserCertificateIssueRequest
- type UserCertificateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetCaPublicKeyRequest ¶ added in v0.24.0
NewGetCaPublicKeyRequest constructs an http.Request for the GetCaPublicKey method
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 NewGetHostRevocationListRequest ¶ added in v0.24.0
NewGetHostRevocationListRequest constructs an http.Request for the GetHostRevocationList method
func NewGetUserKrlRequest ¶ added in v0.23.1
NewGetUserKrlRequest constructs an http.Request for the GetUserKrl method
func NewGetUserRevocationListRequest ¶ added in v0.24.0
NewGetUserRevocationListRequest constructs an http.Request for the GetUserRevocationList method
func NewIssueHostCertificateRequest ¶ added in v0.24.0
func NewIssueHostCertificateRequest(server string, params *IssueHostCertificateParams, body IssueHostCertificateJSONRequestBody) (*http.Request, error)
NewIssueHostCertificateRequest calls the generic IssueHostCertificate builder with application/json body
func NewIssueHostCertificateRequestWithBody ¶ added in v0.24.0
func NewIssueHostCertificateRequestWithBody(server string, params *IssueHostCertificateParams, contentType string, body io.Reader) (*http.Request, error)
NewIssueHostCertificateRequestWithBody constructs an http.Request for the IssueHostCertificate method, with any body, and a specified content type
func NewIssueUserCertificateRequest ¶ added in v0.24.0
func NewIssueUserCertificateRequest(server string, params *IssueUserCertificateParams, body IssueUserCertificateJSONRequestBody) (*http.Request, error)
NewIssueUserCertificateRequest calls the generic IssueUserCertificate builder with application/json body
func NewIssueUserCertificateRequestWithBody ¶ added in v0.24.0
func NewIssueUserCertificateRequestWithBody(server string, params *IssueUserCertificateParams, contentType string, body io.Reader) (*http.Request, error)
NewIssueUserCertificateRequestWithBody constructs an http.Request for the IssueUserCertificate 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 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 NewRenewHostCertificateRequest ¶ added in v0.24.0
func NewRenewHostCertificateRequest(server string, serial string, params *RenewHostCertificateParams, body RenewHostCertificateJSONRequestBody) (*http.Request, error)
NewRenewHostCertificateRequest calls the generic RenewHostCertificate builder with application/json body
func NewRenewHostCertificateRequestWithBody ¶ added in v0.24.0
func NewRenewHostCertificateRequestWithBody(server string, serial string, params *RenewHostCertificateParams, contentType string, body io.Reader) (*http.Request, error)
NewRenewHostCertificateRequestWithBody constructs an http.Request for the RenewHostCertificate method, with any body, and a specified content type
func NewRevokeHostCertificateRequest ¶ added in v0.24.0
func NewRevokeHostCertificateRequest(server string, serial string, params *RevokeHostCertificateParams) (*http.Request, error)
NewRevokeHostCertificateRequest constructs an http.Request for the RevokeHostCertificate method
func NewRevokeUserCertificateRequest ¶ added in v0.24.0
func NewRevokeUserCertificateRequest(server string, serial string, params *RevokeUserCertificateParams) (*http.Request, error)
NewRevokeUserCertificateRequest constructs an http.Request for the RevokeUserCertificate method
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 Get the CA public key
Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.
Corresponds with GET /api/v3/ca (the `GetCa` operationId).
func (*Client) GetCaPublicKey ¶ added in v0.24.0
func (c *Client) GetCaPublicKey(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetCaPublicKey Get the CA public key
Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.
Corresponds with GET /api/v4/ca (the `GetCaPublicKey` operationId).
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
Returns the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
Corresponds with GET /api/v3/host/krl (the `GetHostKrl` operationId).
func (*Client) GetHostRevocationList ¶ added in v0.24.0
func (c *Client) GetHostRevocationList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHostRevocationList Get the Key Revocation List for host certificates
Returns the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
Corresponds with GET /api/v4/host/krl (the `GetHostRevocationList` 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
Returns the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
Corresponds with GET /api/v3/user/krl (the `GetUserKrl` operationId).
func (*Client) GetUserRevocationList ¶ added in v0.24.0
func (c *Client) GetUserRevocationList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetUserRevocationList Get the Key Revocation List for user certificates
Returns the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
Corresponds with GET /api/v4/user/krl (the `GetUserRevocationList` operationId).
func (*Client) IssueHostCertificate ¶ added in v0.24.0
func (c *Client) IssueHostCertificate(ctx context.Context, params *IssueHostCertificateParams, body IssueHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
IssueHostCertificate Request a host certificate
Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v4/host/certificates (the `IssueHostCertificate` operationId).
func (*Client) IssueHostCertificateWithBody ¶ added in v0.24.0
func (c *Client) IssueHostCertificateWithBody(ctx context.Context, params *IssueHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
IssueHostCertificateWithBody Request a host certificate
Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.
Takes any type of body and a specified content type.
Corresponds with POST /api/v4/host/certificates (the `IssueHostCertificate` operationId).
func (*Client) IssueUserCertificate ¶ added in v0.24.0
func (c *Client) IssueUserCertificate(ctx context.Context, params *IssueUserCertificateParams, body IssueUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
IssueUserCertificate Request a user certificate
Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. Principals on the issued certificate are derived from the identity token.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v4/user/certificates (the `IssueUserCertificate` operationId).
func (*Client) IssueUserCertificateWithBody ¶ added in v0.24.0
func (c *Client) IssueUserCertificateWithBody(ctx context.Context, params *IssueUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
IssueUserCertificateWithBody Request a user certificate
Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. Principals on the issued certificate are derived from the identity token.
Takes any type of body and a specified content type.
Corresponds with POST /api/v4/user/certificates (the `IssueUserCertificate` 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 Request a host certificate
Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v3/host/certificate (the `PostHostCertificate` operationId).
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 Request a host certificate
Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.
Takes any type of body and a specified content type.
Corresponds with POST /api/v3/host/certificate (the `PostHostCertificate` operationId).
func (*Client) PostHostRenew ¶ added in v0.21.0
func (c *Client) PostHostRenew(ctx context.Context, body PostHostRenewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostHostRenew Renew a host certificate
Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v3/host/renew (the `PostHostRenew` operationId).
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 Renew a host certificate
Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
Takes any type of body and a specified content type.
Corresponds with POST /api/v3/host/renew (the `PostHostRenew` operationId).
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
Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
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
Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
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 Request a user certificate
Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v3/user/certificate (the `PostUserCertificate` operationId).
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 Request a user certificate
Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.
Takes any type of body and a specified content type.
Corresponds with POST /api/v3/user/certificate (the `PostUserCertificate` operationId).
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
Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
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
Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
Takes any type of body and a specified content type.
Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).
func (*Client) RenewHostCertificate ¶ added in v0.24.0
func (c *Client) RenewHostCertificate(ctx context.Context, serial string, params *RenewHostCertificateParams, body RenewHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
RenewHostCertificate Renew a host certificate
Issues a new SSH host certificate for the same public key and principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the `Proof-Of-Possession` header must contain a proof of possession of the private key for the existing certificate made for this request. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v4/host/certificates/{serial}/renew (the `RenewHostCertificate` operationId).
func (*Client) RenewHostCertificateWithBody ¶ added in v0.24.0
func (c *Client) RenewHostCertificateWithBody(ctx context.Context, serial string, params *RenewHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RenewHostCertificateWithBody Renew a host certificate
Issues a new SSH host certificate for the same public key and principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the `Proof-Of-Possession` header must contain a proof of possession of the private key for the existing certificate made for this request. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
Takes any type of body and a specified content type.
Corresponds with POST /api/v4/host/certificates/{serial}/renew (the `RenewHostCertificate` operationId).
func (*Client) RevokeHostCertificate ¶ added in v0.24.0
func (c *Client) RevokeHostCertificate(ctx context.Context, serial string, params *RevokeHostCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
RevokeHostCertificate Revoke a host certificate
Revokes a host certificate issued by this CA and adds it to the host Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.
Corresponds with DELETE /api/v4/host/certificates/{serial} (the `RevokeHostCertificate` operationId).
func (*Client) RevokeUserCertificate ¶ added in v0.24.0
func (c *Client) RevokeUserCertificate(ctx context.Context, serial string, params *RevokeUserCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
RevokeUserCertificate Revoke a user certificate
Revokes a user certificate issued by this CA and adds it to the user Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.
Corresponds with DELETE /api/v4/user/certificates/{serial} (the `RevokeUserCertificate` operationId).
type ClientInterface ¶
type ClientInterface interface {
// GetCa Get the CA public key
//
// Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.
//
// Corresponds with GET /api/v3/ca (the `GetCa` operationId).
GetCa(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostHostCertificateWithBody Request a host certificate
//
// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v3/host/certificate (the `PostHostCertificate` operationId).
PostHostCertificateWithBody(ctx context.Context, params *PostHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostHostCertificate Request a host certificate
//
// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v3/host/certificate (the `PostHostCertificate` operationId).
PostHostCertificate(ctx context.Context, params *PostHostCertificateParams, body PostHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHostKrl Get the Key Revocation List for host certificates
//
// Returns the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
//
// Corresponds with GET /api/v3/host/krl (the `GetHostKrl` operationId).
GetHostKrl(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostHostRenewWithBody Renew a host certificate
//
// Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v3/host/renew (the `PostHostRenew` operationId).
PostHostRenewWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostHostRenew Renew a host certificate
//
// Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v3/host/renew (the `PostHostRenew` operationId).
PostHostRenew(ctx context.Context, body PostHostRenewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostHostRevokeWithBody Revoke a host certificate
//
// Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
//
// 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
//
// Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
//
// 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 Request a user certificate
//
// Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v3/user/certificate (the `PostUserCertificate` operationId).
PostUserCertificateWithBody(ctx context.Context, params *PostUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostUserCertificate Request a user certificate
//
// Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v3/user/certificate (the `PostUserCertificate` operationId).
PostUserCertificate(ctx context.Context, params *PostUserCertificateParams, body PostUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUserKrl Get the Key Revocation List for user certificates
//
// Returns the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
//
// Corresponds with GET /api/v3/user/krl (the `GetUserKrl` operationId).
GetUserKrl(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostUserRevokeWithBody Revoke a user certificate
//
// Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
//
// 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
//
// Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
//
// 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)
// GetCaPublicKey Get the CA public key
//
// Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.
//
// Corresponds with GET /api/v4/ca (the `GetCaPublicKey` operationId).
GetCaPublicKey(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// IssueHostCertificateWithBody Request a host certificate
//
// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v4/host/certificates (the `IssueHostCertificate` operationId).
IssueHostCertificateWithBody(ctx context.Context, params *IssueHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// IssueHostCertificate Request a host certificate
//
// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v4/host/certificates (the `IssueHostCertificate` operationId).
IssueHostCertificate(ctx context.Context, params *IssueHostCertificateParams, body IssueHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RevokeHostCertificate Revoke a host certificate
//
// Revokes a host certificate issued by this CA and adds it to the host Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.
//
// Corresponds with DELETE /api/v4/host/certificates/{serial} (the `RevokeHostCertificate` operationId).
RevokeHostCertificate(ctx context.Context, serial string, params *RevokeHostCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RenewHostCertificateWithBody Renew a host certificate
//
// Issues a new SSH host certificate for the same public key and principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the `Proof-Of-Possession` header must contain a proof of possession of the private key for the existing certificate made for this request. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v4/host/certificates/{serial}/renew (the `RenewHostCertificate` operationId).
RenewHostCertificateWithBody(ctx context.Context, serial string, params *RenewHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// RenewHostCertificate Renew a host certificate
//
// Issues a new SSH host certificate for the same public key and principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the `Proof-Of-Possession` header must contain a proof of possession of the private key for the existing certificate made for this request. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v4/host/certificates/{serial}/renew (the `RenewHostCertificate` operationId).
RenewHostCertificate(ctx context.Context, serial string, params *RenewHostCertificateParams, body RenewHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHostRevocationList Get the Key Revocation List for host certificates
//
// Returns the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
//
// Corresponds with GET /api/v4/host/krl (the `GetHostRevocationList` operationId).
GetHostRevocationList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// IssueUserCertificateWithBody Request a user certificate
//
// Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. Principals on the issued certificate are derived from the identity token.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v4/user/certificates (the `IssueUserCertificate` operationId).
IssueUserCertificateWithBody(ctx context.Context, params *IssueUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// IssueUserCertificate Request a user certificate
//
// Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. Principals on the issued certificate are derived from the identity token.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v4/user/certificates (the `IssueUserCertificate` operationId).
IssueUserCertificate(ctx context.Context, params *IssueUserCertificateParams, body IssueUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RevokeUserCertificate Revoke a user certificate
//
// Revokes a user certificate issued by this CA and adds it to the user Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.
//
// Corresponds with DELETE /api/v4/user/certificates/{serial} (the `RevokeUserCertificate` operationId).
RevokeUserCertificate(ctx context.Context, serial string, params *RevokeUserCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUserRevocationList Get the Key Revocation List for user certificates
//
// Returns the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
//
// Corresponds with GET /api/v4/user/krl (the `GetUserRevocationList` operationId).
GetUserRevocationList(ctx context.Context, 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) GetCaPublicKeyWithResponse ¶ added in v0.24.0
func (c *ClientWithResponses) GetCaPublicKeyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaPublicKeyResponse, error)
GetCaPublicKeyWithResponse Get the CA public key
Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v4/ca (the `GetCaPublicKey` operationId).
func (*ClientWithResponses) GetCaWithResponse ¶ added in v0.21.0
func (c *ClientWithResponses) GetCaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaResponse, error)
GetCaWithResponse Get the CA public key
Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v3/ca (the `GetCa` operationId).
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 the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v3/host/krl (the `GetHostKrl` operationId).
func (*ClientWithResponses) GetHostRevocationListWithResponse ¶ added in v0.24.0
func (c *ClientWithResponses) GetHostRevocationListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHostRevocationListResponse, error)
GetHostRevocationListWithResponse Get the Key Revocation List for host certificates
Returns the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v4/host/krl (the `GetHostRevocationList` 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 the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v3/user/krl (the `GetUserKrl` operationId).
func (*ClientWithResponses) GetUserRevocationListWithResponse ¶ added in v0.24.0
func (c *ClientWithResponses) GetUserRevocationListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserRevocationListResponse, error)
GetUserRevocationListWithResponse Get the Key Revocation List for user certificates
Returns the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v4/user/krl (the `GetUserRevocationList` operationId).
func (*ClientWithResponses) IssueHostCertificateWithBodyWithResponse ¶ added in v0.24.0
func (c *ClientWithResponses) IssueHostCertificateWithBodyWithResponse(ctx context.Context, params *IssueHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssueHostCertificateResponse, error)
IssueHostCertificateWithBodyWithResponse Request a host certificate
Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.
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/v4/host/certificates (the `IssueHostCertificate` operationId).
func (*ClientWithResponses) IssueHostCertificateWithResponse ¶ added in v0.24.0
func (c *ClientWithResponses) IssueHostCertificateWithResponse(ctx context.Context, params *IssueHostCertificateParams, body IssueHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*IssueHostCertificateResponse, error)
IssueHostCertificateWithResponse Request a host certificate
Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.
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/v4/host/certificates (the `IssueHostCertificate` operationId).
func (*ClientWithResponses) IssueUserCertificateWithBodyWithResponse ¶ added in v0.24.0
func (c *ClientWithResponses) IssueUserCertificateWithBodyWithResponse(ctx context.Context, params *IssueUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssueUserCertificateResponse, error)
IssueUserCertificateWithBodyWithResponse Request a user certificate
Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. Principals on the issued certificate are derived from the identity token.
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/v4/user/certificates (the `IssueUserCertificate` operationId).
func (*ClientWithResponses) IssueUserCertificateWithResponse ¶ added in v0.24.0
func (c *ClientWithResponses) IssueUserCertificateWithResponse(ctx context.Context, params *IssueUserCertificateParams, body IssueUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*IssueUserCertificateResponse, error)
IssueUserCertificateWithResponse Request a user certificate
Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. Principals on the issued certificate are derived from the identity token.
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/v4/user/certificates (the `IssueUserCertificate` 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 Request a host certificate
Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.
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/certificate (the `PostHostCertificate` operationId).
func (*ClientWithResponses) PostHostCertificateWithResponse ¶ added in v0.21.0
func (c *ClientWithResponses) PostHostCertificateWithResponse(ctx context.Context, params *PostHostCertificateParams, body PostHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostCertificateResponse, error)
PostHostCertificateWithResponse Request a host certificate
Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.
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/certificate (the `PostHostCertificate` operationId).
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 Renew a host certificate
Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
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/renew (the `PostHostRenew` operationId).
func (*ClientWithResponses) PostHostRenewWithResponse ¶ added in v0.21.0
func (c *ClientWithResponses) PostHostRenewWithResponse(ctx context.Context, body PostHostRenewJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostRenewResponse, error)
PostHostRenewWithResponse Renew a host certificate
Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
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/renew (the `PostHostRenew` operationId).
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
Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
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
Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
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 Request a user certificate
Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.
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/certificate (the `PostUserCertificate` operationId).
func (*ClientWithResponses) PostUserCertificateWithResponse ¶ added in v0.21.0
func (c *ClientWithResponses) PostUserCertificateWithResponse(ctx context.Context, params *PostUserCertificateParams, body PostUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserCertificateResponse, error)
PostUserCertificateWithResponse Request a user certificate
Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.
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/certificate (the `PostUserCertificate` operationId).
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
Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
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
Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
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).
func (*ClientWithResponses) RenewHostCertificateWithBodyWithResponse ¶ added in v0.24.0
func (c *ClientWithResponses) RenewHostCertificateWithBodyWithResponse(ctx context.Context, serial string, params *RenewHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewHostCertificateResponse, error)
RenewHostCertificateWithBodyWithResponse Renew a host certificate
Issues a new SSH host certificate for the same public key and principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the `Proof-Of-Possession` header must contain a proof of possession of the private key for the existing certificate made for this request. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
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/v4/host/certificates/{serial}/renew (the `RenewHostCertificate` operationId).
func (*ClientWithResponses) RenewHostCertificateWithResponse ¶ added in v0.24.0
func (c *ClientWithResponses) RenewHostCertificateWithResponse(ctx context.Context, serial string, params *RenewHostCertificateParams, body RenewHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewHostCertificateResponse, error)
RenewHostCertificateWithResponse Renew a host certificate
Issues a new SSH host certificate for the same public key and principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the `Proof-Of-Possession` header must contain a proof of possession of the private key for the existing certificate made for this request. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
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/v4/host/certificates/{serial}/renew (the `RenewHostCertificate` operationId).
func (*ClientWithResponses) RevokeHostCertificateWithResponse ¶ added in v0.24.0
func (c *ClientWithResponses) RevokeHostCertificateWithResponse(ctx context.Context, serial string, params *RevokeHostCertificateParams, reqEditors ...RequestEditorFn) (*RevokeHostCertificateResponse, error)
RevokeHostCertificateWithResponse Revoke a host certificate
Revokes a host certificate issued by this CA and adds it to the host Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v4/host/certificates/{serial} (the `RevokeHostCertificate` operationId).
func (*ClientWithResponses) RevokeUserCertificateWithResponse ¶ added in v0.24.0
func (c *ClientWithResponses) RevokeUserCertificateWithResponse(ctx context.Context, serial string, params *RevokeUserCertificateParams, reqEditors ...RequestEditorFn) (*RevokeUserCertificateResponse, error)
RevokeUserCertificateWithResponse Revoke a user certificate
Revokes a user certificate issued by this CA and adds it to the user Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v4/user/certificates/{serial} (the `RevokeUserCertificate` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetCaWithResponse Get the CA public key
//
// Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v3/ca (the `GetCa` operationId).
GetCaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaResponse, error)
// PostHostCertificateWithBodyWithResponse Request a host certificate
//
// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.
//
// 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/certificate (the `PostHostCertificate` operationId).
PostHostCertificateWithBodyWithResponse(ctx context.Context, params *PostHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostCertificateResponse, error)
// PostHostCertificateWithResponse Request a host certificate
//
// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.
//
// 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/certificate (the `PostHostCertificate` operationId).
PostHostCertificateWithResponse(ctx context.Context, params *PostHostCertificateParams, body PostHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostCertificateResponse, error)
// GetHostKrlWithResponse Get the Key Revocation List for host certificates
//
// Returns the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
//
// 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 Renew a host certificate
//
// Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
//
// 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/renew (the `PostHostRenew` operationId).
PostHostRenewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostRenewResponse, error)
// PostHostRenewWithResponse Renew a host certificate
//
// Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
//
// 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/renew (the `PostHostRenew` operationId).
PostHostRenewWithResponse(ctx context.Context, body PostHostRenewJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostRenewResponse, error)
// PostHostRevokeWithBodyWithResponse Revoke a host certificate
//
// Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
//
// 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
//
// Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
//
// 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 Request a user certificate
//
// Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.
//
// 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/certificate (the `PostUserCertificate` operationId).
PostUserCertificateWithBodyWithResponse(ctx context.Context, params *PostUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserCertificateResponse, error)
// PostUserCertificateWithResponse Request a user certificate
//
// Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.
//
// 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/certificate (the `PostUserCertificate` operationId).
PostUserCertificateWithResponse(ctx context.Context, params *PostUserCertificateParams, body PostUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserCertificateResponse, error)
// GetUserKrlWithResponse Get the Key Revocation List for user certificates
//
// Returns the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
//
// 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
//
// Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
//
// 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
//
// Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
//
// 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)
// GetCaPublicKeyWithResponse Get the CA public key
//
// Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v4/ca (the `GetCaPublicKey` operationId).
GetCaPublicKeyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaPublicKeyResponse, error)
// IssueHostCertificateWithBodyWithResponse Request a host certificate
//
// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.
//
// 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/v4/host/certificates (the `IssueHostCertificate` operationId).
IssueHostCertificateWithBodyWithResponse(ctx context.Context, params *IssueHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssueHostCertificateResponse, error)
// IssueHostCertificateWithResponse Request a host certificate
//
// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.
//
// 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/v4/host/certificates (the `IssueHostCertificate` operationId).
IssueHostCertificateWithResponse(ctx context.Context, params *IssueHostCertificateParams, body IssueHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*IssueHostCertificateResponse, error)
// RevokeHostCertificateWithResponse Revoke a host certificate
//
// Revokes a host certificate issued by this CA and adds it to the host Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v4/host/certificates/{serial} (the `RevokeHostCertificate` operationId).
RevokeHostCertificateWithResponse(ctx context.Context, serial string, params *RevokeHostCertificateParams, reqEditors ...RequestEditorFn) (*RevokeHostCertificateResponse, error)
// RenewHostCertificateWithBodyWithResponse Renew a host certificate
//
// Issues a new SSH host certificate for the same public key and principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the `Proof-Of-Possession` header must contain a proof of possession of the private key for the existing certificate made for this request. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
//
// 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/v4/host/certificates/{serial}/renew (the `RenewHostCertificate` operationId).
RenewHostCertificateWithBodyWithResponse(ctx context.Context, serial string, params *RenewHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewHostCertificateResponse, error)
// RenewHostCertificateWithResponse Renew a host certificate
//
// Issues a new SSH host certificate for the same public key and principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the `Proof-Of-Possession` header must contain a proof of possession of the private key for the existing certificate made for this request. The lifetime of the renewed certificate is no longer than that of the existing certificate. The existing certificate is revoked, so it cannot be used or renewed again once the renewed certificate is installed.
//
// 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/v4/host/certificates/{serial}/renew (the `RenewHostCertificate` operationId).
RenewHostCertificateWithResponse(ctx context.Context, serial string, params *RenewHostCertificateParams, body RenewHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewHostCertificateResponse, error)
// GetHostRevocationListWithResponse Get the Key Revocation List for host certificates
//
// Returns the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v4/host/krl (the `GetHostRevocationList` operationId).
GetHostRevocationListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHostRevocationListResponse, error)
// IssueUserCertificateWithBodyWithResponse Request a user certificate
//
// Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. Principals on the issued certificate are derived from the identity token.
//
// 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/v4/user/certificates (the `IssueUserCertificate` operationId).
IssueUserCertificateWithBodyWithResponse(ctx context.Context, params *IssueUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssueUserCertificateResponse, error)
// IssueUserCertificateWithResponse Request a user certificate
//
// Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. Principals on the issued certificate are derived from the identity token.
//
// 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/v4/user/certificates (the `IssueUserCertificate` operationId).
IssueUserCertificateWithResponse(ctx context.Context, params *IssueUserCertificateParams, body IssueUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*IssueUserCertificateResponse, error)
// RevokeUserCertificateWithResponse Revoke a user certificate
//
// Revokes a user certificate issued by this CA and adds it to the user Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v4/user/certificates/{serial} (the `RevokeUserCertificate` operationId).
RevokeUserCertificateWithResponse(ctx context.Context, serial string, params *RevokeUserCertificateParams, reqEditors ...RequestEditorFn) (*RevokeUserCertificateResponse, error)
// GetUserRevocationListWithResponse Get the Key Revocation List for user certificates
//
// Returns the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v4/user/krl (the `GetUserRevocationList` operationId).
GetUserRevocationListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserRevocationListResponse, 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 GetCaPublicKey500JSONResponseBodySuccess ¶ added in v0.24.0
type GetCaPublicKey500JSONResponseBodySuccess bool
GetCaPublicKey500JSONResponseBodySuccess defines parameters for GetCaPublicKey.
const (
GetCaPublicKey500JSONResponseBodySuccessFalse GetCaPublicKey500JSONResponseBodySuccess = false
)
Defines values for GetCaPublicKey500JSONResponseBodySuccess.
func (GetCaPublicKey500JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e GetCaPublicKey500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the GetCaPublicKey500JSONResponseBodySuccess enum.
type GetCaPublicKeyResponse ¶ added in v0.24.0
type GetCaPublicKeyResponse 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 GetCaPublicKey500JSONResponseBodySuccess `json:"success"`
}
}
func ParseGetCaPublicKeyResponse ¶ added in v0.24.0
func ParseGetCaPublicKeyResponse(rsp *http.Response) (*GetCaPublicKeyResponse, error)
ParseGetCaPublicKeyResponse parses an HTTP response from a GetCaPublicKeyWithResponse call
func (GetCaPublicKeyResponse) ContentType ¶ added in v0.24.0
func (r GetCaPublicKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetCaPublicKeyResponse) GetBody ¶ added in v0.24.0
func (r GetCaPublicKeyResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetCaPublicKeyResponse) GetJSON500 ¶ added in v0.24.0
func (r GetCaPublicKeyResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success GetCaPublicKey500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetCaPublicKeyResponse) Status ¶ added in v0.24.0
func (r GetCaPublicKeyResponse) Status() string
Status returns HTTPResponse.Status
func (GetCaPublicKeyResponse) StatusCode ¶ added in v0.24.0
func (r GetCaPublicKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 GetHostRevocationList500JSONResponseBodySuccess ¶ added in v0.24.0
type GetHostRevocationList500JSONResponseBodySuccess bool
GetHostRevocationList500JSONResponseBodySuccess defines parameters for GetHostRevocationList.
const (
GetHostRevocationList500JSONResponseBodySuccessFalse GetHostRevocationList500JSONResponseBodySuccess = false
)
Defines values for GetHostRevocationList500JSONResponseBodySuccess.
func (GetHostRevocationList500JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e GetHostRevocationList500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the GetHostRevocationList500JSONResponseBodySuccess enum.
type GetHostRevocationListResponse ¶ added in v0.24.0
type GetHostRevocationListResponse 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 GetHostRevocationList500JSONResponseBodySuccess `json:"success"`
}
}
func ParseGetHostRevocationListResponse ¶ added in v0.24.0
func ParseGetHostRevocationListResponse(rsp *http.Response) (*GetHostRevocationListResponse, error)
ParseGetHostRevocationListResponse parses an HTTP response from a GetHostRevocationListWithResponse call
func (GetHostRevocationListResponse) ContentType ¶ added in v0.24.0
func (r GetHostRevocationListResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHostRevocationListResponse) GetBody ¶ added in v0.24.0
func (r GetHostRevocationListResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHostRevocationListResponse) GetJSON200 ¶ added in v0.24.0
func (r GetHostRevocationListResponse) GetJSON200() *KeyRevocationListResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetHostRevocationListResponse) GetJSON500 ¶ added in v0.24.0
func (r GetHostRevocationListResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success GetHostRevocationList500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetHostRevocationListResponse) Status ¶ added in v0.24.0
func (r GetHostRevocationListResponse) Status() string
Status returns HTTPResponse.Status
func (GetHostRevocationListResponse) StatusCode ¶ added in v0.24.0
func (r GetHostRevocationListResponse) 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 GetUserRevocationList500JSONResponseBodySuccess ¶ added in v0.24.0
type GetUserRevocationList500JSONResponseBodySuccess bool
GetUserRevocationList500JSONResponseBodySuccess defines parameters for GetUserRevocationList.
const (
GetUserRevocationList500JSONResponseBodySuccessFalse GetUserRevocationList500JSONResponseBodySuccess = false
)
Defines values for GetUserRevocationList500JSONResponseBodySuccess.
func (GetUserRevocationList500JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e GetUserRevocationList500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the GetUserRevocationList500JSONResponseBodySuccess enum.
type GetUserRevocationListResponse ¶ added in v0.24.0
type GetUserRevocationListResponse 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 GetUserRevocationList500JSONResponseBodySuccess `json:"success"`
}
}
func ParseGetUserRevocationListResponse ¶ added in v0.24.0
func ParseGetUserRevocationListResponse(rsp *http.Response) (*GetUserRevocationListResponse, error)
ParseGetUserRevocationListResponse parses an HTTP response from a GetUserRevocationListWithResponse call
func (GetUserRevocationListResponse) ContentType ¶ added in v0.24.0
func (r GetUserRevocationListResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetUserRevocationListResponse) GetBody ¶ added in v0.24.0
func (r GetUserRevocationListResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetUserRevocationListResponse) GetJSON200 ¶ added in v0.24.0
func (r GetUserRevocationListResponse) GetJSON200() *KeyRevocationListResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetUserRevocationListResponse) GetJSON500 ¶ added in v0.24.0
func (r GetUserRevocationListResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success GetUserRevocationList500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetUserRevocationListResponse) Status ¶ added in v0.24.0
func (r GetUserRevocationListResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserRevocationListResponse) StatusCode ¶ added in v0.24.0
func (r GetUserRevocationListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HostCertificateIssueRequest ¶ added in v0.24.0
type HostCertificateIssueRequest 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"`
// PublicKey SSH public key to sign
PublicKey []byte `json:"public_key"`
}
HostCertificateIssueRequest defines model for Host Certificate Issue Request.
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 HostCertificateRenewalRequest ¶ added in v0.24.0
type HostCertificateRenewalRequest struct {
// Certificate SSH certificate to renew, which must have the serial number in the path
Certificate []byte `json:"certificate"`
// Lifetime Lifetime of renewed Host SSH certificate
Lifetime *int `json:"lifetime,omitempty"`
}
HostCertificateRenewalRequest defines model for Host Certificate Renewal Request.
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 IssueHostCertificate400JSONResponseBodySuccess ¶ added in v0.24.0
type IssueHostCertificate400JSONResponseBodySuccess bool
IssueHostCertificate400JSONResponseBodySuccess defines parameters for IssueHostCertificate.
const (
IssueHostCertificate400JSONResponseBodySuccessFalse IssueHostCertificate400JSONResponseBodySuccess = false
)
Defines values for IssueHostCertificate400JSONResponseBodySuccess.
func (IssueHostCertificate400JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e IssueHostCertificate400JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the IssueHostCertificate400JSONResponseBodySuccess enum.
type IssueHostCertificate401JSONResponseBodySuccess ¶ added in v0.24.0
type IssueHostCertificate401JSONResponseBodySuccess bool
IssueHostCertificate401JSONResponseBodySuccess defines parameters for IssueHostCertificate.
const (
IssueHostCertificate401JSONResponseBodySuccessFalse IssueHostCertificate401JSONResponseBodySuccess = false
)
Defines values for IssueHostCertificate401JSONResponseBodySuccess.
func (IssueHostCertificate401JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e IssueHostCertificate401JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the IssueHostCertificate401JSONResponseBodySuccess enum.
type IssueHostCertificate403JSONResponseBodySuccess ¶ added in v0.24.0
type IssueHostCertificate403JSONResponseBodySuccess bool
IssueHostCertificate403JSONResponseBodySuccess defines parameters for IssueHostCertificate.
const (
IssueHostCertificate403JSONResponseBodySuccessFalse IssueHostCertificate403JSONResponseBodySuccess = false
)
Defines values for IssueHostCertificate403JSONResponseBodySuccess.
func (IssueHostCertificate403JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e IssueHostCertificate403JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the IssueHostCertificate403JSONResponseBodySuccess enum.
type IssueHostCertificate422JSONResponseBodySuccess ¶ added in v0.24.0
type IssueHostCertificate422JSONResponseBodySuccess bool
IssueHostCertificate422JSONResponseBodySuccess defines parameters for IssueHostCertificate.
const (
IssueHostCertificate422JSONResponseBodySuccessFalse IssueHostCertificate422JSONResponseBodySuccess = false
)
Defines values for IssueHostCertificate422JSONResponseBodySuccess.
func (IssueHostCertificate422JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e IssueHostCertificate422JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the IssueHostCertificate422JSONResponseBodySuccess enum.
type IssueHostCertificate429JSONResponseBodySuccess ¶ added in v0.25.1
type IssueHostCertificate429JSONResponseBodySuccess bool
IssueHostCertificate429JSONResponseBodySuccess defines parameters for IssueHostCertificate.
const (
IssueHostCertificate429JSONResponseBodySuccessFalse IssueHostCertificate429JSONResponseBodySuccess = false
)
Defines values for IssueHostCertificate429JSONResponseBodySuccess.
func (IssueHostCertificate429JSONResponseBodySuccess) Valid ¶ added in v0.25.1
func (e IssueHostCertificate429JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the IssueHostCertificate429JSONResponseBodySuccess enum.
type IssueHostCertificate500JSONResponseBodySuccess ¶ added in v0.24.0
type IssueHostCertificate500JSONResponseBodySuccess bool
IssueHostCertificate500JSONResponseBodySuccess defines parameters for IssueHostCertificate.
const (
IssueHostCertificate500JSONResponseBodySuccessFalse IssueHostCertificate500JSONResponseBodySuccess = false
)
Defines values for IssueHostCertificate500JSONResponseBodySuccess.
func (IssueHostCertificate500JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e IssueHostCertificate500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the IssueHostCertificate500JSONResponseBodySuccess enum.
type IssueHostCertificateJSONRequestBody ¶ added in v0.24.0
type IssueHostCertificateJSONRequestBody = HostCertificateIssueRequest
IssueHostCertificateJSONRequestBody defines body for IssueHostCertificate for application/json ContentType.
type IssueHostCertificateParams ¶ added in v0.24.0
type IssueHostCertificateParams struct {
// Authorization Access Token JWT from OIDC IdP
Authorization string `json:"Authorization"`
// ProofOfPossession Proof of possession of the private key comprising of `${timestamp}.${fingerprint}.${signature}`. The signature is a BASE64 encoded armored SSHSIG signature, made with the `request-proof-of-possession@com.github.serverless-ssh-ca.andrewheberle` namespace, of `${timestamp}.${fingerprint}.${METHOD} ${path}` where `${METHOD} ${path}` is the request the proof is for, for example `DELETE /api/v4/user/certificates/12345678901234567890`. The timestamp is in milliseconds since the Unix epoch.
ProofOfPossession string `json:"Proof-Of-Possession"`
}
IssueHostCertificateParams defines parameters for IssueHostCertificate.
type IssueHostCertificateResponse ¶ added in v0.24.0
type IssueHostCertificateResponse 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 IssueHostCertificate400JSONResponseBodySuccess `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 IssueHostCertificate401JSONResponseBodySuccess `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 IssueHostCertificate403JSONResponseBodySuccess `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 IssueHostCertificate422JSONResponseBodySuccess `json:"success"`
}
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success IssueHostCertificate429JSONResponseBodySuccess `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 IssueHostCertificate500JSONResponseBodySuccess `json:"success"`
}
}
func ParseIssueHostCertificateResponse ¶ added in v0.24.0
func ParseIssueHostCertificateResponse(rsp *http.Response) (*IssueHostCertificateResponse, error)
ParseIssueHostCertificateResponse parses an HTTP response from a IssueHostCertificateWithResponse call
func (IssueHostCertificateResponse) ContentType ¶ added in v0.24.0
func (r IssueHostCertificateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (IssueHostCertificateResponse) GetBody ¶ added in v0.24.0
func (r IssueHostCertificateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (IssueHostCertificateResponse) GetJSON200 ¶ added in v0.24.0
func (r IssueHostCertificateResponse) GetJSON200() *CertificateResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (IssueHostCertificateResponse) GetJSON400 ¶ added in v0.24.0
func (r IssueHostCertificateResponse) GetJSON400() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success IssueHostCertificate400JSONResponseBodySuccess `json:"success"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (IssueHostCertificateResponse) GetJSON401 ¶ added in v0.24.0
func (r IssueHostCertificateResponse) GetJSON401() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success IssueHostCertificate401JSONResponseBodySuccess `json:"success"` }
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (IssueHostCertificateResponse) GetJSON403 ¶ added in v0.24.0
func (r IssueHostCertificateResponse) GetJSON403() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success IssueHostCertificate403JSONResponseBodySuccess `json:"success"` }
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (IssueHostCertificateResponse) GetJSON422 ¶ added in v0.24.0
func (r IssueHostCertificateResponse) GetJSON422() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success IssueHostCertificate422JSONResponseBodySuccess `json:"success"` }
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (IssueHostCertificateResponse) GetJSON429 ¶ added in v0.25.1
func (r IssueHostCertificateResponse) GetJSON429() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success IssueHostCertificate429JSONResponseBodySuccess `json:"success"` }
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (IssueHostCertificateResponse) GetJSON500 ¶ added in v0.24.0
func (r IssueHostCertificateResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success IssueHostCertificate500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (IssueHostCertificateResponse) Status ¶ added in v0.24.0
func (r IssueHostCertificateResponse) Status() string
Status returns HTTPResponse.Status
func (IssueHostCertificateResponse) StatusCode ¶ added in v0.24.0
func (r IssueHostCertificateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type IssueUserCertificate400JSONResponseBodySuccess ¶ added in v0.24.0
type IssueUserCertificate400JSONResponseBodySuccess bool
IssueUserCertificate400JSONResponseBodySuccess defines parameters for IssueUserCertificate.
const (
IssueUserCertificate400JSONResponseBodySuccessFalse IssueUserCertificate400JSONResponseBodySuccess = false
)
Defines values for IssueUserCertificate400JSONResponseBodySuccess.
func (IssueUserCertificate400JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e IssueUserCertificate400JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the IssueUserCertificate400JSONResponseBodySuccess enum.
type IssueUserCertificate401JSONResponseBodySuccess ¶ added in v0.24.0
type IssueUserCertificate401JSONResponseBodySuccess bool
IssueUserCertificate401JSONResponseBodySuccess defines parameters for IssueUserCertificate.
const (
IssueUserCertificate401JSONResponseBodySuccessFalse IssueUserCertificate401JSONResponseBodySuccess = false
)
Defines values for IssueUserCertificate401JSONResponseBodySuccess.
func (IssueUserCertificate401JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e IssueUserCertificate401JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the IssueUserCertificate401JSONResponseBodySuccess enum.
type IssueUserCertificate403JSONResponseBodySuccess ¶ added in v0.24.0
type IssueUserCertificate403JSONResponseBodySuccess bool
IssueUserCertificate403JSONResponseBodySuccess defines parameters for IssueUserCertificate.
const (
IssueUserCertificate403JSONResponseBodySuccessFalse IssueUserCertificate403JSONResponseBodySuccess = false
)
Defines values for IssueUserCertificate403JSONResponseBodySuccess.
func (IssueUserCertificate403JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e IssueUserCertificate403JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the IssueUserCertificate403JSONResponseBodySuccess enum.
type IssueUserCertificate422JSONResponseBodySuccess ¶ added in v0.24.0
type IssueUserCertificate422JSONResponseBodySuccess bool
IssueUserCertificate422JSONResponseBodySuccess defines parameters for IssueUserCertificate.
const (
IssueUserCertificate422JSONResponseBodySuccessFalse IssueUserCertificate422JSONResponseBodySuccess = false
)
Defines values for IssueUserCertificate422JSONResponseBodySuccess.
func (IssueUserCertificate422JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e IssueUserCertificate422JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the IssueUserCertificate422JSONResponseBodySuccess enum.
type IssueUserCertificate429JSONResponseBodySuccess ¶ added in v0.25.1
type IssueUserCertificate429JSONResponseBodySuccess bool
IssueUserCertificate429JSONResponseBodySuccess defines parameters for IssueUserCertificate.
const (
IssueUserCertificate429JSONResponseBodySuccessFalse IssueUserCertificate429JSONResponseBodySuccess = false
)
Defines values for IssueUserCertificate429JSONResponseBodySuccess.
func (IssueUserCertificate429JSONResponseBodySuccess) Valid ¶ added in v0.25.1
func (e IssueUserCertificate429JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the IssueUserCertificate429JSONResponseBodySuccess enum.
type IssueUserCertificate500JSONResponseBodySuccess ¶ added in v0.24.0
type IssueUserCertificate500JSONResponseBodySuccess bool
IssueUserCertificate500JSONResponseBodySuccess defines parameters for IssueUserCertificate.
const (
IssueUserCertificate500JSONResponseBodySuccessFalse IssueUserCertificate500JSONResponseBodySuccess = false
)
Defines values for IssueUserCertificate500JSONResponseBodySuccess.
func (IssueUserCertificate500JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e IssueUserCertificate500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the IssueUserCertificate500JSONResponseBodySuccess enum.
type IssueUserCertificateJSONRequestBody ¶ added in v0.24.0
type IssueUserCertificateJSONRequestBody = UserCertificateIssueRequest
IssueUserCertificateJSONRequestBody defines body for IssueUserCertificate for application/json ContentType.
type IssueUserCertificateParams ¶ added in v0.24.0
type IssueUserCertificateParams struct {
// Authorization Access Token JWT from OIDC IdP
Authorization string `json:"Authorization"`
// ProofOfPossession Proof of possession of the private key comprising of `${timestamp}.${fingerprint}.${signature}`. The signature is a BASE64 encoded armored SSHSIG signature, made with the `request-proof-of-possession@com.github.serverless-ssh-ca.andrewheberle` namespace, of `${timestamp}.${fingerprint}.${METHOD} ${path}` where `${METHOD} ${path}` is the request the proof is for, for example `DELETE /api/v4/user/certificates/12345678901234567890`. The timestamp is in milliseconds since the Unix epoch.
ProofOfPossession string `json:"Proof-Of-Possession"`
}
IssueUserCertificateParams defines parameters for IssueUserCertificate.
type IssueUserCertificateResponse ¶ added in v0.24.0
type IssueUserCertificateResponse 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 IssueUserCertificate400JSONResponseBodySuccess `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 IssueUserCertificate401JSONResponseBodySuccess `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 IssueUserCertificate403JSONResponseBodySuccess `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 IssueUserCertificate422JSONResponseBodySuccess `json:"success"`
}
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success IssueUserCertificate429JSONResponseBodySuccess `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 IssueUserCertificate500JSONResponseBodySuccess `json:"success"`
}
}
func ParseIssueUserCertificateResponse ¶ added in v0.24.0
func ParseIssueUserCertificateResponse(rsp *http.Response) (*IssueUserCertificateResponse, error)
ParseIssueUserCertificateResponse parses an HTTP response from a IssueUserCertificateWithResponse call
func (IssueUserCertificateResponse) ContentType ¶ added in v0.24.0
func (r IssueUserCertificateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (IssueUserCertificateResponse) GetBody ¶ added in v0.24.0
func (r IssueUserCertificateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (IssueUserCertificateResponse) GetJSON200 ¶ added in v0.24.0
func (r IssueUserCertificateResponse) GetJSON200() *CertificateResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (IssueUserCertificateResponse) GetJSON400 ¶ added in v0.24.0
func (r IssueUserCertificateResponse) GetJSON400() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success IssueUserCertificate400JSONResponseBodySuccess `json:"success"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (IssueUserCertificateResponse) GetJSON401 ¶ added in v0.24.0
func (r IssueUserCertificateResponse) GetJSON401() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success IssueUserCertificate401JSONResponseBodySuccess `json:"success"` }
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (IssueUserCertificateResponse) GetJSON403 ¶ added in v0.24.0
func (r IssueUserCertificateResponse) GetJSON403() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success IssueUserCertificate403JSONResponseBodySuccess `json:"success"` }
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (IssueUserCertificateResponse) GetJSON422 ¶ added in v0.24.0
func (r IssueUserCertificateResponse) GetJSON422() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success IssueUserCertificate422JSONResponseBodySuccess `json:"success"` }
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (IssueUserCertificateResponse) GetJSON429 ¶ added in v0.25.1
func (r IssueUserCertificateResponse) GetJSON429() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success IssueUserCertificate429JSONResponseBodySuccess `json:"success"` }
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (IssueUserCertificateResponse) GetJSON500 ¶ added in v0.24.0
func (r IssueUserCertificateResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success IssueUserCertificate500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (IssueUserCertificateResponse) Status ¶ added in v0.24.0
func (r IssueUserCertificateResponse) Status() string
Status returns HTTPResponse.Status
func (IssueUserCertificateResponse) StatusCode ¶ added in v0.24.0
func (r IssueUserCertificateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 PostHostCertificate429JSONResponseBodySuccess ¶ added in v0.25.1
type PostHostCertificate429JSONResponseBodySuccess bool
PostHostCertificate429JSONResponseBodySuccess defines parameters for PostHostCertificate.
const (
PostHostCertificate429JSONResponseBodySuccessFalse PostHostCertificate429JSONResponseBodySuccess = false
)
Defines values for PostHostCertificate429JSONResponseBodySuccess.
func (PostHostCertificate429JSONResponseBodySuccess) Valid ¶ added in v0.25.1
func (e PostHostCertificate429JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostCertificate429JSONResponseBodySuccess 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"`
}
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostHostCertificate429JSONResponseBodySuccess `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) GetJSON429 ¶ added in v0.25.1
func (r PostHostCertificateResponse) GetJSON429() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostHostCertificate429JSONResponseBodySuccess `json:"success"` }
GetJSON429 returns the response for an HTTP 429 `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 PostHostRenew429JSONResponseBodySuccess ¶ added in v0.25.1
type PostHostRenew429JSONResponseBodySuccess bool
PostHostRenew429JSONResponseBodySuccess defines parameters for PostHostRenew.
const (
PostHostRenew429JSONResponseBodySuccessFalse PostHostRenew429JSONResponseBodySuccess = false
)
Defines values for PostHostRenew429JSONResponseBodySuccess.
func (PostHostRenew429JSONResponseBodySuccess) Valid ¶ added in v0.25.1
func (e PostHostRenew429JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostRenew429JSONResponseBodySuccess 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"`
}
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostHostRenew429JSONResponseBodySuccess `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) GetJSON429 ¶ added in v0.25.1
func (r PostHostRenewResponse) GetJSON429() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostHostRenew429JSONResponseBodySuccess `json:"success"` }
GetJSON429 returns the response for an HTTP 429 `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 PostHostRevoke429JSONResponseBodySuccess ¶ added in v0.25.1
type PostHostRevoke429JSONResponseBodySuccess bool
PostHostRevoke429JSONResponseBodySuccess defines parameters for PostHostRevoke.
const (
PostHostRevoke429JSONResponseBodySuccessFalse PostHostRevoke429JSONResponseBodySuccess = false
)
Defines values for PostHostRevoke429JSONResponseBodySuccess.
func (PostHostRevoke429JSONResponseBodySuccess) Valid ¶ added in v0.25.1
func (e PostHostRevoke429JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostHostRevoke429JSONResponseBodySuccess 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"`
}
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostHostRevoke429JSONResponseBodySuccess `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) GetJSON429 ¶ added in v0.25.1
func (r PostHostRevokeResponse) GetJSON429() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostHostRevoke429JSONResponseBodySuccess `json:"success"` }
GetJSON429 returns the response for an HTTP 429 `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 PostUserCertificate429JSONResponseBodySuccess ¶ added in v0.25.1
type PostUserCertificate429JSONResponseBodySuccess bool
PostUserCertificate429JSONResponseBodySuccess defines parameters for PostUserCertificate.
const (
PostUserCertificate429JSONResponseBodySuccessFalse PostUserCertificate429JSONResponseBodySuccess = false
)
Defines values for PostUserCertificate429JSONResponseBodySuccess.
func (PostUserCertificate429JSONResponseBodySuccess) Valid ¶ added in v0.25.1
func (e PostUserCertificate429JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostUserCertificate429JSONResponseBodySuccess 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"`
}
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostUserCertificate429JSONResponseBodySuccess `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) GetJSON429 ¶ added in v0.25.1
func (r PostUserCertificateResponse) GetJSON429() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostUserCertificate429JSONResponseBodySuccess `json:"success"` }
GetJSON429 returns the response for an HTTP 429 `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 PostUserRevoke429JSONResponseBodySuccess ¶ added in v0.25.1
type PostUserRevoke429JSONResponseBodySuccess bool
PostUserRevoke429JSONResponseBodySuccess defines parameters for PostUserRevoke.
const (
PostUserRevoke429JSONResponseBodySuccessFalse PostUserRevoke429JSONResponseBodySuccess = false
)
Defines values for PostUserRevoke429JSONResponseBodySuccess.
func (PostUserRevoke429JSONResponseBodySuccess) Valid ¶ added in v0.25.1
func (e PostUserRevoke429JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PostUserRevoke429JSONResponseBodySuccess 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"`
}
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success PostUserRevoke429JSONResponseBodySuccess `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) GetJSON429 ¶ added in v0.25.1
func (r PostUserRevokeResponse) GetJSON429() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success PostUserRevoke429JSONResponseBodySuccess `json:"success"` }
GetJSON429 returns the response for an HTTP 429 `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 RenewHostCertificate400JSONResponseBodySuccess ¶ added in v0.24.0
type RenewHostCertificate400JSONResponseBodySuccess bool
RenewHostCertificate400JSONResponseBodySuccess defines parameters for RenewHostCertificate.
const (
RenewHostCertificate400JSONResponseBodySuccessFalse RenewHostCertificate400JSONResponseBodySuccess = false
)
Defines values for RenewHostCertificate400JSONResponseBodySuccess.
func (RenewHostCertificate400JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e RenewHostCertificate400JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RenewHostCertificate400JSONResponseBodySuccess enum.
type RenewHostCertificate401JSONResponseBodySuccess ¶ added in v0.24.0
type RenewHostCertificate401JSONResponseBodySuccess bool
RenewHostCertificate401JSONResponseBodySuccess defines parameters for RenewHostCertificate.
const (
RenewHostCertificate401JSONResponseBodySuccessFalse RenewHostCertificate401JSONResponseBodySuccess = false
)
Defines values for RenewHostCertificate401JSONResponseBodySuccess.
func (RenewHostCertificate401JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e RenewHostCertificate401JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RenewHostCertificate401JSONResponseBodySuccess enum.
type RenewHostCertificate403JSONResponseBodySuccess ¶ added in v0.24.0
type RenewHostCertificate403JSONResponseBodySuccess bool
RenewHostCertificate403JSONResponseBodySuccess defines parameters for RenewHostCertificate.
const (
RenewHostCertificate403JSONResponseBodySuccessFalse RenewHostCertificate403JSONResponseBodySuccess = false
)
Defines values for RenewHostCertificate403JSONResponseBodySuccess.
func (RenewHostCertificate403JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e RenewHostCertificate403JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RenewHostCertificate403JSONResponseBodySuccess enum.
type RenewHostCertificate422JSONResponseBodySuccess ¶ added in v0.24.0
type RenewHostCertificate422JSONResponseBodySuccess bool
RenewHostCertificate422JSONResponseBodySuccess defines parameters for RenewHostCertificate.
const (
RenewHostCertificate422JSONResponseBodySuccessFalse RenewHostCertificate422JSONResponseBodySuccess = false
)
Defines values for RenewHostCertificate422JSONResponseBodySuccess.
func (RenewHostCertificate422JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e RenewHostCertificate422JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RenewHostCertificate422JSONResponseBodySuccess enum.
type RenewHostCertificate429JSONResponseBodySuccess ¶ added in v0.25.1
type RenewHostCertificate429JSONResponseBodySuccess bool
RenewHostCertificate429JSONResponseBodySuccess defines parameters for RenewHostCertificate.
const (
RenewHostCertificate429JSONResponseBodySuccessFalse RenewHostCertificate429JSONResponseBodySuccess = false
)
Defines values for RenewHostCertificate429JSONResponseBodySuccess.
func (RenewHostCertificate429JSONResponseBodySuccess) Valid ¶ added in v0.25.1
func (e RenewHostCertificate429JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RenewHostCertificate429JSONResponseBodySuccess enum.
type RenewHostCertificate500JSONResponseBodySuccess ¶ added in v0.24.0
type RenewHostCertificate500JSONResponseBodySuccess bool
RenewHostCertificate500JSONResponseBodySuccess defines parameters for RenewHostCertificate.
const (
RenewHostCertificate500JSONResponseBodySuccessFalse RenewHostCertificate500JSONResponseBodySuccess = false
)
Defines values for RenewHostCertificate500JSONResponseBodySuccess.
func (RenewHostCertificate500JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e RenewHostCertificate500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RenewHostCertificate500JSONResponseBodySuccess enum.
type RenewHostCertificateJSONRequestBody ¶ added in v0.24.0
type RenewHostCertificateJSONRequestBody = HostCertificateRenewalRequest
RenewHostCertificateJSONRequestBody defines body for RenewHostCertificate for application/json ContentType.
type RenewHostCertificateParams ¶ added in v0.24.0
type RenewHostCertificateParams struct {
// ProofOfPossession Proof of possession of the private key comprising of `${timestamp}.${fingerprint}.${signature}`. The signature is a BASE64 encoded armored SSHSIG signature, made with the `request-proof-of-possession@com.github.serverless-ssh-ca.andrewheberle` namespace, of `${timestamp}.${fingerprint}.${METHOD} ${path}` where `${METHOD} ${path}` is the request the proof is for, for example `DELETE /api/v4/user/certificates/12345678901234567890`. The timestamp is in milliseconds since the Unix epoch.
ProofOfPossession string `json:"Proof-Of-Possession"`
}
RenewHostCertificateParams defines parameters for RenewHostCertificate.
type RenewHostCertificateResponse ¶ added in v0.24.0
type RenewHostCertificateResponse 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 RenewHostCertificate400JSONResponseBodySuccess `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 RenewHostCertificate401JSONResponseBodySuccess `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 RenewHostCertificate403JSONResponseBodySuccess `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 RenewHostCertificate422JSONResponseBodySuccess `json:"success"`
}
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success RenewHostCertificate429JSONResponseBodySuccess `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 RenewHostCertificate500JSONResponseBodySuccess `json:"success"`
}
}
func ParseRenewHostCertificateResponse ¶ added in v0.24.0
func ParseRenewHostCertificateResponse(rsp *http.Response) (*RenewHostCertificateResponse, error)
ParseRenewHostCertificateResponse parses an HTTP response from a RenewHostCertificateWithResponse call
func (RenewHostCertificateResponse) ContentType ¶ added in v0.24.0
func (r RenewHostCertificateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RenewHostCertificateResponse) GetBody ¶ added in v0.24.0
func (r RenewHostCertificateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RenewHostCertificateResponse) GetJSON200 ¶ added in v0.24.0
func (r RenewHostCertificateResponse) GetJSON200() *CertificateResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RenewHostCertificateResponse) GetJSON400 ¶ added in v0.24.0
func (r RenewHostCertificateResponse) GetJSON400() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success RenewHostCertificate400JSONResponseBodySuccess `json:"success"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (RenewHostCertificateResponse) GetJSON401 ¶ added in v0.24.0
func (r RenewHostCertificateResponse) GetJSON401() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success RenewHostCertificate401JSONResponseBodySuccess `json:"success"` }
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (RenewHostCertificateResponse) GetJSON403 ¶ added in v0.24.0
func (r RenewHostCertificateResponse) GetJSON403() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success RenewHostCertificate403JSONResponseBodySuccess `json:"success"` }
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (RenewHostCertificateResponse) GetJSON422 ¶ added in v0.24.0
func (r RenewHostCertificateResponse) GetJSON422() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success RenewHostCertificate422JSONResponseBodySuccess `json:"success"` }
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (RenewHostCertificateResponse) GetJSON429 ¶ added in v0.25.1
func (r RenewHostCertificateResponse) GetJSON429() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success RenewHostCertificate429JSONResponseBodySuccess `json:"success"` }
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (RenewHostCertificateResponse) GetJSON500 ¶ added in v0.24.0
func (r RenewHostCertificateResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success RenewHostCertificate500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (RenewHostCertificateResponse) Status ¶ added in v0.24.0
func (r RenewHostCertificateResponse) Status() string
Status returns HTTPResponse.Status
func (RenewHostCertificateResponse) StatusCode ¶ added in v0.24.0
func (r RenewHostCertificateResponse) 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 RevokeHostCertificate400JSONResponseBodySuccess ¶ added in v0.24.0
type RevokeHostCertificate400JSONResponseBodySuccess bool
RevokeHostCertificate400JSONResponseBodySuccess defines parameters for RevokeHostCertificate.
const (
RevokeHostCertificate400JSONResponseBodySuccessFalse RevokeHostCertificate400JSONResponseBodySuccess = false
)
Defines values for RevokeHostCertificate400JSONResponseBodySuccess.
func (RevokeHostCertificate400JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e RevokeHostCertificate400JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RevokeHostCertificate400JSONResponseBodySuccess enum.
type RevokeHostCertificate404JSONResponseBodySuccess ¶ added in v0.24.0
type RevokeHostCertificate404JSONResponseBodySuccess bool
RevokeHostCertificate404JSONResponseBodySuccess defines parameters for RevokeHostCertificate.
const (
RevokeHostCertificate404JSONResponseBodySuccessFalse RevokeHostCertificate404JSONResponseBodySuccess = false
)
Defines values for RevokeHostCertificate404JSONResponseBodySuccess.
func (RevokeHostCertificate404JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e RevokeHostCertificate404JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RevokeHostCertificate404JSONResponseBodySuccess enum.
type RevokeHostCertificate409JSONResponseBodySuccess ¶ added in v0.24.0
type RevokeHostCertificate409JSONResponseBodySuccess bool
RevokeHostCertificate409JSONResponseBodySuccess defines parameters for RevokeHostCertificate.
const (
RevokeHostCertificate409JSONResponseBodySuccessFalse RevokeHostCertificate409JSONResponseBodySuccess = false
)
Defines values for RevokeHostCertificate409JSONResponseBodySuccess.
func (RevokeHostCertificate409JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e RevokeHostCertificate409JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RevokeHostCertificate409JSONResponseBodySuccess enum.
type RevokeHostCertificate429JSONResponseBodySuccess ¶ added in v0.25.1
type RevokeHostCertificate429JSONResponseBodySuccess bool
RevokeHostCertificate429JSONResponseBodySuccess defines parameters for RevokeHostCertificate.
const (
RevokeHostCertificate429JSONResponseBodySuccessFalse RevokeHostCertificate429JSONResponseBodySuccess = false
)
Defines values for RevokeHostCertificate429JSONResponseBodySuccess.
func (RevokeHostCertificate429JSONResponseBodySuccess) Valid ¶ added in v0.25.1
func (e RevokeHostCertificate429JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RevokeHostCertificate429JSONResponseBodySuccess enum.
type RevokeHostCertificate500JSONResponseBodySuccess ¶ added in v0.24.0
type RevokeHostCertificate500JSONResponseBodySuccess bool
RevokeHostCertificate500JSONResponseBodySuccess defines parameters for RevokeHostCertificate.
const (
RevokeHostCertificate500JSONResponseBodySuccessFalse RevokeHostCertificate500JSONResponseBodySuccess = false
)
Defines values for RevokeHostCertificate500JSONResponseBodySuccess.
func (RevokeHostCertificate500JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e RevokeHostCertificate500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RevokeHostCertificate500JSONResponseBodySuccess enum.
type RevokeHostCertificateParams ¶ added in v0.24.0
type RevokeHostCertificateParams struct {
// ProofOfPossession Proof of possession of the private key comprising of `${timestamp}.${fingerprint}.${signature}`. The signature is a BASE64 encoded armored SSHSIG signature, made with the `request-proof-of-possession@com.github.serverless-ssh-ca.andrewheberle` namespace, of `${timestamp}.${fingerprint}.${METHOD} ${path}` where `${METHOD} ${path}` is the request the proof is for, for example `DELETE /api/v4/user/certificates/12345678901234567890`. The timestamp is in milliseconds since the Unix epoch.
ProofOfPossession string `json:"Proof-Of-Possession"`
}
RevokeHostCertificateParams defines parameters for RevokeHostCertificate.
type RevokeHostCertificateResponse ¶ added in v0.24.0
type RevokeHostCertificateResponse 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 RevokeHostCertificate400JSONResponseBodySuccess `json:"success"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success RevokeHostCertificate404JSONResponseBodySuccess `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 RevokeHostCertificate409JSONResponseBodySuccess `json:"success"`
}
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success RevokeHostCertificate429JSONResponseBodySuccess `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 RevokeHostCertificate500JSONResponseBodySuccess `json:"success"`
}
}
func ParseRevokeHostCertificateResponse ¶ added in v0.24.0
func ParseRevokeHostCertificateResponse(rsp *http.Response) (*RevokeHostCertificateResponse, error)
ParseRevokeHostCertificateResponse parses an HTTP response from a RevokeHostCertificateWithResponse call
func (RevokeHostCertificateResponse) ContentType ¶ added in v0.24.0
func (r RevokeHostCertificateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RevokeHostCertificateResponse) GetBody ¶ added in v0.24.0
func (r RevokeHostCertificateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RevokeHostCertificateResponse) GetJSON200 ¶ added in v0.24.0
func (r RevokeHostCertificateResponse) GetJSON200() *RevocationResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RevokeHostCertificateResponse) GetJSON400 ¶ added in v0.24.0
func (r RevokeHostCertificateResponse) GetJSON400() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success RevokeHostCertificate400JSONResponseBodySuccess `json:"success"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (RevokeHostCertificateResponse) GetJSON404 ¶ added in v0.24.0
func (r RevokeHostCertificateResponse) GetJSON404() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success RevokeHostCertificate404JSONResponseBodySuccess `json:"success"` }
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (RevokeHostCertificateResponse) GetJSON409 ¶ added in v0.24.0
func (r RevokeHostCertificateResponse) GetJSON409() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success RevokeHostCertificate409JSONResponseBodySuccess `json:"success"` }
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (RevokeHostCertificateResponse) GetJSON429 ¶ added in v0.25.1
func (r RevokeHostCertificateResponse) GetJSON429() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success RevokeHostCertificate429JSONResponseBodySuccess `json:"success"` }
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (RevokeHostCertificateResponse) GetJSON500 ¶ added in v0.24.0
func (r RevokeHostCertificateResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success RevokeHostCertificate500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (RevokeHostCertificateResponse) Status ¶ added in v0.24.0
func (r RevokeHostCertificateResponse) Status() string
Status returns HTTPResponse.Status
func (RevokeHostCertificateResponse) StatusCode ¶ added in v0.24.0
func (r RevokeHostCertificateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RevokeUserCertificate400JSONResponseBodySuccess ¶ added in v0.24.0
type RevokeUserCertificate400JSONResponseBodySuccess bool
RevokeUserCertificate400JSONResponseBodySuccess defines parameters for RevokeUserCertificate.
const (
RevokeUserCertificate400JSONResponseBodySuccessFalse RevokeUserCertificate400JSONResponseBodySuccess = false
)
Defines values for RevokeUserCertificate400JSONResponseBodySuccess.
func (RevokeUserCertificate400JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e RevokeUserCertificate400JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RevokeUserCertificate400JSONResponseBodySuccess enum.
type RevokeUserCertificate404JSONResponseBodySuccess ¶ added in v0.24.0
type RevokeUserCertificate404JSONResponseBodySuccess bool
RevokeUserCertificate404JSONResponseBodySuccess defines parameters for RevokeUserCertificate.
const (
RevokeUserCertificate404JSONResponseBodySuccessFalse RevokeUserCertificate404JSONResponseBodySuccess = false
)
Defines values for RevokeUserCertificate404JSONResponseBodySuccess.
func (RevokeUserCertificate404JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e RevokeUserCertificate404JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RevokeUserCertificate404JSONResponseBodySuccess enum.
type RevokeUserCertificate409JSONResponseBodySuccess ¶ added in v0.24.0
type RevokeUserCertificate409JSONResponseBodySuccess bool
RevokeUserCertificate409JSONResponseBodySuccess defines parameters for RevokeUserCertificate.
const (
RevokeUserCertificate409JSONResponseBodySuccessFalse RevokeUserCertificate409JSONResponseBodySuccess = false
)
Defines values for RevokeUserCertificate409JSONResponseBodySuccess.
func (RevokeUserCertificate409JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e RevokeUserCertificate409JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RevokeUserCertificate409JSONResponseBodySuccess enum.
type RevokeUserCertificate429JSONResponseBodySuccess ¶ added in v0.25.1
type RevokeUserCertificate429JSONResponseBodySuccess bool
RevokeUserCertificate429JSONResponseBodySuccess defines parameters for RevokeUserCertificate.
const (
RevokeUserCertificate429JSONResponseBodySuccessFalse RevokeUserCertificate429JSONResponseBodySuccess = false
)
Defines values for RevokeUserCertificate429JSONResponseBodySuccess.
func (RevokeUserCertificate429JSONResponseBodySuccess) Valid ¶ added in v0.25.1
func (e RevokeUserCertificate429JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RevokeUserCertificate429JSONResponseBodySuccess enum.
type RevokeUserCertificate500JSONResponseBodySuccess ¶ added in v0.24.0
type RevokeUserCertificate500JSONResponseBodySuccess bool
RevokeUserCertificate500JSONResponseBodySuccess defines parameters for RevokeUserCertificate.
const (
RevokeUserCertificate500JSONResponseBodySuccessFalse RevokeUserCertificate500JSONResponseBodySuccess = false
)
Defines values for RevokeUserCertificate500JSONResponseBodySuccess.
func (RevokeUserCertificate500JSONResponseBodySuccess) Valid ¶ added in v0.24.0
func (e RevokeUserCertificate500JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the RevokeUserCertificate500JSONResponseBodySuccess enum.
type RevokeUserCertificateParams ¶ added in v0.24.0
type RevokeUserCertificateParams struct {
// ProofOfPossession Proof of possession of the private key comprising of `${timestamp}.${fingerprint}.${signature}`. The signature is a BASE64 encoded armored SSHSIG signature, made with the `request-proof-of-possession@com.github.serverless-ssh-ca.andrewheberle` namespace, of `${timestamp}.${fingerprint}.${METHOD} ${path}` where `${METHOD} ${path}` is the request the proof is for, for example `DELETE /api/v4/user/certificates/12345678901234567890`. The timestamp is in milliseconds since the Unix epoch.
ProofOfPossession string `json:"Proof-Of-Possession"`
}
RevokeUserCertificateParams defines parameters for RevokeUserCertificate.
type RevokeUserCertificateResponse ¶ added in v0.24.0
type RevokeUserCertificateResponse 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 RevokeUserCertificate400JSONResponseBodySuccess `json:"success"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success RevokeUserCertificate404JSONResponseBodySuccess `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 RevokeUserCertificate409JSONResponseBodySuccess `json:"success"`
}
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *struct {
Errors []struct {
Code float32 `json:"code"`
Message string `json:"message"`
} `json:"errors"`
Success RevokeUserCertificate429JSONResponseBodySuccess `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 RevokeUserCertificate500JSONResponseBodySuccess `json:"success"`
}
}
func ParseRevokeUserCertificateResponse ¶ added in v0.24.0
func ParseRevokeUserCertificateResponse(rsp *http.Response) (*RevokeUserCertificateResponse, error)
ParseRevokeUserCertificateResponse parses an HTTP response from a RevokeUserCertificateWithResponse call
func (RevokeUserCertificateResponse) ContentType ¶ added in v0.24.0
func (r RevokeUserCertificateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RevokeUserCertificateResponse) GetBody ¶ added in v0.24.0
func (r RevokeUserCertificateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RevokeUserCertificateResponse) GetJSON200 ¶ added in v0.24.0
func (r RevokeUserCertificateResponse) GetJSON200() *RevocationResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RevokeUserCertificateResponse) GetJSON400 ¶ added in v0.24.0
func (r RevokeUserCertificateResponse) GetJSON400() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Success RevokeUserCertificate400JSONResponseBodySuccess `json:"success"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (RevokeUserCertificateResponse) GetJSON404 ¶ added in v0.24.0
func (r RevokeUserCertificateResponse) GetJSON404() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success RevokeUserCertificate404JSONResponseBodySuccess `json:"success"` }
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (RevokeUserCertificateResponse) GetJSON409 ¶ added in v0.24.0
func (r RevokeUserCertificateResponse) GetJSON409() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success RevokeUserCertificate409JSONResponseBodySuccess `json:"success"` }
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (RevokeUserCertificateResponse) GetJSON429 ¶ added in v0.25.1
func (r RevokeUserCertificateResponse) GetJSON429() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success RevokeUserCertificate429JSONResponseBodySuccess `json:"success"` }
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (RevokeUserCertificateResponse) GetJSON500 ¶ added in v0.24.0
func (r RevokeUserCertificateResponse) GetJSON500() *struct { Errors []struct { Code float32 `json:"code"` Message string `json:"message"` } `json:"errors"` Success RevokeUserCertificate500JSONResponseBodySuccess `json:"success"` }
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (RevokeUserCertificateResponse) Status ¶ added in v0.24.0
func (r RevokeUserCertificateResponse) Status() string
Status returns HTTPResponse.Status
func (RevokeUserCertificateResponse) StatusCode ¶ added in v0.24.0
func (r RevokeUserCertificateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UserCertificateIssueRequest ¶ added in v0.24.0
type UserCertificateIssueRequest 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"`
// PublicKey SSH public key to sign
PublicKey []byte `json:"public_key"`
}
UserCertificateIssueRequest defines model for User Certificate Issue Request.
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.