api

package
v0.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetCaPublicKeyRequest added in v0.24.0

func NewGetCaPublicKeyRequest(server string) (*http.Request, error)

NewGetCaPublicKeyRequest constructs an http.Request for the GetCaPublicKey method

func NewGetCaRequest added in v0.21.0

func NewGetCaRequest(server string) (*http.Request, error)

NewGetCaRequest constructs an http.Request for the GetCa method

func NewGetHostKrlRequest added in v0.23.1

func NewGetHostKrlRequest(server string) (*http.Request, error)

NewGetHostKrlRequest constructs an http.Request for the GetHostKrl method

func NewGetHostRevocationListRequest added in v0.24.0

func NewGetHostRevocationListRequest(server string) (*http.Request, error)

NewGetHostRevocationListRequest constructs an http.Request for the GetHostRevocationList method

func NewGetUserKrlRequest added in v0.23.1

func NewGetUserKrlRequest(server string) (*http.Request, error)

NewGetUserKrlRequest constructs an http.Request for the GetUserKrl method

func NewGetUserRevocationListRequest added in v0.24.0

func NewGetUserRevocationListRequest(server string) (*http.Request, error)

NewGetUserRevocationListRequest constructs an http.Request for the GetUserRevocationList method

func NewIssueHostCertificateRequest added in v0.24.0

func NewIssueHostCertificateRequest(server string, params *IssueHostCertificateParams, body IssueHostCertificateJSONRequestBody) (*http.Request, error)

NewIssueHostCertificateRequest calls the generic IssueHostCertificate builder with application/json body

func NewIssueHostCertificateRequestWithBody added in v0.24.0

func NewIssueHostCertificateRequestWithBody(server string, params *IssueHostCertificateParams, contentType string, body io.Reader) (*http.Request, error)

NewIssueHostCertificateRequestWithBody constructs an http.Request for the IssueHostCertificate method, with any body, and a specified content type

func NewIssueUserCertificateRequest added in v0.24.0

func NewIssueUserCertificateRequest(server string, params *IssueUserCertificateParams, body IssueUserCertificateJSONRequestBody) (*http.Request, error)

NewIssueUserCertificateRequest calls the generic IssueUserCertificate builder with application/json body

func NewIssueUserCertificateRequestWithBody added in v0.24.0

func NewIssueUserCertificateRequestWithBody(server string, params *IssueUserCertificateParams, contentType string, body io.Reader) (*http.Request, error)

NewIssueUserCertificateRequestWithBody constructs an http.Request for the IssueUserCertificate method, with any body, and a specified content type

func NewPostHostCertificateRequest added in v0.21.0

func NewPostHostCertificateRequest(server string, params *PostHostCertificateParams, body PostHostCertificateJSONRequestBody) (*http.Request, error)

NewPostHostCertificateRequest calls the generic PostHostCertificate builder with application/json body

func NewPostHostCertificateRequestWithBody added in v0.21.0

func NewPostHostCertificateRequestWithBody(server string, params *PostHostCertificateParams, contentType string, body io.Reader) (*http.Request, error)

NewPostHostCertificateRequestWithBody constructs an http.Request for the PostHostCertificate method, with any body, and a specified content type

func NewPostHostRenewRequest added in v0.21.0

func NewPostHostRenewRequest(server string, body PostHostRenewJSONRequestBody) (*http.Request, error)

NewPostHostRenewRequest calls the generic PostHostRenew builder with application/json body

func NewPostHostRenewRequestWithBody added in v0.21.0

func NewPostHostRenewRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostHostRenewRequestWithBody constructs an http.Request for the PostHostRenew method, with any body, and a specified content type

func NewPostHostRevokeRequest added in v0.23.1

func NewPostHostRevokeRequest(server string, body PostHostRevokeJSONRequestBody) (*http.Request, error)

NewPostHostRevokeRequest calls the generic PostHostRevoke builder with application/json body

func NewPostHostRevokeRequestWithBody added in v0.23.1

func NewPostHostRevokeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostHostRevokeRequestWithBody constructs an http.Request for the PostHostRevoke method, with any body, and a specified content type

func NewPostUserCertificateRequest added in v0.21.0

func NewPostUserCertificateRequest(server string, params *PostUserCertificateParams, body PostUserCertificateJSONRequestBody) (*http.Request, error)

NewPostUserCertificateRequest calls the generic PostUserCertificate builder with application/json body

func NewPostUserCertificateRequestWithBody added in v0.21.0

func NewPostUserCertificateRequestWithBody(server string, params *PostUserCertificateParams, contentType string, body io.Reader) (*http.Request, error)

NewPostUserCertificateRequestWithBody constructs an http.Request for the PostUserCertificate method, with any body, and a specified content type

func NewPostUserRevokeRequest added in v0.23.1

func NewPostUserRevokeRequest(server string, body PostUserRevokeJSONRequestBody) (*http.Request, error)

NewPostUserRevokeRequest calls the generic PostUserRevoke builder with application/json body

func NewPostUserRevokeRequestWithBody added in v0.23.1

func NewPostUserRevokeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostUserRevokeRequestWithBody constructs an http.Request for the PostUserRevoke method, with any body, and a specified content type

func NewRenewHostCertificateRequest added in v0.24.0

func NewRenewHostCertificateRequest(server string, serial string, params *RenewHostCertificateParams, body RenewHostCertificateJSONRequestBody) (*http.Request, error)

NewRenewHostCertificateRequest calls the generic RenewHostCertificate builder with application/json body

func NewRenewHostCertificateRequestWithBody added in v0.24.0

func NewRenewHostCertificateRequestWithBody(server string, serial string, params *RenewHostCertificateParams, contentType string, body io.Reader) (*http.Request, error)

NewRenewHostCertificateRequestWithBody constructs an http.Request for the RenewHostCertificate method, with any body, and a specified content type

func NewRevokeHostCertificateRequest added in v0.24.0

func NewRevokeHostCertificateRequest(server string, serial string, params *RevokeHostCertificateParams) (*http.Request, error)

NewRevokeHostCertificateRequest constructs an http.Request for the RevokeHostCertificate method

func NewRevokeUserCertificateRequest added in v0.24.0

func NewRevokeUserCertificateRequest(server string, serial string, params *RevokeUserCertificateParams) (*http.Request, error)

NewRevokeUserCertificateRequest constructs an http.Request for the RevokeUserCertificate method

func StatusError added in v0.23.0

func StatusError(statusCode int, body []byte) error

StatusError returns an error for a response with an unexpected status code, including any error messages from the CA in body.

Types

type CertificateResponse

type CertificateResponse struct {
	// Certificate Issued Certificate
	Certificate []byte `json:"certificate"`
}

CertificateResponse defines model for Certificate Response.

type CertificateRevocation

type CertificateRevocation struct {
	// Proof Proof of possession comprising of ${timestamp}.${fingerprint}.${signature}
	Proof string `json:"proof"`

	// PublicKey SSH public key to sign
	PublicKey []byte `json:"public_key"`

	// Serial Serial number of certificate to revoke
	Serial string `json:"serial"`
}

CertificateRevocation defines model for Certificate Revocation.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) GetCa added in v0.21.0

func (c *Client) GetCa(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetCa Get the CA public key

Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.

Corresponds with GET /api/v3/ca (the `GetCa` operationId).

func (*Client) GetCaPublicKey added in v0.24.0

func (c *Client) GetCaPublicKey(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetCaPublicKey Get the CA public key

Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.

Corresponds with GET /api/v4/ca (the `GetCaPublicKey` operationId).

func (*Client) GetHostKrl added in v0.23.1

func (c *Client) GetHostKrl(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetHostKrl Get the Key Revocation List for host certificates

Returns the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.

Corresponds with GET /api/v3/host/krl (the `GetHostKrl` operationId).

func (*Client) GetHostRevocationList added in v0.24.0

func (c *Client) GetHostRevocationList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetHostRevocationList Get the Key Revocation List for host certificates

Returns the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.

Corresponds with GET /api/v4/host/krl (the `GetHostRevocationList` operationId).

func (*Client) GetUserKrl added in v0.23.1

func (c *Client) GetUserKrl(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetUserKrl Get the Key Revocation List for user certificates

Returns the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.

Corresponds with GET /api/v3/user/krl (the `GetUserKrl` operationId).

func (*Client) GetUserRevocationList added in v0.24.0

func (c *Client) GetUserRevocationList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetUserRevocationList Get the Key Revocation List for user certificates

Returns the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.

Corresponds with GET /api/v4/user/krl (the `GetUserRevocationList` operationId).

func (*Client) IssueHostCertificate added in v0.24.0

func (c *Client) IssueHostCertificate(ctx context.Context, params *IssueHostCertificateParams, body IssueHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

IssueHostCertificate Request a host certificate

Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.

Takes a body of the `application/json` content type.

Corresponds with POST /api/v4/host/certificates (the `IssueHostCertificate` operationId).

func (*Client) IssueHostCertificateWithBody added in v0.24.0

func (c *Client) IssueHostCertificateWithBody(ctx context.Context, params *IssueHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

IssueHostCertificateWithBody Request a host certificate

Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.

Takes any type of body and a specified content type.

Corresponds with POST /api/v4/host/certificates (the `IssueHostCertificate` operationId).

func (*Client) IssueUserCertificate added in v0.24.0

func (c *Client) IssueUserCertificate(ctx context.Context, params *IssueUserCertificateParams, body IssueUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

IssueUserCertificate Request a user certificate

Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. Principals on the issued certificate are derived from the identity token.

Takes a body of the `application/json` content type.

Corresponds with POST /api/v4/user/certificates (the `IssueUserCertificate` operationId).

func (*Client) IssueUserCertificateWithBody added in v0.24.0

func (c *Client) IssueUserCertificateWithBody(ctx context.Context, params *IssueUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

IssueUserCertificateWithBody Request a user certificate

Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. Principals on the issued certificate are derived from the identity token.

Takes any type of body and a specified content type.

Corresponds with POST /api/v4/user/certificates (the `IssueUserCertificate` operationId).

func (*Client) PostHostCertificate added in v0.21.0

func (c *Client) PostHostCertificate(ctx context.Context, params *PostHostCertificateParams, body PostHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PostHostCertificate Request a host certificate

Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.

Takes a body of the `application/json` content type.

Corresponds with POST /api/v3/host/certificate (the `PostHostCertificate` operationId).

func (*Client) PostHostCertificateWithBody added in v0.21.0

func (c *Client) PostHostCertificateWithBody(ctx context.Context, params *PostHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PostHostCertificateWithBody Request a host certificate

Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.

Takes any type of body and a specified content type.

Corresponds with POST /api/v3/host/certificate (the `PostHostCertificate` operationId).

func (*Client) PostHostRenew added in v0.21.0

func (c *Client) PostHostRenew(ctx context.Context, body PostHostRenewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PostHostRenew Renew a host certificate

Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate.

Takes a body of the `application/json` content type.

Corresponds with POST /api/v3/host/renew (the `PostHostRenew` operationId).

func (*Client) PostHostRenewWithBody added in v0.21.0

func (c *Client) PostHostRenewWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PostHostRenewWithBody Renew a host certificate

Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate.

Takes any type of body and a specified content type.

Corresponds with POST /api/v3/host/renew (the `PostHostRenew` operationId).

func (*Client) PostHostRevoke added in v0.23.1

func (c *Client) PostHostRevoke(ctx context.Context, body PostHostRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PostHostRevoke Revoke a host certificate

Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.

Takes a body of the `application/json` content type.

Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).

func (*Client) PostHostRevokeWithBody added in v0.23.1

func (c *Client) PostHostRevokeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PostHostRevokeWithBody Revoke a host certificate

Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.

Takes any type of body and a specified content type.

Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).

func (*Client) PostUserCertificate added in v0.21.0

func (c *Client) PostUserCertificate(ctx context.Context, params *PostUserCertificateParams, body PostUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PostUserCertificate Request a user certificate

Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.

Takes a body of the `application/json` content type.

Corresponds with POST /api/v3/user/certificate (the `PostUserCertificate` operationId).

func (*Client) PostUserCertificateWithBody added in v0.21.0

func (c *Client) PostUserCertificateWithBody(ctx context.Context, params *PostUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PostUserCertificateWithBody Request a user certificate

Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.

Takes any type of body and a specified content type.

Corresponds with POST /api/v3/user/certificate (the `PostUserCertificate` operationId).

func (*Client) PostUserRevoke added in v0.23.1

func (c *Client) PostUserRevoke(ctx context.Context, body PostUserRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PostUserRevoke Revoke a user certificate

Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.

Takes a body of the `application/json` content type.

Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).

func (*Client) PostUserRevokeWithBody added in v0.23.1

func (c *Client) PostUserRevokeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PostUserRevokeWithBody Revoke a user certificate

Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.

Takes any type of body and a specified content type.

Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).

func (*Client) RenewHostCertificate added in v0.24.0

func (c *Client) RenewHostCertificate(ctx context.Context, serial string, params *RenewHostCertificateParams, body RenewHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

RenewHostCertificate Renew a host certificate

Issues a new SSH host certificate for the same public key and principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the `Proof-Of-Possession` header must contain a proof of possession of the private key for the existing certificate made for this request. The lifetime of the renewed certificate is no longer than that of the existing certificate.

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.

Takes any type of body and a specified content type.

Corresponds with POST /api/v4/host/certificates/{serial}/renew (the `RenewHostCertificate` operationId).

func (*Client) RevokeHostCertificate added in v0.24.0

func (c *Client) RevokeHostCertificate(ctx context.Context, serial string, params *RevokeHostCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

RevokeHostCertificate Revoke a host certificate

Revokes a host certificate issued by this CA and adds it to the host Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.

Corresponds with DELETE /api/v4/host/certificates/{serial} (the `RevokeHostCertificate` operationId).

func (*Client) RevokeUserCertificate added in v0.24.0

func (c *Client) RevokeUserCertificate(ctx context.Context, serial string, params *RevokeUserCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

RevokeUserCertificate Revoke a user certificate

Revokes a user certificate issued by this CA and adds it to the user Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.

Corresponds with DELETE /api/v4/user/certificates/{serial} (the `RevokeUserCertificate` operationId).

type ClientInterface

type ClientInterface interface {

	// GetCa Get the CA public key
	//
	// Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.
	//
	// Corresponds with GET /api/v3/ca (the `GetCa` operationId).
	GetCa(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostHostCertificateWithBody Request a host certificate
	//
	// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /api/v3/host/certificate (the `PostHostCertificate` operationId).
	PostHostCertificateWithBody(ctx context.Context, params *PostHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostHostCertificate Request a host certificate
	//
	// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /api/v3/host/certificate (the `PostHostCertificate` operationId).
	PostHostCertificate(ctx context.Context, params *PostHostCertificateParams, body PostHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHostKrl Get the Key Revocation List for host certificates
	//
	// Returns the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
	//
	// Corresponds with GET /api/v3/host/krl (the `GetHostKrl` operationId).
	GetHostKrl(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostHostRenewWithBody Renew a host certificate
	//
	// Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /api/v3/host/renew (the `PostHostRenew` operationId).
	PostHostRenewWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostHostRenew Renew a host certificate
	//
	// Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /api/v3/host/renew (the `PostHostRenew` operationId).
	PostHostRenew(ctx context.Context, body PostHostRenewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostHostRevokeWithBody Revoke a host certificate
	//
	// Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).
	PostHostRevokeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostHostRevoke Revoke a host certificate
	//
	// Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).
	PostHostRevoke(ctx context.Context, body PostHostRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostUserCertificateWithBody Request a user certificate
	//
	// Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /api/v3/user/certificate (the `PostUserCertificate` operationId).
	PostUserCertificateWithBody(ctx context.Context, params *PostUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostUserCertificate Request a user certificate
	//
	// Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /api/v3/user/certificate (the `PostUserCertificate` operationId).
	PostUserCertificate(ctx context.Context, params *PostUserCertificateParams, body PostUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUserKrl Get the Key Revocation List for user certificates
	//
	// Returns the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
	//
	// Corresponds with GET /api/v3/user/krl (the `GetUserKrl` operationId).
	GetUserKrl(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostUserRevokeWithBody Revoke a user certificate
	//
	// Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).
	PostUserRevokeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostUserRevoke Revoke a user certificate
	//
	// Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).
	PostUserRevoke(ctx context.Context, body PostUserRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCaPublicKey Get the CA public key
	//
	// Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.
	//
	// Corresponds with GET /api/v4/ca (the `GetCaPublicKey` operationId).
	GetCaPublicKey(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IssueHostCertificateWithBody Request a host certificate
	//
	// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /api/v4/host/certificates (the `IssueHostCertificate` operationId).
	IssueHostCertificateWithBody(ctx context.Context, params *IssueHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IssueHostCertificate Request a host certificate
	//
	// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /api/v4/host/certificates (the `IssueHostCertificate` operationId).
	IssueHostCertificate(ctx context.Context, params *IssueHostCertificateParams, body IssueHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeHostCertificate Revoke a host certificate
	//
	// Revokes a host certificate issued by this CA and adds it to the host Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.
	//
	// Corresponds with DELETE /api/v4/host/certificates/{serial} (the `RevokeHostCertificate` operationId).
	RevokeHostCertificate(ctx context.Context, serial string, params *RevokeHostCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RenewHostCertificateWithBody Renew a host certificate
	//
	// Issues a new SSH host certificate for the same public key and principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the `Proof-Of-Possession` header must contain a proof of possession of the private key for the existing certificate made for this request. The lifetime of the renewed certificate is no longer than that of the existing certificate.
	//
	// 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.
	//
	// 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

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) GetCaPublicKeyWithResponse added in v0.24.0

func (c *ClientWithResponses) GetCaPublicKeyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaPublicKeyResponse, error)

GetCaPublicKeyWithResponse Get the CA public key

Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v4/ca (the `GetCaPublicKey` operationId).

func (*ClientWithResponses) GetCaWithResponse added in v0.21.0

func (c *ClientWithResponses) GetCaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaResponse, error)

GetCaWithResponse Get the CA public key

Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v3/ca (the `GetCa` operationId).

func (*ClientWithResponses) GetHostKrlWithResponse added in v0.23.1

func (c *ClientWithResponses) GetHostKrlWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHostKrlResponse, error)

GetHostKrlWithResponse Get the Key Revocation List for host certificates

Returns the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v3/host/krl (the `GetHostKrl` operationId).

func (*ClientWithResponses) GetHostRevocationListWithResponse added in v0.24.0

func (c *ClientWithResponses) GetHostRevocationListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHostRevocationListResponse, error)

GetHostRevocationListWithResponse Get the Key Revocation List for host certificates

Returns the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v4/host/krl (the `GetHostRevocationList` operationId).

func (*ClientWithResponses) GetUserKrlWithResponse added in v0.23.1

func (c *ClientWithResponses) GetUserKrlWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserKrlResponse, error)

GetUserKrlWithResponse Get the Key Revocation List for user certificates

Returns the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v3/user/krl (the `GetUserKrl` operationId).

func (*ClientWithResponses) GetUserRevocationListWithResponse added in v0.24.0

func (c *ClientWithResponses) GetUserRevocationListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserRevocationListResponse, error)

GetUserRevocationListWithResponse Get the Key Revocation List for user certificates

Returns the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v4/user/krl (the `GetUserRevocationList` operationId).

func (*ClientWithResponses) IssueHostCertificateWithBodyWithResponse added in v0.24.0

func (c *ClientWithResponses) IssueHostCertificateWithBodyWithResponse(ctx context.Context, params *IssueHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssueHostCertificateResponse, error)

IssueHostCertificateWithBodyWithResponse Request a host certificate

Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v4/host/certificates (the `IssueHostCertificate` operationId).

func (*ClientWithResponses) IssueHostCertificateWithResponse added in v0.24.0

IssueHostCertificateWithResponse Request a host certificate

Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v4/host/certificates (the `IssueHostCertificate` operationId).

func (*ClientWithResponses) IssueUserCertificateWithBodyWithResponse added in v0.24.0

func (c *ClientWithResponses) IssueUserCertificateWithBodyWithResponse(ctx context.Context, params *IssueUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssueUserCertificateResponse, error)

IssueUserCertificateWithBodyWithResponse Request a user certificate

Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. Principals on the issued certificate are derived from the identity token.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v4/user/certificates (the `IssueUserCertificate` operationId).

func (*ClientWithResponses) IssueUserCertificateWithResponse added in v0.24.0

IssueUserCertificateWithResponse Request a user certificate

Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. Principals on the issued certificate are derived from the identity token.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v4/user/certificates (the `IssueUserCertificate` operationId).

func (*ClientWithResponses) PostHostCertificateWithBodyWithResponse added in v0.21.0

func (c *ClientWithResponses) PostHostCertificateWithBodyWithResponse(ctx context.Context, params *PostHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostCertificateResponse, error)

PostHostCertificateWithBodyWithResponse Request a host certificate

Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v3/host/certificate (the `PostHostCertificate` operationId).

func (*ClientWithResponses) PostHostCertificateWithResponse added in v0.21.0

PostHostCertificateWithResponse Request a host certificate

Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v3/host/certificate (the `PostHostCertificate` operationId).

func (*ClientWithResponses) PostHostRenewWithBodyWithResponse added in v0.21.0

func (c *ClientWithResponses) PostHostRenewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostRenewResponse, error)

PostHostRenewWithBodyWithResponse Renew a host certificate

Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v3/host/renew (the `PostHostRenew` operationId).

func (*ClientWithResponses) PostHostRenewWithResponse added in v0.21.0

func (c *ClientWithResponses) PostHostRenewWithResponse(ctx context.Context, body PostHostRenewJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostRenewResponse, error)

PostHostRenewWithResponse Renew a host certificate

Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v3/host/renew (the `PostHostRenew` operationId).

func (*ClientWithResponses) PostHostRevokeWithBodyWithResponse added in v0.23.1

func (c *ClientWithResponses) PostHostRevokeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostRevokeResponse, error)

PostHostRevokeWithBodyWithResponse Revoke a host certificate

Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).

func (*ClientWithResponses) PostHostRevokeWithResponse added in v0.23.1

func (c *ClientWithResponses) PostHostRevokeWithResponse(ctx context.Context, body PostHostRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostRevokeResponse, error)

PostHostRevokeWithResponse Revoke a host certificate

Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).

func (*ClientWithResponses) PostUserCertificateWithBodyWithResponse added in v0.21.0

func (c *ClientWithResponses) PostUserCertificateWithBodyWithResponse(ctx context.Context, params *PostUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserCertificateResponse, error)

PostUserCertificateWithBodyWithResponse Request a user certificate

Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v3/user/certificate (the `PostUserCertificate` operationId).

func (*ClientWithResponses) PostUserCertificateWithResponse added in v0.21.0

PostUserCertificateWithResponse Request a user certificate

Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v3/user/certificate (the `PostUserCertificate` operationId).

func (*ClientWithResponses) PostUserRevokeWithBodyWithResponse added in v0.23.1

func (c *ClientWithResponses) PostUserRevokeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserRevokeResponse, error)

PostUserRevokeWithBodyWithResponse Revoke a user certificate

Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).

func (*ClientWithResponses) PostUserRevokeWithResponse added in v0.23.1

func (c *ClientWithResponses) PostUserRevokeWithResponse(ctx context.Context, body PostUserRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserRevokeResponse, error)

PostUserRevokeWithResponse Revoke a user certificate

Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).

func (*ClientWithResponses) RenewHostCertificateWithBodyWithResponse added in v0.24.0

func (c *ClientWithResponses) RenewHostCertificateWithBodyWithResponse(ctx context.Context, serial string, params *RenewHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewHostCertificateResponse, error)

RenewHostCertificateWithBodyWithResponse Renew a host certificate

Issues a new SSH host certificate for the same public key and principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the `Proof-Of-Possession` header must contain a proof of possession of the private key for the existing certificate made for this request. The lifetime of the renewed certificate is no longer than that of the existing certificate.

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.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v4/host/certificates/{serial}/renew (the `RenewHostCertificate` operationId).

func (*ClientWithResponses) RevokeHostCertificateWithResponse added in v0.24.0

func (c *ClientWithResponses) RevokeHostCertificateWithResponse(ctx context.Context, serial string, params *RevokeHostCertificateParams, reqEditors ...RequestEditorFn) (*RevokeHostCertificateResponse, error)

RevokeHostCertificateWithResponse Revoke a host certificate

Revokes a host certificate issued by this CA and adds it to the host Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /api/v4/host/certificates/{serial} (the `RevokeHostCertificate` operationId).

func (*ClientWithResponses) RevokeUserCertificateWithResponse added in v0.24.0

func (c *ClientWithResponses) RevokeUserCertificateWithResponse(ctx context.Context, serial string, params *RevokeUserCertificateParams, reqEditors ...RequestEditorFn) (*RevokeUserCertificateResponse, error)

RevokeUserCertificateWithResponse Revoke a user certificate

Revokes a user certificate issued by this CA and adds it to the user Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /api/v4/user/certificates/{serial} (the `RevokeUserCertificate` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// GetCaWithResponse Get the CA public key
	//
	// Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v3/ca (the `GetCa` operationId).
	GetCaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaResponse, error)

	// PostHostCertificateWithBodyWithResponse Request a host certificate
	//
	// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v3/host/certificate (the `PostHostCertificate` operationId).
	PostHostCertificateWithBodyWithResponse(ctx context.Context, params *PostHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostCertificateResponse, error)

	// PostHostCertificateWithResponse Request a host certificate
	//
	// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. The user must be permitted to request host certificates by email address or role.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v3/host/certificate (the `PostHostCertificate` operationId).
	PostHostCertificateWithResponse(ctx context.Context, params *PostHostCertificateParams, body PostHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostCertificateResponse, error)

	// GetHostKrlWithResponse Get the Key Revocation List for host certificates
	//
	// Returns the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v3/host/krl (the `GetHostKrl` operationId).
	GetHostKrlWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHostKrlResponse, error)

	// PostHostRenewWithBodyWithResponse Renew a host certificate
	//
	// Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v3/host/renew (the `PostHostRenew` operationId).
	PostHostRenewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostRenewResponse, error)

	// PostHostRenewWithResponse Renew a host certificate
	//
	// Issues a new SSH host certificate with the same principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the public key must match the existing certificate and the proof of possession must be made with its private key. The lifetime of the renewed certificate is no longer than that of the existing certificate.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v3/host/renew (the `PostHostRenew` operationId).
	PostHostRenewWithResponse(ctx context.Context, body PostHostRenewJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostRenewResponse, error)

	// PostHostRevokeWithBodyWithResponse Revoke a host certificate
	//
	// Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).
	PostHostRevokeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostRevokeResponse, error)

	// PostHostRevokeWithResponse Revoke a host certificate
	//
	// Revokes a host certificate issued by this CA, identified by its serial number, and adds it to the host Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v3/host/revoke (the `PostHostRevoke` operationId).
	PostHostRevokeWithResponse(ctx context.Context, body PostHostRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostRevokeResponse, error)

	// PostUserCertificateWithBodyWithResponse Request a user certificate
	//
	// Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v3/user/certificate (the `PostUserCertificate` operationId).
	PostUserCertificateWithBodyWithResponse(ctx context.Context, params *PostUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserCertificateResponse, error)

	// PostUserCertificateWithResponse Request a user certificate
	//
	// Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key. Principals on the issued certificate are derived from the identity token.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v3/user/certificate (the `PostUserCertificate` operationId).
	PostUserCertificateWithResponse(ctx context.Context, params *PostUserCertificateParams, body PostUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserCertificateResponse, error)

	// GetUserKrlWithResponse Get the Key Revocation List for user certificates
	//
	// Returns the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v3/user/krl (the `GetUserKrl` operationId).
	GetUserKrlWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserKrlResponse, error)

	// PostUserRevokeWithBodyWithResponse Revoke a user certificate
	//
	// Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).
	PostUserRevokeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserRevokeResponse, error)

	// PostUserRevokeWithResponse Revoke a user certificate
	//
	// Revokes a user certificate issued by this CA, identified by its serial number, and adds it to the user Key Revocation List. The request must include a proof of possession of the private key for the public key that the certificate was issued for.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v3/user/revoke (the `PostUserRevoke` operationId).
	PostUserRevokeWithResponse(ctx context.Context, body PostUserRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserRevokeResponse, error)

	// GetCaPublicKeyWithResponse Get the CA public key
	//
	// Returns the public key of the SSH Certificate Authority in OpenSSH format, for use in `TrustedUserCAKeys` on SSH servers or `@cert-authority` entries in `known_hosts` on SSH clients.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v4/ca (the `GetCaPublicKey` operationId).
	GetCaPublicKeyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaPublicKeyResponse, error)

	// IssueHostCertificateWithBodyWithResponse Request a host certificate
	//
	// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v4/host/certificates (the `IssueHostCertificate` operationId).
	IssueHostCertificateWithBodyWithResponse(ctx context.Context, params *IssueHostCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssueHostCertificateResponse, error)

	// IssueHostCertificateWithResponse Request a host certificate
	//
	// Issues a signed SSH host certificate for the provided public key and principals. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. The user must be permitted to request host certificates by email address or role.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v4/host/certificates (the `IssueHostCertificate` operationId).
	IssueHostCertificateWithResponse(ctx context.Context, params *IssueHostCertificateParams, body IssueHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*IssueHostCertificateResponse, error)

	// RevokeHostCertificateWithResponse Revoke a host certificate
	//
	// Revokes a host certificate issued by this CA and adds it to the host Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /api/v4/host/certificates/{serial} (the `RevokeHostCertificate` operationId).
	RevokeHostCertificateWithResponse(ctx context.Context, serial string, params *RevokeHostCertificateParams, reqEditors ...RequestEditorFn) (*RevokeHostCertificateResponse, error)

	// RenewHostCertificateWithBodyWithResponse Renew a host certificate
	//
	// Issues a new SSH host certificate for the same public key and principals as an existing, unexpired and unrevoked host certificate issued by this CA. No OIDC authentication is required; instead the `Proof-Of-Possession` header must contain a proof of possession of the private key for the existing certificate made for this request. The lifetime of the renewed certificate is no longer than that of the existing certificate.
	//
	// 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.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v4/host/certificates/{serial}/renew (the `RenewHostCertificate` operationId).
	RenewHostCertificateWithResponse(ctx context.Context, serial string, params *RenewHostCertificateParams, body RenewHostCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewHostCertificateResponse, error)

	// GetHostRevocationListWithResponse Get the Key Revocation List for host certificates
	//
	// Returns the OpenSSH Key Revocation List (KRL) of revoked host certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v4/host/krl (the `GetHostRevocationList` operationId).
	GetHostRevocationListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHostRevocationListResponse, error)

	// IssueUserCertificateWithBodyWithResponse Request a user certificate
	//
	// Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. Principals on the issued certificate are derived from the identity token.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v4/user/certificates (the `IssueUserCertificate` operationId).
	IssueUserCertificateWithBodyWithResponse(ctx context.Context, params *IssueUserCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssueUserCertificateResponse, error)

	// IssueUserCertificateWithResponse Request a user certificate
	//
	// Issues a signed SSH user certificate for the provided public key. The request must be authenticated with an access token and include an identity token from the OIDC IdP for the same subject, along with a proof of possession of the private key for `public_key` in the `Proof-Of-Possession` header made for this request. Principals on the issued certificate are derived from the identity token.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v4/user/certificates (the `IssueUserCertificate` operationId).
	IssueUserCertificateWithResponse(ctx context.Context, params *IssueUserCertificateParams, body IssueUserCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*IssueUserCertificateResponse, error)

	// RevokeUserCertificateWithResponse Revoke a user certificate
	//
	// Revokes a user certificate issued by this CA and adds it to the user Key Revocation List. The `Proof-Of-Possession` header must contain a proof of possession of the private key for the public key that the certificate was issued for, made for this request. A certificate issued for a different public key is reported as not found.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /api/v4/user/certificates/{serial} (the `RevokeUserCertificate` operationId).
	RevokeUserCertificateWithResponse(ctx context.Context, serial string, params *RevokeUserCertificateParams, reqEditors ...RequestEditorFn) (*RevokeUserCertificateResponse, error)

	// GetUserRevocationListWithResponse Get the Key Revocation List for user certificates
	//
	// Returns the OpenSSH Key Revocation List (KRL) of revoked user certificates issued by this CA, along with an SSHSIG signature made by the CA key so the KRL can be verified before use.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v4/user/krl (the `GetUserRevocationList` operationId).
	GetUserRevocationListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserRevocationListResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type GetCa500JSONResponseBodySuccess added in v0.21.0

type GetCa500JSONResponseBodySuccess bool

GetCa500JSONResponseBodySuccess defines parameters for GetCa.

const (
	GetCa500JSONResponseBodySuccessFalse GetCa500JSONResponseBodySuccess = false
)

Defines values for GetCa500JSONResponseBodySuccess.

func (GetCa500JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the GetCa500JSONResponseBodySuccess enum.

type GetCaPublicKey500JSONResponseBodySuccess added in v0.24.0

type GetCaPublicKey500JSONResponseBodySuccess bool

GetCaPublicKey500JSONResponseBodySuccess defines parameters for GetCaPublicKey.

const (
	GetCaPublicKey500JSONResponseBodySuccessFalse GetCaPublicKey500JSONResponseBodySuccess = false
)

Defines values for GetCaPublicKey500JSONResponseBodySuccess.

func (GetCaPublicKey500JSONResponseBodySuccess) Valid added in v0.24.0

Valid indicates whether the value is a known member of the GetCaPublicKey500JSONResponseBodySuccess enum.

type GetCaPublicKeyResponse added in v0.24.0

type GetCaPublicKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success GetCaPublicKey500JSONResponseBodySuccess `json:"success"`
	}
}

func ParseGetCaPublicKeyResponse added in v0.24.0

func ParseGetCaPublicKeyResponse(rsp *http.Response) (*GetCaPublicKeyResponse, error)

ParseGetCaPublicKeyResponse parses an HTTP response from a GetCaPublicKeyWithResponse call

func (GetCaPublicKeyResponse) ContentType added in v0.24.0

func (r GetCaPublicKeyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetCaPublicKeyResponse) GetBody added in v0.24.0

func (r GetCaPublicKeyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetCaPublicKeyResponse) GetJSON500 added in v0.24.0

func (r GetCaPublicKeyResponse) GetJSON500() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success GetCaPublicKey500JSONResponseBodySuccess `json:"success"`
}

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetCaPublicKeyResponse) Status added in v0.24.0

func (r GetCaPublicKeyResponse) Status() string

Status returns HTTPResponse.Status

func (GetCaPublicKeyResponse) StatusCode added in v0.24.0

func (r GetCaPublicKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCaResponse added in v0.21.0

type GetCaResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success GetCa500JSONResponseBodySuccess `json:"success"`
	}
}

func ParseGetCaResponse added in v0.21.0

func ParseGetCaResponse(rsp *http.Response) (*GetCaResponse, error)

ParseGetCaResponse parses an HTTP response from a GetCaWithResponse call

func (GetCaResponse) ContentType added in v0.21.0

func (r GetCaResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetCaResponse) GetBody added in v0.21.0

func (r GetCaResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetCaResponse) GetJSON500 added in v0.21.0

func (r GetCaResponse) GetJSON500() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success GetCa500JSONResponseBodySuccess `json:"success"`
}

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetCaResponse) Status added in v0.21.0

func (r GetCaResponse) Status() string

Status returns HTTPResponse.Status

func (GetCaResponse) StatusCode added in v0.21.0

func (r GetCaResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHostKrl500JSONResponseBodySuccess added in v0.23.1

type GetHostKrl500JSONResponseBodySuccess bool

GetHostKrl500JSONResponseBodySuccess defines parameters for GetHostKrl.

const (
	GetHostKrl500JSONResponseBodySuccessFalse GetHostKrl500JSONResponseBodySuccess = false
)

Defines values for GetHostKrl500JSONResponseBodySuccess.

func (GetHostKrl500JSONResponseBodySuccess) Valid added in v0.23.1

Valid indicates whether the value is a known member of the GetHostKrl500JSONResponseBodySuccess enum.

type GetHostKrlResponse added in v0.23.1

type GetHostKrlResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *KeyRevocationListResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success GetHostKrl500JSONResponseBodySuccess `json:"success"`
	}
}

func ParseGetHostKrlResponse added in v0.23.1

func ParseGetHostKrlResponse(rsp *http.Response) (*GetHostKrlResponse, error)

ParseGetHostKrlResponse parses an HTTP response from a GetHostKrlWithResponse call

func (GetHostKrlResponse) ContentType added in v0.23.1

func (r GetHostKrlResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetHostKrlResponse) GetBody added in v0.23.1

func (r GetHostKrlResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetHostKrlResponse) GetJSON200 added in v0.23.1

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetHostKrlResponse) GetJSON500 added in v0.23.1

func (r GetHostKrlResponse) GetJSON500() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success GetHostKrl500JSONResponseBodySuccess `json:"success"`
}

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetHostKrlResponse) Status added in v0.23.1

func (r GetHostKrlResponse) Status() string

Status returns HTTPResponse.Status

func (GetHostKrlResponse) StatusCode added in v0.23.1

func (r GetHostKrlResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHostRevocationList500JSONResponseBodySuccess added in v0.24.0

type GetHostRevocationList500JSONResponseBodySuccess bool

GetHostRevocationList500JSONResponseBodySuccess defines parameters for GetHostRevocationList.

const (
	GetHostRevocationList500JSONResponseBodySuccessFalse GetHostRevocationList500JSONResponseBodySuccess = false
)

Defines values for GetHostRevocationList500JSONResponseBodySuccess.

func (GetHostRevocationList500JSONResponseBodySuccess) Valid added in v0.24.0

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

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

Status returns HTTPResponse.Status

func (GetHostRevocationListResponse) StatusCode added in v0.24.0

func (r GetHostRevocationListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserKrl500JSONResponseBodySuccess added in v0.23.1

type GetUserKrl500JSONResponseBodySuccess bool

GetUserKrl500JSONResponseBodySuccess defines parameters for GetUserKrl.

const (
	GetUserKrl500JSONResponseBodySuccessFalse GetUserKrl500JSONResponseBodySuccess = false
)

Defines values for GetUserKrl500JSONResponseBodySuccess.

func (GetUserKrl500JSONResponseBodySuccess) Valid added in v0.23.1

Valid indicates whether the value is a known member of the GetUserKrl500JSONResponseBodySuccess enum.

type GetUserKrlResponse added in v0.23.1

type GetUserKrlResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *KeyRevocationListResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success GetUserKrl500JSONResponseBodySuccess `json:"success"`
	}
}

func ParseGetUserKrlResponse added in v0.23.1

func ParseGetUserKrlResponse(rsp *http.Response) (*GetUserKrlResponse, error)

ParseGetUserKrlResponse parses an HTTP response from a GetUserKrlWithResponse call

func (GetUserKrlResponse) ContentType added in v0.23.1

func (r GetUserKrlResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetUserKrlResponse) GetBody added in v0.23.1

func (r GetUserKrlResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetUserKrlResponse) GetJSON200 added in v0.23.1

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetUserKrlResponse) GetJSON500 added in v0.23.1

func (r GetUserKrlResponse) GetJSON500() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success GetUserKrl500JSONResponseBodySuccess `json:"success"`
}

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetUserKrlResponse) Status added in v0.23.1

func (r GetUserKrlResponse) Status() string

Status returns HTTPResponse.Status

func (GetUserKrlResponse) StatusCode added in v0.23.1

func (r GetUserKrlResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserRevocationList500JSONResponseBodySuccess added in v0.24.0

type GetUserRevocationList500JSONResponseBodySuccess bool

GetUserRevocationList500JSONResponseBodySuccess defines parameters for GetUserRevocationList.

const (
	GetUserRevocationList500JSONResponseBodySuccessFalse GetUserRevocationList500JSONResponseBodySuccess = false
)

Defines values for GetUserRevocationList500JSONResponseBodySuccess.

func (GetUserRevocationList500JSONResponseBodySuccess) Valid added in v0.24.0

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

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

Status returns HTTPResponse.Status

func (GetUserRevocationListResponse) StatusCode added in v0.24.0

func (r GetUserRevocationListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HostCertificateIssueRequest added in v0.24.0

type HostCertificateIssueRequest struct {
	// Identity Identity Token JWT from OIDC IdP
	Identity string `json:"identity"`

	// Lifetime Lifetime of issued Host SSH certificate
	Lifetime *int `json:"lifetime,omitempty"`

	// Principals List of principals to include on the issued certificate
	Principals []string `json:"principals"`

	// PublicKey SSH public key to sign
	PublicKey []byte `json:"public_key"`
}

HostCertificateIssueRequest defines model for Host Certificate Issue Request.

type HostCertificateRenew

type HostCertificateRenew struct {
	// Certificate SSH certificate to renew
	Certificate []byte `json:"certificate"`

	// Lifetime Lifetime of renewed Host SSH certificate
	Lifetime *int `json:"lifetime,omitempty"`

	// Proof Proof of possession comprising of ${timestamp}.${fingerprint}.${signature}
	Proof string `json:"proof"`

	// PublicKey SSH public key to sign
	PublicKey []byte `json:"public_key"`
}

HostCertificateRenew defines model for Host Certificate Renew.

type HostCertificateRenewalRequest added in v0.24.0

type HostCertificateRenewalRequest struct {
	// Certificate SSH certificate to renew, which must have the serial number in the path
	Certificate []byte `json:"certificate"`

	// Lifetime Lifetime of renewed Host SSH certificate
	Lifetime *int `json:"lifetime,omitempty"`
}

HostCertificateRenewalRequest defines model for Host Certificate Renewal Request.

type HostCertificateRequest

type HostCertificateRequest struct {
	// Identity Identity Token JWT from OIDC IdP
	Identity string `json:"identity"`

	// Lifetime Lifetime of issued Host SSH certificate
	Lifetime *int `json:"lifetime,omitempty"`

	// Principals List of principals to include on the issued certificate
	Principals []string `json:"principals"`

	// Proof Proof of possession comprising of ${timestamp}.${fingerprint}.${signature}
	Proof string `json:"proof"`

	// PublicKey SSH public key to sign
	PublicKey []byte `json:"public_key"`
}

HostCertificateRequest defines model for Host Certificate Request.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

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

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

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

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

Valid indicates whether the value is a known member of the IssueHostCertificate422JSONResponseBodySuccess 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

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"`
	}
	// 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

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) 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

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

Valid indicates whether the value is a known member of the IssueUserCertificate400JSONResponseBodySuccess enum.

type IssueUserCertificate401JSONResponseBodySuccess added in v0.24.0

type IssueUserCertificate401JSONResponseBodySuccess bool

IssueUserCertificate401JSONResponseBodySuccess defines parameters for IssueUserCertificate.

const (
	IssueUserCertificate401JSONResponseBodySuccessFalse IssueUserCertificate401JSONResponseBodySuccess = false
)

Defines values for IssueUserCertificate401JSONResponseBodySuccess.

func (IssueUserCertificate401JSONResponseBodySuccess) Valid added in v0.24.0

Valid indicates whether the value is a known member of the IssueUserCertificate401JSONResponseBodySuccess enum.

type IssueUserCertificate403JSONResponseBodySuccess added in v0.24.0

type IssueUserCertificate403JSONResponseBodySuccess bool

IssueUserCertificate403JSONResponseBodySuccess defines parameters for IssueUserCertificate.

const (
	IssueUserCertificate403JSONResponseBodySuccessFalse IssueUserCertificate403JSONResponseBodySuccess = false
)

Defines values for IssueUserCertificate403JSONResponseBodySuccess.

func (IssueUserCertificate403JSONResponseBodySuccess) Valid added in v0.24.0

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

Valid indicates whether the value is a known member of the IssueUserCertificate422JSONResponseBodySuccess 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

Valid indicates whether the value is a known member of the IssueUserCertificate500JSONResponseBodySuccess enum.

type IssueUserCertificateJSONRequestBody added in v0.24.0

type IssueUserCertificateJSONRequestBody = UserCertificateIssueRequest

IssueUserCertificateJSONRequestBody defines body for IssueUserCertificate for application/json ContentType.

type IssueUserCertificateParams added in v0.24.0

type IssueUserCertificateParams struct {
	// Authorization Access Token JWT from OIDC IdP
	Authorization string `json:"Authorization"`

	// ProofOfPossession Proof of possession of the private key comprising of `${timestamp}.${fingerprint}.${signature}`. The signature is a BASE64 encoded armored SSHSIG signature, made with the `request-proof-of-possession@com.github.serverless-ssh-ca.andrewheberle` namespace, of `${timestamp}.${fingerprint}.${METHOD} ${path}` where `${METHOD} ${path}` is the request the proof is for, for example `DELETE /api/v4/user/certificates/12345678901234567890`. The timestamp is in milliseconds since the Unix epoch.
	ProofOfPossession string `json:"Proof-Of-Possession"`
}

IssueUserCertificateParams defines parameters for IssueUserCertificate.

type IssueUserCertificateResponse added in v0.24.0

type IssueUserCertificateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CertificateResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success IssueUserCertificate400JSONResponseBodySuccess `json:"success"`
	}
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success IssueUserCertificate401JSONResponseBodySuccess `json:"success"`
	}
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success IssueUserCertificate403JSONResponseBodySuccess `json:"success"`
	}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success IssueUserCertificate422JSONResponseBodySuccess `json:"success"`
	}
	// 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

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (IssueUserCertificateResponse) GetJSON400 added in v0.24.0

func (r IssueUserCertificateResponse) GetJSON400() *struct {
	Errors []struct {
		Code    float32  `json:"code"`
		Message string   `json:"message"`
		Path    []string `json:"path"`
	} `json:"errors"`
	Success IssueUserCertificate400JSONResponseBodySuccess `json:"success"`
}

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (IssueUserCertificateResponse) GetJSON401 added in v0.24.0

func (r IssueUserCertificateResponse) GetJSON401() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success IssueUserCertificate401JSONResponseBodySuccess `json:"success"`
}

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (IssueUserCertificateResponse) GetJSON403 added in v0.24.0

func (r IssueUserCertificateResponse) GetJSON403() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success IssueUserCertificate403JSONResponseBodySuccess `json:"success"`
}

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (IssueUserCertificateResponse) GetJSON422 added in v0.24.0

func (r IssueUserCertificateResponse) GetJSON422() *struct {
	Errors []struct {
		Code    float32  `json:"code"`
		Message string   `json:"message"`
		Path    []string `json:"path"`
	} `json:"errors"`
	Success IssueUserCertificate422JSONResponseBodySuccess `json:"success"`
}

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (IssueUserCertificateResponse) 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

Status returns HTTPResponse.Status

func (IssueUserCertificateResponse) StatusCode added in v0.24.0

func (r IssueUserCertificateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type KeyRevocationListResponse

type KeyRevocationListResponse struct {
	// Krl Key Revocation List
	Krl       []byte `json:"krl"`
	Signature string `json:"signature"`
}

KeyRevocationListResponse defines model for Key Revocation List Response.

type PostHostCertificate400JSONResponseBodySuccess added in v0.21.0

type PostHostCertificate400JSONResponseBodySuccess bool

PostHostCertificate400JSONResponseBodySuccess defines parameters for PostHostCertificate.

const (
	PostHostCertificate400JSONResponseBodySuccessFalse PostHostCertificate400JSONResponseBodySuccess = false
)

Defines values for PostHostCertificate400JSONResponseBodySuccess.

func (PostHostCertificate400JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostHostCertificate400JSONResponseBodySuccess enum.

type PostHostCertificate401JSONResponseBodySuccess added in v0.21.0

type PostHostCertificate401JSONResponseBodySuccess bool

PostHostCertificate401JSONResponseBodySuccess defines parameters for PostHostCertificate.

const (
	PostHostCertificate401JSONResponseBodySuccessFalse PostHostCertificate401JSONResponseBodySuccess = false
)

Defines values for PostHostCertificate401JSONResponseBodySuccess.

func (PostHostCertificate401JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostHostCertificate401JSONResponseBodySuccess enum.

type PostHostCertificate403JSONResponseBodySuccess added in v0.21.0

type PostHostCertificate403JSONResponseBodySuccess bool

PostHostCertificate403JSONResponseBodySuccess defines parameters for PostHostCertificate.

const (
	PostHostCertificate403JSONResponseBodySuccessFalse PostHostCertificate403JSONResponseBodySuccess = false
)

Defines values for PostHostCertificate403JSONResponseBodySuccess.

func (PostHostCertificate403JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostHostCertificate403JSONResponseBodySuccess enum.

type PostHostCertificate422JSONResponseBodySuccess added in v0.21.0

type PostHostCertificate422JSONResponseBodySuccess bool

PostHostCertificate422JSONResponseBodySuccess defines parameters for PostHostCertificate.

const (
	PostHostCertificate422JSONResponseBodySuccessFalse PostHostCertificate422JSONResponseBodySuccess = false
)

Defines values for PostHostCertificate422JSONResponseBodySuccess.

func (PostHostCertificate422JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostHostCertificate422JSONResponseBodySuccess enum.

type PostHostCertificate500JSONResponseBodySuccess added in v0.21.0

type PostHostCertificate500JSONResponseBodySuccess bool

PostHostCertificate500JSONResponseBodySuccess defines parameters for PostHostCertificate.

const (
	PostHostCertificate500JSONResponseBodySuccessFalse PostHostCertificate500JSONResponseBodySuccess = false
)

Defines values for PostHostCertificate500JSONResponseBodySuccess.

func (PostHostCertificate500JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostHostCertificate500JSONResponseBodySuccess enum.

type PostHostCertificateJSONRequestBody added in v0.21.0

type PostHostCertificateJSONRequestBody = HostCertificateRequest

PostHostCertificateJSONRequestBody defines body for PostHostCertificate for application/json ContentType.

type PostHostCertificateParams added in v0.21.0

type PostHostCertificateParams struct {
	// Authorization Access Token JWT from OIDC IdP
	Authorization string `json:"Authorization"`
}

PostHostCertificateParams defines parameters for PostHostCertificate.

type PostHostCertificateResponse added in v0.21.0

type PostHostCertificateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CertificateResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostHostCertificate400JSONResponseBodySuccess `json:"success"`
	}
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostCertificate401JSONResponseBodySuccess `json:"success"`
	}
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostCertificate403JSONResponseBodySuccess `json:"success"`
	}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostHostCertificate422JSONResponseBodySuccess `json:"success"`
	}
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostCertificate500JSONResponseBodySuccess `json:"success"`
	}
}

func ParsePostHostCertificateResponse added in v0.21.0

func ParsePostHostCertificateResponse(rsp *http.Response) (*PostHostCertificateResponse, error)

ParsePostHostCertificateResponse parses an HTTP response from a PostHostCertificateWithResponse call

func (PostHostCertificateResponse) ContentType added in v0.21.0

func (r PostHostCertificateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostHostCertificateResponse) GetBody added in v0.21.0

func (r PostHostCertificateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PostHostCertificateResponse) GetJSON200 added in v0.21.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PostHostCertificateResponse) GetJSON400 added in v0.21.0

func (r PostHostCertificateResponse) GetJSON400() *struct {
	Errors []struct {
		Code    float32  `json:"code"`
		Message string   `json:"message"`
		Path    []string `json:"path"`
	} `json:"errors"`
	Success PostHostCertificate400JSONResponseBodySuccess `json:"success"`
}

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PostHostCertificateResponse) GetJSON401 added in v0.21.0

func (r PostHostCertificateResponse) GetJSON401() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostHostCertificate401JSONResponseBodySuccess `json:"success"`
}

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PostHostCertificateResponse) GetJSON403 added in v0.21.0

func (r PostHostCertificateResponse) GetJSON403() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostHostCertificate403JSONResponseBodySuccess `json:"success"`
}

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PostHostCertificateResponse) GetJSON422 added in v0.21.0

func (r PostHostCertificateResponse) GetJSON422() *struct {
	Errors []struct {
		Code    float32  `json:"code"`
		Message string   `json:"message"`
		Path    []string `json:"path"`
	} `json:"errors"`
	Success PostHostCertificate422JSONResponseBodySuccess `json:"success"`
}

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (PostHostCertificateResponse) GetJSON500 added in v0.21.0

func (r PostHostCertificateResponse) GetJSON500() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostHostCertificate500JSONResponseBodySuccess `json:"success"`
}

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (PostHostCertificateResponse) Status added in v0.21.0

Status returns HTTPResponse.Status

func (PostHostCertificateResponse) StatusCode added in v0.21.0

func (r PostHostCertificateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostHostRenew400JSONResponseBodySuccess added in v0.21.0

type PostHostRenew400JSONResponseBodySuccess bool

PostHostRenew400JSONResponseBodySuccess defines parameters for PostHostRenew.

const (
	PostHostRenew400JSONResponseBodySuccessFalse PostHostRenew400JSONResponseBodySuccess = false
)

Defines values for PostHostRenew400JSONResponseBodySuccess.

func (PostHostRenew400JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostHostRenew400JSONResponseBodySuccess enum.

type PostHostRenew401JSONResponseBodySuccess added in v0.21.0

type PostHostRenew401JSONResponseBodySuccess bool

PostHostRenew401JSONResponseBodySuccess defines parameters for PostHostRenew.

const (
	PostHostRenew401JSONResponseBodySuccessFalse PostHostRenew401JSONResponseBodySuccess = false
)

Defines values for PostHostRenew401JSONResponseBodySuccess.

func (PostHostRenew401JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostHostRenew401JSONResponseBodySuccess enum.

type PostHostRenew403JSONResponseBodySuccess added in v0.21.0

type PostHostRenew403JSONResponseBodySuccess bool

PostHostRenew403JSONResponseBodySuccess defines parameters for PostHostRenew.

const (
	PostHostRenew403JSONResponseBodySuccessFalse PostHostRenew403JSONResponseBodySuccess = false
)

Defines values for PostHostRenew403JSONResponseBodySuccess.

func (PostHostRenew403JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostHostRenew403JSONResponseBodySuccess enum.

type PostHostRenew422JSONResponseBodySuccess added in v0.21.0

type PostHostRenew422JSONResponseBodySuccess bool

PostHostRenew422JSONResponseBodySuccess defines parameters for PostHostRenew.

const (
	PostHostRenew422JSONResponseBodySuccessFalse PostHostRenew422JSONResponseBodySuccess = false
)

Defines values for PostHostRenew422JSONResponseBodySuccess.

func (PostHostRenew422JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostHostRenew422JSONResponseBodySuccess enum.

type PostHostRenew500JSONResponseBodySuccess added in v0.21.0

type PostHostRenew500JSONResponseBodySuccess bool

PostHostRenew500JSONResponseBodySuccess defines parameters for PostHostRenew.

const (
	PostHostRenew500JSONResponseBodySuccessFalse PostHostRenew500JSONResponseBodySuccess = false
)

Defines values for PostHostRenew500JSONResponseBodySuccess.

func (PostHostRenew500JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostHostRenew500JSONResponseBodySuccess enum.

type PostHostRenewJSONRequestBody added in v0.21.0

type PostHostRenewJSONRequestBody = HostCertificateRenew

PostHostRenewJSONRequestBody defines body for PostHostRenew for application/json ContentType.

type PostHostRenewResponse added in v0.21.0

type PostHostRenewResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CertificateResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostHostRenew400JSONResponseBodySuccess `json:"success"`
	}
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostRenew401JSONResponseBodySuccess `json:"success"`
	}
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostRenew403JSONResponseBodySuccess `json:"success"`
	}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostHostRenew422JSONResponseBodySuccess `json:"success"`
	}
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostRenew500JSONResponseBodySuccess `json:"success"`
	}
}

func ParsePostHostRenewResponse added in v0.21.0

func ParsePostHostRenewResponse(rsp *http.Response) (*PostHostRenewResponse, error)

ParsePostHostRenewResponse parses an HTTP response from a PostHostRenewWithResponse call

func (PostHostRenewResponse) ContentType added in v0.21.0

func (r PostHostRenewResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostHostRenewResponse) GetBody added in v0.21.0

func (r PostHostRenewResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PostHostRenewResponse) GetJSON200 added in v0.21.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PostHostRenewResponse) GetJSON400 added in v0.21.0

func (r PostHostRenewResponse) GetJSON400() *struct {
	Errors []struct {
		Code    float32  `json:"code"`
		Message string   `json:"message"`
		Path    []string `json:"path"`
	} `json:"errors"`
	Success PostHostRenew400JSONResponseBodySuccess `json:"success"`
}

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PostHostRenewResponse) GetJSON401 added in v0.21.0

func (r PostHostRenewResponse) GetJSON401() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostHostRenew401JSONResponseBodySuccess `json:"success"`
}

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PostHostRenewResponse) GetJSON403 added in v0.21.0

func (r PostHostRenewResponse) GetJSON403() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostHostRenew403JSONResponseBodySuccess `json:"success"`
}

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PostHostRenewResponse) GetJSON422 added in v0.21.0

func (r PostHostRenewResponse) GetJSON422() *struct {
	Errors []struct {
		Code    float32  `json:"code"`
		Message string   `json:"message"`
		Path    []string `json:"path"`
	} `json:"errors"`
	Success PostHostRenew422JSONResponseBodySuccess `json:"success"`
}

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (PostHostRenewResponse) GetJSON500 added in v0.21.0

func (r PostHostRenewResponse) GetJSON500() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostHostRenew500JSONResponseBodySuccess `json:"success"`
}

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (PostHostRenewResponse) Status added in v0.21.0

func (r PostHostRenewResponse) Status() string

Status returns HTTPResponse.Status

func (PostHostRenewResponse) StatusCode added in v0.21.0

func (r PostHostRenewResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostHostRevoke400JSONResponseBodySuccess added in v0.23.1

type PostHostRevoke400JSONResponseBodySuccess bool

PostHostRevoke400JSONResponseBodySuccess defines parameters for PostHostRevoke.

const (
	PostHostRevoke400JSONResponseBodySuccessFalse PostHostRevoke400JSONResponseBodySuccess = false
)

Defines values for PostHostRevoke400JSONResponseBodySuccess.

func (PostHostRevoke400JSONResponseBodySuccess) Valid added in v0.23.1

Valid indicates whether the value is a known member of the PostHostRevoke400JSONResponseBodySuccess enum.

type PostHostRevoke401JSONResponseBodySuccess added in v0.23.1

type PostHostRevoke401JSONResponseBodySuccess bool

PostHostRevoke401JSONResponseBodySuccess defines parameters for PostHostRevoke.

const (
	PostHostRevoke401JSONResponseBodySuccessFalse PostHostRevoke401JSONResponseBodySuccess = false
)

Defines values for PostHostRevoke401JSONResponseBodySuccess.

func (PostHostRevoke401JSONResponseBodySuccess) Valid added in v0.23.1

Valid indicates whether the value is a known member of the PostHostRevoke401JSONResponseBodySuccess enum.

type PostHostRevoke403JSONResponseBodySuccess added in v0.23.1

type PostHostRevoke403JSONResponseBodySuccess bool

PostHostRevoke403JSONResponseBodySuccess defines parameters for PostHostRevoke.

const (
	PostHostRevoke403JSONResponseBodySuccessFalse PostHostRevoke403JSONResponseBodySuccess = false
)

Defines values for PostHostRevoke403JSONResponseBodySuccess.

func (PostHostRevoke403JSONResponseBodySuccess) Valid added in v0.23.1

Valid indicates whether the value is a known member of the PostHostRevoke403JSONResponseBodySuccess enum.

type PostHostRevoke409JSONResponseBodySuccess added in v0.23.1

type PostHostRevoke409JSONResponseBodySuccess bool

PostHostRevoke409JSONResponseBodySuccess defines parameters for PostHostRevoke.

const (
	PostHostRevoke409JSONResponseBodySuccessFalse PostHostRevoke409JSONResponseBodySuccess = false
)

Defines values for PostHostRevoke409JSONResponseBodySuccess.

func (PostHostRevoke409JSONResponseBodySuccess) Valid added in v0.23.1

Valid indicates whether the value is a known member of the PostHostRevoke409JSONResponseBodySuccess enum.

type PostHostRevoke422JSONResponseBodySuccess added in v0.23.1

type PostHostRevoke422JSONResponseBodySuccess bool

PostHostRevoke422JSONResponseBodySuccess defines parameters for PostHostRevoke.

const (
	PostHostRevoke422JSONResponseBodySuccessFalse PostHostRevoke422JSONResponseBodySuccess = false
)

Defines values for PostHostRevoke422JSONResponseBodySuccess.

func (PostHostRevoke422JSONResponseBodySuccess) Valid added in v0.23.1

Valid indicates whether the value is a known member of the PostHostRevoke422JSONResponseBodySuccess enum.

type PostHostRevoke500JSONResponseBodySuccess added in v0.23.1

type PostHostRevoke500JSONResponseBodySuccess bool

PostHostRevoke500JSONResponseBodySuccess defines parameters for PostHostRevoke.

const (
	PostHostRevoke500JSONResponseBodySuccessFalse PostHostRevoke500JSONResponseBodySuccess = false
)

Defines values for PostHostRevoke500JSONResponseBodySuccess.

func (PostHostRevoke500JSONResponseBodySuccess) Valid added in v0.23.1

Valid indicates whether the value is a known member of the PostHostRevoke500JSONResponseBodySuccess enum.

type PostHostRevokeJSONRequestBody added in v0.23.1

type PostHostRevokeJSONRequestBody = CertificateRevocation

PostHostRevokeJSONRequestBody defines body for PostHostRevoke for application/json ContentType.

type PostHostRevokeResponse added in v0.23.1

type PostHostRevokeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RevocationResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostHostRevoke400JSONResponseBodySuccess `json:"success"`
	}
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostRevoke401JSONResponseBodySuccess `json:"success"`
	}
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostRevoke403JSONResponseBodySuccess `json:"success"`
	}
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostRevoke409JSONResponseBodySuccess `json:"success"`
	}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostHostRevoke422JSONResponseBodySuccess `json:"success"`
	}
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostRevoke500JSONResponseBodySuccess `json:"success"`
	}
}

func ParsePostHostRevokeResponse added in v0.23.1

func ParsePostHostRevokeResponse(rsp *http.Response) (*PostHostRevokeResponse, error)

ParsePostHostRevokeResponse parses an HTTP response from a PostHostRevokeWithResponse call

func (PostHostRevokeResponse) ContentType added in v0.23.1

func (r PostHostRevokeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostHostRevokeResponse) GetBody added in v0.23.1

func (r PostHostRevokeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PostHostRevokeResponse) GetJSON200 added in v0.23.1

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PostHostRevokeResponse) GetJSON400 added in v0.23.1

func (r PostHostRevokeResponse) GetJSON400() *struct {
	Errors []struct {
		Code    float32  `json:"code"`
		Message string   `json:"message"`
		Path    []string `json:"path"`
	} `json:"errors"`
	Success PostHostRevoke400JSONResponseBodySuccess `json:"success"`
}

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PostHostRevokeResponse) GetJSON401 added in v0.23.1

func (r PostHostRevokeResponse) GetJSON401() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostHostRevoke401JSONResponseBodySuccess `json:"success"`
}

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PostHostRevokeResponse) GetJSON403 added in v0.23.1

func (r PostHostRevokeResponse) GetJSON403() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostHostRevoke403JSONResponseBodySuccess `json:"success"`
}

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PostHostRevokeResponse) GetJSON409 added in v0.23.1

func (r PostHostRevokeResponse) GetJSON409() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostHostRevoke409JSONResponseBodySuccess `json:"success"`
}

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (PostHostRevokeResponse) GetJSON422 added in v0.23.1

func (r PostHostRevokeResponse) GetJSON422() *struct {
	Errors []struct {
		Code    float32  `json:"code"`
		Message string   `json:"message"`
		Path    []string `json:"path"`
	} `json:"errors"`
	Success PostHostRevoke422JSONResponseBodySuccess `json:"success"`
}

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (PostHostRevokeResponse) GetJSON500 added in v0.23.1

func (r PostHostRevokeResponse) GetJSON500() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostHostRevoke500JSONResponseBodySuccess `json:"success"`
}

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (PostHostRevokeResponse) Status added in v0.23.1

func (r PostHostRevokeResponse) Status() string

Status returns HTTPResponse.Status

func (PostHostRevokeResponse) StatusCode added in v0.23.1

func (r PostHostRevokeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostUserCertificate400JSONResponseBodySuccess added in v0.21.0

type PostUserCertificate400JSONResponseBodySuccess bool

PostUserCertificate400JSONResponseBodySuccess defines parameters for PostUserCertificate.

const (
	PostUserCertificate400JSONResponseBodySuccessFalse PostUserCertificate400JSONResponseBodySuccess = false
)

Defines values for PostUserCertificate400JSONResponseBodySuccess.

func (PostUserCertificate400JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostUserCertificate400JSONResponseBodySuccess enum.

type PostUserCertificate401JSONResponseBodySuccess added in v0.21.0

type PostUserCertificate401JSONResponseBodySuccess bool

PostUserCertificate401JSONResponseBodySuccess defines parameters for PostUserCertificate.

const (
	PostUserCertificate401JSONResponseBodySuccessFalse PostUserCertificate401JSONResponseBodySuccess = false
)

Defines values for PostUserCertificate401JSONResponseBodySuccess.

func (PostUserCertificate401JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostUserCertificate401JSONResponseBodySuccess enum.

type PostUserCertificate403JSONResponseBodySuccess added in v0.21.0

type PostUserCertificate403JSONResponseBodySuccess bool

PostUserCertificate403JSONResponseBodySuccess defines parameters for PostUserCertificate.

const (
	PostUserCertificate403JSONResponseBodySuccessFalse PostUserCertificate403JSONResponseBodySuccess = false
)

Defines values for PostUserCertificate403JSONResponseBodySuccess.

func (PostUserCertificate403JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostUserCertificate403JSONResponseBodySuccess enum.

type PostUserCertificate422JSONResponseBodySuccess added in v0.21.0

type PostUserCertificate422JSONResponseBodySuccess bool

PostUserCertificate422JSONResponseBodySuccess defines parameters for PostUserCertificate.

const (
	PostUserCertificate422JSONResponseBodySuccessFalse PostUserCertificate422JSONResponseBodySuccess = false
)

Defines values for PostUserCertificate422JSONResponseBodySuccess.

func (PostUserCertificate422JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostUserCertificate422JSONResponseBodySuccess enum.

type PostUserCertificate500JSONResponseBodySuccess added in v0.21.0

type PostUserCertificate500JSONResponseBodySuccess bool

PostUserCertificate500JSONResponseBodySuccess defines parameters for PostUserCertificate.

const (
	PostUserCertificate500JSONResponseBodySuccessFalse PostUserCertificate500JSONResponseBodySuccess = false
)

Defines values for PostUserCertificate500JSONResponseBodySuccess.

func (PostUserCertificate500JSONResponseBodySuccess) Valid added in v0.21.0

Valid indicates whether the value is a known member of the PostUserCertificate500JSONResponseBodySuccess enum.

type PostUserCertificateJSONRequestBody added in v0.21.0

type PostUserCertificateJSONRequestBody = UserCertificateRequest

PostUserCertificateJSONRequestBody defines body for PostUserCertificate for application/json ContentType.

type PostUserCertificateParams added in v0.21.0

type PostUserCertificateParams struct {
	// Authorization Access Token JWT from OIDC IdP
	Authorization string `json:"Authorization"`
}

PostUserCertificateParams defines parameters for PostUserCertificate.

type PostUserCertificateResponse added in v0.21.0

type PostUserCertificateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CertificateResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostUserCertificate400JSONResponseBodySuccess `json:"success"`
	}
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostUserCertificate401JSONResponseBodySuccess `json:"success"`
	}
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostUserCertificate403JSONResponseBodySuccess `json:"success"`
	}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostUserCertificate422JSONResponseBodySuccess `json:"success"`
	}
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostUserCertificate500JSONResponseBodySuccess `json:"success"`
	}
}

func ParsePostUserCertificateResponse added in v0.21.0

func ParsePostUserCertificateResponse(rsp *http.Response) (*PostUserCertificateResponse, error)

ParsePostUserCertificateResponse parses an HTTP response from a PostUserCertificateWithResponse call

func (PostUserCertificateResponse) ContentType added in v0.21.0

func (r PostUserCertificateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostUserCertificateResponse) GetBody added in v0.21.0

func (r PostUserCertificateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PostUserCertificateResponse) GetJSON200 added in v0.21.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PostUserCertificateResponse) GetJSON400 added in v0.21.0

func (r PostUserCertificateResponse) GetJSON400() *struct {
	Errors []struct {
		Code    float32  `json:"code"`
		Message string   `json:"message"`
		Path    []string `json:"path"`
	} `json:"errors"`
	Success PostUserCertificate400JSONResponseBodySuccess `json:"success"`
}

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PostUserCertificateResponse) GetJSON401 added in v0.21.0

func (r PostUserCertificateResponse) GetJSON401() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostUserCertificate401JSONResponseBodySuccess `json:"success"`
}

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PostUserCertificateResponse) GetJSON403 added in v0.21.0

func (r PostUserCertificateResponse) GetJSON403() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostUserCertificate403JSONResponseBodySuccess `json:"success"`
}

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PostUserCertificateResponse) GetJSON422 added in v0.21.0

func (r PostUserCertificateResponse) GetJSON422() *struct {
	Errors []struct {
		Code    float32  `json:"code"`
		Message string   `json:"message"`
		Path    []string `json:"path"`
	} `json:"errors"`
	Success PostUserCertificate422JSONResponseBodySuccess `json:"success"`
}

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (PostUserCertificateResponse) GetJSON500 added in v0.21.0

func (r PostUserCertificateResponse) GetJSON500() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostUserCertificate500JSONResponseBodySuccess `json:"success"`
}

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (PostUserCertificateResponse) Status added in v0.21.0

Status returns HTTPResponse.Status

func (PostUserCertificateResponse) StatusCode added in v0.21.0

func (r PostUserCertificateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostUserRevoke400JSONResponseBodySuccess added in v0.23.1

type PostUserRevoke400JSONResponseBodySuccess bool

PostUserRevoke400JSONResponseBodySuccess defines parameters for PostUserRevoke.

const (
	PostUserRevoke400JSONResponseBodySuccessFalse PostUserRevoke400JSONResponseBodySuccess = false
)

Defines values for PostUserRevoke400JSONResponseBodySuccess.

func (PostUserRevoke400JSONResponseBodySuccess) Valid added in v0.23.1

Valid indicates whether the value is a known member of the PostUserRevoke400JSONResponseBodySuccess enum.

type PostUserRevoke401JSONResponseBodySuccess added in v0.23.1

type PostUserRevoke401JSONResponseBodySuccess bool

PostUserRevoke401JSONResponseBodySuccess defines parameters for PostUserRevoke.

const (
	PostUserRevoke401JSONResponseBodySuccessFalse PostUserRevoke401JSONResponseBodySuccess = false
)

Defines values for PostUserRevoke401JSONResponseBodySuccess.

func (PostUserRevoke401JSONResponseBodySuccess) Valid added in v0.23.1

Valid indicates whether the value is a known member of the PostUserRevoke401JSONResponseBodySuccess enum.

type PostUserRevoke403JSONResponseBodySuccess added in v0.23.1

type PostUserRevoke403JSONResponseBodySuccess bool

PostUserRevoke403JSONResponseBodySuccess defines parameters for PostUserRevoke.

const (
	PostUserRevoke403JSONResponseBodySuccessFalse PostUserRevoke403JSONResponseBodySuccess = false
)

Defines values for PostUserRevoke403JSONResponseBodySuccess.

func (PostUserRevoke403JSONResponseBodySuccess) Valid added in v0.23.1

Valid indicates whether the value is a known member of the PostUserRevoke403JSONResponseBodySuccess enum.

type PostUserRevoke409JSONResponseBodySuccess added in v0.23.1

type PostUserRevoke409JSONResponseBodySuccess bool

PostUserRevoke409JSONResponseBodySuccess defines parameters for PostUserRevoke.

const (
	PostUserRevoke409JSONResponseBodySuccessFalse PostUserRevoke409JSONResponseBodySuccess = false
)

Defines values for PostUserRevoke409JSONResponseBodySuccess.

func (PostUserRevoke409JSONResponseBodySuccess) Valid added in v0.23.1

Valid indicates whether the value is a known member of the PostUserRevoke409JSONResponseBodySuccess enum.

type PostUserRevoke422JSONResponseBodySuccess added in v0.23.1

type PostUserRevoke422JSONResponseBodySuccess bool

PostUserRevoke422JSONResponseBodySuccess defines parameters for PostUserRevoke.

const (
	PostUserRevoke422JSONResponseBodySuccessFalse PostUserRevoke422JSONResponseBodySuccess = false
)

Defines values for PostUserRevoke422JSONResponseBodySuccess.

func (PostUserRevoke422JSONResponseBodySuccess) Valid added in v0.23.1

Valid indicates whether the value is a known member of the PostUserRevoke422JSONResponseBodySuccess enum.

type PostUserRevoke500JSONResponseBodySuccess added in v0.23.1

type PostUserRevoke500JSONResponseBodySuccess bool

PostUserRevoke500JSONResponseBodySuccess defines parameters for PostUserRevoke.

const (
	PostUserRevoke500JSONResponseBodySuccessFalse PostUserRevoke500JSONResponseBodySuccess = false
)

Defines values for PostUserRevoke500JSONResponseBodySuccess.

func (PostUserRevoke500JSONResponseBodySuccess) Valid added in v0.23.1

Valid indicates whether the value is a known member of the PostUserRevoke500JSONResponseBodySuccess enum.

type PostUserRevokeJSONRequestBody added in v0.23.1

type PostUserRevokeJSONRequestBody = CertificateRevocation

PostUserRevokeJSONRequestBody defines body for PostUserRevoke for application/json ContentType.

type PostUserRevokeResponse added in v0.23.1

type PostUserRevokeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RevocationResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostUserRevoke400JSONResponseBodySuccess `json:"success"`
	}
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostUserRevoke401JSONResponseBodySuccess `json:"success"`
	}
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostUserRevoke403JSONResponseBodySuccess `json:"success"`
	}
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostUserRevoke409JSONResponseBodySuccess `json:"success"`
	}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostUserRevoke422JSONResponseBodySuccess `json:"success"`
	}
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostUserRevoke500JSONResponseBodySuccess `json:"success"`
	}
}

func ParsePostUserRevokeResponse added in v0.23.1

func ParsePostUserRevokeResponse(rsp *http.Response) (*PostUserRevokeResponse, error)

ParsePostUserRevokeResponse parses an HTTP response from a PostUserRevokeWithResponse call

func (PostUserRevokeResponse) ContentType added in v0.23.1

func (r PostUserRevokeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostUserRevokeResponse) GetBody added in v0.23.1

func (r PostUserRevokeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PostUserRevokeResponse) GetJSON200 added in v0.23.1

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PostUserRevokeResponse) GetJSON400 added in v0.23.1

func (r PostUserRevokeResponse) GetJSON400() *struct {
	Errors []struct {
		Code    float32  `json:"code"`
		Message string   `json:"message"`
		Path    []string `json:"path"`
	} `json:"errors"`
	Success PostUserRevoke400JSONResponseBodySuccess `json:"success"`
}

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PostUserRevokeResponse) GetJSON401 added in v0.23.1

func (r PostUserRevokeResponse) GetJSON401() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostUserRevoke401JSONResponseBodySuccess `json:"success"`
}

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PostUserRevokeResponse) GetJSON403 added in v0.23.1

func (r PostUserRevokeResponse) GetJSON403() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostUserRevoke403JSONResponseBodySuccess `json:"success"`
}

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PostUserRevokeResponse) GetJSON409 added in v0.23.1

func (r PostUserRevokeResponse) GetJSON409() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostUserRevoke409JSONResponseBodySuccess `json:"success"`
}

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (PostUserRevokeResponse) GetJSON422 added in v0.23.1

func (r PostUserRevokeResponse) GetJSON422() *struct {
	Errors []struct {
		Code    float32  `json:"code"`
		Message string   `json:"message"`
		Path    []string `json:"path"`
	} `json:"errors"`
	Success PostUserRevoke422JSONResponseBodySuccess `json:"success"`
}

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (PostUserRevokeResponse) GetJSON500 added in v0.23.1

func (r PostUserRevokeResponse) GetJSON500() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success PostUserRevoke500JSONResponseBodySuccess `json:"success"`
}

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (PostUserRevokeResponse) Status added in v0.23.1

func (r PostUserRevokeResponse) Status() string

Status returns HTTPResponse.Status

func (PostUserRevokeResponse) StatusCode added in v0.23.1

func (r PostUserRevokeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type 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

Valid indicates whether the value is a known member of the RenewHostCertificate400JSONResponseBodySuccess enum.

type RenewHostCertificate401JSONResponseBodySuccess added in v0.24.0

type RenewHostCertificate401JSONResponseBodySuccess bool

RenewHostCertificate401JSONResponseBodySuccess defines parameters for RenewHostCertificate.

const (
	RenewHostCertificate401JSONResponseBodySuccessFalse RenewHostCertificate401JSONResponseBodySuccess = false
)

Defines values for RenewHostCertificate401JSONResponseBodySuccess.

func (RenewHostCertificate401JSONResponseBodySuccess) Valid added in v0.24.0

Valid indicates whether the value is a known member of the RenewHostCertificate401JSONResponseBodySuccess enum.

type RenewHostCertificate403JSONResponseBodySuccess added in v0.24.0

type RenewHostCertificate403JSONResponseBodySuccess bool

RenewHostCertificate403JSONResponseBodySuccess defines parameters for RenewHostCertificate.

const (
	RenewHostCertificate403JSONResponseBodySuccessFalse RenewHostCertificate403JSONResponseBodySuccess = false
)

Defines values for RenewHostCertificate403JSONResponseBodySuccess.

func (RenewHostCertificate403JSONResponseBodySuccess) Valid added in v0.24.0

Valid indicates whether the value is a known member of the RenewHostCertificate403JSONResponseBodySuccess enum.

type RenewHostCertificate422JSONResponseBodySuccess added in v0.24.0

type RenewHostCertificate422JSONResponseBodySuccess bool

RenewHostCertificate422JSONResponseBodySuccess defines parameters for RenewHostCertificate.

const (
	RenewHostCertificate422JSONResponseBodySuccessFalse RenewHostCertificate422JSONResponseBodySuccess = false
)

Defines values for RenewHostCertificate422JSONResponseBodySuccess.

func (RenewHostCertificate422JSONResponseBodySuccess) Valid added in v0.24.0

Valid indicates whether the value is a known member of the RenewHostCertificate422JSONResponseBodySuccess 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

Valid indicates whether the value is a known member of the RenewHostCertificate500JSONResponseBodySuccess enum.

type RenewHostCertificateJSONRequestBody added in v0.24.0

type RenewHostCertificateJSONRequestBody = HostCertificateRenewalRequest

RenewHostCertificateJSONRequestBody defines body for RenewHostCertificate for application/json ContentType.

type RenewHostCertificateParams added in v0.24.0

type RenewHostCertificateParams struct {
	// ProofOfPossession Proof of possession of the private key comprising of `${timestamp}.${fingerprint}.${signature}`. The signature is a BASE64 encoded armored SSHSIG signature, made with the `request-proof-of-possession@com.github.serverless-ssh-ca.andrewheberle` namespace, of `${timestamp}.${fingerprint}.${METHOD} ${path}` where `${METHOD} ${path}` is the request the proof is for, for example `DELETE /api/v4/user/certificates/12345678901234567890`. The timestamp is in milliseconds since the Unix epoch.
	ProofOfPossession string `json:"Proof-Of-Possession"`
}

RenewHostCertificateParams defines parameters for RenewHostCertificate.

type RenewHostCertificateResponse added in v0.24.0

type RenewHostCertificateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CertificateResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success RenewHostCertificate400JSONResponseBodySuccess `json:"success"`
	}
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success RenewHostCertificate401JSONResponseBodySuccess `json:"success"`
	}
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success RenewHostCertificate403JSONResponseBodySuccess `json:"success"`
	}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success RenewHostCertificate422JSONResponseBodySuccess `json:"success"`
	}
	// 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

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RenewHostCertificateResponse) GetJSON400 added in v0.24.0

func (r RenewHostCertificateResponse) GetJSON400() *struct {
	Errors []struct {
		Code    float32  `json:"code"`
		Message string   `json:"message"`
		Path    []string `json:"path"`
	} `json:"errors"`
	Success RenewHostCertificate400JSONResponseBodySuccess `json:"success"`
}

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (RenewHostCertificateResponse) GetJSON401 added in v0.24.0

func (r RenewHostCertificateResponse) GetJSON401() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success RenewHostCertificate401JSONResponseBodySuccess `json:"success"`
}

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (RenewHostCertificateResponse) GetJSON403 added in v0.24.0

func (r RenewHostCertificateResponse) GetJSON403() *struct {
	Errors []struct {
		Code    float32 `json:"code"`
		Message string  `json:"message"`
	} `json:"errors"`
	Success RenewHostCertificate403JSONResponseBodySuccess `json:"success"`
}

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (RenewHostCertificateResponse) GetJSON422 added in v0.24.0

func (r RenewHostCertificateResponse) GetJSON422() *struct {
	Errors []struct {
		Code    float32  `json:"code"`
		Message string   `json:"message"`
		Path    []string `json:"path"`
	} `json:"errors"`
	Success RenewHostCertificate422JSONResponseBodySuccess `json:"success"`
}

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (RenewHostCertificateResponse) 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

Status returns HTTPResponse.Status

func (RenewHostCertificateResponse) StatusCode added in v0.24.0

func (r RenewHostCertificateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RevocationResponse

type RevocationResponse struct {
	RevokedAt time.Time `json:"revoked_at"`
}

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

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

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

Valid indicates whether the value is a known member of the RevokeHostCertificate409JSONResponseBodySuccess 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

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"`
	}
	// 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

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) 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

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

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

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

Valid indicates whether the value is a known member of the RevokeUserCertificate409JSONResponseBodySuccess 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

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"`
	}
	// 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

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) 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

Status returns HTTPResponse.Status

func (RevokeUserCertificateResponse) StatusCode added in v0.24.0

func (r RevokeUserCertificateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserCertificateIssueRequest added in v0.24.0

type UserCertificateIssueRequest struct {
	// Extensions Extensions to include in the issued SSH certificate
	Extensions *[]string `json:"extensions,omitempty"`

	// Identity Identity Token JWT from OIDC IdP
	Identity string `json:"identity"`

	// Lifetime Lifetime of issued SSH certificate
	Lifetime *int `json:"lifetime,omitempty"`

	// PublicKey SSH public key to sign
	PublicKey []byte `json:"public_key"`
}

UserCertificateIssueRequest defines model for User Certificate Issue Request.

type UserCertificateRequest

type UserCertificateRequest struct {
	// Extensions Extensions to include in the issued SSH certificate
	Extensions *[]string `json:"extensions,omitempty"`

	// Identity Identity Token JWT from OIDC IdP
	Identity string `json:"identity"`

	// Lifetime Lifetime of issued SSH certificate
	Lifetime *int `json:"lifetime,omitempty"`

	// Proof Proof of possession comprising of ${timestamp}.${fingerprint}.${signature}
	Proof string `json:"proof"`

	// PublicKey SSH public key to sign
	PublicKey []byte `json:"public_key"`
}

UserCertificateRequest defines model for User Certificate Request.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL