auth

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2016 License: Apache-2.0 Imports: 8 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 API

func New

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

New creates a new auth API client.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UserLogin

func (a *Client) UserLogin(params *UserLoginParams) (*UserLoginOK, error)

UserLogin logs the user

User login

type UserLoginDefault

type UserLoginDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

UserLoginDefault handles this case with default header values.

Error

func NewUserLoginDefault

func NewUserLoginDefault(code int) *UserLoginDefault

NewUserLoginDefault creates a UserLoginDefault with default headers values

func (*UserLoginDefault) Code

func (o *UserLoginDefault) Code() int

Code gets the status code for the user login default response

func (*UserLoginDefault) Error

func (o *UserLoginDefault) Error() string

type UserLoginForbidden

type UserLoginForbidden struct {
	Payload *models.Forbidden
}

UserLoginForbidden handles this case with default header values.

Forbidden

func NewUserLoginForbidden

func NewUserLoginForbidden() *UserLoginForbidden

NewUserLoginForbidden creates a UserLoginForbidden with default headers values

func (*UserLoginForbidden) Error

func (o *UserLoginForbidden) Error() string

type UserLoginOK

type UserLoginOK struct {
	Payload *models.LoginToken
}

UserLoginOK handles this case with default header values.

Login token

func NewUserLoginOK

func NewUserLoginOK() *UserLoginOK

NewUserLoginOK creates a UserLoginOK with default headers values

func (*UserLoginOK) Error

func (o *UserLoginOK) Error() string

type UserLoginParams

type UserLoginParams struct {

	/*Body*/
	Body *models.Login
	// contains filtered or unexported fields
}

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

func NewUserLoginParams

func NewUserLoginParams() *UserLoginParams

NewUserLoginParams creates a new UserLoginParams object with the default values initialized.

func NewUserLoginParamsWithTimeout

func NewUserLoginParamsWithTimeout(timeout time.Duration) *UserLoginParams

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

func (*UserLoginParams) WithBody

func (o *UserLoginParams) WithBody(body *models.Login) *UserLoginParams

WithBody adds the body to the user login params

func (*UserLoginParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserLoginReader

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

UserLoginReader is a Reader for the UserLogin structure.

func (*UserLoginReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type UserLoginUnauthorized

type UserLoginUnauthorized struct {
	Payload *models.Forbidden
}

UserLoginUnauthorized handles this case with default header values.

Unauthorized

func NewUserLoginUnauthorized

func NewUserLoginUnauthorized() *UserLoginUnauthorized

NewUserLoginUnauthorized creates a UserLoginUnauthorized with default headers values

func (*UserLoginUnauthorized) Error

func (o *UserLoginUnauthorized) Error() string

Jump to

Keyboard shortcuts

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