oauth2

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Defaults client.Defaults
	// contains filtered or unexported fields
}

Client for oauth2 API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, defaults client.Defaults) *Client

New creates a new oauth2 API client.

func (*Client) CreateOauthToken

func (c *Client) CreateOauthToken() *CreateOauthTokenRequest

Client.CreateOauthToken creates a new CreateOauthTokenRequest object with the default values initialized.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type CreateOauthTokenForbidden

type CreateOauthTokenForbidden struct {
}

CreateOauthTokenForbidden handles this case with default header values.

Authentication failed

func NewCreateOauthTokenForbidden

func NewCreateOauthTokenForbidden() *CreateOauthTokenForbidden

NewCreateOauthTokenForbidden creates a CreateOauthTokenForbidden with default headers values

func (*CreateOauthTokenForbidden) Error

func (o *CreateOauthTokenForbidden) Error() string

type CreateOauthTokenOK

type CreateOauthTokenOK struct {

	// isStream: false
	*models.Token
}

CreateOauthTokenOK handles this case with default header values.

Authorisation token (Bearer)

func NewCreateOauthTokenOK

func NewCreateOauthTokenOK() *CreateOauthTokenOK

NewCreateOauthTokenOK creates a CreateOauthTokenOK with default headers values

func (*CreateOauthTokenOK) Error

func (o *CreateOauthTokenOK) Error() string

type CreateOauthTokenReader

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

CreateOauthTokenReader is a Reader for the CreateOauthToken structure.

func (*CreateOauthTokenReader) ReadResponse

func (o *CreateOauthTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CreateOauthTokenRequest

type CreateOauthTokenRequest struct {
	GrantType string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func (*CreateOauthTokenRequest) Do

create oauth token API

func (*CreateOauthTokenRequest) FromJson

func (*CreateOauthTokenRequest) MustDo

func (*CreateOauthTokenRequest) WithContext

//////////////// WithContext adds the context to the create oauth token Request

func (*CreateOauthTokenRequest) WithGrantType

func (o *CreateOauthTokenRequest) WithGrantType(grantType string) *CreateOauthTokenRequest

func (*CreateOauthTokenRequest) WithHTTPClient

func (o *CreateOauthTokenRequest) WithHTTPClient(client *http.Client) *CreateOauthTokenRequest

WithHTTPClient adds the HTTPClient to the create oauth token Request

func (*CreateOauthTokenRequest) WriteToRequest

WriteToRequest writes these Request to a swagger request

Jump to

Keyboard shortcuts

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