api

package
v0.0.0-...-6d36d93 Latest Latest
Warning

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

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

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.6.0 DO NOT EDIT.

Index

Constants

View Source
const (
	OidcAuthScopes = "oidcAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewGetCaPublicKeyEndpointRequest

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

NewGetCaPublicKeyEndpointRequest generates requests for GetCaPublicKeyEndpoint

func NewGetCaPublicKeyEndpointV2Request

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

NewGetCaPublicKeyEndpointV2Request generates requests for GetCaPublicKeyEndpointV2

func NewGetRevocationListEndpointRequest

func NewGetRevocationListEndpointRequest(server string, certificateType GetRevocationListEndpointParamsCertificateType) (*http.Request, error)

NewGetRevocationListEndpointRequest generates requests for GetRevocationListEndpoint

func NewPostCertificateRequestEndpointV2Request

func NewPostCertificateRequestEndpointV2Request(server string, params *PostCertificateRequestEndpointV2Params, body PostCertificateRequestEndpointV2JSONRequestBody) (*http.Request, error)

NewPostCertificateRequestEndpointV2Request calls the generic PostCertificateRequestEndpointV2 builder with application/json body

func NewPostCertificateRequestEndpointV2RequestWithBody

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

NewPostCertificateRequestEndpointV2RequestWithBody generates requests for PostCertificateRequestEndpointV2 with any type of body

func NewPostHostCertificateRenewEndpointRequest

func NewPostHostCertificateRenewEndpointRequest(server string, body PostHostCertificateRenewEndpointJSONRequestBody) (*http.Request, error)

NewPostHostCertificateRenewEndpointRequest calls the generic PostHostCertificateRenewEndpoint builder with application/json body

func NewPostHostCertificateRenewEndpointRequestWithBody

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

NewPostHostCertificateRenewEndpointRequestWithBody generates requests for PostHostCertificateRenewEndpoint with any type of body

func NewPostHostCertificateRenewEndpointV2Request

func NewPostHostCertificateRenewEndpointV2Request(server string, body PostHostCertificateRenewEndpointV2JSONRequestBody) (*http.Request, error)

NewPostHostCertificateRenewEndpointV2Request calls the generic PostHostCertificateRenewEndpointV2 builder with application/json body

func NewPostHostCertificateRenewEndpointV2RequestWithBody

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

NewPostHostCertificateRenewEndpointV2RequestWithBody generates requests for PostHostCertificateRenewEndpointV2 with any type of body

func NewPostHostCertificateRequestEndpointRequest

func NewPostHostCertificateRequestEndpointRequest(server string, params *PostHostCertificateRequestEndpointParams, body PostHostCertificateRequestEndpointJSONRequestBody) (*http.Request, error)

NewPostHostCertificateRequestEndpointRequest calls the generic PostHostCertificateRequestEndpoint builder with application/json body

func NewPostHostCertificateRequestEndpointRequestWithBody

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

NewPostHostCertificateRequestEndpointRequestWithBody generates requests for PostHostCertificateRequestEndpoint with any type of body

func NewPostHostCertificateRequestEndpointV2Request

func NewPostHostCertificateRequestEndpointV2Request(server string, params *PostHostCertificateRequestEndpointV2Params, body PostHostCertificateRequestEndpointV2JSONRequestBody) (*http.Request, error)

NewPostHostCertificateRequestEndpointV2Request calls the generic PostHostCertificateRequestEndpointV2 builder with application/json body

func NewPostHostCertificateRequestEndpointV2RequestWithBody

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

NewPostHostCertificateRequestEndpointV2RequestWithBody generates requests for PostHostCertificateRequestEndpointV2 with any type of body

func NewPostRevokeCertificateEndpointRequest

func NewPostRevokeCertificateEndpointRequest(server string, certificateType PostRevokeCertificateEndpointParamsCertificateType, body PostRevokeCertificateEndpointJSONRequestBody) (*http.Request, error)

NewPostRevokeCertificateEndpointRequest calls the generic PostRevokeCertificateEndpoint builder with application/json body

func NewPostRevokeCertificateEndpointRequestWithBody

func NewPostRevokeCertificateEndpointRequestWithBody(server string, certificateType PostRevokeCertificateEndpointParamsCertificateType, contentType string, body io.Reader) (*http.Request, error)

NewPostRevokeCertificateEndpointRequestWithBody generates requests for PostRevokeCertificateEndpoint with any type of body

func NewPostUserCertificateRequestEndpointRequest

func NewPostUserCertificateRequestEndpointRequest(server string, params *PostUserCertificateRequestEndpointParams, body PostUserCertificateRequestEndpointJSONRequestBody) (*http.Request, error)

NewPostUserCertificateRequestEndpointRequest calls the generic PostUserCertificateRequestEndpoint builder with application/json body

func NewPostUserCertificateRequestEndpointRequestWithBody

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

NewPostUserCertificateRequestEndpointRequestWithBody generates requests for PostUserCertificateRequestEndpoint with any type of 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) GetCaPublicKeyEndpoint

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

func (*Client) GetCaPublicKeyEndpointV2

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

func (*Client) GetRevocationListEndpoint

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

func (*Client) PostCertificateRequestEndpointV2WithBody

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

func (*Client) PostHostCertificateRenewEndpoint

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

func (*Client) PostHostCertificateRenewEndpointV2

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

func (*Client) PostHostCertificateRenewEndpointV2WithBody

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

func (*Client) PostHostCertificateRenewEndpointWithBody

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

func (*Client) PostHostCertificateRequestEndpointV2WithBody

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

func (*Client) PostHostCertificateRequestEndpointWithBody

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

func (*Client) PostRevokeCertificateEndpointWithBody

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

func (*Client) PostUserCertificateRequestEndpointWithBody

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

type ClientInterface

type ClientInterface interface {
	// GetCaPublicKeyEndpointV2 request
	GetCaPublicKeyEndpointV2(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostCertificateRequestEndpointV2WithBody request with any body
	PostCertificateRequestEndpointV2WithBody(ctx context.Context, params *PostCertificateRequestEndpointV2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostCertificateRequestEndpointV2(ctx context.Context, params *PostCertificateRequestEndpointV2Params, body PostCertificateRequestEndpointV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostHostCertificateRenewEndpointV2WithBody request with any body
	PostHostCertificateRenewEndpointV2WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostHostCertificateRenewEndpointV2(ctx context.Context, body PostHostCertificateRenewEndpointV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostHostCertificateRequestEndpointV2WithBody request with any body
	PostHostCertificateRequestEndpointV2WithBody(ctx context.Context, params *PostHostCertificateRequestEndpointV2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostHostCertificateRequestEndpointV2(ctx context.Context, params *PostHostCertificateRequestEndpointV2Params, body PostHostCertificateRequestEndpointV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCaPublicKeyEndpoint request
	GetCaPublicKeyEndpoint(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostHostCertificateRequestEndpointWithBody request with any body
	PostHostCertificateRequestEndpointWithBody(ctx context.Context, params *PostHostCertificateRequestEndpointParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostHostCertificateRequestEndpoint(ctx context.Context, params *PostHostCertificateRequestEndpointParams, body PostHostCertificateRequestEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostHostCertificateRenewEndpointWithBody request with any body
	PostHostCertificateRenewEndpointWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostHostCertificateRenewEndpoint(ctx context.Context, body PostHostCertificateRenewEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostUserCertificateRequestEndpointWithBody request with any body
	PostUserCertificateRequestEndpointWithBody(ctx context.Context, params *PostUserCertificateRequestEndpointParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostUserCertificateRequestEndpoint(ctx context.Context, params *PostUserCertificateRequestEndpointParams, body PostUserCertificateRequestEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRevocationListEndpoint request
	GetRevocationListEndpoint(ctx context.Context, certificateType GetRevocationListEndpointParamsCertificateType, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostRevokeCertificateEndpointWithBody request with any body
	PostRevokeCertificateEndpointWithBody(ctx context.Context, certificateType PostRevokeCertificateEndpointParamsCertificateType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostRevokeCertificateEndpoint(ctx context.Context, certificateType PostRevokeCertificateEndpointParamsCertificateType, body PostRevokeCertificateEndpointJSONRequestBody, 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) GetCaPublicKeyEndpointV2WithResponse

func (c *ClientWithResponses) GetCaPublicKeyEndpointV2WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaPublicKeyEndpointV2Response, error)

GetCaPublicKeyEndpointV2WithResponse request returning *GetCaPublicKeyEndpointV2Response

func (*ClientWithResponses) GetCaPublicKeyEndpointWithResponse

func (c *ClientWithResponses) GetCaPublicKeyEndpointWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaPublicKeyEndpointResponse, error)

GetCaPublicKeyEndpointWithResponse request returning *GetCaPublicKeyEndpointResponse

func (*ClientWithResponses) GetRevocationListEndpointWithResponse

func (c *ClientWithResponses) GetRevocationListEndpointWithResponse(ctx context.Context, certificateType GetRevocationListEndpointParamsCertificateType, reqEditors ...RequestEditorFn) (*GetRevocationListEndpointResponse, error)

GetRevocationListEndpointWithResponse request returning *GetRevocationListEndpointResponse

func (*ClientWithResponses) PostCertificateRequestEndpointV2WithBodyWithResponse

func (c *ClientWithResponses) PostCertificateRequestEndpointV2WithBodyWithResponse(ctx context.Context, params *PostCertificateRequestEndpointV2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostCertificateRequestEndpointV2Response, error)

PostCertificateRequestEndpointV2WithBodyWithResponse request with arbitrary body returning *PostCertificateRequestEndpointV2Response

func (*ClientWithResponses) PostHostCertificateRenewEndpointV2WithBodyWithResponse

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

PostHostCertificateRenewEndpointV2WithBodyWithResponse request with arbitrary body returning *PostHostCertificateRenewEndpointV2Response

func (*ClientWithResponses) PostHostCertificateRenewEndpointWithBodyWithResponse

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

PostHostCertificateRenewEndpointWithBodyWithResponse request with arbitrary body returning *PostHostCertificateRenewEndpointResponse

func (*ClientWithResponses) PostHostCertificateRequestEndpointV2WithBodyWithResponse

func (c *ClientWithResponses) PostHostCertificateRequestEndpointV2WithBodyWithResponse(ctx context.Context, params *PostHostCertificateRequestEndpointV2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostCertificateRequestEndpointV2Response, error)

PostHostCertificateRequestEndpointV2WithBodyWithResponse request with arbitrary body returning *PostHostCertificateRequestEndpointV2Response

func (*ClientWithResponses) PostHostCertificateRequestEndpointWithBodyWithResponse

func (c *ClientWithResponses) PostHostCertificateRequestEndpointWithBodyWithResponse(ctx context.Context, params *PostHostCertificateRequestEndpointParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostCertificateRequestEndpointResponse, error)

PostHostCertificateRequestEndpointWithBodyWithResponse request with arbitrary body returning *PostHostCertificateRequestEndpointResponse

func (*ClientWithResponses) PostRevokeCertificateEndpointWithBodyWithResponse

func (c *ClientWithResponses) PostRevokeCertificateEndpointWithBodyWithResponse(ctx context.Context, certificateType PostRevokeCertificateEndpointParamsCertificateType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostRevokeCertificateEndpointResponse, error)

PostRevokeCertificateEndpointWithBodyWithResponse request with arbitrary body returning *PostRevokeCertificateEndpointResponse

func (*ClientWithResponses) PostUserCertificateRequestEndpointWithBodyWithResponse

func (c *ClientWithResponses) PostUserCertificateRequestEndpointWithBodyWithResponse(ctx context.Context, params *PostUserCertificateRequestEndpointParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserCertificateRequestEndpointResponse, error)

PostUserCertificateRequestEndpointWithBodyWithResponse request with arbitrary body returning *PostUserCertificateRequestEndpointResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetCaPublicKeyEndpointV2WithResponse request
	GetCaPublicKeyEndpointV2WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaPublicKeyEndpointV2Response, error)

	// PostCertificateRequestEndpointV2WithBodyWithResponse request with any body
	PostCertificateRequestEndpointV2WithBodyWithResponse(ctx context.Context, params *PostCertificateRequestEndpointV2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostCertificateRequestEndpointV2Response, error)

	PostCertificateRequestEndpointV2WithResponse(ctx context.Context, params *PostCertificateRequestEndpointV2Params, body PostCertificateRequestEndpointV2JSONRequestBody, reqEditors ...RequestEditorFn) (*PostCertificateRequestEndpointV2Response, error)

	// PostHostCertificateRenewEndpointV2WithBodyWithResponse request with any body
	PostHostCertificateRenewEndpointV2WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostCertificateRenewEndpointV2Response, error)

	PostHostCertificateRenewEndpointV2WithResponse(ctx context.Context, body PostHostCertificateRenewEndpointV2JSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostCertificateRenewEndpointV2Response, error)

	// PostHostCertificateRequestEndpointV2WithBodyWithResponse request with any body
	PostHostCertificateRequestEndpointV2WithBodyWithResponse(ctx context.Context, params *PostHostCertificateRequestEndpointV2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostCertificateRequestEndpointV2Response, error)

	PostHostCertificateRequestEndpointV2WithResponse(ctx context.Context, params *PostHostCertificateRequestEndpointV2Params, body PostHostCertificateRequestEndpointV2JSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostCertificateRequestEndpointV2Response, error)

	// GetCaPublicKeyEndpointWithResponse request
	GetCaPublicKeyEndpointWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaPublicKeyEndpointResponse, error)

	// PostHostCertificateRequestEndpointWithBodyWithResponse request with any body
	PostHostCertificateRequestEndpointWithBodyWithResponse(ctx context.Context, params *PostHostCertificateRequestEndpointParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostCertificateRequestEndpointResponse, error)

	PostHostCertificateRequestEndpointWithResponse(ctx context.Context, params *PostHostCertificateRequestEndpointParams, body PostHostCertificateRequestEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostCertificateRequestEndpointResponse, error)

	// PostHostCertificateRenewEndpointWithBodyWithResponse request with any body
	PostHostCertificateRenewEndpointWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostCertificateRenewEndpointResponse, error)

	PostHostCertificateRenewEndpointWithResponse(ctx context.Context, body PostHostCertificateRenewEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostCertificateRenewEndpointResponse, error)

	// PostUserCertificateRequestEndpointWithBodyWithResponse request with any body
	PostUserCertificateRequestEndpointWithBodyWithResponse(ctx context.Context, params *PostUserCertificateRequestEndpointParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserCertificateRequestEndpointResponse, error)

	PostUserCertificateRequestEndpointWithResponse(ctx context.Context, params *PostUserCertificateRequestEndpointParams, body PostUserCertificateRequestEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserCertificateRequestEndpointResponse, error)

	// GetRevocationListEndpointWithResponse request
	GetRevocationListEndpointWithResponse(ctx context.Context, certificateType GetRevocationListEndpointParamsCertificateType, reqEditors ...RequestEditorFn) (*GetRevocationListEndpointResponse, error)

	// PostRevokeCertificateEndpointWithBodyWithResponse request with any body
	PostRevokeCertificateEndpointWithBodyWithResponse(ctx context.Context, certificateType PostRevokeCertificateEndpointParamsCertificateType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostRevokeCertificateEndpointResponse, error)

	PostRevokeCertificateEndpointWithResponse(ctx context.Context, certificateType PostRevokeCertificateEndpointParamsCertificateType, body PostRevokeCertificateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*PostRevokeCertificateEndpointResponse, error)
}

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

type GetCaPublicKeyEndpoint500Success

type GetCaPublicKeyEndpoint500Success bool

type GetCaPublicKeyEndpointResponse

type GetCaPublicKeyEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success GetCaPublicKeyEndpoint500Success `json:"success"`
	}
}

func ParseGetCaPublicKeyEndpointResponse

func ParseGetCaPublicKeyEndpointResponse(rsp *http.Response) (*GetCaPublicKeyEndpointResponse, error)

ParseGetCaPublicKeyEndpointResponse parses an HTTP response from a GetCaPublicKeyEndpointWithResponse call

func (GetCaPublicKeyEndpointResponse) Status

Status returns HTTPResponse.Status

func (GetCaPublicKeyEndpointResponse) StatusCode

func (r GetCaPublicKeyEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCaPublicKeyEndpointV2Response

type GetCaPublicKeyEndpointV2Response struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success GetCaPublicKeyEndpointV2500Success `json:"success"`
	}
}

func ParseGetCaPublicKeyEndpointV2Response

func ParseGetCaPublicKeyEndpointV2Response(rsp *http.Response) (*GetCaPublicKeyEndpointV2Response, error)

ParseGetCaPublicKeyEndpointV2Response parses an HTTP response from a GetCaPublicKeyEndpointV2WithResponse call

func (GetCaPublicKeyEndpointV2Response) Status

Status returns HTTPResponse.Status

func (GetCaPublicKeyEndpointV2Response) StatusCode

func (r GetCaPublicKeyEndpointV2Response) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCaPublicKeyEndpointV2500Success

type GetCaPublicKeyEndpointV2500Success bool

type GetRevocationListEndpoint500Success

type GetRevocationListEndpoint500Success bool

type GetRevocationListEndpointParamsCertificateType

type GetRevocationListEndpointParamsCertificateType string

GetRevocationListEndpointParamsCertificateType defines parameters for GetRevocationListEndpoint.

const (
	GetRevocationListEndpointParamsCertificateTypeHost GetRevocationListEndpointParamsCertificateType = "host"
	GetRevocationListEndpointParamsCertificateTypeUser GetRevocationListEndpointParamsCertificateType = "user"
)

Defines values for GetRevocationListEndpointParamsCertificateType.

func (GetRevocationListEndpointParamsCertificateType) Valid

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

type GetRevocationListEndpointResponse

type GetRevocationListEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *KeyRevocationListResponse
	JSON500      *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success GetRevocationListEndpoint500Success `json:"success"`
	}
}

func ParseGetRevocationListEndpointResponse

func ParseGetRevocationListEndpointResponse(rsp *http.Response) (*GetRevocationListEndpointResponse, error)

ParseGetRevocationListEndpointResponse parses an HTTP response from a GetRevocationListEndpointWithResponse call

func (GetRevocationListEndpointResponse) Status

Status returns HTTPResponse.Status

func (GetRevocationListEndpointResponse) StatusCode

func (r GetRevocationListEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HostCertificateRenew

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

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

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

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

HostCertificateRenew defines model for Host Certificate Renew.

type HostCertificateRequest

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

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

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

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

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

HostCertificateRequest defines model for Host Certificate Request.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type KeyRevocationListResponse

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

KeyRevocationListResponse defines model for Key Revocation List Response.

type PostCertificateRequestEndpointV2JSONBody

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

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

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

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

	// PublicKey SSH public key to sign
	PublicKey string `json:"public_key"`
}

PostCertificateRequestEndpointV2JSONBody defines parameters for PostCertificateRequestEndpointV2.

type PostCertificateRequestEndpointV2JSONRequestBody

type PostCertificateRequestEndpointV2JSONRequestBody PostCertificateRequestEndpointV2JSONBody

PostCertificateRequestEndpointV2JSONRequestBody defines body for PostCertificateRequestEndpointV2 for application/json ContentType.

type PostCertificateRequestEndpointV2Params

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

PostCertificateRequestEndpointV2Params defines parameters for PostCertificateRequestEndpointV2.

type PostCertificateRequestEndpointV2Response

type PostCertificateRequestEndpointV2Response struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Certificate string `json:"certificate"`
	}
	JSON400 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostCertificateRequestEndpointV2400Success `json:"success"`
	}
	JSON401 *struct {
		Error PostCertificateRequestEndpointV2401Error `json:"error"`
	}
	JSON403 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostCertificateRequestEndpointV2403Success `json:"success"`
	}
	JSON422 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostCertificateRequestEndpointV2422Success `json:"success"`
	}
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostCertificateRequestEndpointV2500Success `json:"success"`
	}
}

func ParsePostCertificateRequestEndpointV2Response

func ParsePostCertificateRequestEndpointV2Response(rsp *http.Response) (*PostCertificateRequestEndpointV2Response, error)

ParsePostCertificateRequestEndpointV2Response parses an HTTP response from a PostCertificateRequestEndpointV2WithResponse call

func (PostCertificateRequestEndpointV2Response) Status

Status returns HTTPResponse.Status

func (PostCertificateRequestEndpointV2Response) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostCertificateRequestEndpointV2400Success

type PostCertificateRequestEndpointV2400Success bool

type PostCertificateRequestEndpointV2401Error

type PostCertificateRequestEndpointV2401Error string

type PostCertificateRequestEndpointV2403Success

type PostCertificateRequestEndpointV2403Success bool

type PostCertificateRequestEndpointV2422Success

type PostCertificateRequestEndpointV2422Success bool

type PostCertificateRequestEndpointV2500Success

type PostCertificateRequestEndpointV2500Success bool

type PostHostCertificateRenewEndpoint400Success

type PostHostCertificateRenewEndpoint400Success bool

type PostHostCertificateRenewEndpoint401Success

type PostHostCertificateRenewEndpoint401Success bool

type PostHostCertificateRenewEndpoint403Success

type PostHostCertificateRenewEndpoint403Success bool

type PostHostCertificateRenewEndpoint422Success

type PostHostCertificateRenewEndpoint422Success bool

type PostHostCertificateRenewEndpoint500Success

type PostHostCertificateRenewEndpoint500Success bool

type PostHostCertificateRenewEndpointJSONRequestBody

type PostHostCertificateRenewEndpointJSONRequestBody = HostCertificateRenew

PostHostCertificateRenewEndpointJSONRequestBody defines body for PostHostCertificateRenewEndpoint for application/json ContentType.

type PostHostCertificateRenewEndpointResponse

type PostHostCertificateRenewEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CertificateResponse
	JSON400      *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostHostCertificateRenewEndpoint400Success `json:"success"`
	}
	JSON401 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostCertificateRenewEndpoint401Success `json:"success"`
	}
	JSON403 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostCertificateRenewEndpoint403Success `json:"success"`
	}
	JSON422 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostHostCertificateRenewEndpoint422Success `json:"success"`
	}
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostCertificateRenewEndpoint500Success `json:"success"`
	}
}

func ParsePostHostCertificateRenewEndpointResponse

func ParsePostHostCertificateRenewEndpointResponse(rsp *http.Response) (*PostHostCertificateRenewEndpointResponse, error)

ParsePostHostCertificateRenewEndpointResponse parses an HTTP response from a PostHostCertificateRenewEndpointWithResponse call

func (PostHostCertificateRenewEndpointResponse) Status

Status returns HTTPResponse.Status

func (PostHostCertificateRenewEndpointResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostHostCertificateRenewEndpointV2JSONBody

type PostHostCertificateRenewEndpointV2JSONBody struct {
	// Certificate SSH certificate to renew
	Certificate string `json:"certificate"`

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

	// Nonce Proof of possession comprising of ${timestamp}.${keyfingerprint}.${format}:${signature}
	Nonce string `json:"nonce"`

	// PublicKey SSH public key of certificate to be renewed
	PublicKey string `json:"public_key"`
}

PostHostCertificateRenewEndpointV2JSONBody defines parameters for PostHostCertificateRenewEndpointV2.

type PostHostCertificateRenewEndpointV2JSONRequestBody

type PostHostCertificateRenewEndpointV2JSONRequestBody PostHostCertificateRenewEndpointV2JSONBody

PostHostCertificateRenewEndpointV2JSONRequestBody defines body for PostHostCertificateRenewEndpointV2 for application/json ContentType.

type PostHostCertificateRenewEndpointV2Response

type PostHostCertificateRenewEndpointV2Response struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Certificate string `json:"certificate"`
	}
	JSON400 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostHostCertificateRenewEndpointV2400Success `json:"success"`
	}
	JSON401 *struct {
		Error  PostHostCertificateRenewEndpointV2401Error  `json:"error"`
		Status PostHostCertificateRenewEndpointV2401Status `json:"status"`
	}
	JSON403 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostCertificateRenewEndpointV2403Success `json:"success"`
	}
	JSON422 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostHostCertificateRenewEndpointV2422Success `json:"success"`
	}
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostCertificateRenewEndpointV2500Success `json:"success"`
	}
}

func ParsePostHostCertificateRenewEndpointV2Response

func ParsePostHostCertificateRenewEndpointV2Response(rsp *http.Response) (*PostHostCertificateRenewEndpointV2Response, error)

ParsePostHostCertificateRenewEndpointV2Response parses an HTTP response from a PostHostCertificateRenewEndpointV2WithResponse call

func (PostHostCertificateRenewEndpointV2Response) Status

Status returns HTTPResponse.Status

func (PostHostCertificateRenewEndpointV2Response) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostHostCertificateRenewEndpointV2400Success

type PostHostCertificateRenewEndpointV2400Success bool

type PostHostCertificateRenewEndpointV2401Error

type PostHostCertificateRenewEndpointV2401Error string

type PostHostCertificateRenewEndpointV2401Status

type PostHostCertificateRenewEndpointV2401Status float32

type PostHostCertificateRenewEndpointV2403Success

type PostHostCertificateRenewEndpointV2403Success bool

type PostHostCertificateRenewEndpointV2422Success

type PostHostCertificateRenewEndpointV2422Success bool

type PostHostCertificateRenewEndpointV2500Success

type PostHostCertificateRenewEndpointV2500Success bool

type PostHostCertificateRequestEndpoint400Success

type PostHostCertificateRequestEndpoint400Success bool

type PostHostCertificateRequestEndpoint401Success

type PostHostCertificateRequestEndpoint401Success bool

type PostHostCertificateRequestEndpoint403Success

type PostHostCertificateRequestEndpoint403Success bool

type PostHostCertificateRequestEndpoint422Success

type PostHostCertificateRequestEndpoint422Success bool

type PostHostCertificateRequestEndpoint500Success

type PostHostCertificateRequestEndpoint500Success bool

type PostHostCertificateRequestEndpointJSONRequestBody

type PostHostCertificateRequestEndpointJSONRequestBody = HostCertificateRequest

PostHostCertificateRequestEndpointJSONRequestBody defines body for PostHostCertificateRequestEndpoint for application/json ContentType.

type PostHostCertificateRequestEndpointParams

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

PostHostCertificateRequestEndpointParams defines parameters for PostHostCertificateRequestEndpoint.

type PostHostCertificateRequestEndpointResponse

type PostHostCertificateRequestEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CertificateResponse
	JSON400      *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostHostCertificateRequestEndpoint400Success `json:"success"`
	}
	JSON401 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostCertificateRequestEndpoint401Success `json:"success"`
	}
	JSON403 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostCertificateRequestEndpoint403Success `json:"success"`
	}
	JSON422 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostHostCertificateRequestEndpoint422Success `json:"success"`
	}
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostCertificateRequestEndpoint500Success `json:"success"`
	}
}

func ParsePostHostCertificateRequestEndpointResponse

func ParsePostHostCertificateRequestEndpointResponse(rsp *http.Response) (*PostHostCertificateRequestEndpointResponse, error)

ParsePostHostCertificateRequestEndpointResponse parses an HTTP response from a PostHostCertificateRequestEndpointWithResponse call

func (PostHostCertificateRequestEndpointResponse) Status

Status returns HTTPResponse.Status

func (PostHostCertificateRequestEndpointResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostHostCertificateRequestEndpointV2JSONBody

type PostHostCertificateRequestEndpointV2JSONBody struct {
	// Lifetime Lifetime of issued Host SSH certificate
	Lifetime *float32 `json:"lifetime,omitempty"`

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

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

	// PublicKey SSH public key to sign
	PublicKey string `json:"public_key"`
}

PostHostCertificateRequestEndpointV2JSONBody defines parameters for PostHostCertificateRequestEndpointV2.

type PostHostCertificateRequestEndpointV2JSONRequestBody

type PostHostCertificateRequestEndpointV2JSONRequestBody PostHostCertificateRequestEndpointV2JSONBody

PostHostCertificateRequestEndpointV2JSONRequestBody defines body for PostHostCertificateRequestEndpointV2 for application/json ContentType.

type PostHostCertificateRequestEndpointV2Params

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

PostHostCertificateRequestEndpointV2Params defines parameters for PostHostCertificateRequestEndpointV2.

type PostHostCertificateRequestEndpointV2Response

type PostHostCertificateRequestEndpointV2Response struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Certificate string `json:"certificate"`
	}
	JSON400 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostHostCertificateRequestEndpointV2400Success `json:"success"`
	}
	JSON401 *struct {
		Error  PostHostCertificateRequestEndpointV2401Error  `json:"error"`
		Status PostHostCertificateRequestEndpointV2401Status `json:"status"`
	}
	JSON403 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostCertificateRequestEndpointV2403Success `json:"success"`
	}
	JSON422 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostHostCertificateRequestEndpointV2422Success `json:"success"`
	}
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostHostCertificateRequestEndpointV2500Success `json:"success"`
	}
}

func ParsePostHostCertificateRequestEndpointV2Response

func ParsePostHostCertificateRequestEndpointV2Response(rsp *http.Response) (*PostHostCertificateRequestEndpointV2Response, error)

ParsePostHostCertificateRequestEndpointV2Response parses an HTTP response from a PostHostCertificateRequestEndpointV2WithResponse call

func (PostHostCertificateRequestEndpointV2Response) Status

Status returns HTTPResponse.Status

func (PostHostCertificateRequestEndpointV2Response) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostHostCertificateRequestEndpointV2400Success

type PostHostCertificateRequestEndpointV2400Success bool

type PostHostCertificateRequestEndpointV2401Error

type PostHostCertificateRequestEndpointV2401Error string

type PostHostCertificateRequestEndpointV2401Status

type PostHostCertificateRequestEndpointV2401Status float32

type PostHostCertificateRequestEndpointV2403Success

type PostHostCertificateRequestEndpointV2403Success bool

type PostHostCertificateRequestEndpointV2422Success

type PostHostCertificateRequestEndpointV2422Success bool

type PostHostCertificateRequestEndpointV2500Success

type PostHostCertificateRequestEndpointV2500Success bool

type PostRevokeCertificateEndpoint400Success

type PostRevokeCertificateEndpoint400Success bool

type PostRevokeCertificateEndpoint401Success

type PostRevokeCertificateEndpoint401Success bool

type PostRevokeCertificateEndpoint403Success

type PostRevokeCertificateEndpoint403Success bool

type PostRevokeCertificateEndpoint409Success

type PostRevokeCertificateEndpoint409Success bool

type PostRevokeCertificateEndpoint422Success

type PostRevokeCertificateEndpoint422Success bool

type PostRevokeCertificateEndpoint500Success

type PostRevokeCertificateEndpoint500Success bool

type PostRevokeCertificateEndpointJSONRequestBody

type PostRevokeCertificateEndpointJSONRequestBody = CertificateRevocation

PostRevokeCertificateEndpointJSONRequestBody defines body for PostRevokeCertificateEndpoint for application/json ContentType.

type PostRevokeCertificateEndpointParamsCertificateType

type PostRevokeCertificateEndpointParamsCertificateType string

PostRevokeCertificateEndpointParamsCertificateType defines parameters for PostRevokeCertificateEndpoint.

const (
	PostRevokeCertificateEndpointParamsCertificateTypeHost PostRevokeCertificateEndpointParamsCertificateType = "host"
	PostRevokeCertificateEndpointParamsCertificateTypeUser PostRevokeCertificateEndpointParamsCertificateType = "user"
)

Defines values for PostRevokeCertificateEndpointParamsCertificateType.

func (PostRevokeCertificateEndpointParamsCertificateType) Valid

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

type PostRevokeCertificateEndpointResponse

type PostRevokeCertificateEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RevocationResponse
	JSON400      *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostRevokeCertificateEndpoint400Success `json:"success"`
	}
	JSON401 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostRevokeCertificateEndpoint401Success `json:"success"`
	}
	JSON403 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostRevokeCertificateEndpoint403Success `json:"success"`
	}
	JSON409 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostRevokeCertificateEndpoint409Success `json:"success"`
	}
	JSON422 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostRevokeCertificateEndpoint422Success `json:"success"`
	}
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostRevokeCertificateEndpoint500Success `json:"success"`
	}
}

func ParsePostRevokeCertificateEndpointResponse

func ParsePostRevokeCertificateEndpointResponse(rsp *http.Response) (*PostRevokeCertificateEndpointResponse, error)

ParsePostRevokeCertificateEndpointResponse parses an HTTP response from a PostRevokeCertificateEndpointWithResponse call

func (PostRevokeCertificateEndpointResponse) Status

Status returns HTTPResponse.Status

func (PostRevokeCertificateEndpointResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostUserCertificateRequestEndpoint400Success

type PostUserCertificateRequestEndpoint400Success bool

type PostUserCertificateRequestEndpoint401Success

type PostUserCertificateRequestEndpoint401Success bool

type PostUserCertificateRequestEndpoint403Success

type PostUserCertificateRequestEndpoint403Success bool

type PostUserCertificateRequestEndpoint422Success

type PostUserCertificateRequestEndpoint422Success bool

type PostUserCertificateRequestEndpoint500Success

type PostUserCertificateRequestEndpoint500Success bool

type PostUserCertificateRequestEndpointJSONRequestBody

type PostUserCertificateRequestEndpointJSONRequestBody = UserCertificateRequest

PostUserCertificateRequestEndpointJSONRequestBody defines body for PostUserCertificateRequestEndpoint for application/json ContentType.

type PostUserCertificateRequestEndpointParams

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

PostUserCertificateRequestEndpointParams defines parameters for PostUserCertificateRequestEndpoint.

type PostUserCertificateRequestEndpointResponse

type PostUserCertificateRequestEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CertificateResponse
	JSON400      *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostUserCertificateRequestEndpoint400Success `json:"success"`
	}
	JSON401 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostUserCertificateRequestEndpoint401Success `json:"success"`
	}
	JSON403 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostUserCertificateRequestEndpoint403Success `json:"success"`
	}
	JSON422 *struct {
		Errors []struct {
			Code    float32  `json:"code"`
			Message string   `json:"message"`
			Path    []string `json:"path"`
		} `json:"errors"`
		Success PostUserCertificateRequestEndpoint422Success `json:"success"`
	}
	JSON500 *struct {
		Errors []struct {
			Code    float32 `json:"code"`
			Message string  `json:"message"`
		} `json:"errors"`
		Success PostUserCertificateRequestEndpoint500Success `json:"success"`
	}
}

func ParsePostUserCertificateRequestEndpointResponse

func ParsePostUserCertificateRequestEndpointResponse(rsp *http.Response) (*PostUserCertificateRequestEndpointResponse, error)

ParsePostUserCertificateRequestEndpointResponse parses an HTTP response from a PostUserCertificateRequestEndpointWithResponse call

func (PostUserCertificateRequestEndpointResponse) Status

Status returns HTTPResponse.Status

func (PostUserCertificateRequestEndpointResponse) StatusCode

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