auth_v1

package
v0.0.0-...-bd7fa6f Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 10 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 {
	// contains filtered or unexported fields
}

Client for auth v1 API

func New

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

New creates a new auth v1 API client.

func (*Client) Login

func (a *Client) Login(params *LoginParams, authInfo runtime.ClientAuthInfoWriter) (*LoginOK, error)

Login lists bookmarked runs for user

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type LoginForbidden

type LoginForbidden struct {
	Payload interface{}
}

LoginForbidden handles this case with default header values.

You don't have permission to access the resource.

func NewLoginForbidden

func NewLoginForbidden() *LoginForbidden

NewLoginForbidden creates a LoginForbidden with default headers values

func (*LoginForbidden) Error

func (o *LoginForbidden) Error() string

func (*LoginForbidden) GetPayload

func (o *LoginForbidden) GetPayload() interface{}

type LoginNotFound

type LoginNotFound struct {
	Payload string
}

LoginNotFound handles this case with default header values.

Resource does not exist.

func NewLoginNotFound

func NewLoginNotFound() *LoginNotFound

NewLoginNotFound creates a LoginNotFound with default headers values

func (*LoginNotFound) Error

func (o *LoginNotFound) Error() string

func (*LoginNotFound) GetPayload

func (o *LoginNotFound) GetPayload() string

type LoginOK

type LoginOK struct {
	Payload *service_model.V1Auth
}

LoginOK handles this case with default header values.

A successful response.

func NewLoginOK

func NewLoginOK() *LoginOK

NewLoginOK creates a LoginOK with default headers values

func (*LoginOK) Error

func (o *LoginOK) Error() string

func (*LoginOK) GetPayload

func (o *LoginOK) GetPayload() *service_model.V1Auth

type LoginParams

type LoginParams struct {

	/*Body*/
	Body *service_model.V1CredsBodyRequest

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

LoginParams contains all the parameters to send to the API endpoint for the login operation typically these are written to a http.Request

func NewLoginParams

func NewLoginParams() *LoginParams

NewLoginParams creates a new LoginParams object with the default values initialized.

func NewLoginParamsWithContext

func NewLoginParamsWithContext(ctx context.Context) *LoginParams

NewLoginParamsWithContext creates a new LoginParams object with the default values initialized, and the ability to set a context for a request

func NewLoginParamsWithHTTPClient

func NewLoginParamsWithHTTPClient(client *http.Client) *LoginParams

NewLoginParamsWithHTTPClient creates a new LoginParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewLoginParamsWithTimeout

func NewLoginParamsWithTimeout(timeout time.Duration) *LoginParams

NewLoginParamsWithTimeout creates a new LoginParams object with the default values initialized, and the ability to set a timeout on a request

func (*LoginParams) SetBody

func (o *LoginParams) SetBody(body *service_model.V1CredsBodyRequest)

SetBody adds the body to the login params

func (*LoginParams) SetContext

func (o *LoginParams) SetContext(ctx context.Context)

SetContext adds the context to the login params

func (*LoginParams) SetHTTPClient

func (o *LoginParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the login params

func (*LoginParams) SetTimeout

func (o *LoginParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the login params

func (*LoginParams) WithBody

WithBody adds the body to the login params

func (*LoginParams) WithContext

func (o *LoginParams) WithContext(ctx context.Context) *LoginParams

WithContext adds the context to the login params

func (*LoginParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the login params

func (*LoginParams) WithTimeout

func (o *LoginParams) WithTimeout(timeout time.Duration) *LoginParams

WithTimeout adds the timeout to the login params

func (*LoginParams) WriteToRequest

func (o *LoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type LoginReader

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

LoginReader is a Reader for the Login structure.

func (*LoginReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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