Documentation ¶
Index ¶
- type Client
- type LoginForbidden
- type LoginNotFound
- type LoginOK
- type LoginParams
- func (o *LoginParams) SetBody(body *service_model.V1CredsBodyRequest)
- func (o *LoginParams) SetContext(ctx context.Context)
- func (o *LoginParams) SetHTTPClient(client *http.Client)
- func (o *LoginParams) SetTimeout(timeout time.Duration)
- func (o *LoginParams) WithBody(body *service_model.V1CredsBodyRequest) *LoginParams
- func (o *LoginParams) WithContext(ctx context.Context) *LoginParams
- func (o *LoginParams) WithHTTPClient(client *http.Client) *LoginParams
- func (o *LoginParams) WithTimeout(timeout time.Duration) *LoginParams
- func (o *LoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LoginReader
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) 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 ¶
func (o *LoginParams) WithBody(body *service_model.V1CredsBodyRequest) *LoginParams
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.