Documentation
¶
Overview ¶
Package types provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.11.0 DO NOT EDIT.
Index ¶
- Variables
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- func NewGetAccessInstructionsRequest(server string, providerId string, params *GetAccessInstructionsParams) (*http.Request, error)
- func NewGetGrantsRequest(server string) (*http.Request, error)
- func NewGetHealthRequest(server string) (*http.Request, error)
- func NewGetProviderArgsRequest(server string, providerId string) (*http.Request, error)
- func NewGetProviderRequest(server string, providerId string) (*http.Request, error)
- func NewGrantID() string
- func NewListProviderArgOptionsRequest(server string, providerId string, argId string) (*http.Request, error)
- func NewListProvidersRequest(server string) (*http.Request, error)
- func NewPostGrantsRequest(server string, body PostGrantsJSONRequestBody) (*http.Request, error)
- func NewPostGrantsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostGrantsRevokeRequest(server string, grantId string, body PostGrantsRevokeJSONRequestBody) (*http.Request, error)
- func NewPostGrantsRevokeRequestWithBody(server string, grantId string, contentType string, body io.Reader) (*http.Request, error)
- func NewRefreshAccessProvidersRequest(server string) (*http.Request, error)
- func NewValidateGrantRequest(server string, body ValidateGrantJSONRequestBody) (*http.Request, error)
- func NewValidateGrantRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewValidateSetupRequest(server string, body ValidateSetupJSONRequestBody) (*http.Request, error)
- func NewValidateSetupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type AccessInstructions
- type ArgOptions
- type ArgOptionsResponse
- type ArgSchema
- type Argument
- type ArgumentRequestFormElement
- type ArgumentRuleFormElement
- type Argument_Groups
- type ChiServerOptions
- type Client
- func (c *Client) GetAccessInstructions(ctx context.Context, providerId string, params *GetAccessInstructionsParams, ...) (*http.Response, error)
- func (c *Client) GetGrants(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProvider(ctx context.Context, providerId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProviderArgs(ctx context.Context, providerId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListProviderArgOptions(ctx context.Context, providerId string, argId string, ...) (*http.Response, error)
- func (c *Client) ListProviders(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostGrants(ctx context.Context, body PostGrantsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostGrantsRevoke(ctx context.Context, grantId string, body PostGrantsRevokeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostGrantsRevokeWithBody(ctx context.Context, grantId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostGrantsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RefreshAccessProviders(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ValidateGrant(ctx context.Context, body ValidateGrantJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ValidateGrantWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ValidateSetup(ctx context.Context, body ValidateSetupJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ValidateSetupWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetAccessInstructionsWithResponse(ctx context.Context, providerId string, params *GetAccessInstructionsParams, ...) (*GetAccessInstructionsResponse, error)
- func (c *ClientWithResponses) GetGrantsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGrantsResponse, error)
- func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
- func (c *ClientWithResponses) GetProviderArgsWithResponse(ctx context.Context, providerId string, reqEditors ...RequestEditorFn) (*GetProviderArgsResponse, error)
- func (c *ClientWithResponses) GetProviderWithResponse(ctx context.Context, providerId string, reqEditors ...RequestEditorFn) (*GetProviderResponse, error)
- func (c *ClientWithResponses) ListProviderArgOptionsWithResponse(ctx context.Context, providerId string, argId string, ...) (*ListProviderArgOptionsResponse, error)
- func (c *ClientWithResponses) ListProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error)
- func (c *ClientWithResponses) PostGrantsRevokeWithBodyWithResponse(ctx context.Context, grantId string, contentType string, body io.Reader, ...) (*PostGrantsRevokeResponse, error)
- func (c *ClientWithResponses) PostGrantsRevokeWithResponse(ctx context.Context, grantId string, body PostGrantsRevokeJSONRequestBody, ...) (*PostGrantsRevokeResponse, error)
- func (c *ClientWithResponses) PostGrantsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostGrantsResponse, error)
- func (c *ClientWithResponses) PostGrantsWithResponse(ctx context.Context, body PostGrantsJSONRequestBody, ...) (*PostGrantsResponse, error)
- func (c *ClientWithResponses) RefreshAccessProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAccessProvidersResponse, error)
- func (c *ClientWithResponses) ValidateGrantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ValidateGrantResponse, error)
- func (c *ClientWithResponses) ValidateGrantWithResponse(ctx context.Context, body ValidateGrantJSONRequestBody, ...) (*ValidateGrantResponse, error)
- func (c *ClientWithResponses) ValidateSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ValidateSetupResponse, error)
- func (c *ClientWithResponses) ValidateSetupWithResponse(ctx context.Context, body ValidateSetupJSONRequestBody, ...) (*ValidateSetupResponse, error)
- type ClientWithResponsesInterface
- type CreateGrant
- type CreateGrant_With
- type ErrInvalidGrantTime
- type ErrorResponse
- type GetAccessInstructionsParams
- type GetAccessInstructionsResponse
- type GetGrantsResponse
- type GetHealthResponse
- type GetProviderArgsResponse
- type GetProviderResponse
- type Grant
- type GrantResponse
- type GrantStatus
- type Grant_With
- type Group
- type GroupOption
- type Groups
- type HealthResponse
- type HttpRequestDoer
- type InvalidParamFormatError
- type ListProviderArgOptionsResponse
- type ListProvidersResponse
- type Log
- type LogLevel
- type MiddlewareFunc
- type Option
- type PostGrantsJSONBody
- type PostGrantsJSONRequestBody
- type PostGrantsResponse
- type PostGrantsRevokeJSONBody
- type PostGrantsRevokeJSONRequestBody
- type PostGrantsRevokeResponse
- type Provider
- type ProviderConfigValidation
- type ProviderConfigValidationStatus
- type ProviderHealth
- type RefreshAccessProvidersResponse
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) GetAccessInstructions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetGrants(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProviderArgs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListProviderArgOptions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostGrants(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostGrantsRevoke(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RefreshAccessProviders(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ValidateGrant(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ValidateSetup(w http.ResponseWriter, r *http.Request)
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type ValidCreateGrant
- type ValidateGrantJSONBody
- type ValidateGrantJSONRequestBody
- type ValidateGrantResponse
- type ValidateRequest
- type ValidateResponse
- type ValidateSetupJSONRequestBody
- type ValidateSetupResponse
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidGrantID = errors.New("invalid grant id")
Functions ¶
func GetSwagger ¶
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 NewGetAccessInstructionsRequest ¶
func NewGetAccessInstructionsRequest(server string, providerId string, params *GetAccessInstructionsParams) (*http.Request, error)
NewGetAccessInstructionsRequest generates requests for GetAccessInstructions
func NewGetGrantsRequest ¶
NewGetGrantsRequest generates requests for GetGrants
func NewGetHealthRequest ¶
NewGetHealthRequest generates requests for GetHealth
func NewGetProviderArgsRequest ¶
NewGetProviderArgsRequest generates requests for GetProviderArgs
func NewGetProviderRequest ¶
NewGetProviderRequest generates requests for GetProvider
func NewGrantID ¶
func NewGrantID() string
func NewListProviderArgOptionsRequest ¶
func NewListProviderArgOptionsRequest(server string, providerId string, argId string) (*http.Request, error)
NewListProviderArgOptionsRequest generates requests for ListProviderArgOptions
func NewListProvidersRequest ¶
NewListProvidersRequest generates requests for ListProviders
func NewPostGrantsRequest ¶
func NewPostGrantsRequest(server string, body PostGrantsJSONRequestBody) (*http.Request, error)
NewPostGrantsRequest calls the generic PostGrants builder with application/json body
func NewPostGrantsRequestWithBody ¶
func NewPostGrantsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostGrantsRequestWithBody generates requests for PostGrants with any type of body
func NewPostGrantsRevokeRequest ¶
func NewPostGrantsRevokeRequest(server string, grantId string, body PostGrantsRevokeJSONRequestBody) (*http.Request, error)
NewPostGrantsRevokeRequest calls the generic PostGrantsRevoke builder with application/json body
func NewPostGrantsRevokeRequestWithBody ¶
func NewPostGrantsRevokeRequestWithBody(server string, grantId string, contentType string, body io.Reader) (*http.Request, error)
NewPostGrantsRevokeRequestWithBody generates requests for PostGrantsRevoke with any type of body
func NewRefreshAccessProvidersRequest ¶
NewRefreshAccessProvidersRequest generates requests for RefreshAccessProviders
func NewValidateGrantRequest ¶
func NewValidateGrantRequest(server string, body ValidateGrantJSONRequestBody) (*http.Request, error)
NewValidateGrantRequest calls the generic ValidateGrant builder with application/json body
func NewValidateGrantRequestWithBody ¶
func NewValidateGrantRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewValidateGrantRequestWithBody generates requests for ValidateGrant with any type of body
func NewValidateSetupRequest ¶
func NewValidateSetupRequest(server string, body ValidateSetupJSONRequestBody) (*http.Request, error)
NewValidateSetupRequest calls the generic ValidateSetup builder with application/json body
Types ¶
type AccessInstructions ¶
type AccessInstructions struct { // Instructions on how to access the role or resource. Instructions *string `json:"instructions,omitempty"` }
Instructions on how to access the requested resource.
The `instructions` field will be null if no instructions are available.
type ArgOptions ¶ added in v0.13.0
type ArgOptions struct { Groups *Groups `json:"groups,omitempty"` // The suggested options. Options []Option `json:"options"` }
ArgOptions defines model for ArgOptions.
type ArgOptionsResponse ¶
type ArgOptionsResponse = ArgOptions
ArgOptionsResponse defines model for ArgOptionsResponse.
type ArgSchema ¶
ArgSchema defines model for ArgSchema.
func (ArgSchema) Get ¶
Getter for additional properties for ArgSchema. Returns the specified element and whether it was found
func (ArgSchema) MarshalJSON ¶
Override default JSON handling for ArgSchema to handle AdditionalProperties
func (*ArgSchema) UnmarshalJSON ¶
Override default JSON handling for ArgSchema to handle AdditionalProperties
type Argument ¶
type Argument struct { Description *string `json:"description,omitempty"` Groups *Argument_Groups `json:"groups,omitempty"` Id string `json:"id"` // Optional form element for the request form, if not provided, defaults to multiselect RequestFormElement *ArgumentRequestFormElement `json:"requestFormElement,omitempty"` ResourceName *string `json:"resourceName,omitempty"` RuleFormElement ArgumentRuleFormElement `json:"ruleFormElement"` Title string `json:"title"` }
Argument defines model for Argument.
type ArgumentRequestFormElement ¶
type ArgumentRequestFormElement string
Optional form element for the request form, if not provided, defaults to multiselect
const (
ArgumentRequestFormElementSELECT ArgumentRequestFormElement = "SELECT"
)
Defines values for ArgumentRequestFormElement.
type ArgumentRuleFormElement ¶
type ArgumentRuleFormElement string
ArgumentRuleFormElement defines model for Argument.RuleFormElement.
const ( ArgumentRuleFormElementINPUT ArgumentRuleFormElement = "INPUT" ArgumentRuleFormElementMULTISELECT ArgumentRuleFormElement = "MULTISELECT" ArgumentRuleFormElementSELECT ArgumentRuleFormElement = "SELECT" )
Defines values for ArgumentRuleFormElement.
type Argument_Groups ¶
Argument_Groups defines model for Argument.Groups.
func (Argument_Groups) Get ¶
func (a Argument_Groups) Get(fieldName string) (value Group, found bool)
Getter for additional properties for Argument_Groups. Returns the specified element and whether it was found
func (Argument_Groups) MarshalJSON ¶
func (a Argument_Groups) MarshalJSON() ([]byte, error)
Override default JSON handling for Argument_Groups to handle AdditionalProperties
func (*Argument_Groups) Set ¶
func (a *Argument_Groups) Set(fieldName string, value Group)
Setter for additional properties for Argument_Groups
func (*Argument_Groups) UnmarshalJSON ¶
func (a *Argument_Groups) UnmarshalJSON(b []byte) error
Override default JSON handling for Argument_Groups to handle AdditionalProperties
type ChiServerOptions ¶
type ChiServerOptions struct { BaseURL string BaseRouter chi.Router Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
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) GetAccessInstructions ¶
func (c *Client) GetAccessInstructions(ctx context.Context, providerId string, params *GetAccessInstructionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetProvider ¶
func (*Client) GetProviderArgs ¶
func (*Client) ListProviderArgOptions ¶
func (*Client) ListProviders ¶
func (*Client) PostGrants ¶
func (c *Client) PostGrants(ctx context.Context, body PostGrantsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostGrantsRevoke ¶
func (c *Client) PostGrantsRevoke(ctx context.Context, grantId string, body PostGrantsRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostGrantsRevokeWithBody ¶
func (*Client) PostGrantsWithBody ¶
func (*Client) RefreshAccessProviders ¶
func (*Client) ValidateGrant ¶
func (c *Client) ValidateGrant(ctx context.Context, body ValidateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ValidateGrantWithBody ¶
func (*Client) ValidateSetup ¶
func (c *Client) ValidateSetup(ctx context.Context, body ValidateSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // GetGrants request GetGrants(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // PostGrants request with any body PostGrantsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostGrants(ctx context.Context, body PostGrantsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ValidateGrant request with any body ValidateGrantWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ValidateGrant(ctx context.Context, body ValidateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostGrantsRevoke request with any body PostGrantsRevokeWithBody(ctx context.Context, grantId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostGrantsRevoke(ctx context.Context, grantId string, body PostGrantsRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetHealth request GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // ListProviders request ListProviders(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // RefreshAccessProviders request RefreshAccessProviders(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProvider request GetProvider(ctx context.Context, providerId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetAccessInstructions request GetAccessInstructions(ctx context.Context, providerId string, params *GetAccessInstructionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProviderArgs request GetProviderArgs(ctx context.Context, providerId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListProviderArgOptions request ListProviderArgOptions(ctx context.Context, providerId string, argId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ValidateSetup request with any body ValidateSetupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ValidateSetup(ctx context.Context, body ValidateSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
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) GetAccessInstructionsWithResponse ¶
func (c *ClientWithResponses) GetAccessInstructionsWithResponse(ctx context.Context, providerId string, params *GetAccessInstructionsParams, reqEditors ...RequestEditorFn) (*GetAccessInstructionsResponse, error)
GetAccessInstructionsWithResponse request returning *GetAccessInstructionsResponse
func (*ClientWithResponses) GetGrantsWithResponse ¶
func (c *ClientWithResponses) GetGrantsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGrantsResponse, error)
GetGrantsWithResponse request returning *GetGrantsResponse
func (*ClientWithResponses) GetHealthWithResponse ¶
func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
GetHealthWithResponse request returning *GetHealthResponse
func (*ClientWithResponses) GetProviderArgsWithResponse ¶
func (c *ClientWithResponses) GetProviderArgsWithResponse(ctx context.Context, providerId string, reqEditors ...RequestEditorFn) (*GetProviderArgsResponse, error)
GetProviderArgsWithResponse request returning *GetProviderArgsResponse
func (*ClientWithResponses) GetProviderWithResponse ¶
func (c *ClientWithResponses) GetProviderWithResponse(ctx context.Context, providerId string, reqEditors ...RequestEditorFn) (*GetProviderResponse, error)
GetProviderWithResponse request returning *GetProviderResponse
func (*ClientWithResponses) ListProviderArgOptionsWithResponse ¶
func (c *ClientWithResponses) ListProviderArgOptionsWithResponse(ctx context.Context, providerId string, argId string, reqEditors ...RequestEditorFn) (*ListProviderArgOptionsResponse, error)
ListProviderArgOptionsWithResponse request returning *ListProviderArgOptionsResponse
func (*ClientWithResponses) ListProvidersWithResponse ¶
func (c *ClientWithResponses) ListProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error)
ListProvidersWithResponse request returning *ListProvidersResponse
func (*ClientWithResponses) PostGrantsRevokeWithBodyWithResponse ¶
func (c *ClientWithResponses) PostGrantsRevokeWithBodyWithResponse(ctx context.Context, grantId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostGrantsRevokeResponse, error)
PostGrantsRevokeWithBodyWithResponse request with arbitrary body returning *PostGrantsRevokeResponse
func (*ClientWithResponses) PostGrantsRevokeWithResponse ¶
func (c *ClientWithResponses) PostGrantsRevokeWithResponse(ctx context.Context, grantId string, body PostGrantsRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostGrantsRevokeResponse, error)
func (*ClientWithResponses) PostGrantsWithBodyWithResponse ¶
func (c *ClientWithResponses) PostGrantsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostGrantsResponse, error)
PostGrantsWithBodyWithResponse request with arbitrary body returning *PostGrantsResponse
func (*ClientWithResponses) PostGrantsWithResponse ¶
func (c *ClientWithResponses) PostGrantsWithResponse(ctx context.Context, body PostGrantsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostGrantsResponse, error)
func (*ClientWithResponses) RefreshAccessProvidersWithResponse ¶
func (c *ClientWithResponses) RefreshAccessProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAccessProvidersResponse, error)
RefreshAccessProvidersWithResponse request returning *RefreshAccessProvidersResponse
func (*ClientWithResponses) ValidateGrantWithBodyWithResponse ¶
func (c *ClientWithResponses) ValidateGrantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateGrantResponse, error)
ValidateGrantWithBodyWithResponse request with arbitrary body returning *ValidateGrantResponse
func (*ClientWithResponses) ValidateGrantWithResponse ¶
func (c *ClientWithResponses) ValidateGrantWithResponse(ctx context.Context, body ValidateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateGrantResponse, error)
func (*ClientWithResponses) ValidateSetupWithBodyWithResponse ¶
func (c *ClientWithResponses) ValidateSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateSetupResponse, error)
ValidateSetupWithBodyWithResponse request with arbitrary body returning *ValidateSetupResponse
func (*ClientWithResponses) ValidateSetupWithResponse ¶
func (c *ClientWithResponses) ValidateSetupWithResponse(ctx context.Context, body ValidateSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateSetupResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetGrants request GetGrantsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGrantsResponse, error) // PostGrants request with any body PostGrantsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostGrantsResponse, error) PostGrantsWithResponse(ctx context.Context, body PostGrantsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostGrantsResponse, error) // ValidateGrant request with any body ValidateGrantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateGrantResponse, error) ValidateGrantWithResponse(ctx context.Context, body ValidateGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateGrantResponse, error) // PostGrantsRevoke request with any body PostGrantsRevokeWithBodyWithResponse(ctx context.Context, grantId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostGrantsRevokeResponse, error) PostGrantsRevokeWithResponse(ctx context.Context, grantId string, body PostGrantsRevokeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostGrantsRevokeResponse, error) // GetHealth request GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error) // ListProviders request ListProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error) // RefreshAccessProviders request RefreshAccessProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAccessProvidersResponse, error) // GetProvider request GetProviderWithResponse(ctx context.Context, providerId string, reqEditors ...RequestEditorFn) (*GetProviderResponse, error) // GetAccessInstructions request GetAccessInstructionsWithResponse(ctx context.Context, providerId string, params *GetAccessInstructionsParams, reqEditors ...RequestEditorFn) (*GetAccessInstructionsResponse, error) // GetProviderArgs request GetProviderArgsWithResponse(ctx context.Context, providerId string, reqEditors ...RequestEditorFn) (*GetProviderArgsResponse, error) // ListProviderArgOptions request ListProviderArgOptionsWithResponse(ctx context.Context, providerId string, argId string, reqEditors ...RequestEditorFn) (*ListProviderArgOptionsResponse, error) // ValidateSetup request with any body ValidateSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateSetupResponse, error) ValidateSetupWithResponse(ctx context.Context, body ValidateSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateSetupResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateGrant ¶
type CreateGrant struct { // The end time of the grant in ISO8601 format. End iso8601.Time `json:"end"` // An id to assign to this new grant Id string `json:"id"` // The ID of the provider to grant access to. Provider string `json:"provider"` // The start time of the grant in ISO8601 format. Start iso8601.Time `json:"start"` // The email address of the user to grant access to. Subject openapi_types.Email `json:"subject"` // Provider-specific grant data. Must match the provider's schema. With CreateGrant_With `json:"with"` }
A grant to be created.
func (*CreateGrant) Validate ¶
func (cg *CreateGrant) Validate(ctx context.Context, now time.Time) (*ValidCreateGrant, error)
Validate a grant. If a grant is valid, a ValidGrant object is returned.
Currently this doesn't do any validation of the `with` field against our providers.
type CreateGrant_With ¶
Provider-specific grant data. Must match the provider's schema.
func (CreateGrant_With) Get ¶
func (a CreateGrant_With) Get(fieldName string) (value string, found bool)
Getter for additional properties for CreateGrant_With. Returns the specified element and whether it was found
func (CreateGrant_With) MarshalJSON ¶
func (a CreateGrant_With) MarshalJSON() ([]byte, error)
Override default JSON handling for CreateGrant_With to handle AdditionalProperties
func (*CreateGrant_With) Set ¶
func (a *CreateGrant_With) Set(fieldName string, value string)
Setter for additional properties for CreateGrant_With
func (*CreateGrant_With) UnmarshalJSON ¶
func (a *CreateGrant_With) UnmarshalJSON(b []byte) error
Override default JSON handling for CreateGrant_With to handle AdditionalProperties
type ErrInvalidGrantTime ¶
type ErrInvalidGrantTime struct {
Msg string
}
func (ErrInvalidGrantTime) Error ¶
func (e ErrInvalidGrantTime) Error() string
type ErrorResponse ¶
type ErrorResponse struct {
Error *string `json:"error,omitempty"`
}
ErrorResponse defines model for ErrorResponse.
type GetAccessInstructionsParams ¶
type GetAccessInstructionsParams struct { // the user's email address Subject string `form:"subject" json:"subject"` // the argument payload in JSON format Args string `form:"args" json:"args"` // ID of the grant instructions GrantId string `form:"grantId" json:"grantId"` // The URL of the Common Fate dashboard FrontendUrl string `form:"frontendUrl" json:"frontendUrl"` }
GetAccessInstructionsParams defines parameters for GetAccessInstructions.
type GetAccessInstructionsResponse ¶
type GetAccessInstructionsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AccessInstructions JSON400 *struct { Error *string `json:"error,omitempty"` } JSON404 *struct { Error *string `json:"error,omitempty"` } }
func ParseGetAccessInstructionsResponse ¶
func ParseGetAccessInstructionsResponse(rsp *http.Response) (*GetAccessInstructionsResponse, error)
ParseGetAccessInstructionsResponse parses an HTTP response from a GetAccessInstructionsWithResponse call
func (GetAccessInstructionsResponse) Status ¶
func (r GetAccessInstructionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAccessInstructionsResponse) StatusCode ¶
func (r GetAccessInstructionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGrantsResponse ¶
type GetGrantsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Grants *[]Grant `json:"grants,omitempty"` } JSON500 *struct { Error *string `json:"error,omitempty"` } }
func ParseGetGrantsResponse ¶
func ParseGetGrantsResponse(rsp *http.Response) (*GetGrantsResponse, error)
ParseGetGrantsResponse parses an HTTP response from a GetGrantsWithResponse call
func (GetGrantsResponse) Status ¶
func (r GetGrantsResponse) Status() string
Status returns HTTPResponse.Status
func (GetGrantsResponse) StatusCode ¶
func (r GetGrantsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHealthResponse ¶
type GetHealthResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Health *ProviderHealth `json:"health,omitempty"` } JSON500 *struct { Health *ProviderHealth `json:"health,omitempty"` } }
func ParseGetHealthResponse ¶
func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)
ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call
func (GetHealthResponse) Status ¶
func (r GetHealthResponse) Status() string
Status returns HTTPResponse.Status
func (GetHealthResponse) StatusCode ¶
func (r GetHealthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProviderArgsResponse ¶
type GetProviderArgsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ArgSchema JSON404 *struct { Error *string `json:"error,omitempty"` } JSON500 *struct { Error *string `json:"error,omitempty"` } }
func ParseGetProviderArgsResponse ¶
func ParseGetProviderArgsResponse(rsp *http.Response) (*GetProviderArgsResponse, error)
ParseGetProviderArgsResponse parses an HTTP response from a GetProviderArgsWithResponse call
func (GetProviderArgsResponse) Status ¶
func (r GetProviderArgsResponse) Status() string
Status returns HTTPResponse.Status
func (GetProviderArgsResponse) StatusCode ¶
func (r GetProviderArgsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProviderResponse ¶
type GetProviderResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Provider JSON404 *struct { Error *string `json:"error,omitempty"` } JSON500 *struct { Error *string `json:"error,omitempty"` } }
func ParseGetProviderResponse ¶
func ParseGetProviderResponse(rsp *http.Response) (*GetProviderResponse, error)
ParseGetProviderResponse parses an HTTP response from a GetProviderWithResponse call
func (GetProviderResponse) Status ¶
func (r GetProviderResponse) Status() string
Status returns HTTPResponse.Status
func (GetProviderResponse) StatusCode ¶
func (r GetProviderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Grant ¶
type Grant struct { // The end time of the grant in ISO8601 format. End iso8601.Time `json:"end"` ID string `json:"id"` // The ID of the provider to grant access to. Provider string `json:"provider"` // The start time of the grant in ISO8601 format. Start iso8601.Time `json:"start"` // The current state of the grant. Status GrantStatus `json:"status"` // The email address of the user to grant access to. Subject openapi_types.Email `json:"subject"` // Provider-specific grant data. Must match the provider's schema. With Grant_With `json:"with"` }
A temporary assignment of a user to a principal.
func NewGrant ¶
func NewGrant(vcg ValidCreateGrant) Grant
NewGrant creates a pending Grant from a validated CreateGrant payload.
type GrantResponse ¶
type GrantResponse struct { // A temporary assignment of a user to a principal. Grant Grant `json:"grant"` }
GrantResponse defines model for GrantResponse.
type GrantStatus ¶
type GrantStatus string
The current state of the grant.
const ( GrantStatusACTIVE GrantStatus = "ACTIVE" GrantStatusERROR GrantStatus = "ERROR" GrantStatusEXPIRED GrantStatus = "EXPIRED" GrantStatusPENDING GrantStatus = "PENDING" GrantStatusREVOKED GrantStatus = "REVOKED" )
Defines values for GrantStatus.
type Grant_With ¶
Provider-specific grant data. Must match the provider's schema.
func (Grant_With) Get ¶
func (a Grant_With) Get(fieldName string) (value string, found bool)
Getter for additional properties for Grant_With. Returns the specified element and whether it was found
func (Grant_With) MarshalJSON ¶
func (a Grant_With) MarshalJSON() ([]byte, error)
Override default JSON handling for Grant_With to handle AdditionalProperties
func (*Grant_With) Set ¶
func (a *Grant_With) Set(fieldName string, value string)
Setter for additional properties for Grant_With
func (*Grant_With) UnmarshalJSON ¶
func (a *Grant_With) UnmarshalJSON(b []byte) error
Override default JSON handling for Grant_With to handle AdditionalProperties
type Group ¶
type Group struct { Description *string `json:"description,omitempty"` Id string `json:"id"` Title string `json:"title"` }
Group defines model for Group.
type GroupOption ¶
type GroupOption struct { Children []string `json:"children"` Description *string `json:"description,omitempty"` Label string `json:"label"` // A label prefix allows additional context to be prefixed to the label when displayed in a form LabelPrefix *string `json:"labelPrefix,omitempty"` Value string `json:"value"` }
GroupOption defines model for GroupOption.
type Groups ¶
type Groups struct {
AdditionalProperties map[string][]GroupOption `json:"-"`
}
Groups defines model for Groups.
func (Groups) Get ¶
func (a Groups) Get(fieldName string) (value []GroupOption, found bool)
Getter for additional properties for Groups. Returns the specified element and whether it was found
func (Groups) MarshalJSON ¶
Override default JSON handling for Groups to handle AdditionalProperties
func (*Groups) Set ¶
func (a *Groups) Set(fieldName string, value []GroupOption)
Setter for additional properties for Groups
func (*Groups) UnmarshalJSON ¶
Override default JSON handling for Groups to handle AdditionalProperties
type HealthResponse ¶
type HealthResponse struct {
Health *ProviderHealth `json:"health,omitempty"`
}
HealthResponse defines model for HealthResponse.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type ListProviderArgOptionsResponse ¶
type ListProviderArgOptionsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ArgOptions JSON404 *struct { Error *string `json:"error,omitempty"` } JSON500 *struct { Error *string `json:"error,omitempty"` } }
func ParseListProviderArgOptionsResponse ¶
func ParseListProviderArgOptionsResponse(rsp *http.Response) (*ListProviderArgOptionsResponse, error)
ParseListProviderArgOptionsResponse parses an HTTP response from a ListProviderArgOptionsWithResponse call
func (ListProviderArgOptionsResponse) Status ¶
func (r ListProviderArgOptionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListProviderArgOptionsResponse) StatusCode ¶
func (r ListProviderArgOptionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListProvidersResponse ¶
type ListProvidersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]Provider JSON500 *struct { Error *string `json:"error,omitempty"` } }
func ParseListProvidersResponse ¶
func ParseListProvidersResponse(rsp *http.Response) (*ListProvidersResponse, error)
ParseListProvidersResponse parses an HTTP response from a ListProvidersWithResponse call
func (ListProvidersResponse) Status ¶
func (r ListProvidersResponse) Status() string
Status returns HTTPResponse.Status
func (ListProvidersResponse) StatusCode ¶
func (r ListProvidersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Log ¶
type Log struct { // The log level. Level LogLevel `json:"level"` // The log message. Msg string `json:"msg"` }
A log entry.
type MiddlewareFunc ¶
type MiddlewareFunc func(http.HandlerFunc) http.HandlerFunc
type Option ¶
type Option struct { Description *string `json:"description,omitempty"` Label string `json:"label"` Value string `json:"value"` }
Option defines model for Option.
type PostGrantsJSONBody ¶
type PostGrantsJSONBody = CreateGrant
PostGrantsJSONBody defines parameters for PostGrants.
type PostGrantsJSONRequestBody ¶
type PostGrantsJSONRequestBody = PostGrantsJSONBody
PostGrantsJSONRequestBody defines body for PostGrants for application/json ContentType.
type PostGrantsResponse ¶
type PostGrantsResponse struct { Body []byte HTTPResponse *http.Response JSON201 *struct { // A temporary assignment of a user to a principal. Grant Grant `json:"grant"` } JSON400 *struct { Error *string `json:"error,omitempty"` } JSON500 *struct { Error *string `json:"error,omitempty"` } }
func ParsePostGrantsResponse ¶
func ParsePostGrantsResponse(rsp *http.Response) (*PostGrantsResponse, error)
ParsePostGrantsResponse parses an HTTP response from a PostGrantsWithResponse call
func (PostGrantsResponse) Status ¶
func (r PostGrantsResponse) Status() string
Status returns HTTPResponse.Status
func (PostGrantsResponse) StatusCode ¶
func (r PostGrantsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostGrantsRevokeJSONBody ¶
type PostGrantsRevokeJSONBody struct { // An id representiing the user calling this API will be included in the GrantRevoked event RevokerId string `json:"revokerId"` }
PostGrantsRevokeJSONBody defines parameters for PostGrantsRevoke.
type PostGrantsRevokeJSONRequestBody ¶
type PostGrantsRevokeJSONRequestBody PostGrantsRevokeJSONBody
PostGrantsRevokeJSONRequestBody defines body for PostGrantsRevoke for application/json ContentType.
type PostGrantsRevokeResponse ¶
type PostGrantsRevokeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // A temporary assignment of a user to a principal. Grant Grant `json:"grant"` } JSON400 *struct { Error *string `json:"error,omitempty"` } JSON500 *struct { Error *string `json:"error,omitempty"` } }
func ParsePostGrantsRevokeResponse ¶
func ParsePostGrantsRevokeResponse(rsp *http.Response) (*PostGrantsRevokeResponse, error)
ParsePostGrantsRevokeResponse parses an HTTP response from a PostGrantsRevokeWithResponse call
func (PostGrantsRevokeResponse) Status ¶
func (r PostGrantsRevokeResponse) Status() string
Status returns HTTPResponse.Status
func (PostGrantsRevokeResponse) StatusCode ¶
func (r PostGrantsRevokeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProviderConfigValidation ¶
type ProviderConfigValidation struct { // The particular config fields validated, if any. FieldsValidated []string `json:"fieldsValidated"` // The ID of the validation, such as `list-sso-users`. Id string `json:"id"` Logs []Log `json:"logs"` Name string `json:"name"` // The status of the validation. Status ProviderConfigValidationStatus `json:"status"` }
A validation against the configuration values of the Access Provider.
type ProviderConfigValidationStatus ¶
type ProviderConfigValidationStatus string
The status of the validation.
const ( ERROR ProviderConfigValidationStatus = "ERROR" INPROGRESS ProviderConfigValidationStatus = "IN_PROGRESS" PENDING ProviderConfigValidationStatus = "PENDING" SUCCESS ProviderConfigValidationStatus = "SUCCESS" )
Defines values for ProviderConfigValidationStatus.
type ProviderHealth ¶
type ProviderHealth struct { // A descriptive error message, if the provider isn't healthy. Error *string `json:"error"` // Whether the provider is healthy. Healthy bool `json:"healthy"` // The provider ID. ID string `json:"id"` }
ProviderHealth defines model for ProviderHealth.
type RefreshAccessProvidersResponse ¶
type RefreshAccessProvidersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]Provider }
func ParseRefreshAccessProvidersResponse ¶
func ParseRefreshAccessProvidersResponse(rsp *http.Response) (*RefreshAccessProvidersResponse, error)
ParseRefreshAccessProvidersResponse parses an HTTP response from a RefreshAccessProvidersWithResponse call
func (RefreshAccessProvidersResponse) Status ¶
func (r RefreshAccessProvidersResponse) Status() string
Status returns HTTPResponse.Status
func (RefreshAccessProvidersResponse) StatusCode ¶
func (r RefreshAccessProvidersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
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 ServerInterface ¶
type ServerInterface interface { // List Grants // (GET /api/v1/grants) GetGrants(w http.ResponseWriter, r *http.Request) // Create Grant // (POST /api/v1/grants) PostGrants(w http.ResponseWriter, r *http.Request) // ValidateGrant // (POST /api/v1/grants/validate) ValidateGrant(w http.ResponseWriter, r *http.Request) // Revoke grant // (POST /api/v1/grants/{grantId}/revoke) PostGrantsRevoke(w http.ResponseWriter, r *http.Request, grantId string) // Healthcheck // (GET /api/v1/health) GetHealth(w http.ResponseWriter, r *http.Request) // List providers // (GET /api/v1/providers) ListProviders(w http.ResponseWriter, r *http.Request) // Refresh Access Providers // (POST /api/v1/providers/refresh) RefreshAccessProviders(w http.ResponseWriter, r *http.Request) // Get provider // (GET /api/v1/providers/{providerId}) GetProvider(w http.ResponseWriter, r *http.Request, providerId string) // Get Access Instructions // (GET /api/v1/providers/{providerId}/access-instructions) GetAccessInstructions(w http.ResponseWriter, r *http.Request, providerId string, params GetAccessInstructionsParams) // Get provider arg schema // (GET /api/v1/providers/{providerId}/args) GetProviderArgs(w http.ResponseWriter, r *http.Request, providerId string) // List provider arg options // (GET /api/v1/providers/{providerId}/args/{argId}/options) ListProviderArgOptions(w http.ResponseWriter, r *http.Request, providerId string, argId string) // Validate an Access Provider's settings // (POST /api/v1/setup/validate) ValidateSetup(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) GetAccessInstructions ¶
func (siw *ServerInterfaceWrapper) GetAccessInstructions(w http.ResponseWriter, r *http.Request)
GetAccessInstructions operation middleware
func (*ServerInterfaceWrapper) GetGrants ¶
func (siw *ServerInterfaceWrapper) GetGrants(w http.ResponseWriter, r *http.Request)
GetGrants operation middleware
func (*ServerInterfaceWrapper) GetHealth ¶
func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)
GetHealth operation middleware
func (*ServerInterfaceWrapper) GetProvider ¶
func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Request)
GetProvider operation middleware
func (*ServerInterfaceWrapper) GetProviderArgs ¶
func (siw *ServerInterfaceWrapper) GetProviderArgs(w http.ResponseWriter, r *http.Request)
GetProviderArgs operation middleware
func (*ServerInterfaceWrapper) ListProviderArgOptions ¶
func (siw *ServerInterfaceWrapper) ListProviderArgOptions(w http.ResponseWriter, r *http.Request)
ListProviderArgOptions operation middleware
func (*ServerInterfaceWrapper) ListProviders ¶
func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http.Request)
ListProviders operation middleware
func (*ServerInterfaceWrapper) PostGrants ¶
func (siw *ServerInterfaceWrapper) PostGrants(w http.ResponseWriter, r *http.Request)
PostGrants operation middleware
func (*ServerInterfaceWrapper) PostGrantsRevoke ¶
func (siw *ServerInterfaceWrapper) PostGrantsRevoke(w http.ResponseWriter, r *http.Request)
PostGrantsRevoke operation middleware
func (*ServerInterfaceWrapper) RefreshAccessProviders ¶
func (siw *ServerInterfaceWrapper) RefreshAccessProviders(w http.ResponseWriter, r *http.Request)
RefreshAccessProviders operation middleware
func (*ServerInterfaceWrapper) ValidateGrant ¶
func (siw *ServerInterfaceWrapper) ValidateGrant(w http.ResponseWriter, r *http.Request)
ValidateGrant operation middleware
func (*ServerInterfaceWrapper) ValidateSetup ¶
func (siw *ServerInterfaceWrapper) ValidateSetup(w http.ResponseWriter, r *http.Request)
ValidateSetup operation middleware
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type ValidCreateGrant ¶
type ValidCreateGrant struct {
CreateGrant
}
ValidCreateGrant is a grant which has been validated.
calling .Validate() on a CreateGrant will give you a ValidCreateGrant object if validation passes.
We use ValidCreateGrant wherever possible in the codebase to ensure that only validated grants are provisioned.
type ValidateGrantJSONBody ¶
type ValidateGrantJSONBody = CreateGrant
ValidateGrantJSONBody defines parameters for ValidateGrant.
type ValidateGrantJSONRequestBody ¶
type ValidateGrantJSONRequestBody = ValidateGrantJSONBody
ValidateGrantJSONRequestBody defines body for ValidateGrant for application/json ContentType.
type ValidateGrantResponse ¶
type ValidateGrantResponse struct { Body []byte HTTPResponse *http.Response JSON400 *struct { Error *string `json:"error,omitempty"` } JSON500 *struct { Error *string `json:"error,omitempty"` } }
func ParseValidateGrantResponse ¶
func ParseValidateGrantResponse(rsp *http.Response) (*ValidateGrantResponse, error)
ParseValidateGrantResponse parses an HTTP response from a ValidateGrantWithResponse call
func (ValidateGrantResponse) Status ¶
func (r ValidateGrantResponse) Status() string
Status returns HTTPResponse.Status
func (ValidateGrantResponse) StatusCode ¶
func (r ValidateGrantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ValidateRequest ¶
type ValidateRequest struct { // The full type definition of the provider Uses string `json:"uses"` // The provider's configuration. With map[string]string `json:"with"` }
ValidateRequest defines model for ValidateRequest.
type ValidateResponse ¶
type ValidateResponse struct {
Validations []ProviderConfigValidation `json:"validations"`
}
ValidateResponse defines model for ValidateResponse.
type ValidateSetupJSONRequestBody ¶
type ValidateSetupJSONRequestBody ValidateRequest
ValidateSetupJSONRequestBody defines body for ValidateSetup for application/json ContentType.
type ValidateSetupResponse ¶
type ValidateSetupResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Validations []ProviderConfigValidation `json:"validations"` } JSON400 *struct { Error *string `json:"error,omitempty"` } }
func ParseValidateSetupResponse ¶
func ParseValidateSetupResponse(rsp *http.Response) (*ValidateSetupResponse, error)
ParseValidateSetupResponse parses an HTTP response from a ValidateSetupWithResponse call
func (ValidateSetupResponse) Status ¶
func (r ValidateSetupResponse) Status() string
Status returns HTTPResponse.Status
func (ValidateSetupResponse) StatusCode ¶
func (r ValidateSetupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode