generated

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

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

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

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

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

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

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

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

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

Index

Constants

View Source
const (
	Oauth2AuthenticationScopes = "oauth2Authentication.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func NewDeleteApiV1OrganizationsOrganizationGroupsGroupidRequest added in v0.1.3

func NewDeleteApiV1OrganizationsOrganizationGroupsGroupidRequest(server string, organization OrganizationParameter, groupid GroupidParameter) (*http.Request, error)

NewDeleteApiV1OrganizationsOrganizationGroupsGroupidRequest generates requests for DeleteApiV1OrganizationsOrganizationGroupsGroupid

func NewDeleteApiV1OrganizationsOrganizationProjectsProjectRequest added in v0.2.3

func NewDeleteApiV1OrganizationsOrganizationProjectsProjectRequest(server string, organization OrganizationParameter, project ProjectParameter) (*http.Request, error)

NewDeleteApiV1OrganizationsOrganizationProjectsProjectRequest generates requests for DeleteApiV1OrganizationsOrganizationProjectsProject

func NewGetApiV1OrganizationsOrganizationAclRequest added in v0.1.23

func NewGetApiV1OrganizationsOrganizationAclRequest(server string, organization OrganizationParameter) (*http.Request, error)

NewGetApiV1OrganizationsOrganizationAclRequest generates requests for GetApiV1OrganizationsOrganizationAcl

func NewGetApiV1OrganizationsOrganizationGroupsGroupidRequest added in v0.1.20

func NewGetApiV1OrganizationsOrganizationGroupsGroupidRequest(server string, organization OrganizationParameter, groupid GroupidParameter) (*http.Request, error)

NewGetApiV1OrganizationsOrganizationGroupsGroupidRequest generates requests for GetApiV1OrganizationsOrganizationGroupsGroupid

func NewGetApiV1OrganizationsOrganizationGroupsRequest added in v0.1.3

func NewGetApiV1OrganizationsOrganizationGroupsRequest(server string, organization OrganizationParameter) (*http.Request, error)

NewGetApiV1OrganizationsOrganizationGroupsRequest generates requests for GetApiV1OrganizationsOrganizationGroups

func NewGetApiV1OrganizationsOrganizationOauth2ProvidersRequest added in v0.1.18

func NewGetApiV1OrganizationsOrganizationOauth2ProvidersRequest(server string, organization OrganizationParameter) (*http.Request, error)

NewGetApiV1OrganizationsOrganizationOauth2ProvidersRequest generates requests for GetApiV1OrganizationsOrganizationOauth2Providers

func NewGetApiV1OrganizationsOrganizationProjectsRequest added in v0.2.3

func NewGetApiV1OrganizationsOrganizationProjectsRequest(server string, organization OrganizationParameter) (*http.Request, error)

NewGetApiV1OrganizationsOrganizationProjectsRequest generates requests for GetApiV1OrganizationsOrganizationProjects

func NewGetApiV1OrganizationsOrganizationRolesRequest added in v0.1.24

func NewGetApiV1OrganizationsOrganizationRolesRequest(server string, organization OrganizationParameter) (*http.Request, error)

NewGetApiV1OrganizationsOrganizationRolesRequest generates requests for GetApiV1OrganizationsOrganizationRoles

func NewGetApiV1OrganizationsRequest added in v0.1.3

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

NewGetApiV1OrganizationsRequest generates requests for GetApiV1Organizations

func NewGetOauth2V2AuthorizationRequest

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

NewGetOauth2V2AuthorizationRequest generates requests for GetOauth2V2Authorization

func NewGetOauth2V2JwksRequest

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

NewGetOauth2V2JwksRequest generates requests for GetOauth2V2Jwks

func NewGetOauth2V2UserinfoRequest added in v0.1.14

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

NewGetOauth2V2UserinfoRequest generates requests for GetOauth2V2Userinfo

func NewGetOidcCallbackRequest

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

NewGetOidcCallbackRequest generates requests for GetOidcCallback

func NewGetWellKnownOpenidConfigurationRequest

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

NewGetWellKnownOpenidConfigurationRequest generates requests for GetWellKnownOpenidConfiguration

func NewPostApiV1OrganizationsOrganizationGroupsRequest added in v0.1.3

func NewPostApiV1OrganizationsOrganizationGroupsRequest(server string, organization OrganizationParameter, body PostApiV1OrganizationsOrganizationGroupsJSONRequestBody) (*http.Request, error)

NewPostApiV1OrganizationsOrganizationGroupsRequest calls the generic PostApiV1OrganizationsOrganizationGroups builder with application/json body

func NewPostApiV1OrganizationsOrganizationGroupsRequestWithBody added in v0.1.3

func NewPostApiV1OrganizationsOrganizationGroupsRequestWithBody(server string, organization OrganizationParameter, contentType string, body io.Reader) (*http.Request, error)

NewPostApiV1OrganizationsOrganizationGroupsRequestWithBody generates requests for PostApiV1OrganizationsOrganizationGroups with any type of body

func NewPostApiV1OrganizationsOrganizationProjectsRequest added in v0.2.3

func NewPostApiV1OrganizationsOrganizationProjectsRequest(server string, organization OrganizationParameter, body PostApiV1OrganizationsOrganizationProjectsJSONRequestBody) (*http.Request, error)

NewPostApiV1OrganizationsOrganizationProjectsRequest calls the generic PostApiV1OrganizationsOrganizationProjects builder with application/json body

func NewPostApiV1OrganizationsOrganizationProjectsRequestWithBody added in v0.2.3

func NewPostApiV1OrganizationsOrganizationProjectsRequestWithBody(server string, organization OrganizationParameter, contentType string, body io.Reader) (*http.Request, error)

NewPostApiV1OrganizationsOrganizationProjectsRequestWithBody generates requests for PostApiV1OrganizationsOrganizationProjects with any type of body

func NewPostApiV1OrganizationsRequest added in v0.1.13

func NewPostApiV1OrganizationsRequest(server string, body PostApiV1OrganizationsJSONRequestBody) (*http.Request, error)

NewPostApiV1OrganizationsRequest calls the generic PostApiV1Organizations builder with application/json body

func NewPostApiV1OrganizationsRequestWithBody added in v0.1.13

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

NewPostApiV1OrganizationsRequestWithBody generates requests for PostApiV1Organizations with any type of body

func NewPostOauth2V2LoginRequestWithBody

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

NewPostOauth2V2LoginRequestWithBody generates requests for PostOauth2V2Login with any type of body

func NewPostOauth2V2LoginRequestWithFormdataBody

func NewPostOauth2V2LoginRequestWithFormdataBody(server string, body PostOauth2V2LoginFormdataRequestBody) (*http.Request, error)

NewPostOauth2V2LoginRequestWithFormdataBody calls the generic PostOauth2V2Login builder with application/x-www-form-urlencoded body

func NewPostOauth2V2TokenRequestWithBody

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

NewPostOauth2V2TokenRequestWithBody generates requests for PostOauth2V2Token with any type of body

func NewPostOauth2V2TokenRequestWithFormdataBody

func NewPostOauth2V2TokenRequestWithFormdataBody(server string, body PostOauth2V2TokenFormdataRequestBody) (*http.Request, error)

NewPostOauth2V2TokenRequestWithFormdataBody calls the generic PostOauth2V2Token builder with application/x-www-form-urlencoded body

func NewPutApiV1OrganizationsOrganizationGroupsGroupidRequest added in v0.1.3

func NewPutApiV1OrganizationsOrganizationGroupsGroupidRequest(server string, organization OrganizationParameter, groupid GroupidParameter, body PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody) (*http.Request, error)

NewPutApiV1OrganizationsOrganizationGroupsGroupidRequest calls the generic PutApiV1OrganizationsOrganizationGroupsGroupid builder with application/json body

func NewPutApiV1OrganizationsOrganizationGroupsGroupidRequestWithBody added in v0.1.3

func NewPutApiV1OrganizationsOrganizationGroupsGroupidRequestWithBody(server string, organization OrganizationParameter, groupid GroupidParameter, contentType string, body io.Reader) (*http.Request, error)

NewPutApiV1OrganizationsOrganizationGroupsGroupidRequestWithBody generates requests for PutApiV1OrganizationsOrganizationGroupsGroupid with any type of body

func NewPutApiV1OrganizationsOrganizationRequest added in v0.1.3

func NewPutApiV1OrganizationsOrganizationRequest(server string, organization OrganizationParameter, body PutApiV1OrganizationsOrganizationJSONRequestBody) (*http.Request, error)

NewPutApiV1OrganizationsOrganizationRequest calls the generic PutApiV1OrganizationsOrganization builder with application/json body

func NewPutApiV1OrganizationsOrganizationRequestWithBody added in v0.1.3

func NewPutApiV1OrganizationsOrganizationRequestWithBody(server string, organization OrganizationParameter, contentType string, body io.Reader) (*http.Request, error)

NewPutApiV1OrganizationsOrganizationRequestWithBody generates requests for PutApiV1OrganizationsOrganization with any type of body

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type Acl added in v0.1.23

type Acl struct {
	// IsSuperAdmin Indicates the user can do all the things.
	IsSuperAdmin *bool `json:"isSuperAdmin,omitempty"`

	// Scopes A list of access control scopes.
	Scopes *AclScopes `json:"scopes,omitempty"`
}

Acl A list of access control scopes and permissions.

type AclPermissions added in v0.1.23

type AclPermissions = []string

AclPermissions A list of access control permissions.

type AclResponse added in v0.1.23

type AclResponse = Acl

AclResponse A list of access control scopes and permissions.

type AclScope added in v0.1.23

type AclScope struct {
	// Name The scope name
	Name string `json:"name"`

	// Permissions A list of access control permissions.
	Permissions AclPermissions `json:"permissions"`
}

AclScope An access control scope.

type AclScopes added in v0.1.23

type AclScopes = []AclScope

AclScopes A list of access control scopes.

type AuthMethod

type AuthMethod string

AuthMethod Supported authentication methods.

const (
	ClientSecretBasic AuthMethod = "client_secret_basic"
	ClientSecretPost  AuthMethod = "client_secret_post"
)

Defines values for AuthMethod.

type BadRequestResponse

type BadRequestResponse = Oauth2Error

BadRequestResponse Generic error message.

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL          string
	BaseRouter       chi.Router
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type Claim

type Claim string

Claim Supported claims.

const (
	ClaimAud           Claim = "aud"
	ClaimEmail         Claim = "email"
	ClaimEmailVerified Claim = "email_verified"
	ClaimExp           Claim = "exp"
	ClaimFamilyName    Claim = "family_name"
	ClaimGivenName     Claim = "given_name"
	ClaimIat           Claim = "iat"
	ClaimIss           Claim = "iss"
	ClaimLocale        Claim = "locale"
	ClaimName          Claim = "name"
	ClaimPicture       Claim = "picture"
	ClaimSub           Claim = "sub"
)

Defines values for Claim.

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) DeleteApiV1OrganizationsOrganizationGroupsGroupid added in v0.1.3

func (c *Client) DeleteApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteApiV1OrganizationsOrganizationProjectsProject added in v0.2.3

func (c *Client) DeleteApiV1OrganizationsOrganizationProjectsProject(ctx context.Context, organization OrganizationParameter, project ProjectParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetApiV1Organizations added in v0.1.3

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

func (*Client) GetApiV1OrganizationsOrganizationAcl added in v0.1.23

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

func (*Client) GetApiV1OrganizationsOrganizationGroups added in v0.1.3

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

func (*Client) GetApiV1OrganizationsOrganizationGroupsGroupid added in v0.1.20

func (c *Client) GetApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetApiV1OrganizationsOrganizationOauth2Providers added in v0.1.18

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

func (*Client) GetApiV1OrganizationsOrganizationProjects added in v0.2.3

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

func (*Client) GetApiV1OrganizationsOrganizationRoles added in v0.1.24

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

func (*Client) GetOauth2V2Authorization

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

func (*Client) GetOauth2V2Jwks

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

func (*Client) GetOauth2V2Userinfo added in v0.1.14

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

func (*Client) GetOidcCallback

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

func (*Client) GetWellKnownOpenidConfiguration

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

func (*Client) PostApiV1Organizations added in v0.1.13

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

func (*Client) PostApiV1OrganizationsOrganizationGroups added in v0.1.3

func (c *Client) PostApiV1OrganizationsOrganizationGroups(ctx context.Context, organization OrganizationParameter, body PostApiV1OrganizationsOrganizationGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostApiV1OrganizationsOrganizationGroupsWithBody added in v0.1.3

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

func (*Client) PostApiV1OrganizationsOrganizationProjects added in v0.2.3

func (c *Client) PostApiV1OrganizationsOrganizationProjects(ctx context.Context, organization OrganizationParameter, body PostApiV1OrganizationsOrganizationProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostApiV1OrganizationsOrganizationProjectsWithBody added in v0.2.3

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

func (*Client) PostApiV1OrganizationsWithBody added in v0.1.13

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

func (*Client) PostOauth2V2LoginWithBody

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

func (*Client) PostOauth2V2LoginWithFormdataBody

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

func (*Client) PostOauth2V2TokenWithBody

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

func (*Client) PostOauth2V2TokenWithFormdataBody

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

func (*Client) PutApiV1OrganizationsOrganization added in v0.1.3

func (c *Client) PutApiV1OrganizationsOrganization(ctx context.Context, organization OrganizationParameter, body PutApiV1OrganizationsOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutApiV1OrganizationsOrganizationGroupsGroupid added in v0.1.3

func (c *Client) PutApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, body PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutApiV1OrganizationsOrganizationGroupsGroupidWithBody added in v0.1.3

func (c *Client) PutApiV1OrganizationsOrganizationGroupsGroupidWithBody(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutApiV1OrganizationsOrganizationWithBody added in v0.1.3

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

type ClientInterface

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

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

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

	PostApiV1Organizations(ctx context.Context, body PostApiV1OrganizationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PutApiV1OrganizationsOrganization(ctx context.Context, organization OrganizationParameter, body PutApiV1OrganizationsOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApiV1OrganizationsOrganizationAcl request
	GetApiV1OrganizationsOrganizationAcl(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApiV1OrganizationsOrganizationGroups request
	GetApiV1OrganizationsOrganizationGroups(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostApiV1OrganizationsOrganizationGroups(ctx context.Context, organization OrganizationParameter, body PostApiV1OrganizationsOrganizationGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteApiV1OrganizationsOrganizationGroupsGroupid request
	DeleteApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApiV1OrganizationsOrganizationGroupsGroupid request
	GetApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutApiV1OrganizationsOrganizationGroupsGroupid request with any body
	PutApiV1OrganizationsOrganizationGroupsGroupidWithBody(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutApiV1OrganizationsOrganizationGroupsGroupid(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, body PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApiV1OrganizationsOrganizationOauth2Providers request
	GetApiV1OrganizationsOrganizationOauth2Providers(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApiV1OrganizationsOrganizationProjects request
	GetApiV1OrganizationsOrganizationProjects(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostApiV1OrganizationsOrganizationProjects(ctx context.Context, organization OrganizationParameter, body PostApiV1OrganizationsOrganizationProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteApiV1OrganizationsOrganizationProjectsProject request
	DeleteApiV1OrganizationsOrganizationProjectsProject(ctx context.Context, organization OrganizationParameter, project ProjectParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApiV1OrganizationsOrganizationRoles request
	GetApiV1OrganizationsOrganizationRoles(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

	PostOauth2V2LoginWithFormdataBody(ctx context.Context, body PostOauth2V2LoginFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostOauth2V2TokenWithFormdataBody(ctx context.Context, body PostOauth2V2TokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

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

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

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

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

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

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

func (*ClientWithResponses) DeleteApiV1OrganizationsOrganizationGroupsGroupidWithResponse added in v0.1.3

func (c *ClientWithResponses) DeleteApiV1OrganizationsOrganizationGroupsGroupidWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse, error)

DeleteApiV1OrganizationsOrganizationGroupsGroupidWithResponse request returning *DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse

func (*ClientWithResponses) DeleteApiV1OrganizationsOrganizationProjectsProjectWithResponse added in v0.2.3

func (c *ClientWithResponses) DeleteApiV1OrganizationsOrganizationProjectsProjectWithResponse(ctx context.Context, organization OrganizationParameter, project ProjectParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1OrganizationsOrganizationProjectsProjectResponse, error)

DeleteApiV1OrganizationsOrganizationProjectsProjectWithResponse request returning *DeleteApiV1OrganizationsOrganizationProjectsProjectResponse

func (*ClientWithResponses) GetApiV1OrganizationsOrganizationAclWithResponse added in v0.1.23

func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationAclWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationAclResponse, error)

GetApiV1OrganizationsOrganizationAclWithResponse request returning *GetApiV1OrganizationsOrganizationAclResponse

func (*ClientWithResponses) GetApiV1OrganizationsOrganizationGroupsGroupidWithResponse added in v0.1.20

func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationGroupsGroupidWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationGroupsGroupidResponse, error)

GetApiV1OrganizationsOrganizationGroupsGroupidWithResponse request returning *GetApiV1OrganizationsOrganizationGroupsGroupidResponse

func (*ClientWithResponses) GetApiV1OrganizationsOrganizationGroupsWithResponse added in v0.1.3

func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationGroupsWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationGroupsResponse, error)

GetApiV1OrganizationsOrganizationGroupsWithResponse request returning *GetApiV1OrganizationsOrganizationGroupsResponse

func (*ClientWithResponses) GetApiV1OrganizationsOrganizationOauth2ProvidersWithResponse added in v0.1.18

func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationOauth2ProvidersWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationOauth2ProvidersResponse, error)

GetApiV1OrganizationsOrganizationOauth2ProvidersWithResponse request returning *GetApiV1OrganizationsOrganizationOauth2ProvidersResponse

func (*ClientWithResponses) GetApiV1OrganizationsOrganizationProjectsWithResponse added in v0.2.3

func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationProjectsWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationProjectsResponse, error)

GetApiV1OrganizationsOrganizationProjectsWithResponse request returning *GetApiV1OrganizationsOrganizationProjectsResponse

func (*ClientWithResponses) GetApiV1OrganizationsOrganizationRolesWithResponse added in v0.1.24

func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationRolesWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationRolesResponse, error)

GetApiV1OrganizationsOrganizationRolesWithResponse request returning *GetApiV1OrganizationsOrganizationRolesResponse

func (*ClientWithResponses) GetApiV1OrganizationsWithResponse added in v0.1.3

func (c *ClientWithResponses) GetApiV1OrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsResponse, error)

GetApiV1OrganizationsWithResponse request returning *GetApiV1OrganizationsResponse

func (*ClientWithResponses) GetOauth2V2AuthorizationWithResponse

func (c *ClientWithResponses) GetOauth2V2AuthorizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2AuthorizationResponse, error)

GetOauth2V2AuthorizationWithResponse request returning *GetOauth2V2AuthorizationResponse

func (*ClientWithResponses) GetOauth2V2JwksWithResponse

func (c *ClientWithResponses) GetOauth2V2JwksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2JwksResponse, error)

GetOauth2V2JwksWithResponse request returning *GetOauth2V2JwksResponse

func (*ClientWithResponses) GetOauth2V2UserinfoWithResponse added in v0.1.14

func (c *ClientWithResponses) GetOauth2V2UserinfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2UserinfoResponse, error)

GetOauth2V2UserinfoWithResponse request returning *GetOauth2V2UserinfoResponse

func (*ClientWithResponses) GetOidcCallbackWithResponse

func (c *ClientWithResponses) GetOidcCallbackWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOidcCallbackResponse, error)

GetOidcCallbackWithResponse request returning *GetOidcCallbackResponse

func (*ClientWithResponses) GetWellKnownOpenidConfigurationWithResponse

func (c *ClientWithResponses) GetWellKnownOpenidConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWellKnownOpenidConfigurationResponse, error)

GetWellKnownOpenidConfigurationWithResponse request returning *GetWellKnownOpenidConfigurationResponse

func (*ClientWithResponses) PostApiV1OrganizationsOrganizationGroupsWithBodyWithResponse added in v0.1.3

func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationGroupsWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationGroupsResponse, error)

PostApiV1OrganizationsOrganizationGroupsWithBodyWithResponse request with arbitrary body returning *PostApiV1OrganizationsOrganizationGroupsResponse

func (*ClientWithResponses) PostApiV1OrganizationsOrganizationGroupsWithResponse added in v0.1.3

func (*ClientWithResponses) PostApiV1OrganizationsOrganizationProjectsWithBodyWithResponse added in v0.2.3

func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationProjectsWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationProjectsResponse, error)

PostApiV1OrganizationsOrganizationProjectsWithBodyWithResponse request with arbitrary body returning *PostApiV1OrganizationsOrganizationProjectsResponse

func (*ClientWithResponses) PostApiV1OrganizationsOrganizationProjectsWithResponse added in v0.2.3

func (*ClientWithResponses) PostApiV1OrganizationsWithBodyWithResponse added in v0.1.13

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

PostApiV1OrganizationsWithBodyWithResponse request with arbitrary body returning *PostApiV1OrganizationsResponse

func (*ClientWithResponses) PostApiV1OrganizationsWithResponse added in v0.1.13

func (c *ClientWithResponses) PostApiV1OrganizationsWithResponse(ctx context.Context, body PostApiV1OrganizationsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsResponse, error)

func (*ClientWithResponses) PostOauth2V2LoginWithBodyWithResponse

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

PostOauth2V2LoginWithBodyWithResponse request with arbitrary body returning *PostOauth2V2LoginResponse

func (*ClientWithResponses) PostOauth2V2LoginWithFormdataBodyWithResponse

func (c *ClientWithResponses) PostOauth2V2LoginWithFormdataBodyWithResponse(ctx context.Context, body PostOauth2V2LoginFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostOauth2V2LoginResponse, error)

func (*ClientWithResponses) PostOauth2V2TokenWithBodyWithResponse

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

PostOauth2V2TokenWithBodyWithResponse request with arbitrary body returning *PostOauth2V2TokenResponse

func (*ClientWithResponses) PostOauth2V2TokenWithFormdataBodyWithResponse

func (c *ClientWithResponses) PostOauth2V2TokenWithFormdataBodyWithResponse(ctx context.Context, body PostOauth2V2TokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostOauth2V2TokenResponse, error)

func (*ClientWithResponses) PutApiV1OrganizationsOrganizationGroupsGroupidWithBodyWithResponse added in v0.1.3

func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationGroupsGroupidWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationGroupsGroupidResponse, error)

PutApiV1OrganizationsOrganizationGroupsGroupidWithBodyWithResponse request with arbitrary body returning *PutApiV1OrganizationsOrganizationGroupsGroupidResponse

func (*ClientWithResponses) PutApiV1OrganizationsOrganizationGroupsGroupidWithResponse added in v0.1.3

func (*ClientWithResponses) PutApiV1OrganizationsOrganizationWithBodyWithResponse added in v0.1.3

func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationResponse, error)

PutApiV1OrganizationsOrganizationWithBodyWithResponse request with arbitrary body returning *PutApiV1OrganizationsOrganizationResponse

func (*ClientWithResponses) PutApiV1OrganizationsOrganizationWithResponse added in v0.1.3

func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationWithResponse(ctx context.Context, organization OrganizationParameter, body PutApiV1OrganizationsOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetWellKnownOpenidConfiguration request
	GetWellKnownOpenidConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWellKnownOpenidConfigurationResponse, error)

	// GetApiV1Organizations request
	GetApiV1OrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsResponse, error)

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

	PostApiV1OrganizationsWithResponse(ctx context.Context, body PostApiV1OrganizationsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsResponse, error)

	// PutApiV1OrganizationsOrganization request with any body
	PutApiV1OrganizationsOrganizationWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationResponse, error)

	PutApiV1OrganizationsOrganizationWithResponse(ctx context.Context, organization OrganizationParameter, body PutApiV1OrganizationsOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationResponse, error)

	// GetApiV1OrganizationsOrganizationAcl request
	GetApiV1OrganizationsOrganizationAclWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationAclResponse, error)

	// GetApiV1OrganizationsOrganizationGroups request
	GetApiV1OrganizationsOrganizationGroupsWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationGroupsResponse, error)

	// PostApiV1OrganizationsOrganizationGroups request with any body
	PostApiV1OrganizationsOrganizationGroupsWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationGroupsResponse, error)

	PostApiV1OrganizationsOrganizationGroupsWithResponse(ctx context.Context, organization OrganizationParameter, body PostApiV1OrganizationsOrganizationGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationGroupsResponse, error)

	// DeleteApiV1OrganizationsOrganizationGroupsGroupid request
	DeleteApiV1OrganizationsOrganizationGroupsGroupidWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse, error)

	// GetApiV1OrganizationsOrganizationGroupsGroupid request
	GetApiV1OrganizationsOrganizationGroupsGroupidWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationGroupsGroupidResponse, error)

	// PutApiV1OrganizationsOrganizationGroupsGroupid request with any body
	PutApiV1OrganizationsOrganizationGroupsGroupidWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationGroupsGroupidResponse, error)

	PutApiV1OrganizationsOrganizationGroupsGroupidWithResponse(ctx context.Context, organization OrganizationParameter, groupid GroupidParameter, body PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationGroupsGroupidResponse, error)

	// GetApiV1OrganizationsOrganizationOauth2Providers request
	GetApiV1OrganizationsOrganizationOauth2ProvidersWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationOauth2ProvidersResponse, error)

	// GetApiV1OrganizationsOrganizationProjects request
	GetApiV1OrganizationsOrganizationProjectsWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationProjectsResponse, error)

	// PostApiV1OrganizationsOrganizationProjects request with any body
	PostApiV1OrganizationsOrganizationProjectsWithBodyWithResponse(ctx context.Context, organization OrganizationParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationProjectsResponse, error)

	PostApiV1OrganizationsOrganizationProjectsWithResponse(ctx context.Context, organization OrganizationParameter, body PostApiV1OrganizationsOrganizationProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationProjectsResponse, error)

	// DeleteApiV1OrganizationsOrganizationProjectsProject request
	DeleteApiV1OrganizationsOrganizationProjectsProjectWithResponse(ctx context.Context, organization OrganizationParameter, project ProjectParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1OrganizationsOrganizationProjectsProjectResponse, error)

	// GetApiV1OrganizationsOrganizationRoles request
	GetApiV1OrganizationsOrganizationRolesWithResponse(ctx context.Context, organization OrganizationParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationRolesResponse, error)

	// GetOauth2V2Authorization request
	GetOauth2V2AuthorizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2AuthorizationResponse, error)

	// GetOauth2V2Jwks request
	GetOauth2V2JwksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2JwksResponse, error)

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

	PostOauth2V2LoginWithFormdataBodyWithResponse(ctx context.Context, body PostOauth2V2LoginFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostOauth2V2LoginResponse, error)

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

	PostOauth2V2TokenWithFormdataBodyWithResponse(ctx context.Context, body PostOauth2V2TokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostOauth2V2TokenResponse, error)

	// GetOauth2V2Userinfo request
	GetOauth2V2UserinfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOauth2V2UserinfoResponse, error)

	// GetOidcCallback request
	GetOidcCallbackWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOidcCallbackResponse, error)
}

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

type CodeChallengeMethod

type CodeChallengeMethod string

CodeChallengeMethod Supported code challenge methods.

const (
	Plain CodeChallengeMethod = "plain"
	S256  CodeChallengeMethod = "S256"
)

Defines values for CodeChallengeMethod.

type ConflictResponse added in v0.1.13

type ConflictResponse = Oauth2Error

ConflictResponse Generic error message.

type CreateGroupRequest added in v0.1.3

type CreateGroupRequest = Group

CreateGroupRequest A group.

type CreateOrganizationRequest added in v0.1.13

type CreateOrganizationRequest = Organization

CreateOrganizationRequest An organization.

type CreateProjectRequest added in v0.2.3

type CreateProjectRequest = ProjectSpec

CreateProjectRequest A project.

type DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse added in v0.1.3

type DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *Oauth2Error
	JSON403      *Oauth2Error
	JSON404      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseDeleteApiV1OrganizationsOrganizationGroupsGroupidResponse added in v0.1.3

func ParseDeleteApiV1OrganizationsOrganizationGroupsGroupidResponse(rsp *http.Response) (*DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse, error)

ParseDeleteApiV1OrganizationsOrganizationGroupsGroupidResponse parses an HTTP response from a DeleteApiV1OrganizationsOrganizationGroupsGroupidWithResponse call

func (DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse) Status added in v0.1.3

Status returns HTTPResponse.Status

func (DeleteApiV1OrganizationsOrganizationGroupsGroupidResponse) StatusCode added in v0.1.3

StatusCode returns HTTPResponse.StatusCode

type DeleteApiV1OrganizationsOrganizationProjectsProjectResponse added in v0.2.3

type DeleteApiV1OrganizationsOrganizationProjectsProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON403      *Oauth2Error
	JSON404      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseDeleteApiV1OrganizationsOrganizationProjectsProjectResponse added in v0.2.3

func ParseDeleteApiV1OrganizationsOrganizationProjectsProjectResponse(rsp *http.Response) (*DeleteApiV1OrganizationsOrganizationProjectsProjectResponse, error)

ParseDeleteApiV1OrganizationsOrganizationProjectsProjectResponse parses an HTTP response from a DeleteApiV1OrganizationsOrganizationProjectsProjectWithResponse call

func (DeleteApiV1OrganizationsOrganizationProjectsProjectResponse) Status added in v0.2.3

Status returns HTTPResponse.Status

func (DeleteApiV1OrganizationsOrganizationProjectsProjectResponse) StatusCode added in v0.2.3

StatusCode returns HTTPResponse.StatusCode

type ForbiddenResponse added in v0.1.13

type ForbiddenResponse = Oauth2Error

ForbiddenResponse Generic error message.

type GetApiV1OrganizationsOrganizationAclResponse added in v0.1.23

type GetApiV1OrganizationsOrganizationAclResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Acl
	JSON401      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1OrganizationsOrganizationAclResponse added in v0.1.23

func ParseGetApiV1OrganizationsOrganizationAclResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationAclResponse, error)

ParseGetApiV1OrganizationsOrganizationAclResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationAclWithResponse call

func (GetApiV1OrganizationsOrganizationAclResponse) Status added in v0.1.23

Status returns HTTPResponse.Status

func (GetApiV1OrganizationsOrganizationAclResponse) StatusCode added in v0.1.23

StatusCode returns HTTPResponse.StatusCode

type GetApiV1OrganizationsOrganizationGroupsGroupidResponse added in v0.1.20

type GetApiV1OrganizationsOrganizationGroupsGroupidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Group
	JSON401      *Oauth2Error
	JSON403      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1OrganizationsOrganizationGroupsGroupidResponse added in v0.1.20

func ParseGetApiV1OrganizationsOrganizationGroupsGroupidResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationGroupsGroupidResponse, error)

ParseGetApiV1OrganizationsOrganizationGroupsGroupidResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationGroupsGroupidWithResponse call

func (GetApiV1OrganizationsOrganizationGroupsGroupidResponse) Status added in v0.1.20

Status returns HTTPResponse.Status

func (GetApiV1OrganizationsOrganizationGroupsGroupidResponse) StatusCode added in v0.1.20

StatusCode returns HTTPResponse.StatusCode

type GetApiV1OrganizationsOrganizationGroupsResponse added in v0.1.3

type GetApiV1OrganizationsOrganizationGroupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Groups
	JSON401      *Oauth2Error
	JSON403      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1OrganizationsOrganizationGroupsResponse added in v0.1.3

func ParseGetApiV1OrganizationsOrganizationGroupsResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationGroupsResponse, error)

ParseGetApiV1OrganizationsOrganizationGroupsResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationGroupsWithResponse call

func (GetApiV1OrganizationsOrganizationGroupsResponse) Status added in v0.1.3

Status returns HTTPResponse.Status

func (GetApiV1OrganizationsOrganizationGroupsResponse) StatusCode added in v0.1.3

StatusCode returns HTTPResponse.StatusCode

type GetApiV1OrganizationsOrganizationOauth2ProvidersResponse added in v0.1.18

type GetApiV1OrganizationsOrganizationOauth2ProvidersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Oauth2Providers
	JSON401      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1OrganizationsOrganizationOauth2ProvidersResponse added in v0.1.18

func ParseGetApiV1OrganizationsOrganizationOauth2ProvidersResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationOauth2ProvidersResponse, error)

ParseGetApiV1OrganizationsOrganizationOauth2ProvidersResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationOauth2ProvidersWithResponse call

func (GetApiV1OrganizationsOrganizationOauth2ProvidersResponse) Status added in v0.1.18

Status returns HTTPResponse.Status

func (GetApiV1OrganizationsOrganizationOauth2ProvidersResponse) StatusCode added in v0.1.18

StatusCode returns HTTPResponse.StatusCode

type GetApiV1OrganizationsOrganizationProjectsResponse added in v0.2.3

type GetApiV1OrganizationsOrganizationProjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Projects
	JSON401      *Oauth2Error
	JSON403      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1OrganizationsOrganizationProjectsResponse added in v0.2.3

func ParseGetApiV1OrganizationsOrganizationProjectsResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationProjectsResponse, error)

ParseGetApiV1OrganizationsOrganizationProjectsResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationProjectsWithResponse call

func (GetApiV1OrganizationsOrganizationProjectsResponse) Status added in v0.2.3

Status returns HTTPResponse.Status

func (GetApiV1OrganizationsOrganizationProjectsResponse) StatusCode added in v0.2.3

StatusCode returns HTTPResponse.StatusCode

type GetApiV1OrganizationsOrganizationRolesResponse added in v0.1.24

type GetApiV1OrganizationsOrganizationRolesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RoleList
	JSON401      *Oauth2Error
	JSON403      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1OrganizationsOrganizationRolesResponse added in v0.1.24

func ParseGetApiV1OrganizationsOrganizationRolesResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationRolesResponse, error)

ParseGetApiV1OrganizationsOrganizationRolesResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationRolesWithResponse call

func (GetApiV1OrganizationsOrganizationRolesResponse) Status added in v0.1.24

Status returns HTTPResponse.Status

func (GetApiV1OrganizationsOrganizationRolesResponse) StatusCode added in v0.1.24

StatusCode returns HTTPResponse.StatusCode

type GetApiV1OrganizationsResponse added in v0.1.3

type GetApiV1OrganizationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Organizations
	JSON401      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1OrganizationsResponse added in v0.1.3

func ParseGetApiV1OrganizationsResponse(rsp *http.Response) (*GetApiV1OrganizationsResponse, error)

ParseGetApiV1OrganizationsResponse parses an HTTP response from a GetApiV1OrganizationsWithResponse call

func (GetApiV1OrganizationsResponse) Status added in v0.1.3

Status returns HTTPResponse.Status

func (GetApiV1OrganizationsResponse) StatusCode added in v0.1.3

func (r GetApiV1OrganizationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOauth2V2AuthorizationResponse

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

func ParseGetOauth2V2AuthorizationResponse

func ParseGetOauth2V2AuthorizationResponse(rsp *http.Response) (*GetOauth2V2AuthorizationResponse, error)

ParseGetOauth2V2AuthorizationResponse parses an HTTP response from a GetOauth2V2AuthorizationWithResponse call

func (GetOauth2V2AuthorizationResponse) Status

Status returns HTTPResponse.Status

func (GetOauth2V2AuthorizationResponse) StatusCode

func (r GetOauth2V2AuthorizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOauth2V2JwksResponse

type GetOauth2V2JwksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *JsonWebKeySet
	JSON500      *Oauth2Error
}

func ParseGetOauth2V2JwksResponse

func ParseGetOauth2V2JwksResponse(rsp *http.Response) (*GetOauth2V2JwksResponse, error)

ParseGetOauth2V2JwksResponse parses an HTTP response from a GetOauth2V2JwksWithResponse call

func (GetOauth2V2JwksResponse) Status

func (r GetOauth2V2JwksResponse) Status() string

Status returns HTTPResponse.Status

func (GetOauth2V2JwksResponse) StatusCode

func (r GetOauth2V2JwksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOauth2V2UserinfoResponse added in v0.1.14

type GetOauth2V2UserinfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *Oauth2Error
}

func ParseGetOauth2V2UserinfoResponse added in v0.1.14

func ParseGetOauth2V2UserinfoResponse(rsp *http.Response) (*GetOauth2V2UserinfoResponse, error)

ParseGetOauth2V2UserinfoResponse parses an HTTP response from a GetOauth2V2UserinfoWithResponse call

func (GetOauth2V2UserinfoResponse) Status added in v0.1.14

Status returns HTTPResponse.Status

func (GetOauth2V2UserinfoResponse) StatusCode added in v0.1.14

func (r GetOauth2V2UserinfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOidcCallbackResponse

type GetOidcCallbackResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *Oauth2Error
}

func ParseGetOidcCallbackResponse

func ParseGetOidcCallbackResponse(rsp *http.Response) (*GetOidcCallbackResponse, error)

ParseGetOidcCallbackResponse parses an HTTP response from a GetOidcCallbackWithResponse call

func (GetOidcCallbackResponse) Status

func (r GetOidcCallbackResponse) Status() string

Status returns HTTPResponse.Status

func (GetOidcCallbackResponse) StatusCode

func (r GetOidcCallbackResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWellKnownOpenidConfigurationResponse

type GetWellKnownOpenidConfigurationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OpenidConfiguration
}

func ParseGetWellKnownOpenidConfigurationResponse

func ParseGetWellKnownOpenidConfigurationResponse(rsp *http.Response) (*GetWellKnownOpenidConfigurationResponse, error)

ParseGetWellKnownOpenidConfigurationResponse parses an HTTP response from a GetWellKnownOpenidConfigurationWithResponse call

func (GetWellKnownOpenidConfigurationResponse) Status

Status returns HTTPResponse.Status

func (GetWellKnownOpenidConfigurationResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GrantType

type GrantType string

GrantType Supported grant type.

const (
	AuthorizationCode GrantType = "authorization_code"
	RefreshToken      GrantType = "refresh_token"
)

Defines values for GrantType.

type Group added in v0.1.20

type Group struct {
	// Id An immutable group ID.
	Id string `json:"id"`

	// Name The group name.
	Name string `json:"name"`

	// Roles A list of roles.
	Roles RoleList `json:"roles"`

	// Users A list of users.
	Users *UserList `json:"users,omitempty"`
}

Group A group.

type GroupIDs added in v0.2.3

type GroupIDs = []string

GroupIDs A list of group IDs.

type GroupResponse added in v0.1.20

type GroupResponse = Group

GroupResponse A group.

type GroupidParameter added in v0.1.3

type GroupidParameter = string

GroupidParameter defines model for groupidParameter.

type Groups added in v0.1.20

type Groups = []Group

Groups A list of groups.

type GroupsResponse added in v0.1.20

type GroupsResponse = Groups

GroupsResponse A list of groups.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InternalServerErrorResponse

type InternalServerErrorResponse = Oauth2Error

InternalServerErrorResponse Generic error message.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type JsonWebKey

type JsonWebKey = map[string]interface{}

JsonWebKey JSON web key. See the relevant JWKS documentation for further details.

type JsonWebKeySet

type JsonWebKeySet struct {
	Keys *[]JsonWebKey `json:"keys,omitempty"`
}

JsonWebKeySet JSON web key set. This data type is defined by an external 3rd party standards committee. Consult the relevant documentation for further details.

type JwksResponse

type JwksResponse = JsonWebKeySet

JwksResponse JSON web key set. This data type is defined by an external 3rd party standards committee. Consult the relevant documentation for further details.

type LoginRequestOptions

type LoginRequestOptions struct {
	// Email The user's email address.
	Email *string `json:"email"`

	// Provider The explcit provider type.
	Provider *string `json:"provider"`

	// State The state string supplied by the authorization endpoint.
	State string `json:"state"`
}

LoginRequestOptions Login request options.

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type NotFoundResponse added in v0.1.20

type NotFoundResponse = Oauth2Error

NotFoundResponse Generic error message.

type Oauth2Error

type Oauth2Error struct {
	// Error A terse error string expanding on the HTTP error code. Errors are based on the OAuth2 specification, but are expanded with proprietary status codes for APIs other than those specified by OAuth2.
	Error Oauth2ErrorError `json:"error"`

	// ErrorDescription Verbose message describing the error.
	ErrorDescription string `json:"error_description"`
}

Oauth2Error Generic error message.

type Oauth2ErrorError

type Oauth2ErrorError string

Oauth2ErrorError A terse error string expanding on the HTTP error code. Errors are based on the OAuth2 specification, but are expanded with proprietary status codes for APIs other than those specified by OAuth2.

const (
	AccessDenied            Oauth2ErrorError = "access_denied"
	Conflict                Oauth2ErrorError = "conflict"
	Forbidden               Oauth2ErrorError = "forbidden"
	InvalidClient           Oauth2ErrorError = "invalid_client"
	InvalidGrant            Oauth2ErrorError = "invalid_grant"
	InvalidRequest          Oauth2ErrorError = "invalid_request"
	InvalidScope            Oauth2ErrorError = "invalid_scope"
	MethodNotAllowed        Oauth2ErrorError = "method_not_allowed"
	NotFound                Oauth2ErrorError = "not_found"
	ServerError             Oauth2ErrorError = "server_error"
	TemporarilyUnavailable  Oauth2ErrorError = "temporarily_unavailable"
	UnauthorizedClient      Oauth2ErrorError = "unauthorized_client"
	UnsupportedGrantType    Oauth2ErrorError = "unsupported_grant_type"
	UnsupportedMediaType    Oauth2ErrorError = "unsupported_media_type"
	UnsupportedResponseType Oauth2ErrorError = "unsupported_response_type"
)

Defines values for Oauth2ErrorError.

type Oauth2Provider added in v0.1.13

type Oauth2Provider struct {
	// ClientID The client identification, only shown for super admin or organization owned providers
	// that you are an admin for.
	ClientID *string `json:"clientID,omitempty"`

	// ClientSecret The client secret, only shown for super admin or organization owned providers
	// that you are an admin for.
	ClientSecret *string `json:"clientSecret,omitempty"`

	// DisplayName The name to display for the provider.
	DisplayName string `json:"displayName"`

	// Issuer The OIDC issuer, typically where to perform auto discovery relative to.
	Issuer string `json:"issuer"`

	// Name A description of the provider.
	Name string `json:"name"`
}

Oauth2Provider An oauth2 provider.

type Oauth2Providers added in v0.1.13

type Oauth2Providers = []Oauth2Provider

Oauth2Providers A list of oauth2 providers.

type Oauth2ProvidersResponse added in v0.1.13

type Oauth2ProvidersResponse = Oauth2Providers

Oauth2ProvidersResponse A list of oauth2 providers.

type OpenidConfiguration

type OpenidConfiguration struct {
	// AuthorizationEndpoint The oauth2 endpoint that initiates authentication.
	AuthorizationEndpoint string `json:"authorization_endpoint"`

	// ClaimsSupported A list of supported claims
	ClaimsSupported []Claim `json:"claims_supported"`

	// CodeChallengeMethodsSupported A list of code challenge methods supported.
	CodeChallengeMethodsSupported []CodeChallengeMethod `json:"code_challenge_methods_supported"`

	// GrantTypesSupported A list of supported grants for the token endpoint.
	GrantTypesSupported []GrantType `json:"grant_types_supported"`

	// IdTokenSigningAlgValuesSupported A list of signing algorithms supported for ID tokens.
	IdTokenSigningAlgValuesSupported []SigningAlgorithm `json:"id_token_signing_alg_values_supported"`

	// Issuer The OpenID Issuer (iss field).
	Issuer string `json:"issuer"`

	// JwksUri The oauth2 endpoint that exposes public signing keys for token validation.
	JwksUri string `json:"jwks_uri"`

	// ResponseTypesSupported A list of supported response types that can be requested for the authorization endpoint.
	ResponseTypesSupported []ResponseType `json:"response_types_supported"`

	// ScopesSupported A list of supported oauth2 scopes.
	ScopesSupported []Scope `json:"scopes_supported"`

	// TokenEndpoint The oauth2 endpoint that is used to exchange an authentication code for tokens.
	TokenEndpoint string `json:"token_endpoint"`

	// TokenEndpointAuthMethodsSupported A list of supported authentication methods for the token endpoint.
	TokenEndpointAuthMethodsSupported []AuthMethod `json:"token_endpoint_auth_methods_supported"`

	// UserinfoEndpoint The oidc endpoint used to get information about an access token's user.
	UserinfoEndpoint string `json:"userinfo_endpoint"`
}

OpenidConfiguration OpenID configuration.

type OpenidConfigurationResponse

type OpenidConfigurationResponse = OpenidConfiguration

OpenidConfigurationResponse OpenID configuration.

type Organization added in v0.1.13

type Organization struct {
	// Domain An email domain that identifies all users.
	Domain *string `json:"domain,omitempty"`

	// Name A unique organization name.
	Name string `json:"name"`

	// ProviderName An identity provider for the organization. This must be an oauth2 provider name.
	ProviderName *string `json:"providerName,omitempty"`
}

Organization An organization.

type OrganizationParameter added in v0.1.3

type OrganizationParameter = string

OrganizationParameter defines model for organizationParameter.

type Organizations added in v0.1.13

type Organizations = []Organization

Organizations A list of organizations.

type OrganizationsResponse added in v0.1.13

type OrganizationsResponse = Organizations

OrganizationsResponse A list of organizations.

type PostApiV1OrganizationsJSONRequestBody added in v0.1.13

type PostApiV1OrganizationsJSONRequestBody = Organization

PostApiV1OrganizationsJSONRequestBody defines body for PostApiV1Organizations for application/json ContentType.

type PostApiV1OrganizationsOrganizationGroupsJSONRequestBody added in v0.1.3

type PostApiV1OrganizationsOrganizationGroupsJSONRequestBody = Group

PostApiV1OrganizationsOrganizationGroupsJSONRequestBody defines body for PostApiV1OrganizationsOrganizationGroups for application/json ContentType.

type PostApiV1OrganizationsOrganizationGroupsResponse added in v0.1.3

type PostApiV1OrganizationsOrganizationGroupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *Oauth2Error
	JSON403      *Oauth2Error
	JSON409      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParsePostApiV1OrganizationsOrganizationGroupsResponse added in v0.1.3

func ParsePostApiV1OrganizationsOrganizationGroupsResponse(rsp *http.Response) (*PostApiV1OrganizationsOrganizationGroupsResponse, error)

ParsePostApiV1OrganizationsOrganizationGroupsResponse parses an HTTP response from a PostApiV1OrganizationsOrganizationGroupsWithResponse call

func (PostApiV1OrganizationsOrganizationGroupsResponse) Status added in v0.1.3

Status returns HTTPResponse.Status

func (PostApiV1OrganizationsOrganizationGroupsResponse) StatusCode added in v0.1.3

StatusCode returns HTTPResponse.StatusCode

type PostApiV1OrganizationsOrganizationProjectsJSONRequestBody added in v0.2.3

type PostApiV1OrganizationsOrganizationProjectsJSONRequestBody = ProjectSpec

PostApiV1OrganizationsOrganizationProjectsJSONRequestBody defines body for PostApiV1OrganizationsOrganizationProjects for application/json ContentType.

type PostApiV1OrganizationsOrganizationProjectsResponse added in v0.2.3

type PostApiV1OrganizationsOrganizationProjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON403      *Oauth2Error
	JSON409      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParsePostApiV1OrganizationsOrganizationProjectsResponse added in v0.2.3

func ParsePostApiV1OrganizationsOrganizationProjectsResponse(rsp *http.Response) (*PostApiV1OrganizationsOrganizationProjectsResponse, error)

ParsePostApiV1OrganizationsOrganizationProjectsResponse parses an HTTP response from a PostApiV1OrganizationsOrganizationProjectsWithResponse call

func (PostApiV1OrganizationsOrganizationProjectsResponse) Status added in v0.2.3

Status returns HTTPResponse.Status

func (PostApiV1OrganizationsOrganizationProjectsResponse) StatusCode added in v0.2.3

StatusCode returns HTTPResponse.StatusCode

type PostApiV1OrganizationsResponse added in v0.1.13

type PostApiV1OrganizationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *Oauth2Error
	JSON403      *Oauth2Error
	JSON409      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParsePostApiV1OrganizationsResponse added in v0.1.13

func ParsePostApiV1OrganizationsResponse(rsp *http.Response) (*PostApiV1OrganizationsResponse, error)

ParsePostApiV1OrganizationsResponse parses an HTTP response from a PostApiV1OrganizationsWithResponse call

func (PostApiV1OrganizationsResponse) Status added in v0.1.13

Status returns HTTPResponse.Status

func (PostApiV1OrganizationsResponse) StatusCode added in v0.1.13

func (r PostApiV1OrganizationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostOauth2V2LoginFormdataRequestBody

type PostOauth2V2LoginFormdataRequestBody = LoginRequestOptions

PostOauth2V2LoginFormdataRequestBody defines body for PostOauth2V2Login for application/x-www-form-urlencoded ContentType.

type PostOauth2V2LoginResponse

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

func ParsePostOauth2V2LoginResponse

func ParsePostOauth2V2LoginResponse(rsp *http.Response) (*PostOauth2V2LoginResponse, error)

ParsePostOauth2V2LoginResponse parses an HTTP response from a PostOauth2V2LoginWithResponse call

func (PostOauth2V2LoginResponse) Status

func (r PostOauth2V2LoginResponse) Status() string

Status returns HTTPResponse.Status

func (PostOauth2V2LoginResponse) StatusCode

func (r PostOauth2V2LoginResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostOauth2V2TokenFormdataRequestBody

type PostOauth2V2TokenFormdataRequestBody = TokenRequestOptions

PostOauth2V2TokenFormdataRequestBody defines body for PostOauth2V2Token for application/x-www-form-urlencoded ContentType.

type PostOauth2V2TokenResponse

type PostOauth2V2TokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Token
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParsePostOauth2V2TokenResponse

func ParsePostOauth2V2TokenResponse(rsp *http.Response) (*PostOauth2V2TokenResponse, error)

ParsePostOauth2V2TokenResponse parses an HTTP response from a PostOauth2V2TokenWithResponse call

func (PostOauth2V2TokenResponse) Status

func (r PostOauth2V2TokenResponse) Status() string

Status returns HTTPResponse.Status

func (PostOauth2V2TokenResponse) StatusCode

func (r PostOauth2V2TokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Project added in v0.2.3

type Project struct {
	// Metadata Required metadata for projects.
	Metadata ProjectMetadata `json:"metadata"`

	// Spec A project.
	Spec ProjectSpec `json:"spec"`
}

Project A project.

type ProjectMetadata added in v0.2.3

type ProjectMetadata struct {
	// CreationTime The time the resource was created.
	CreationTime time.Time `json:"creationTime"`

	// DeletionTime The time the resource was deleted.
	DeletionTime *time.Time `json:"deletionTime,omitempty"`

	// Status The current status of the resource. Intially the status will be "Unknown" until
	// the resource is reconciled by the relevant controller. It then will transition to
	// "Provisioning" and will be ready for use when it changes to "Provisioned". The status
	// will also transition to the "Provisioning" status during an update. The
	// status will change to "Deprovisioning" when a delete request is being processed.
	// It may also change to "Error" if an unexpected error occurred during any operation.
	// Errors may be transient.
	Status string `json:"status"`
}

ProjectMetadata Required metadata for projects.

type ProjectParameter added in v0.2.3

type ProjectParameter = string

ProjectParameter defines model for projectParameter.

type ProjectSpec added in v0.2.3

type ProjectSpec struct {
	// GroupIDs A list of group IDs.
	GroupIDs *GroupIDs `json:"groupIDs,omitempty"`
	Name     string    `json:"name"`
}

ProjectSpec A project.

type Projects added in v0.2.3

type Projects = []Project

Projects A list of projects.

type ProjectsResponse added in v0.2.3

type ProjectsResponse = Projects

ProjectsResponse A list of projects.

type PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody added in v0.1.3

type PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody = Group

PutApiV1OrganizationsOrganizationGroupsGroupidJSONRequestBody defines body for PutApiV1OrganizationsOrganizationGroupsGroupid for application/json ContentType.

type PutApiV1OrganizationsOrganizationGroupsGroupidResponse added in v0.1.3

type PutApiV1OrganizationsOrganizationGroupsGroupidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *Oauth2Error
	JSON403      *Oauth2Error
	JSON404      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParsePutApiV1OrganizationsOrganizationGroupsGroupidResponse added in v0.1.3

func ParsePutApiV1OrganizationsOrganizationGroupsGroupidResponse(rsp *http.Response) (*PutApiV1OrganizationsOrganizationGroupsGroupidResponse, error)

ParsePutApiV1OrganizationsOrganizationGroupsGroupidResponse parses an HTTP response from a PutApiV1OrganizationsOrganizationGroupsGroupidWithResponse call

func (PutApiV1OrganizationsOrganizationGroupsGroupidResponse) Status added in v0.1.3

Status returns HTTPResponse.Status

func (PutApiV1OrganizationsOrganizationGroupsGroupidResponse) StatusCode added in v0.1.3

StatusCode returns HTTPResponse.StatusCode

type PutApiV1OrganizationsOrganizationJSONRequestBody added in v0.1.3

type PutApiV1OrganizationsOrganizationJSONRequestBody = Organization

PutApiV1OrganizationsOrganizationJSONRequestBody defines body for PutApiV1OrganizationsOrganization for application/json ContentType.

type PutApiV1OrganizationsOrganizationResponse added in v0.1.3

type PutApiV1OrganizationsOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *Oauth2Error
	JSON403      *Oauth2Error
}

func ParsePutApiV1OrganizationsOrganizationResponse added in v0.1.3

func ParsePutApiV1OrganizationsOrganizationResponse(rsp *http.Response) (*PutApiV1OrganizationsOrganizationResponse, error)

ParsePutApiV1OrganizationsOrganizationResponse parses an HTTP response from a PutApiV1OrganizationsOrganizationWithResponse call

func (PutApiV1OrganizationsOrganizationResponse) Status added in v0.1.3

Status returns HTTPResponse.Status

func (PutApiV1OrganizationsOrganizationResponse) StatusCode added in v0.1.3

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 RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type ResponseType

type ResponseType string

ResponseType Supported response types.

const (
	ResponseTypeCode             ResponseType = "code"
	ResponseTypeCodeIdToken      ResponseType = "code id_token"
	ResponseTypeCodeToken        ResponseType = "code token"
	ResponseTypeCodeTokenIdToken ResponseType = "code token id_token"
	ResponseTypeIdToken          ResponseType = "id_token"
	ResponseTypeNone             ResponseType = "none"
	ResponseTypeToken            ResponseType = "token"
	ResponseTypeTokenIdToken     ResponseType = "token id_token"
)

Defines values for ResponseType.

type RoleList added in v0.1.20

type RoleList = []string

RoleList A list of roles.

type RolesResponse added in v0.1.24

type RolesResponse = RoleList

RolesResponse A list of roles.

type Scope

type Scope string

Scope Supported scopes.

const (
	ScopeEmail   Scope = "email"
	ScopeOpenid  Scope = "openid"
	ScopeProfile Scope = "profile"
)

Defines values for Scope.

type ServerInterface

type ServerInterface interface {

	// (GET /.well-known/openid-configuration)
	GetWellKnownOpenidConfiguration(w http.ResponseWriter, r *http.Request)

	// (GET /api/v1/organizations)
	GetApiV1Organizations(w http.ResponseWriter, r *http.Request)

	// (POST /api/v1/organizations)
	PostApiV1Organizations(w http.ResponseWriter, r *http.Request)

	// (PUT /api/v1/organizations/{organization})
	PutApiV1OrganizationsOrganization(w http.ResponseWriter, r *http.Request, organization OrganizationParameter)

	// (GET /api/v1/organizations/{organization}/acl)
	GetApiV1OrganizationsOrganizationAcl(w http.ResponseWriter, r *http.Request, organization OrganizationParameter)

	// (GET /api/v1/organizations/{organization}/groups)
	GetApiV1OrganizationsOrganizationGroups(w http.ResponseWriter, r *http.Request, organization OrganizationParameter)

	// (POST /api/v1/organizations/{organization}/groups)
	PostApiV1OrganizationsOrganizationGroups(w http.ResponseWriter, r *http.Request, organization OrganizationParameter)

	// (DELETE /api/v1/organizations/{organization}/groups/{groupid})
	DeleteApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request, organization OrganizationParameter, groupid GroupidParameter)

	// (GET /api/v1/organizations/{organization}/groups/{groupid})
	GetApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request, organization OrganizationParameter, groupid GroupidParameter)

	// (PUT /api/v1/organizations/{organization}/groups/{groupid})
	PutApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request, organization OrganizationParameter, groupid GroupidParameter)

	// (GET /api/v1/organizations/{organization}/oauth2/providers)
	GetApiV1OrganizationsOrganizationOauth2Providers(w http.ResponseWriter, r *http.Request, organization OrganizationParameter)

	// (GET /api/v1/organizations/{organization}/projects)
	GetApiV1OrganizationsOrganizationProjects(w http.ResponseWriter, r *http.Request, organization OrganizationParameter)

	// (POST /api/v1/organizations/{organization}/projects)
	PostApiV1OrganizationsOrganizationProjects(w http.ResponseWriter, r *http.Request, organization OrganizationParameter)

	// (DELETE /api/v1/organizations/{organization}/projects/{project})
	DeleteApiV1OrganizationsOrganizationProjectsProject(w http.ResponseWriter, r *http.Request, organization OrganizationParameter, project ProjectParameter)

	// (GET /api/v1/organizations/{organization}/roles)
	GetApiV1OrganizationsOrganizationRoles(w http.ResponseWriter, r *http.Request, organization OrganizationParameter)

	// (GET /oauth2/v2/authorization)
	GetOauth2V2Authorization(w http.ResponseWriter, r *http.Request)

	// (GET /oauth2/v2/jwks)
	GetOauth2V2Jwks(w http.ResponseWriter, r *http.Request)

	// (POST /oauth2/v2/login)
	PostOauth2V2Login(w http.ResponseWriter, r *http.Request)

	// (POST /oauth2/v2/token)
	PostOauth2V2Token(w http.ResponseWriter, r *http.Request)

	// (GET /oauth2/v2/userinfo)
	GetOauth2V2Userinfo(w http.ResponseWriter, r *http.Request)

	// (GET /oidc/callback)
	GetOidcCallback(w http.ResponseWriter, r *http.Request)
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) DeleteApiV1OrganizationsOrganizationGroupsGroupid added in v0.1.3

func (siw *ServerInterfaceWrapper) DeleteApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request)

DeleteApiV1OrganizationsOrganizationGroupsGroupid operation middleware

func (*ServerInterfaceWrapper) DeleteApiV1OrganizationsOrganizationProjectsProject added in v0.2.3

func (siw *ServerInterfaceWrapper) DeleteApiV1OrganizationsOrganizationProjectsProject(w http.ResponseWriter, r *http.Request)

DeleteApiV1OrganizationsOrganizationProjectsProject operation middleware

func (*ServerInterfaceWrapper) GetApiV1Organizations added in v0.1.3

func (siw *ServerInterfaceWrapper) GetApiV1Organizations(w http.ResponseWriter, r *http.Request)

GetApiV1Organizations operation middleware

func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationAcl added in v0.1.23

func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationAcl(w http.ResponseWriter, r *http.Request)

GetApiV1OrganizationsOrganizationAcl operation middleware

func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationGroups added in v0.1.3

func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationGroups(w http.ResponseWriter, r *http.Request)

GetApiV1OrganizationsOrganizationGroups operation middleware

func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationGroupsGroupid added in v0.1.20

func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request)

GetApiV1OrganizationsOrganizationGroupsGroupid operation middleware

func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationOauth2Providers added in v0.1.18

func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationOauth2Providers(w http.ResponseWriter, r *http.Request)

GetApiV1OrganizationsOrganizationOauth2Providers operation middleware

func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationProjects added in v0.2.3

func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationProjects(w http.ResponseWriter, r *http.Request)

GetApiV1OrganizationsOrganizationProjects operation middleware

func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationRoles added in v0.1.24

func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationRoles(w http.ResponseWriter, r *http.Request)

GetApiV1OrganizationsOrganizationRoles operation middleware

func (*ServerInterfaceWrapper) GetOauth2V2Authorization

func (siw *ServerInterfaceWrapper) GetOauth2V2Authorization(w http.ResponseWriter, r *http.Request)

GetOauth2V2Authorization operation middleware

func (*ServerInterfaceWrapper) GetOauth2V2Jwks

func (siw *ServerInterfaceWrapper) GetOauth2V2Jwks(w http.ResponseWriter, r *http.Request)

GetOauth2V2Jwks operation middleware

func (*ServerInterfaceWrapper) GetOauth2V2Userinfo added in v0.1.14

func (siw *ServerInterfaceWrapper) GetOauth2V2Userinfo(w http.ResponseWriter, r *http.Request)

GetOauth2V2Userinfo operation middleware

func (*ServerInterfaceWrapper) GetOidcCallback

func (siw *ServerInterfaceWrapper) GetOidcCallback(w http.ResponseWriter, r *http.Request)

GetOidcCallback operation middleware

func (*ServerInterfaceWrapper) GetWellKnownOpenidConfiguration

func (siw *ServerInterfaceWrapper) GetWellKnownOpenidConfiguration(w http.ResponseWriter, r *http.Request)

GetWellKnownOpenidConfiguration operation middleware

func (*ServerInterfaceWrapper) PostApiV1Organizations added in v0.1.13

func (siw *ServerInterfaceWrapper) PostApiV1Organizations(w http.ResponseWriter, r *http.Request)

PostApiV1Organizations operation middleware

func (*ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationGroups added in v0.1.3

func (siw *ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationGroups(w http.ResponseWriter, r *http.Request)

PostApiV1OrganizationsOrganizationGroups operation middleware

func (*ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationProjects added in v0.2.3

func (siw *ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationProjects(w http.ResponseWriter, r *http.Request)

PostApiV1OrganizationsOrganizationProjects operation middleware

func (*ServerInterfaceWrapper) PostOauth2V2Login

func (siw *ServerInterfaceWrapper) PostOauth2V2Login(w http.ResponseWriter, r *http.Request)

PostOauth2V2Login operation middleware

func (*ServerInterfaceWrapper) PostOauth2V2Token

func (siw *ServerInterfaceWrapper) PostOauth2V2Token(w http.ResponseWriter, r *http.Request)

PostOauth2V2Token operation middleware

func (*ServerInterfaceWrapper) PutApiV1OrganizationsOrganization added in v0.1.3

func (siw *ServerInterfaceWrapper) PutApiV1OrganizationsOrganization(w http.ResponseWriter, r *http.Request)

PutApiV1OrganizationsOrganization operation middleware

func (*ServerInterfaceWrapper) PutApiV1OrganizationsOrganizationGroupsGroupid added in v0.1.3

func (siw *ServerInterfaceWrapper) PutApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request)

PutApiV1OrganizationsOrganizationGroupsGroupid operation middleware

type SigningAlgorithm

type SigningAlgorithm string

SigningAlgorithm Supported signing algorithms.

const (
	ES512 SigningAlgorithm = "ES512"
)

Defines values for SigningAlgorithm.

type Token

type Token struct {
	// AccessToken The opaque access token.
	AccessToken string `json:"access_token"`

	// ExpiresIn The time in seconds the token will last for.
	ExpiresIn int `json:"expires_in"`

	// IdToken An OIDC ID token.
	IdToken *string `json:"id_token,omitempty"`

	// TokenType How the access token is to be presented to the resource server.
	TokenType string `json:"token_type"`
}

Token Oauth2 token result.

type TokenRequestOptions

type TokenRequestOptions struct {
	// ClientId Client ID. Required with the "code" grant type.
	ClientId *string `json:"client_id"`

	// Code Authorization code. Required with the "code" grant type.
	Code *string `json:"code"`

	// CodeVerifier Client code verifier. Required with the "code" grant type.
	CodeVerifier *string `json:"code_verifier"`

	// GrantType Supported grant type.  Must be either "code" or "password".
	GrantType string `json:"grant_type"`

	// Password Resource owner password. Required with the "password" grant type.
	Password *string `json:"password"`

	// RedirectUri Client redirect URI. Required with the "code" grant type.
	RedirectUri *string `json:"redirect_uri"`

	// Username Resource owner username. Required with the "password" grant type.
	Username *string `json:"username"`
	// contains filtered or unexported fields
}

TokenRequestOptions oauth2 token endpoint.

func (TokenRequestOptions) AsTokenRequestOptions0

func (t TokenRequestOptions) AsTokenRequestOptions0() (TokenRequestOptions0, error)

AsTokenRequestOptions0 returns the union data inside the TokenRequestOptions as a TokenRequestOptions0

func (TokenRequestOptions) AsTokenRequestOptions1

func (t TokenRequestOptions) AsTokenRequestOptions1() (TokenRequestOptions1, error)

AsTokenRequestOptions1 returns the union data inside the TokenRequestOptions as a TokenRequestOptions1

func (*TokenRequestOptions) FromTokenRequestOptions0

func (t *TokenRequestOptions) FromTokenRequestOptions0(v TokenRequestOptions0) error

FromTokenRequestOptions0 overwrites any union data inside the TokenRequestOptions as the provided TokenRequestOptions0

func (*TokenRequestOptions) FromTokenRequestOptions1

func (t *TokenRequestOptions) FromTokenRequestOptions1(v TokenRequestOptions1) error

FromTokenRequestOptions1 overwrites any union data inside the TokenRequestOptions as the provided TokenRequestOptions1

func (TokenRequestOptions) MarshalJSON

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

func (*TokenRequestOptions) MergeTokenRequestOptions0

func (t *TokenRequestOptions) MergeTokenRequestOptions0(v TokenRequestOptions0) error

MergeTokenRequestOptions0 performs a merge with any union data inside the TokenRequestOptions, using the provided TokenRequestOptions0

func (*TokenRequestOptions) MergeTokenRequestOptions1

func (t *TokenRequestOptions) MergeTokenRequestOptions1(v TokenRequestOptions1) error

MergeTokenRequestOptions1 performs a merge with any union data inside the TokenRequestOptions, using the provided TokenRequestOptions1

func (*TokenRequestOptions) UnmarshalJSON

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

type TokenRequestOptions0

type TokenRequestOptions0 struct {
	GrantType *interface{} `json:"grant_type,omitempty"`
}

TokenRequestOptions0 defines model for .

type TokenRequestOptions1

type TokenRequestOptions1 struct {
	GrantType *interface{} `json:"grant_type,omitempty"`
}

TokenRequestOptions1 defines model for .

type TokenResponse

type TokenResponse = Token

TokenResponse Oauth2 token result.

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type UnauthorizedResponse

type UnauthorizedResponse = Oauth2Error

UnauthorizedResponse Generic error message.

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnmarshallingParamError

type UnmarshallingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshallingParamError) Error

func (e *UnmarshallingParamError) Error() string

func (*UnmarshallingParamError) Unwrap

func (e *UnmarshallingParamError) Unwrap() error

type UpdateGroupRequest added in v0.1.3

type UpdateGroupRequest = Group

UpdateGroupRequest A group.

type UpdateOrganizationRequest added in v0.1.3

type UpdateOrganizationRequest = Organization

UpdateOrganizationRequest An organization.

type UserList added in v0.1.20

type UserList = []string

UserList A list of users.

type UserinfoResponse added in v0.1.14

type UserinfoResponse interface{}

UserinfoResponse defines model for userinfoResponse.

Jump to

Keyboard shortcuts

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