zerokms

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

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

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateClientRequest

func NewCreateClientRequest(server string, body CreateClientJSONRequestBody) (*http.Request, error)

NewCreateClientRequest calls the generic CreateClient builder with application/json body

func NewCreateClientRequestWithBody

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

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

func NewCreateKeysetRequest

func NewCreateKeysetRequest(server string, body CreateKeysetJSONRequestBody) (*http.Request, error)

NewCreateKeysetRequest calls the generic CreateKeyset builder with application/json body

func NewCreateKeysetRequestWithBody

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

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

func NewDeleteClientRequest

func NewDeleteClientRequest(server string, body DeleteClientJSONRequestBody) (*http.Request, error)

NewDeleteClientRequest calls the generic DeleteClient builder with application/json body

func NewDeleteClientRequestWithBody

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

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

func NewDisableKeysetRequest

func NewDisableKeysetRequest(server string, body DisableKeysetJSONRequestBody) (*http.Request, error)

NewDisableKeysetRequest calls the generic DisableKeyset builder with application/json body

func NewDisableKeysetRequestWithBody

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

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

func NewEnableKeysetRequest

func NewEnableKeysetRequest(server string, body EnableKeysetJSONRequestBody) (*http.Request, error)

NewEnableKeysetRequest calls the generic EnableKeyset builder with application/json body

func NewEnableKeysetRequestWithBody

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

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

func NewGrantKeysetRequest

func NewGrantKeysetRequest(server string, body GrantKeysetJSONRequestBody) (*http.Request, error)

NewGrantKeysetRequest calls the generic GrantKeyset builder with application/json body

func NewGrantKeysetRequestWithBody

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

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

func NewListClientsRequest

func NewListClientsRequest(server string, body ListClientsJSONRequestBody) (*http.Request, error)

NewListClientsRequest calls the generic ListClients builder with application/json body

func NewListClientsRequestWithBody

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

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

func NewListKeysetsRequest

func NewListKeysetsRequest(server string, body ListKeysetsJSONRequestBody) (*http.Request, error)

NewListKeysetsRequest calls the generic ListKeysets builder with application/json body

func NewListKeysetsRequestWithBody

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

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

func NewModifyKeysetRequest

func NewModifyKeysetRequest(server string, body ModifyKeysetJSONRequestBody) (*http.Request, error)

NewModifyKeysetRequest calls the generic ModifyKeyset builder with application/json body

func NewModifyKeysetRequestWithBody

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

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

func NewRevokeKeysetRequest

func NewRevokeKeysetRequest(server string, body RevokeKeysetJSONRequestBody) (*http.Request, error)

NewRevokeKeysetRequest calls the generic RevokeKeyset builder with application/json body

func NewRevokeKeysetRequestWithBody

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

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

Types

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

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

CreateClient performs a POST /create-client (the `CreateClient` operationId) request. Takes a body of the `application/json` content type.

func (*Client) CreateClientWithBody

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

CreateClientWithBody performs a POST /create-client (the `CreateClient` operationId) request, with any type of body and a specified content type.

func (*Client) CreateKeyset

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

CreateKeyset Non-generic production entry point for `create`, enabling `routes!()` and `#[utoipa::path]` which don't support turbofish on generic functions.

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

Corresponds with POST /create-keyset (the `CreateKeyset` operationId).

func (*Client) CreateKeysetWithBody

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

CreateKeysetWithBody Non-generic production entry point for `create`, enabling `routes!()` and `#[utoipa::path]` which don't support turbofish on generic functions.

Takes any type of body and a specified content type.

Corresponds with POST /create-keyset (the `CreateKeyset` operationId).

func (*Client) DeleteClient

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

DeleteClient performs a POST /delete-client (the `DeleteClient` operationId) request. Takes a body of the `application/json` content type.

func (*Client) DeleteClientWithBody

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

DeleteClientWithBody performs a POST /delete-client (the `DeleteClient` operationId) request, with any type of body and a specified content type.

func (*Client) DisableKeyset

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

DisableKeyset performs a POST /disable-keyset (the `DisableKeyset` operationId) request. Takes a body of the `application/json` content type.

func (*Client) DisableKeysetWithBody

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

DisableKeysetWithBody performs a POST /disable-keyset (the `DisableKeyset` operationId) request, with any type of body and a specified content type.

func (*Client) EnableKeyset

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

EnableKeyset performs a POST /enable-keyset (the `EnableKeyset` operationId) request. Takes a body of the `application/json` content type.

func (*Client) EnableKeysetWithBody

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

EnableKeysetWithBody performs a POST /enable-keyset (the `EnableKeyset` operationId) request, with any type of body and a specified content type.

func (*Client) GrantKeyset

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

GrantKeyset performs a POST /grant-keyset (the `GrantKeyset` operationId) request. Takes a body of the `application/json` content type.

func (*Client) GrantKeysetWithBody

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

GrantKeysetWithBody performs a POST /grant-keyset (the `GrantKeyset` operationId) request, with any type of body and a specified content type.

func (*Client) ListClients

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

ListClients performs a POST /list-clients (the `ListClients` operationId) request. Takes a body of the `application/json` content type.

func (*Client) ListClientsWithBody

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

ListClientsWithBody performs a POST /list-clients (the `ListClients` operationId) request, with any type of body and a specified content type.

func (*Client) ListKeysets

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

ListKeysets performs a POST /list-keysets (the `ListKeysets` operationId) request. Takes a body of the `application/json` content type.

func (*Client) ListKeysetsWithBody

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

ListKeysetsWithBody performs a POST /list-keysets (the `ListKeysets` operationId) request, with any type of body and a specified content type.

func (*Client) ModifyKeyset

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

ModifyKeyset performs a POST /modify-keyset (the `ModifyKeyset` operationId) request. Takes a body of the `application/json` content type.

func (*Client) ModifyKeysetWithBody

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

ModifyKeysetWithBody performs a POST /modify-keyset (the `ModifyKeyset` operationId) request, with any type of body and a specified content type.

func (*Client) RevokeKeyset

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

RevokeKeyset performs a POST /revoke-keyset (the `RevokeKeyset` operationId) request. Takes a body of the `application/json` content type.

func (*Client) RevokeKeysetWithBody

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

RevokeKeysetWithBody performs a POST /revoke-keyset (the `RevokeKeyset` operationId) request, with any type of body and a specified content type.

type ClientInterface

type ClientInterface interface {

	// CreateClientWithBody performs a POST /create-client (the `CreateClient` operationId) request,
	// with any type of body and a specified content type.
	CreateClientWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateClient performs a POST /create-client (the `CreateClient` operationId) request.
	// Takes a body of the `application/json` content type.
	CreateClient(ctx context.Context, body CreateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateKeysetWithBody Non-generic production entry point for `create`, enabling `routes!()` and
	// `#[utoipa::path]` which don't support turbofish on generic functions.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /create-keyset (the `CreateKeyset` operationId).
	CreateKeysetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateKeyset Non-generic production entry point for `create`, enabling `routes!()` and
	// `#[utoipa::path]` which don't support turbofish on generic functions.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /create-keyset (the `CreateKeyset` operationId).
	CreateKeyset(ctx context.Context, body CreateKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteClientWithBody performs a POST /delete-client (the `DeleteClient` operationId) request,
	// with any type of body and a specified content type.
	DeleteClientWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteClient performs a POST /delete-client (the `DeleteClient` operationId) request.
	// Takes a body of the `application/json` content type.
	DeleteClient(ctx context.Context, body DeleteClientJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DisableKeysetWithBody performs a POST /disable-keyset (the `DisableKeyset` operationId) request,
	// with any type of body and a specified content type.
	DisableKeysetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DisableKeyset performs a POST /disable-keyset (the `DisableKeyset` operationId) request.
	// Takes a body of the `application/json` content type.
	DisableKeyset(ctx context.Context, body DisableKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EnableKeysetWithBody performs a POST /enable-keyset (the `EnableKeyset` operationId) request,
	// with any type of body and a specified content type.
	EnableKeysetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EnableKeyset performs a POST /enable-keyset (the `EnableKeyset` operationId) request.
	// Takes a body of the `application/json` content type.
	EnableKeyset(ctx context.Context, body EnableKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GrantKeysetWithBody performs a POST /grant-keyset (the `GrantKeyset` operationId) request,
	// with any type of body and a specified content type.
	GrantKeysetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GrantKeyset performs a POST /grant-keyset (the `GrantKeyset` operationId) request.
	// Takes a body of the `application/json` content type.
	GrantKeyset(ctx context.Context, body GrantKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListClientsWithBody performs a POST /list-clients (the `ListClients` operationId) request,
	// with any type of body and a specified content type.
	ListClientsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListClients performs a POST /list-clients (the `ListClients` operationId) request.
	// Takes a body of the `application/json` content type.
	ListClients(ctx context.Context, body ListClientsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListKeysetsWithBody performs a POST /list-keysets (the `ListKeysets` operationId) request,
	// with any type of body and a specified content type.
	ListKeysetsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListKeysets performs a POST /list-keysets (the `ListKeysets` operationId) request.
	// Takes a body of the `application/json` content type.
	ListKeysets(ctx context.Context, body ListKeysetsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ModifyKeysetWithBody performs a POST /modify-keyset (the `ModifyKeyset` operationId) request,
	// with any type of body and a specified content type.
	ModifyKeysetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ModifyKeyset performs a POST /modify-keyset (the `ModifyKeyset` operationId) request.
	// Takes a body of the `application/json` content type.
	ModifyKeyset(ctx context.Context, body ModifyKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeKeysetWithBody performs a POST /revoke-keyset (the `RevokeKeyset` operationId) request,
	// with any type of body and a specified content type.
	RevokeKeysetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeKeyset performs a POST /revoke-keyset (the `RevokeKeyset` operationId) request.
	// Takes a body of the `application/json` content type.
	RevokeKeyset(ctx context.Context, body RevokeKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientKeysetID

type ClientKeysetID struct {
	// contains filtered or unexported fields
}

ClientKeysetID Struct representing the keyset ids associated with a client which could be a single keyset or multiple keysets.

func (ClientKeysetID) AsClientKeysetID0

func (t ClientKeysetID) AsClientKeysetID0() (ClientKeysetID0, error)

AsClientKeysetID0 returns the union data inside the ClientKeysetID as a ClientKeysetID0

func (ClientKeysetID) AsClientKeysetID1

func (t ClientKeysetID) AsClientKeysetID1() (ClientKeysetID1, error)

AsClientKeysetID1 returns the union data inside the ClientKeysetID as a ClientKeysetID1

func (*ClientKeysetID) FromClientKeysetID0

func (t *ClientKeysetID) FromClientKeysetID0(v ClientKeysetID0) error

FromClientKeysetID0 overwrites any union data inside the ClientKeysetID as the provided ClientKeysetID0

func (*ClientKeysetID) FromClientKeysetID1

func (t *ClientKeysetID) FromClientKeysetID1(v ClientKeysetID1) error

FromClientKeysetID1 overwrites any union data inside the ClientKeysetID as the provided ClientKeysetID1

func (ClientKeysetID) MarshalJSON

func (t ClientKeysetID) MarshalJSON() ([]byte, error)

func (*ClientKeysetID) MergeClientKeysetID0

func (t *ClientKeysetID) MergeClientKeysetID0(v ClientKeysetID0) error

MergeClientKeysetID0 performs a merge with any union data inside the ClientKeysetID, using the provided ClientKeysetID0

func (*ClientKeysetID) MergeClientKeysetID1

func (t *ClientKeysetID) MergeClientKeysetID1(v ClientKeysetID1) error

MergeClientKeysetID1 performs a merge with any union data inside the ClientKeysetID, using the provided ClientKeysetID1

func (*ClientKeysetID) UnmarshalJSON

func (t *ClientKeysetID) UnmarshalJSON(b []byte) error

type ClientKeysetID0

type ClientKeysetID0 = string

ClientKeysetID0 defines model for ClientKeysetID.0.

type ClientKeysetID1

type ClientKeysetID1 = []string

ClientKeysetID1 defines model for ClientKeysetID.1.

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 ClientType

type ClientType string

ClientType The type of client to create.

const (
	Device ClientType = "device"
)

Defines values for ClientType.

func (ClientType) Valid

func (e ClientType) Valid() bool

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

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

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

CreateClientWithBodyWithResponse performs a POST /create-client (the `CreateClient` operationId) request, with any type of body and a specified content type.

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

func (*ClientWithResponses) CreateClientWithResponse

func (c *ClientWithResponses) CreateClientWithResponse(ctx context.Context, body CreateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClientHTTPResponse, error)

CreateClientWithResponse performs a POST /create-client (the `CreateClient` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CreateKeysetWithBodyWithResponse

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

CreateKeysetWithBodyWithResponse Non-generic production entry point for `create`, enabling `routes!()` and `#[utoipa::path]` which don't support turbofish on generic functions.

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

Corresponds with POST /create-keyset (the `CreateKeyset` operationId).

func (*ClientWithResponses) CreateKeysetWithResponse

func (c *ClientWithResponses) CreateKeysetWithResponse(ctx context.Context, body CreateKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateKeysetHTTPResponse, error)

CreateKeysetWithResponse Non-generic production entry point for `create`, enabling `routes!()` and `#[utoipa::path]` which don't support turbofish on generic functions.

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

Corresponds with POST /create-keyset (the `CreateKeyset` operationId).

func (*ClientWithResponses) DeleteClientWithBodyWithResponse

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

DeleteClientWithBodyWithResponse performs a POST /delete-client (the `DeleteClient` operationId) request, with any type of body and a specified content type.

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

func (*ClientWithResponses) DeleteClientWithResponse

func (c *ClientWithResponses) DeleteClientWithResponse(ctx context.Context, body DeleteClientJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteClientHTTPResponse, error)

DeleteClientWithResponse performs a POST /delete-client (the `DeleteClient` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) DisableKeysetWithBodyWithResponse

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

DisableKeysetWithBodyWithResponse performs a POST /disable-keyset (the `DisableKeyset` operationId) request, with any type of body and a specified content type.

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

func (*ClientWithResponses) DisableKeysetWithResponse

func (c *ClientWithResponses) DisableKeysetWithResponse(ctx context.Context, body DisableKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*DisableKeysetHTTPResponse, error)

DisableKeysetWithResponse performs a POST /disable-keyset (the `DisableKeyset` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) EnableKeysetWithBodyWithResponse

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

EnableKeysetWithBodyWithResponse performs a POST /enable-keyset (the `EnableKeyset` operationId) request, with any type of body and a specified content type.

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

func (*ClientWithResponses) EnableKeysetWithResponse

func (c *ClientWithResponses) EnableKeysetWithResponse(ctx context.Context, body EnableKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*EnableKeysetHTTPResponse, error)

EnableKeysetWithResponse performs a POST /enable-keyset (the `EnableKeyset` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GrantKeysetWithBodyWithResponse

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

GrantKeysetWithBodyWithResponse performs a POST /grant-keyset (the `GrantKeyset` operationId) request, with any type of body and a specified content type.

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

func (*ClientWithResponses) GrantKeysetWithResponse

func (c *ClientWithResponses) GrantKeysetWithResponse(ctx context.Context, body GrantKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*GrantKeysetHTTPResponse, error)

GrantKeysetWithResponse performs a POST /grant-keyset (the `GrantKeyset` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ListClientsWithBodyWithResponse

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

ListClientsWithBodyWithResponse performs a POST /list-clients (the `ListClients` operationId) request, with any type of body and a specified content type.

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

func (*ClientWithResponses) ListClientsWithResponse

func (c *ClientWithResponses) ListClientsWithResponse(ctx context.Context, body ListClientsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListClientsHTTPResponse, error)

ListClientsWithResponse performs a POST /list-clients (the `ListClients` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ListKeysetsWithBodyWithResponse

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

ListKeysetsWithBodyWithResponse performs a POST /list-keysets (the `ListKeysets` operationId) request, with any type of body and a specified content type.

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

func (*ClientWithResponses) ListKeysetsWithResponse

func (c *ClientWithResponses) ListKeysetsWithResponse(ctx context.Context, body ListKeysetsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListKeysetsHTTPResponse, error)

ListKeysetsWithResponse performs a POST /list-keysets (the `ListKeysets` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ModifyKeysetWithBodyWithResponse

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

ModifyKeysetWithBodyWithResponse performs a POST /modify-keyset (the `ModifyKeyset` operationId) request, with any type of body and a specified content type.

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

func (*ClientWithResponses) ModifyKeysetWithResponse

func (c *ClientWithResponses) ModifyKeysetWithResponse(ctx context.Context, body ModifyKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyKeysetHTTPResponse, error)

ModifyKeysetWithResponse performs a POST /modify-keyset (the `ModifyKeyset` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) RevokeKeysetWithBodyWithResponse

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

RevokeKeysetWithBodyWithResponse performs a POST /revoke-keyset (the `RevokeKeyset` operationId) request, with any type of body and a specified content type.

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

func (*ClientWithResponses) RevokeKeysetWithResponse

func (c *ClientWithResponses) RevokeKeysetWithResponse(ctx context.Context, body RevokeKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*RevokeKeysetHTTPResponse, error)

RevokeKeysetWithResponse performs a POST /revoke-keyset (the `RevokeKeyset` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// CreateClientWithBodyWithResponse performs a POST /create-client (the `CreateClient` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	CreateClientWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClientHTTPResponse, error)

	// CreateClientWithResponse performs a POST /create-client (the `CreateClient` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	CreateClientWithResponse(ctx context.Context, body CreateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClientHTTPResponse, error)

	// CreateKeysetWithBodyWithResponse Non-generic production entry point for `create`, enabling `routes!()` and
	// `#[utoipa::path]` which don't support turbofish on generic functions.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /create-keyset (the `CreateKeyset` operationId).
	CreateKeysetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateKeysetHTTPResponse, error)

	// CreateKeysetWithResponse Non-generic production entry point for `create`, enabling `routes!()` and
	// `#[utoipa::path]` which don't support turbofish on generic functions.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /create-keyset (the `CreateKeyset` operationId).
	CreateKeysetWithResponse(ctx context.Context, body CreateKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateKeysetHTTPResponse, error)

	// DeleteClientWithBodyWithResponse performs a POST /delete-client (the `DeleteClient` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	DeleteClientWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteClientHTTPResponse, error)

	// DeleteClientWithResponse performs a POST /delete-client (the `DeleteClient` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	DeleteClientWithResponse(ctx context.Context, body DeleteClientJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteClientHTTPResponse, error)

	// DisableKeysetWithBodyWithResponse performs a POST /disable-keyset (the `DisableKeyset` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	DisableKeysetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DisableKeysetHTTPResponse, error)

	// DisableKeysetWithResponse performs a POST /disable-keyset (the `DisableKeyset` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	DisableKeysetWithResponse(ctx context.Context, body DisableKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*DisableKeysetHTTPResponse, error)

	// EnableKeysetWithBodyWithResponse performs a POST /enable-keyset (the `EnableKeyset` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	EnableKeysetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnableKeysetHTTPResponse, error)

	// EnableKeysetWithResponse performs a POST /enable-keyset (the `EnableKeyset` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	EnableKeysetWithResponse(ctx context.Context, body EnableKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*EnableKeysetHTTPResponse, error)

	// GrantKeysetWithBodyWithResponse performs a POST /grant-keyset (the `GrantKeyset` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	GrantKeysetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GrantKeysetHTTPResponse, error)

	// GrantKeysetWithResponse performs a POST /grant-keyset (the `GrantKeyset` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	GrantKeysetWithResponse(ctx context.Context, body GrantKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*GrantKeysetHTTPResponse, error)

	// ListClientsWithBodyWithResponse performs a POST /list-clients (the `ListClients` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	ListClientsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListClientsHTTPResponse, error)

	// ListClientsWithResponse performs a POST /list-clients (the `ListClients` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	ListClientsWithResponse(ctx context.Context, body ListClientsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListClientsHTTPResponse, error)

	// ListKeysetsWithBodyWithResponse performs a POST /list-keysets (the `ListKeysets` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	ListKeysetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListKeysetsHTTPResponse, error)

	// ListKeysetsWithResponse performs a POST /list-keysets (the `ListKeysets` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	ListKeysetsWithResponse(ctx context.Context, body ListKeysetsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListKeysetsHTTPResponse, error)

	// ModifyKeysetWithBodyWithResponse performs a POST /modify-keyset (the `ModifyKeyset` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	ModifyKeysetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyKeysetHTTPResponse, error)

	// ModifyKeysetWithResponse performs a POST /modify-keyset (the `ModifyKeyset` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	ModifyKeysetWithResponse(ctx context.Context, body ModifyKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyKeysetHTTPResponse, error)

	// RevokeKeysetWithBodyWithResponse performs a POST /revoke-keyset (the `RevokeKeyset` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	RevokeKeysetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RevokeKeysetHTTPResponse, error)

	// RevokeKeysetWithResponse performs a POST /revoke-keyset (the `RevokeKeyset` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	RevokeKeysetWithResponse(ctx context.Context, body RevokeKeysetJSONRequestBody, reqEditors ...RequestEditorFn) (*RevokeKeysetHTTPResponse, error)
}

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

type CreateClientHTTPResponse

type CreateClientHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CreateClientResponse
}

func ParseCreateClientHTTPResponse

func ParseCreateClientHTTPResponse(rsp *http.Response) (*CreateClientHTTPResponse, error)

ParseCreateClientHTTPResponse parses an HTTP response from a CreateClientWithResponse call

func (CreateClientHTTPResponse) ContentType

func (r CreateClientHTTPResponse) ContentType() string

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

func (CreateClientHTTPResponse) GetBody

func (r CreateClientHTTPResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateClientHTTPResponse) GetJSON200

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

func (CreateClientHTTPResponse) Status

func (r CreateClientHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (CreateClientHTTPResponse) StatusCode

func (r CreateClientHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateClientJSONRequestBody

type CreateClientJSONRequestBody = CreateClientRequest

CreateClientJSONRequestBody defines body for CreateClient for application/json ContentType.

type CreateClientOptions

type CreateClientOptions struct {
	// Description A description of the client.
	Description string `json:"description"`

	// KeysetID The keyset to associate the client with. Accepts a UUID or a name string.
	// If omitted, the workspace's default keyset is used.
	KeysetID string `json:"keyset_id,omitempty"`

	// Name A human-readable name for the client.
	Name string `json:"name"`
}

CreateClientOptions Request message to create a new client with the given name and description.

If `keyset_id` is omitted, the workspace's default keyset is used (created if necessary).

Requires the `client:create` scope. Response is a CreateClientResponse.

type CreateClientRequest

type CreateClientRequest = CreateClientOptions

CreateClientRequest Request message to create a new client with the given name and description.

If `keyset_id` is omitted, the workspace's default keyset is used (created if necessary).

Requires the `client:create` scope. Response is a CreateClientResponse.

type CreateClientResponse

type CreateClientResponse struct {
	// ClientKey Base64-encoded 32-byte key material for the client. Store this securely.
	ClientKey string `json:"client_key"`

	// DatasetID The ID of the keyset this client is associated with.
	DatasetID string `json:"dataset_id"`

	// Description The description of the client.
	Description *string `json:"description"`

	// ID The unique ID of the newly created client.
	ID string `json:"id"`

	// Name The name of the client.
	Name string `json:"name"`
}

CreateClientResponse Response message to a CreateClientRequest.

Contains the `client_id` and the `client_key`, the latter being a base64 encoded 32 byte key. The `client_key` should be considered sensitive and should be stored securely.

type CreateClientSpec

type CreateClientSpec = CreateKeysetClientOptions

CreateClientSpec Specification for creating a client alongside a keyset.

type CreateKeysetClientOptions

type CreateKeysetClientOptions struct {
	// ClientType The type of client to create.
	ClientType ClientType `json:"client_type"`

	// Name A human-readable name for the client.
	Name string `json:"name"`
}

CreateKeysetClientOptions Specification for creating a client alongside a keyset.

type CreateKeysetHTTPResponse

type CreateKeysetHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CreateKeysetResponse
}

func ParseCreateKeysetHTTPResponse

func ParseCreateKeysetHTTPResponse(rsp *http.Response) (*CreateKeysetHTTPResponse, error)

ParseCreateKeysetHTTPResponse parses an HTTP response from a CreateKeysetWithResponse call

func (CreateKeysetHTTPResponse) ContentType

func (r CreateKeysetHTTPResponse) ContentType() string

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

func (CreateKeysetHTTPResponse) GetBody

func (r CreateKeysetHTTPResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateKeysetHTTPResponse) GetJSON200

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

func (CreateKeysetHTTPResponse) Status

func (r CreateKeysetHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (CreateKeysetHTTPResponse) StatusCode

func (r CreateKeysetHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateKeysetJSONRequestBody

type CreateKeysetJSONRequestBody = CreateKeysetRequest

CreateKeysetJSONRequestBody defines body for CreateKeyset for application/json ContentType.

type CreateKeysetOptions

type CreateKeysetOptions struct {
	Client *CreateClientSpec `json:"client,omitempty"`

	// Description A description of the keyset.
	Description string `json:"description"`

	// Name A human-readable name for the keyset.
	// Must be 1–64 characters using only `A-Z a-z 0-9 _ - /`. The name `default` is reserved.
	Name string `json:"name"`
}

CreateKeysetOptions Request message to create a new Keyset with the given name and description.

Requires the `dataset:create` scope.

type CreateKeysetRequest

type CreateKeysetRequest = CreateKeysetOptions

CreateKeysetRequest Request message to create a new Keyset with the given name and description.

Requires the `dataset:create` scope.

type CreateKeysetResponse

type CreateKeysetResponse struct {
	Client      *CreatedClient `json:"client,omitempty"`
	Description *string        `json:"description"`
	ID          string         `json:"id"`
	IsDefault   *bool          `json:"is_default,omitempty"`
	IsDisabled  *bool          `json:"is_disabled"`
	Name        string         `json:"name"`
}

CreateKeysetResponse Response to a CreateKeysetRequest.

Contains the created keyset and optionally a client if one was requested.

type CreatedClient

type CreatedClient struct {
	// ClientKey Base64-encoded 32-byte key material for the client. Store this securely.
	ClientKey string `json:"client_key"`
	ID        string `json:"id"`
}

CreatedClient Details of a client created as part of a CreateKeysetRequest.

type DeleteClientHTTPResponse

type DeleteClientHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DeleteClientResponse
}

func ParseDeleteClientHTTPResponse

func ParseDeleteClientHTTPResponse(rsp *http.Response) (*DeleteClientHTTPResponse, error)

ParseDeleteClientHTTPResponse parses an HTTP response from a DeleteClientWithResponse call

func (DeleteClientHTTPResponse) ContentType

func (r DeleteClientHTTPResponse) ContentType() string

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

func (DeleteClientHTTPResponse) GetBody

func (r DeleteClientHTTPResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteClientHTTPResponse) GetJSON200

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

func (DeleteClientHTTPResponse) Status

func (r DeleteClientHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteClientHTTPResponse) StatusCode

func (r DeleteClientHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteClientJSONRequestBody

type DeleteClientJSONRequestBody = DeleteClientRequest

DeleteClientJSONRequestBody defines body for DeleteClient for application/json ContentType.

type DeleteClientRequest

type DeleteClientRequest struct {
	ClientID string `json:"client_id"`
}

DeleteClientRequest Request message to delete a client and all associated authority keys.

Requires the `client:revoke` scope. Response is an DeleteClientResponse.

type DeleteClientResponse

type DeleteClientResponse = map[string]interface{}

DeleteClientResponse defines model for DeleteClientResponse.

type DisableKeysetHTTPResponse

type DisableKeysetHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EmptyResponse
}

func ParseDisableKeysetHTTPResponse

func ParseDisableKeysetHTTPResponse(rsp *http.Response) (*DisableKeysetHTTPResponse, error)

ParseDisableKeysetHTTPResponse parses an HTTP response from a DisableKeysetWithResponse call

func (DisableKeysetHTTPResponse) ContentType

func (r DisableKeysetHTTPResponse) ContentType() string

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

func (DisableKeysetHTTPResponse) GetBody

func (r DisableKeysetHTTPResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DisableKeysetHTTPResponse) GetJSON200

func (r DisableKeysetHTTPResponse) GetJSON200() *EmptyResponse

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

func (DisableKeysetHTTPResponse) Status

func (r DisableKeysetHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (DisableKeysetHTTPResponse) StatusCode

func (r DisableKeysetHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DisableKeysetJSONRequestBody

type DisableKeysetJSONRequestBody = DisableKeysetRequest

DisableKeysetJSONRequestBody defines body for DisableKeyset for application/json ContentType.

type DisableKeysetRequest

type DisableKeysetRequest struct {
	// KeysetID The keyset to disable. Accepts a UUID or a name string.
	KeysetID string `json:"keyset_id"`
}

DisableKeysetRequest Request message to disable a keyset. Requires the `dataset:disable` scope. Response is an EmptyResponse.

type EmptyResponse

type EmptyResponse = map[string]interface{}

EmptyResponse Represents an empty response for requests that don't return any data.

type EnableKeysetHTTPResponse

type EnableKeysetHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EmptyResponse
}

func ParseEnableKeysetHTTPResponse

func ParseEnableKeysetHTTPResponse(rsp *http.Response) (*EnableKeysetHTTPResponse, error)

ParseEnableKeysetHTTPResponse parses an HTTP response from a EnableKeysetWithResponse call

func (EnableKeysetHTTPResponse) ContentType

func (r EnableKeysetHTTPResponse) ContentType() string

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

func (EnableKeysetHTTPResponse) GetBody

func (r EnableKeysetHTTPResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (EnableKeysetHTTPResponse) GetJSON200

func (r EnableKeysetHTTPResponse) GetJSON200() *EmptyResponse

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

func (EnableKeysetHTTPResponse) Status

func (r EnableKeysetHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (EnableKeysetHTTPResponse) StatusCode

func (r EnableKeysetHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EnableKeysetJSONRequestBody

type EnableKeysetJSONRequestBody = EnableKeysetRequest

EnableKeysetJSONRequestBody defines body for EnableKeyset for application/json ContentType.

type EnableKeysetRequest

type EnableKeysetRequest struct {
	// KeysetID The keyset to enable. Accepts a UUID or a name string.
	KeysetID string `json:"keyset_id"`
}

EnableKeysetRequest Request message to enable a keyset that has was previously disabled. Requires the `dataset:enable` scope. Response is an EmptyResponse.

type GrantKeysetHTTPResponse

type GrantKeysetHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EmptyResponse
}

func ParseGrantKeysetHTTPResponse

func ParseGrantKeysetHTTPResponse(rsp *http.Response) (*GrantKeysetHTTPResponse, error)

ParseGrantKeysetHTTPResponse parses an HTTP response from a GrantKeysetWithResponse call

func (GrantKeysetHTTPResponse) ContentType

func (r GrantKeysetHTTPResponse) ContentType() string

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

func (GrantKeysetHTTPResponse) GetBody

func (r GrantKeysetHTTPResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GrantKeysetHTTPResponse) GetJSON200

func (r GrantKeysetHTTPResponse) GetJSON200() *EmptyResponse

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

func (GrantKeysetHTTPResponse) Status

func (r GrantKeysetHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (GrantKeysetHTTPResponse) StatusCode

func (r GrantKeysetHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GrantKeysetJSONRequestBody

type GrantKeysetJSONRequestBody = GrantKeysetRequest

GrantKeysetJSONRequestBody defines body for GrantKeyset for application/json ContentType.

type GrantKeysetRequest

type GrantKeysetRequest struct {
	ClientID string `json:"client_id"`

	// KeysetID The keyset to grant access to. Accepts a UUID or a name string.
	KeysetID string `json:"keyset_id"`
}

GrantKeysetRequest Request message to grant a client access to a keyset. Requires the `dataset:grant` scope.

Response is an EmptyResponse.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IdentifiedBy

type IdentifiedBy struct {
	// contains filtered or unexported fields
}

IdentifiedBy A UUID or textual name that can uniquely identify a resource. Whereas a UUID is a global identifier, `name` is not implied to be *globally* unique, but unique within scope implied scope: e.g. a workspace.

func (IdentifiedBy) AsIdentifiedBy0

func (t IdentifiedBy) AsIdentifiedBy0() (IdentifiedBy0, error)

AsIdentifiedBy0 returns the union data inside the IdentifiedBy as a IdentifiedBy0

func (IdentifiedBy) AsIdentifiedBy1

func (t IdentifiedBy) AsIdentifiedBy1() (IdentifiedBy1, error)

AsIdentifiedBy1 returns the union data inside the IdentifiedBy as a IdentifiedBy1

func (*IdentifiedBy) FromIdentifiedBy0

func (t *IdentifiedBy) FromIdentifiedBy0(v IdentifiedBy0) error

FromIdentifiedBy0 overwrites any union data inside the IdentifiedBy as the provided IdentifiedBy0

func (*IdentifiedBy) FromIdentifiedBy1

func (t *IdentifiedBy) FromIdentifiedBy1(v IdentifiedBy1) error

FromIdentifiedBy1 overwrites any union data inside the IdentifiedBy as the provided IdentifiedBy1

func (IdentifiedBy) MarshalJSON

func (t IdentifiedBy) MarshalJSON() ([]byte, error)

func (*IdentifiedBy) MergeIdentifiedBy0

func (t *IdentifiedBy) MergeIdentifiedBy0(v IdentifiedBy0) error

MergeIdentifiedBy0 performs a merge with any union data inside the IdentifiedBy, using the provided IdentifiedBy0

func (*IdentifiedBy) MergeIdentifiedBy1

func (t *IdentifiedBy) MergeIdentifiedBy1(v IdentifiedBy1) error

MergeIdentifiedBy1 performs a merge with any union data inside the IdentifiedBy, using the provided IdentifiedBy1

func (*IdentifiedBy) UnmarshalJSON

func (t *IdentifiedBy) UnmarshalJSON(b []byte) error

type IdentifiedBy0

type IdentifiedBy0 struct {
	// UUID A UUID that uniquely identifies a resource.
	UUID string `json:"Uuid"`
}

IdentifiedBy0 A UUID that uniquely identifies a resource.

type IdentifiedBy1

type IdentifiedBy1 struct {
	Name Name `json:"Name"`
}

IdentifiedBy1 A name that uniquely identifies a resource within an implied scope, e.g. a workspace.

type Keyset

type Keyset struct {
	Description *string `json:"description"`
	ID          string  `json:"id"`
	IsDefault   *bool   `json:"is_default,omitempty"`
	IsDisabled  *bool   `json:"is_disabled"`
	Name        string  `json:"name"`
}

Keyset Struct representing a keyset. This is the response to a CreateKeysetRequest and a in a vector in the response to a ListKeysetRequest.

type KeysetClient

type KeysetClient struct {
	CreatedBy   *string `json:"created_by,omitempty"`
	Description *string `json:"description"`
	ID          string  `json:"id"`

	// KeysetID Struct representing the keyset ids associated with a client
	// which could be a single keyset or multiple keysets.
	KeysetID ClientKeysetID `json:"keyset_id"`
	Name     string         `json:"name"`
}

KeysetClient Response type for a ListClientRequest.

type ListClientRequest

type ListClientRequest struct {
	KeysetID *IdentifiedBy `json:"keyset_id,omitempty"`
}

ListClientRequest Request message to list clients.

If `keyset_id` is provided, only clients granted access to that keyset are returned; otherwise all clients in the workspace are returned.

Requires the `client:list` scope. Response is a vector of [KeysetClient]s.

type ListClientsHTTPResponse

type ListClientsHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]KeysetClient
}

func ParseListClientsHTTPResponse

func ParseListClientsHTTPResponse(rsp *http.Response) (*ListClientsHTTPResponse, error)

ParseListClientsHTTPResponse parses an HTTP response from a ListClientsWithResponse call

func (ListClientsHTTPResponse) ContentType

func (r ListClientsHTTPResponse) ContentType() string

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

func (ListClientsHTTPResponse) GetBody

func (r ListClientsHTTPResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListClientsHTTPResponse) GetJSON200

func (r ListClientsHTTPResponse) GetJSON200() *[]KeysetClient

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

func (ListClientsHTTPResponse) Status

func (r ListClientsHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (ListClientsHTTPResponse) StatusCode

func (r ListClientsHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListClientsJSONBody

type ListClientsJSONBody = ListClientRequest

ListClientsJSONBody defines parameters for ListClients.

type ListClientsJSONRequestBody

type ListClientsJSONRequestBody = ListClientsJSONBody

ListClientsJSONRequestBody defines body for ListClients for application/json ContentType.

type ListKeysetRequest

type ListKeysetRequest = ListKeysetsOptions

ListKeysetRequest Request message to list all [Keyset]s.

Requires the `dataset:list` scope. Response is a vector of [Keyset]s.

type ListKeysetsHTTPResponse

type ListKeysetsHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Keyset
}

func ParseListKeysetsHTTPResponse

func ParseListKeysetsHTTPResponse(rsp *http.Response) (*ListKeysetsHTTPResponse, error)

ParseListKeysetsHTTPResponse parses an HTTP response from a ListKeysetsWithResponse call

func (ListKeysetsHTTPResponse) ContentType

func (r ListKeysetsHTTPResponse) ContentType() string

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

func (ListKeysetsHTTPResponse) GetBody

func (r ListKeysetsHTTPResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListKeysetsHTTPResponse) GetJSON200

func (r ListKeysetsHTTPResponse) GetJSON200() *[]Keyset

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

func (ListKeysetsHTTPResponse) Status

func (r ListKeysetsHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (ListKeysetsHTTPResponse) StatusCode

func (r ListKeysetsHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListKeysetsJSONRequestBody

type ListKeysetsJSONRequestBody = ListKeysetRequest

ListKeysetsJSONRequestBody defines body for ListKeysets for application/json ContentType.

type ListKeysetsOptions

type ListKeysetsOptions struct {
	ShowDisabled bool `json:"show_disabled,omitempty"`
}

ListKeysetsOptions Request message to list all [Keyset]s.

Requires the `dataset:list` scope. Response is a vector of [Keyset]s.

type ModifyKeysetHTTPResponse

type ModifyKeysetHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EmptyResponse
}

func ParseModifyKeysetHTTPResponse

func ParseModifyKeysetHTTPResponse(rsp *http.Response) (*ModifyKeysetHTTPResponse, error)

ParseModifyKeysetHTTPResponse parses an HTTP response from a ModifyKeysetWithResponse call

func (ModifyKeysetHTTPResponse) ContentType

func (r ModifyKeysetHTTPResponse) ContentType() string

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

func (ModifyKeysetHTTPResponse) GetBody

func (r ModifyKeysetHTTPResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ModifyKeysetHTTPResponse) GetJSON200

func (r ModifyKeysetHTTPResponse) GetJSON200() *EmptyResponse

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

func (ModifyKeysetHTTPResponse) Status

func (r ModifyKeysetHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (ModifyKeysetHTTPResponse) StatusCode

func (r ModifyKeysetHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ModifyKeysetJSONRequestBody

type ModifyKeysetJSONRequestBody = ModifyKeysetRequest

ModifyKeysetJSONRequestBody defines body for ModifyKeyset for application/json ContentType.

type ModifyKeysetRequest

type ModifyKeysetRequest struct {
	// Description Optional new description for the keyset.
	Description *string `json:"description,omitempty"`

	// KeysetID The keyset to modify. Accepts a UUID or a name string.
	KeysetID string `json:"keyset_id"`

	// Name Optional new name for the keyset.
	Name *string `json:"name,omitempty"`
}

ModifyKeysetRequest Request message to modify a keyset with the given keyset_id. `name` and `description` are optional and will be updated if provided.

Requires the `dataset:modify` scope. Response is an EmptyResponse.

type Name

type Name = string

Name defines model for Name.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type RevokeKeysetHTTPResponse

type RevokeKeysetHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EmptyResponse
}

func ParseRevokeKeysetHTTPResponse

func ParseRevokeKeysetHTTPResponse(rsp *http.Response) (*RevokeKeysetHTTPResponse, error)

ParseRevokeKeysetHTTPResponse parses an HTTP response from a RevokeKeysetWithResponse call

func (RevokeKeysetHTTPResponse) ContentType

func (r RevokeKeysetHTTPResponse) ContentType() string

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

func (RevokeKeysetHTTPResponse) GetBody

func (r RevokeKeysetHTTPResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RevokeKeysetHTTPResponse) GetJSON200

func (r RevokeKeysetHTTPResponse) GetJSON200() *EmptyResponse

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

func (RevokeKeysetHTTPResponse) Status

func (r RevokeKeysetHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (RevokeKeysetHTTPResponse) StatusCode

func (r RevokeKeysetHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokeKeysetJSONRequestBody

type RevokeKeysetJSONRequestBody = RevokeKeysetRequest

RevokeKeysetJSONRequestBody defines body for RevokeKeyset for application/json ContentType.

type RevokeKeysetRequest

type RevokeKeysetRequest struct {
	ClientID string `json:"client_id"`

	// KeysetID The keyset to revoke access from. Accepts a UUID or a name string.
	KeysetID string `json:"keyset_id"`
}

RevokeKeysetRequest Request message to revoke a client's access to a keyset. Requires the `dataset:revoke` scope. Response is an EmptyResponse.

Jump to

Keyboard shortcuts

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