sdk

package
v0.0.0-...-3f10997 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

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

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

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

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

Index

Constants

View Source
const (
	Jwt_azureScopes      = "jwt_azure.Scopes"
	Jwt_pigeonholeScopes = "jwt_pigeonhole.Scopes"
)

Variables

This section is empty.

Functions

func NewAuthSsoTokenPostRequest

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

NewAuthSsoTokenPostRequest generates requests for AuthSsoTokenPost

func NewAuthTokenPostRequest

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

NewAuthTokenPostRequest generates requests for AuthTokenPost

func NewDownloadSecretBlobRequest

func NewDownloadSecretBlobRequest(server string, secretId string) (*http.Request, error)

NewDownloadSecretBlobRequest generates requests for DownloadSecretBlob

func NewGetSecretIdRequest

func NewGetSecretIdRequest(server string, secretId string) (*http.Request, error)

NewGetSecretIdRequest generates requests for GetSecretId

func NewPigeonholeControllersPkiPkiGetRequest

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

NewPigeonholeControllersPkiPkiGetRequest generates requests for PigeonholeControllersPkiPkiGet

func NewSecretDeleteRequest

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

NewSecretDeleteRequest generates requests for SecretDelete

func NewSecretGetRequest

func NewSecretGetRequest(server string, params *SecretGetParams) (*http.Request, error)

NewSecretGetRequest generates requests for SecretGet

func NewSecretIdDeleteRequest

func NewSecretIdDeleteRequest(server string, secretId string) (*http.Request, error)

NewSecretIdDeleteRequest generates requests for SecretIdDelete

func NewSecretPostRequest

func NewSecretPostRequest(server string, body SecretPostJSONRequestBody) (*http.Request, error)

NewSecretPostRequest calls the generic SecretPost builder with application/json body

func NewSecretPostRequestWithBody

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

NewSecretPostRequestWithBody generates requests for SecretPost with any type of body

func NewUserGetRequest

func NewUserGetRequest(server string, params *UserGetParams) (*http.Request, error)

NewUserGetRequest generates requests for UserGet

func NewUserIdGetRequest

func NewUserIdGetRequest(server string, userId string) (*http.Request, error)

NewUserIdGetRequest generates requests for UserIdGet

func NewUserIdKeyGetRequest

func NewUserIdKeyGetRequest(server string, userId string) (*http.Request, error)

NewUserIdKeyGetRequest generates requests for UserIdKeyGet

func NewUserIdKeyIdDeleteRequest

func NewUserIdKeyIdDeleteRequest(server string, userId string, keyId string, body UserIdKeyIdDeleteJSONRequestBody) (*http.Request, error)

NewUserIdKeyIdDeleteRequest calls the generic UserIdKeyIdDelete builder with application/json body

func NewUserIdKeyIdDeleteRequestWithBody

func NewUserIdKeyIdDeleteRequestWithBody(server string, userId string, keyId string, contentType string, body io.Reader) (*http.Request, error)

NewUserIdKeyIdDeleteRequestWithBody generates requests for UserIdKeyIdDelete with any type of body

func NewUserIdKeyIdGetRequest

func NewUserIdKeyIdGetRequest(server string, userId string, keyId string, body UserIdKeyIdGetJSONRequestBody) (*http.Request, error)

NewUserIdKeyIdGetRequest calls the generic UserIdKeyIdGet builder with application/json body

func NewUserIdKeyIdGetRequestWithBody

func NewUserIdKeyIdGetRequestWithBody(server string, userId string, keyId string, contentType string, body io.Reader) (*http.Request, error)

NewUserIdKeyIdGetRequestWithBody generates requests for UserIdKeyIdGet with any type of body

func NewUserIdKeyPostRequest

func NewUserIdKeyPostRequest(server string, userId string, body UserIdKeyPostJSONRequestBody) (*http.Request, error)

NewUserIdKeyPostRequest calls the generic UserIdKeyPost builder with application/json body

func NewUserIdKeyPostRequestWithBody

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

NewUserIdKeyPostRequestWithBody generates requests for UserIdKeyPost with any type of body

func NewUserMeGetRequest

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

NewUserMeGetRequest generates requests for UserMeGet

func NewUserMeKeyGetRequest

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

NewUserMeKeyGetRequest generates requests for UserMeKeyGet

func NewUserMeKeyPostRequest

func NewUserMeKeyPostRequest(server string, body UserMeKeyPostJSONRequestBody) (*http.Request, error)

NewUserMeKeyPostRequest calls the generic UserMeKeyPost builder with application/json body

func NewUserMeKeyPostRequestWithBody

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

NewUserMeKeyPostRequestWithBody generates requests for UserMeKeyPost with any type of body

func NewUserPublicGetRequest

func NewUserPublicGetRequest(server string, userId string) (*http.Request, error)

NewUserPublicGetRequest generates requests for UserPublicGet

Types

type AuthSsoTokenPostResponse

type AuthSsoTokenPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Token
	JSON201      *Token
}

func ParseAuthSsoTokenPostResponse

func ParseAuthSsoTokenPostResponse(rsp *http.Response) (*AuthSsoTokenPostResponse, error)

ParseAuthSsoTokenPostResponse parses an HTTP response from a AuthSsoTokenPostWithResponse call

func (AuthSsoTokenPostResponse) Status

func (r AuthSsoTokenPostResponse) Status() string

Status returns HTTPResponse.Status

func (AuthSsoTokenPostResponse) StatusCode

func (r AuthSsoTokenPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuthTokenPostResponse

type AuthTokenPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseAuthTokenPostResponse

func ParseAuthTokenPostResponse(rsp *http.Response) (*AuthTokenPostResponse, error)

ParseAuthTokenPostResponse parses an HTTP response from a AuthTokenPostWithResponse call

func (AuthTokenPostResponse) Status

func (r AuthTokenPostResponse) Status() string

Status returns HTTPResponse.Status

func (AuthTokenPostResponse) StatusCode

func (r AuthTokenPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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

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

func (*Client) AuthTokenPost

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

func (*Client) DownloadSecretBlob

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

func (*Client) GetSecretId

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

func (*Client) PigeonholeControllersPkiPkiGet

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

func (*Client) SecretDelete

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

func (*Client) SecretGet

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

func (*Client) SecretIdDelete

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

func (*Client) SecretPost

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

func (*Client) SecretPostWithBody

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

func (*Client) UserGet

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

func (*Client) UserIdGet

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

func (*Client) UserIdKeyGet

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

func (*Client) UserIdKeyIdDelete

func (c *Client) UserIdKeyIdDelete(ctx context.Context, userId string, keyId string, body UserIdKeyIdDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UserIdKeyIdDeleteWithBody

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

func (*Client) UserIdKeyIdGet

func (c *Client) UserIdKeyIdGet(ctx context.Context, userId string, keyId string, body UserIdKeyIdGetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UserIdKeyIdGetWithBody

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

func (*Client) UserIdKeyPost

func (c *Client) UserIdKeyPost(ctx context.Context, userId string, body UserIdKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UserIdKeyPostWithBody

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

func (*Client) UserMeGet

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

func (*Client) UserMeKeyGet

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

func (*Client) UserMeKeyPost

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

func (*Client) UserMeKeyPostWithBody

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

func (*Client) UserPublicGet

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

type ClientInterface

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

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

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

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

	// SecretGet request
	SecretGet(ctx context.Context, params *SecretGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	SecretPost(ctx context.Context, body SecretPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SecretIdDelete request
	SecretIdDelete(ctx context.Context, secretId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSecretId request
	GetSecretId(ctx context.Context, secretId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DownloadSecretBlob request
	DownloadSecretBlob(ctx context.Context, secretId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserGet request
	UserGet(ctx context.Context, params *UserGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

	UserMeKeyPost(ctx context.Context, body UserMeKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserIdGet request
	UserIdGet(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserIdKeyGet request
	UserIdKeyGet(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UserIdKeyPost(ctx context.Context, userId string, body UserIdKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UserIdKeyIdDelete(ctx context.Context, userId string, keyId string, body UserIdKeyIdDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UserIdKeyIdGet(ctx context.Context, userId string, keyId string, body UserIdKeyIdGetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserPublicGet request
	UserPublicGet(ctx context.Context, userId string, 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 PigeonholeClient

func PigeonholeClient(server string, token string) (ClientWithResponses, context.Context)

func (*ClientWithResponses) AuthSsoTokenPostWithResponse

func (c *ClientWithResponses) AuthSsoTokenPostWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthSsoTokenPostResponse, error)

AuthSsoTokenPostWithResponse request returning *AuthSsoTokenPostResponse

func (*ClientWithResponses) AuthTokenPostWithResponse

func (c *ClientWithResponses) AuthTokenPostWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthTokenPostResponse, error)

AuthTokenPostWithResponse request returning *AuthTokenPostResponse

func (*ClientWithResponses) DownloadSecretBlobWithResponse

func (c *ClientWithResponses) DownloadSecretBlobWithResponse(ctx context.Context, secretId string, reqEditors ...RequestEditorFn) (*DownloadSecretBlobResponse, error)

DownloadSecretBlobWithResponse request returning *DownloadSecretBlobResponse

func (*ClientWithResponses) GetSecretIdWithResponse

func (c *ClientWithResponses) GetSecretIdWithResponse(ctx context.Context, secretId string, reqEditors ...RequestEditorFn) (*GetSecretIdResponse, error)

GetSecretIdWithResponse request returning *GetSecretIdResponse

func (*ClientWithResponses) PigeonholeControllersPkiPkiGetWithResponse

func (c *ClientWithResponses) PigeonholeControllersPkiPkiGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PigeonholeControllersPkiPkiGetResponse, error)

PigeonholeControllersPkiPkiGetWithResponse request returning *PigeonholeControllersPkiPkiGetResponse

func (*ClientWithResponses) SecretDeleteWithResponse

func (c *ClientWithResponses) SecretDeleteWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SecretDeleteResponse, error)

SecretDeleteWithResponse request returning *SecretDeleteResponse

func (*ClientWithResponses) SecretGetWithResponse

func (c *ClientWithResponses) SecretGetWithResponse(ctx context.Context, params *SecretGetParams, reqEditors ...RequestEditorFn) (*SecretGetResponse, error)

SecretGetWithResponse request returning *SecretGetResponse

func (*ClientWithResponses) SecretIdDeleteWithResponse

func (c *ClientWithResponses) SecretIdDeleteWithResponse(ctx context.Context, secretId string, reqEditors ...RequestEditorFn) (*SecretIdDeleteResponse, error)

SecretIdDeleteWithResponse request returning *SecretIdDeleteResponse

func (*ClientWithResponses) SecretPostWithBodyWithResponse

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

SecretPostWithBodyWithResponse request with arbitrary body returning *SecretPostResponse

func (*ClientWithResponses) SecretPostWithResponse

func (c *ClientWithResponses) SecretPostWithResponse(ctx context.Context, body SecretPostJSONRequestBody, reqEditors ...RequestEditorFn) (*SecretPostResponse, error)

func (*ClientWithResponses) UserGetWithResponse

func (c *ClientWithResponses) UserGetWithResponse(ctx context.Context, params *UserGetParams, reqEditors ...RequestEditorFn) (*UserGetResponse, error)

UserGetWithResponse request returning *UserGetResponse

func (*ClientWithResponses) UserIdGetWithResponse

func (c *ClientWithResponses) UserIdGetWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*UserIdGetResponse, error)

UserIdGetWithResponse request returning *UserIdGetResponse

func (*ClientWithResponses) UserIdKeyGetWithResponse

func (c *ClientWithResponses) UserIdKeyGetWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*UserIdKeyGetResponse, error)

UserIdKeyGetWithResponse request returning *UserIdKeyGetResponse

func (*ClientWithResponses) UserIdKeyIdDeleteWithBodyWithResponse

func (c *ClientWithResponses) UserIdKeyIdDeleteWithBodyWithResponse(ctx context.Context, userId string, keyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserIdKeyIdDeleteResponse, error)

UserIdKeyIdDeleteWithBodyWithResponse request with arbitrary body returning *UserIdKeyIdDeleteResponse

func (*ClientWithResponses) UserIdKeyIdDeleteWithResponse

func (c *ClientWithResponses) UserIdKeyIdDeleteWithResponse(ctx context.Context, userId string, keyId string, body UserIdKeyIdDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*UserIdKeyIdDeleteResponse, error)

func (*ClientWithResponses) UserIdKeyIdGetWithBodyWithResponse

func (c *ClientWithResponses) UserIdKeyIdGetWithBodyWithResponse(ctx context.Context, userId string, keyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserIdKeyIdGetResponse, error)

UserIdKeyIdGetWithBodyWithResponse request with arbitrary body returning *UserIdKeyIdGetResponse

func (*ClientWithResponses) UserIdKeyIdGetWithResponse

func (c *ClientWithResponses) UserIdKeyIdGetWithResponse(ctx context.Context, userId string, keyId string, body UserIdKeyIdGetJSONRequestBody, reqEditors ...RequestEditorFn) (*UserIdKeyIdGetResponse, error)

func (*ClientWithResponses) UserIdKeyPostWithBodyWithResponse

func (c *ClientWithResponses) UserIdKeyPostWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserIdKeyPostResponse, error)

UserIdKeyPostWithBodyWithResponse request with arbitrary body returning *UserIdKeyPostResponse

func (*ClientWithResponses) UserIdKeyPostWithResponse

func (c *ClientWithResponses) UserIdKeyPostWithResponse(ctx context.Context, userId string, body UserIdKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*UserIdKeyPostResponse, error)

func (*ClientWithResponses) UserMeGetWithResponse

func (c *ClientWithResponses) UserMeGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserMeGetResponse, error)

UserMeGetWithResponse request returning *UserMeGetResponse

func (*ClientWithResponses) UserMeKeyGetWithResponse

func (c *ClientWithResponses) UserMeKeyGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserMeKeyGetResponse, error)

UserMeKeyGetWithResponse request returning *UserMeKeyGetResponse

func (*ClientWithResponses) UserMeKeyPostWithBodyWithResponse

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

UserMeKeyPostWithBodyWithResponse request with arbitrary body returning *UserMeKeyPostResponse

func (*ClientWithResponses) UserMeKeyPostWithResponse

func (c *ClientWithResponses) UserMeKeyPostWithResponse(ctx context.Context, body UserMeKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*UserMeKeyPostResponse, error)

func (*ClientWithResponses) UserPublicGetWithResponse

func (c *ClientWithResponses) UserPublicGetWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*UserPublicGetResponse, error)

UserPublicGetWithResponse request returning *UserPublicGetResponse

type ClientWithResponsesInterface

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

	// AuthTokenPostWithResponse request
	AuthTokenPostWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthTokenPostResponse, error)

	// PigeonholeControllersPkiPkiGetWithResponse request
	PigeonholeControllersPkiPkiGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PigeonholeControllersPkiPkiGetResponse, error)

	// SecretDeleteWithResponse request
	SecretDeleteWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SecretDeleteResponse, error)

	// SecretGetWithResponse request
	SecretGetWithResponse(ctx context.Context, params *SecretGetParams, reqEditors ...RequestEditorFn) (*SecretGetResponse, error)

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

	SecretPostWithResponse(ctx context.Context, body SecretPostJSONRequestBody, reqEditors ...RequestEditorFn) (*SecretPostResponse, error)

	// SecretIdDeleteWithResponse request
	SecretIdDeleteWithResponse(ctx context.Context, secretId string, reqEditors ...RequestEditorFn) (*SecretIdDeleteResponse, error)

	// GetSecretIdWithResponse request
	GetSecretIdWithResponse(ctx context.Context, secretId string, reqEditors ...RequestEditorFn) (*GetSecretIdResponse, error)

	// DownloadSecretBlobWithResponse request
	DownloadSecretBlobWithResponse(ctx context.Context, secretId string, reqEditors ...RequestEditorFn) (*DownloadSecretBlobResponse, error)

	// UserGetWithResponse request
	UserGetWithResponse(ctx context.Context, params *UserGetParams, reqEditors ...RequestEditorFn) (*UserGetResponse, error)

	// UserMeGetWithResponse request
	UserMeGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserMeGetResponse, error)

	// UserMeKeyGetWithResponse request
	UserMeKeyGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserMeKeyGetResponse, error)

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

	UserMeKeyPostWithResponse(ctx context.Context, body UserMeKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*UserMeKeyPostResponse, error)

	// UserIdGetWithResponse request
	UserIdGetWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*UserIdGetResponse, error)

	// UserIdKeyGetWithResponse request
	UserIdKeyGetWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*UserIdKeyGetResponse, error)

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

	UserIdKeyPostWithResponse(ctx context.Context, userId string, body UserIdKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*UserIdKeyPostResponse, error)

	// UserIdKeyIdDeleteWithBodyWithResponse request with any body
	UserIdKeyIdDeleteWithBodyWithResponse(ctx context.Context, userId string, keyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserIdKeyIdDeleteResponse, error)

	UserIdKeyIdDeleteWithResponse(ctx context.Context, userId string, keyId string, body UserIdKeyIdDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*UserIdKeyIdDeleteResponse, error)

	// UserIdKeyIdGetWithBodyWithResponse request with any body
	UserIdKeyIdGetWithBodyWithResponse(ctx context.Context, userId string, keyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserIdKeyIdGetResponse, error)

	UserIdKeyIdGetWithResponse(ctx context.Context, userId string, keyId string, body UserIdKeyIdGetJSONRequestBody, reqEditors ...RequestEditorFn) (*UserIdKeyIdGetResponse, error)

	// UserPublicGetWithResponse request
	UserPublicGetWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*UserPublicGetResponse, error)
}

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

type CreateSecret

type CreateSecret struct {
	// RecipientIds A list of recipient IDs.
	RecipientIds []string `json:"recipient_ids"`

	// Reference A reference string for the secret.
	Reference string `json:"reference"`
}

CreateSecret defines model for CreateSecret.

type CreateSecretResponse

type CreateSecretResponse struct {
	S3Info *struct {
		Fields *struct {
			Key                  *string   `json:"key,omitempty"`
			Policy               *string   `json:"policy,omitempty"`
			XAmzAlgorithm        *string   `json:"x-amz-algorithm,omitempty"`
			XAmzCredential       *string   `json:"x-amz-credential,omitempty"`
			XAmzDate             *string   `json:"x-amz-date,omitempty"`
			XAmzMetaRecipientIds *[]string `json:"x-amz-meta-recipient_ids,omitempty"`
			XAmzMetaReference    *string   `json:"x-amz-meta-reference,omitempty"`
			XAmzMetaSenderId     *string   `json:"x-amz-meta-sender_id,omitempty"`
			XAmzSignature        *string   `json:"x-amz-signature,omitempty"`
		} `json:"fields,omitempty"`
		Url *string `json:"url,omitempty"`
	} `json:"s3_info,omitempty"`
	Users *[]User `json:"users,omitempty"`
}

CreateSecretResponse defines model for CreateSecretResponse.

type DownloadSecretBlobResponse

type DownloadSecretBlobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDownloadSecretBlobResponse

func ParseDownloadSecretBlobResponse(rsp *http.Response) (*DownloadSecretBlobResponse, error)

ParseDownloadSecretBlobResponse parses an HTTP response from a DownloadSecretBlobWithResponse call

func (DownloadSecretBlobResponse) Status

Status returns HTTPResponse.Status

func (DownloadSecretBlobResponse) StatusCode

func (r DownloadSecretBlobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSecretIdResponse

type GetSecretIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Secret
}

func ParseGetSecretIdResponse

func ParseGetSecretIdResponse(rsp *http.Response) (*GetSecretIdResponse, error)

ParseGetSecretIdResponse parses an HTTP response from a GetSecretIdWithResponse call

func (GetSecretIdResponse) Status

func (r GetSecretIdResponse) Status() string

Status returns HTTPResponse.Status

func (GetSecretIdResponse) StatusCode

func (r GetSecretIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Key

type Key struct {
	CreatedAt *time.Time          `json:"created_at,omitempty"`
	Expiry    *time.Time          `json:"expiry,omitempty"`
	Id        *openapi_types.UUID `json:"id,omitempty"`
	KeyData   *string             `json:"key_data,omitempty"`
	User      openapi_types.UUID  `json:"user"`
}

Key defines model for Key.

type Keys

type Keys = []Key

Keys defines model for Keys.

type NewKey

type NewKey struct {
	KeyData *string `json:"key_data,omitempty"`
}

NewKey defines model for NewKey.

type PigeonholeControllersPkiPkiGetResponse

type PigeonholeControllersPkiPkiGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePigeonholeControllersPkiPkiGetResponse

func ParsePigeonholeControllersPkiPkiGetResponse(rsp *http.Response) (*PigeonholeControllersPkiPkiGetResponse, error)

ParsePigeonholeControllersPkiPkiGetResponse parses an HTTP response from a PigeonholeControllersPkiPkiGetWithResponse call

func (PigeonholeControllersPkiPkiGetResponse) Status

Status returns HTTPResponse.Status

func (PigeonholeControllersPkiPkiGetResponse) 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 Secret

type Secret struct {
	Id        *openapi_types.UUID `json:"id,omitempty"`
	Recipient *string             `json:"recipient,omitempty"`
	Reference *string             `json:"reference,omitempty"`
	Sender    *string             `json:"sender,omitempty"`
}

Secret defines model for Secret.

type SecretDeleteResponse

type SecretDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSecretDeleteResponse

func ParseSecretDeleteResponse(rsp *http.Response) (*SecretDeleteResponse, error)

ParseSecretDeleteResponse parses an HTTP response from a SecretDeleteWithResponse call

func (SecretDeleteResponse) Status

func (r SecretDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (SecretDeleteResponse) StatusCode

func (r SecretDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SecretGetParams

type SecretGetParams struct {
	Reference *string `form:"reference,omitempty" json:"reference,omitempty"`
}

SecretGetParams defines parameters for SecretGet.

type SecretGetResponse

type SecretGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Secrets
}

func ParseSecretGetResponse

func ParseSecretGetResponse(rsp *http.Response) (*SecretGetResponse, error)

ParseSecretGetResponse parses an HTTP response from a SecretGetWithResponse call

func (SecretGetResponse) Status

func (r SecretGetResponse) Status() string

Status returns HTTPResponse.Status

func (SecretGetResponse) StatusCode

func (r SecretGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SecretIdDeleteResponse

type SecretIdDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSecretIdDeleteResponse

func ParseSecretIdDeleteResponse(rsp *http.Response) (*SecretIdDeleteResponse, error)

ParseSecretIdDeleteResponse parses an HTTP response from a SecretIdDeleteWithResponse call

func (SecretIdDeleteResponse) Status

func (r SecretIdDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (SecretIdDeleteResponse) StatusCode

func (r SecretIdDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SecretPostJSONRequestBody

type SecretPostJSONRequestBody = CreateSecret

SecretPostJSONRequestBody defines body for SecretPost for application/json ContentType.

type SecretPostResponse

type SecretPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CreateSecretResponse
}

func ParseSecretPostResponse

func ParseSecretPostResponse(rsp *http.Response) (*SecretPostResponse, error)

ParseSecretPostResponse parses an HTTP response from a SecretPostWithResponse call

func (SecretPostResponse) Status

func (r SecretPostResponse) Status() string

Status returns HTTPResponse.Status

func (SecretPostResponse) StatusCode

func (r SecretPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Secrets

type Secrets = []Secret

Secrets defines model for Secrets.

type Token

type Token struct {
	AccessToken string `json:"accessToken"`
}

Token defines model for Token.

type User

type User struct {
	Email *string             `json:"email,omitempty"`
	Id    *openapi_types.UUID `json:"id,omitempty"`
	Keys  *[]Key              `json:"keys,omitempty"`
}

User defines model for User.

type UserGetParams

type UserGetParams struct {
	Id *[]string `form:"id,omitempty" json:"id,omitempty"`
}

UserGetParams defines parameters for UserGet.

type UserGetResponse

type UserGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Users
}

func ParseUserGetResponse

func ParseUserGetResponse(rsp *http.Response) (*UserGetResponse, error)

ParseUserGetResponse parses an HTTP response from a UserGetWithResponse call

func (UserGetResponse) Status

func (r UserGetResponse) Status() string

Status returns HTTPResponse.Status

func (UserGetResponse) StatusCode

func (r UserGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserIdGetResponse

type UserIdGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
}

func ParseUserIdGetResponse

func ParseUserIdGetResponse(rsp *http.Response) (*UserIdGetResponse, error)

ParseUserIdGetResponse parses an HTTP response from a UserIdGetWithResponse call

func (UserIdGetResponse) Status

func (r UserIdGetResponse) Status() string

Status returns HTTPResponse.Status

func (UserIdGetResponse) StatusCode

func (r UserIdGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserIdKeyGetResponse

type UserIdKeyGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUserIdKeyGetResponse

func ParseUserIdKeyGetResponse(rsp *http.Response) (*UserIdKeyGetResponse, error)

ParseUserIdKeyGetResponse parses an HTTP response from a UserIdKeyGetWithResponse call

func (UserIdKeyGetResponse) Status

func (r UserIdKeyGetResponse) Status() string

Status returns HTTPResponse.Status

func (UserIdKeyGetResponse) StatusCode

func (r UserIdKeyGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserIdKeyIdDeleteJSONRequestBody

type UserIdKeyIdDeleteJSONRequestBody = Key

UserIdKeyIdDeleteJSONRequestBody defines body for UserIdKeyIdDelete for application/json ContentType.

type UserIdKeyIdDeleteResponse

type UserIdKeyIdDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUserIdKeyIdDeleteResponse

func ParseUserIdKeyIdDeleteResponse(rsp *http.Response) (*UserIdKeyIdDeleteResponse, error)

ParseUserIdKeyIdDeleteResponse parses an HTTP response from a UserIdKeyIdDeleteWithResponse call

func (UserIdKeyIdDeleteResponse) Status

func (r UserIdKeyIdDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (UserIdKeyIdDeleteResponse) StatusCode

func (r UserIdKeyIdDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserIdKeyIdGetJSONRequestBody

type UserIdKeyIdGetJSONRequestBody = Key

UserIdKeyIdGetJSONRequestBody defines body for UserIdKeyIdGet for application/json ContentType.

type UserIdKeyIdGetResponse

type UserIdKeyIdGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUserIdKeyIdGetResponse

func ParseUserIdKeyIdGetResponse(rsp *http.Response) (*UserIdKeyIdGetResponse, error)

ParseUserIdKeyIdGetResponse parses an HTTP response from a UserIdKeyIdGetWithResponse call

func (UserIdKeyIdGetResponse) Status

func (r UserIdKeyIdGetResponse) Status() string

Status returns HTTPResponse.Status

func (UserIdKeyIdGetResponse) StatusCode

func (r UserIdKeyIdGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserIdKeyPostJSONRequestBody

type UserIdKeyPostJSONRequestBody = Key

UserIdKeyPostJSONRequestBody defines body for UserIdKeyPost for application/json ContentType.

type UserIdKeyPostResponse

type UserIdKeyPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUserIdKeyPostResponse

func ParseUserIdKeyPostResponse(rsp *http.Response) (*UserIdKeyPostResponse, error)

ParseUserIdKeyPostResponse parses an HTTP response from a UserIdKeyPostWithResponse call

func (UserIdKeyPostResponse) Status

func (r UserIdKeyPostResponse) Status() string

Status returns HTTPResponse.Status

func (UserIdKeyPostResponse) StatusCode

func (r UserIdKeyPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserMeGetResponse

type UserMeGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
}

func ParseUserMeGetResponse

func ParseUserMeGetResponse(rsp *http.Response) (*UserMeGetResponse, error)

ParseUserMeGetResponse parses an HTTP response from a UserMeGetWithResponse call

func (UserMeGetResponse) Status

func (r UserMeGetResponse) Status() string

Status returns HTTPResponse.Status

func (UserMeGetResponse) StatusCode

func (r UserMeGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserMeKeyGetResponse

type UserMeKeyGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Keys
}

func ParseUserMeKeyGetResponse

func ParseUserMeKeyGetResponse(rsp *http.Response) (*UserMeKeyGetResponse, error)

ParseUserMeKeyGetResponse parses an HTTP response from a UserMeKeyGetWithResponse call

func (UserMeKeyGetResponse) Status

func (r UserMeKeyGetResponse) Status() string

Status returns HTTPResponse.Status

func (UserMeKeyGetResponse) StatusCode

func (r UserMeKeyGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserMeKeyPostJSONRequestBody

type UserMeKeyPostJSONRequestBody = NewKey

UserMeKeyPostJSONRequestBody defines body for UserMeKeyPost for application/json ContentType.

type UserMeKeyPostResponse

type UserMeKeyPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUserMeKeyPostResponse

func ParseUserMeKeyPostResponse(rsp *http.Response) (*UserMeKeyPostResponse, error)

ParseUserMeKeyPostResponse parses an HTTP response from a UserMeKeyPostWithResponse call

func (UserMeKeyPostResponse) Status

func (r UserMeKeyPostResponse) Status() string

Status returns HTTPResponse.Status

func (UserMeKeyPostResponse) StatusCode

func (r UserMeKeyPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserPublicGetResponse

type UserPublicGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUserPublicGetResponse

func ParseUserPublicGetResponse(rsp *http.Response) (*UserPublicGetResponse, error)

ParseUserPublicGetResponse parses an HTTP response from a UserPublicGetWithResponse call

func (UserPublicGetResponse) Status

func (r UserPublicGetResponse) Status() string

Status returns HTTPResponse.Status

func (UserPublicGetResponse) StatusCode

func (r UserPublicGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Users

type Users = []User

Users defines model for Users.

Jump to

Keyboard shortcuts

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