authentication

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: NCSA 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 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 to m l model scope platform

func (*Client) Logout

func (a *Client) Logout(params *LogoutParams) (*LogoutOK, error)

Logout logouts from m l model scope platform

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Signup

func (a *Client) Signup(params *SignupParams) (*SignupOK, error)

Signup signups to m l model scope platform

func (*Client) Update

func (a *Client) Update(params *UpdateParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateOK, error)

Update updates user info on m l model scope platform

func (*Client) UserInfo

func (a *Client) UserInfo(params *UserInfoParams) (*UserInfoOK, error)

UserInfo gets user s information

type LoginOK

type LoginOK struct {
	Payload *models.DlframeworkLoginResponse
}

LoginOK handles this case with default header values.

LoginOK login o k

func NewLoginOK

func NewLoginOK() *LoginOK

NewLoginOK creates a LoginOK with default headers values

func (*LoginOK) Error

func (o *LoginOK) Error() string

type LoginParams

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

type LogoutOK

type LogoutOK struct {
	Payload *models.DlframeworkLogoutResponse
}

LogoutOK handles this case with default header values.

LogoutOK logout o k

func NewLogoutOK

func NewLogoutOK() *LogoutOK

NewLogoutOK creates a LogoutOK with default headers values

func (*LogoutOK) Error

func (o *LogoutOK) Error() string

type LogoutParams

type LogoutParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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

func NewLogoutParams

func NewLogoutParams() *LogoutParams

NewLogoutParams creates a new LogoutParams object with the default values initialized.

func NewLogoutParamsWithContext

func NewLogoutParamsWithContext(ctx context.Context) *LogoutParams

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

func NewLogoutParamsWithHTTPClient

func NewLogoutParamsWithHTTPClient(client *http.Client) *LogoutParams

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

func NewLogoutParamsWithTimeout

func NewLogoutParamsWithTimeout(timeout time.Duration) *LogoutParams

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

func (*LogoutParams) SetContext

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

SetContext adds the context to the logout params

func (*LogoutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the logout params

func (*LogoutParams) SetTimeout

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

SetTimeout adds the timeout to the logout params

func (*LogoutParams) WithContext

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

WithContext adds the context to the logout params

func (*LogoutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the logout params

func (*LogoutParams) WithTimeout

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

WithTimeout adds the timeout to the logout params

func (*LogoutParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type LogoutReader

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

LogoutReader is a Reader for the Logout structure.

func (*LogoutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SignupOK

type SignupOK struct {
	Payload *models.DlframeworkSignupResponse
}

SignupOK handles this case with default header values.

SignupOK signup o k

func NewSignupOK

func NewSignupOK() *SignupOK

NewSignupOK creates a SignupOK with default headers values

func (*SignupOK) Error

func (o *SignupOK) Error() string

type SignupParams

type SignupParams struct {

	/*Body*/
	Body *models.DlframeworkSignup

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

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

func NewSignupParams

func NewSignupParams() *SignupParams

NewSignupParams creates a new SignupParams object with the default values initialized.

func NewSignupParamsWithContext

func NewSignupParamsWithContext(ctx context.Context) *SignupParams

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

func NewSignupParamsWithHTTPClient

func NewSignupParamsWithHTTPClient(client *http.Client) *SignupParams

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

func NewSignupParamsWithTimeout

func NewSignupParamsWithTimeout(timeout time.Duration) *SignupParams

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

func (*SignupParams) SetBody

func (o *SignupParams) SetBody(body *models.DlframeworkSignup)

SetBody adds the body to the signup params

func (*SignupParams) SetContext

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

SetContext adds the context to the signup params

func (*SignupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the signup params

func (*SignupParams) SetTimeout

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

SetTimeout adds the timeout to the signup params

func (*SignupParams) WithBody

func (o *SignupParams) WithBody(body *models.DlframeworkSignup) *SignupParams

WithBody adds the body to the signup params

func (*SignupParams) WithContext

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

WithContext adds the context to the signup params

func (*SignupParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the signup params

func (*SignupParams) WithTimeout

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

WithTimeout adds the timeout to the signup params

func (*SignupParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SignupReader

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

SignupReader is a Reader for the Signup structure.

func (*SignupReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateOK

type UpdateOK struct {
	Payload *models.DlframeworkUpdateResponse
}

UpdateOK handles this case with default header values.

UpdateOK update o k

func NewUpdateOK

func NewUpdateOK() *UpdateOK

NewUpdateOK creates a UpdateOK with default headers values

func (*UpdateOK) Error

func (o *UpdateOK) Error() string

type UpdateParams

type UpdateParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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

func NewUpdateParams

func NewUpdateParams() *UpdateParams

NewUpdateParams creates a new UpdateParams object with the default values initialized.

func NewUpdateParamsWithContext

func NewUpdateParamsWithContext(ctx context.Context) *UpdateParams

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

func NewUpdateParamsWithHTTPClient

func NewUpdateParamsWithHTTPClient(client *http.Client) *UpdateParams

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

func NewUpdateParamsWithTimeout

func NewUpdateParamsWithTimeout(timeout time.Duration) *UpdateParams

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

func (*UpdateParams) SetContext

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

SetContext adds the context to the update params

func (*UpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update params

func (*UpdateParams) SetTimeout

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

SetTimeout adds the timeout to the update params

func (*UpdateParams) WithContext

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

WithContext adds the context to the update params

func (*UpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update params

func (*UpdateParams) WithTimeout

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

WithTimeout adds the timeout to the update params

func (*UpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateReader

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

UpdateReader is a Reader for the Update structure.

func (*UpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserInfoOK

type UserInfoOK struct {
	Payload *models.DlframeworkUserInfoResponse
}

UserInfoOK handles this case with default header values.

UserInfoOK user info o k

func NewUserInfoOK

func NewUserInfoOK() *UserInfoOK

NewUserInfoOK creates a UserInfoOK with default headers values

func (*UserInfoOK) Error

func (o *UserInfoOK) Error() string

type UserInfoParams

type UserInfoParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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

func NewUserInfoParams

func NewUserInfoParams() *UserInfoParams

NewUserInfoParams creates a new UserInfoParams object with the default values initialized.

func NewUserInfoParamsWithContext

func NewUserInfoParamsWithContext(ctx context.Context) *UserInfoParams

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

func NewUserInfoParamsWithHTTPClient

func NewUserInfoParamsWithHTTPClient(client *http.Client) *UserInfoParams

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

func NewUserInfoParamsWithTimeout

func NewUserInfoParamsWithTimeout(timeout time.Duration) *UserInfoParams

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

func (*UserInfoParams) SetContext

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

SetContext adds the context to the user info params

func (*UserInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user info params

func (*UserInfoParams) SetTimeout

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

SetTimeout adds the timeout to the user info params

func (*UserInfoParams) WithContext

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

WithContext adds the context to the user info params

func (*UserInfoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user info params

func (*UserInfoParams) WithTimeout

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

WithTimeout adds the timeout to the user info params

func (*UserInfoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserInfoReader

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

UserInfoReader is a Reader for the UserInfo structure.

func (*UserInfoReader) ReadResponse

func (o *UserInfoReader) 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