authentication

package
v0.0.0-...-c7cb77a Latest Latest
Warning

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

Go to latest
Published: Jul 12, 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 authentication API

func New

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

New creates a new authentication API client.

func (*Client) Login

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

Login logins and get token

Authenticates the user and obtains authentication token to use in subsequent api calls. If valid X-SDS-AUTH-TOKEN is provided, that will be used instead of creating the new authentication token. Setting the queryParam "using-cookies" to "true" sets the following cookies in the response.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type LoginDefault

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

LoginDefault handles this case with default header values.

Error Message

func NewLoginDefault

func NewLoginDefault(code int) *LoginDefault

NewLoginDefault creates a LoginDefault with default headers values

func (*LoginDefault) Code

func (o *LoginDefault) Code() int

Code gets the status code for the login default response

func (*LoginDefault) Error

func (o *LoginDefault) Error() string

type LoginOK

type LoginOK struct {
	/*User Token
	 */
	XSDSAUTHTOKEN string

	Payload LoginOKBodyBody
}

LoginOK handles this case with default header values.

User Name Object

func NewLoginOK

func NewLoginOK() *LoginOK

NewLoginOK creates a LoginOK with default headers values

func (*LoginOK) Error

func (o *LoginOK) Error() string

type LoginOKBodyBody

type LoginOKBodyBody interface{}

LoginOKBodyBody login o k body body

swagger:model LoginOKBodyBody

type LoginParams

type LoginParams struct {
	// 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 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) 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 recieved o.

Jump to

Keyboard shortcuts

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