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.2 DO NOT EDIT.
Index ¶
- func NewGetCaPublicKeyRequest(server string) (*http.Request, error)
- func NewGetHostRevocationListRequest(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 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 Client
- func (c *Client) GetCaPublicKey(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHostRevocationList(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) 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) GetHostRevocationListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHostRevocationListResponse, 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) 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 GetCaPublicKey500JSONResponseBodySuccess
- type GetCaPublicKeyResponse
- 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 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 HostCertificateRenewalRequest
- 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 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) 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 RenewHostCertificate400JSONResponseBodySuccess
- 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) 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
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 NewGetHostRevocationListRequest ¶ added in v0.24.0
NewGetHostRevocationListRequest constructs an http.Request for the GetHostRevocationList 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 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, cut to [maxMessageLength] bytes.
Types ¶
type CertificateResponse ¶
type CertificateResponse struct {
// Certificate Issued Certificate
Certificate []byte `json:"certificate"`
}
CertificateResponse defines model for Certificate Response.
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) 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) 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) 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 requester 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 requester 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) 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 {
// 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 requester 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 requester 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) 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) 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 requester 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 requester 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) 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 {
// 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 requester 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 requester 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 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 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 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 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 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 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"`
}
// 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) 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 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 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"`
}
// 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) 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.