Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetUserSourcesForbidden
- func (o *GetUserSourcesForbidden) Code() int
- func (o *GetUserSourcesForbidden) Error() string
- func (o *GetUserSourcesForbidden) IsClientError() bool
- func (o *GetUserSourcesForbidden) IsCode(code int) bool
- func (o *GetUserSourcesForbidden) IsRedirect() bool
- func (o *GetUserSourcesForbidden) IsServerError() bool
- func (o *GetUserSourcesForbidden) IsSuccess() bool
- func (o *GetUserSourcesForbidden) String() string
- type GetUserSourcesOK
- func (o *GetUserSourcesOK) Code() int
- func (o *GetUserSourcesOK) Error() string
- func (o *GetUserSourcesOK) GetPayload() []*models.APIUserSource
- func (o *GetUserSourcesOK) IsClientError() bool
- func (o *GetUserSourcesOK) IsCode(code int) bool
- func (o *GetUserSourcesOK) IsRedirect() bool
- func (o *GetUserSourcesOK) IsServerError() bool
- func (o *GetUserSourcesOK) IsSuccess() bool
- func (o *GetUserSourcesOK) String() string
- type GetUserSourcesParams
- func NewGetUserSourcesParams() *GetUserSourcesParams
- func NewGetUserSourcesParamsWithContext(ctx context.Context) *GetUserSourcesParams
- func NewGetUserSourcesParamsWithHTTPClient(client *http.Client) *GetUserSourcesParams
- func NewGetUserSourcesParamsWithTimeout(timeout time.Duration) *GetUserSourcesParams
- func (o *GetUserSourcesParams) SetContext(ctx context.Context)
- func (o *GetUserSourcesParams) SetDefaults()
- func (o *GetUserSourcesParams) SetHTTPClient(client *http.Client)
- func (o *GetUserSourcesParams) SetTimeout(timeout time.Duration)
- func (o *GetUserSourcesParams) WithContext(ctx context.Context) *GetUserSourcesParams
- func (o *GetUserSourcesParams) WithDefaults() *GetUserSourcesParams
- func (o *GetUserSourcesParams) WithHTTPClient(client *http.Client) *GetUserSourcesParams
- func (o *GetUserSourcesParams) WithTimeout(timeout time.Duration) *GetUserSourcesParams
- func (o *GetUserSourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserSourcesReader
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 security management API
func (*Client) GetUserSources ¶
func (a *Client) GetUserSources(params *GetUserSourcesParams, opts ...ClientOption) (*GetUserSourcesOK, error)
GetUserSources retrieves a list of the available user sources
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetUserSources(params *GetUserSourcesParams, opts ...ClientOption) (*GetUserSourcesOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new security management API client.
type GetUserSourcesForbidden ¶
type GetUserSourcesForbidden struct { }
GetUserSourcesForbidden describes a response with status code 403, with default header values.
The user does not have permission to perform the operation.
func NewGetUserSourcesForbidden ¶
func NewGetUserSourcesForbidden() *GetUserSourcesForbidden
NewGetUserSourcesForbidden creates a GetUserSourcesForbidden with default headers values
func (*GetUserSourcesForbidden) Code ¶
func (o *GetUserSourcesForbidden) Code() int
Code gets the status code for the get user sources forbidden response
func (*GetUserSourcesForbidden) Error ¶
func (o *GetUserSourcesForbidden) Error() string
func (*GetUserSourcesForbidden) IsClientError ¶
func (o *GetUserSourcesForbidden) IsClientError() bool
IsClientError returns true when this get user sources forbidden response has a 4xx status code
func (*GetUserSourcesForbidden) IsCode ¶
func (o *GetUserSourcesForbidden) IsCode(code int) bool
IsCode returns true when this get user sources forbidden response a status code equal to that given
func (*GetUserSourcesForbidden) IsRedirect ¶
func (o *GetUserSourcesForbidden) IsRedirect() bool
IsRedirect returns true when this get user sources forbidden response has a 3xx status code
func (*GetUserSourcesForbidden) IsServerError ¶
func (o *GetUserSourcesForbidden) IsServerError() bool
IsServerError returns true when this get user sources forbidden response has a 5xx status code
func (*GetUserSourcesForbidden) IsSuccess ¶
func (o *GetUserSourcesForbidden) IsSuccess() bool
IsSuccess returns true when this get user sources forbidden response has a 2xx status code
func (*GetUserSourcesForbidden) String ¶
func (o *GetUserSourcesForbidden) String() string
type GetUserSourcesOK ¶
type GetUserSourcesOK struct {
Payload []*models.APIUserSource
}
GetUserSourcesOK describes a response with status code 200, with default header values.
successful operation
func NewGetUserSourcesOK ¶
func NewGetUserSourcesOK() *GetUserSourcesOK
NewGetUserSourcesOK creates a GetUserSourcesOK with default headers values
func (*GetUserSourcesOK) Code ¶
func (o *GetUserSourcesOK) Code() int
Code gets the status code for the get user sources o k response
func (*GetUserSourcesOK) Error ¶
func (o *GetUserSourcesOK) Error() string
func (*GetUserSourcesOK) GetPayload ¶
func (o *GetUserSourcesOK) GetPayload() []*models.APIUserSource
func (*GetUserSourcesOK) IsClientError ¶
func (o *GetUserSourcesOK) IsClientError() bool
IsClientError returns true when this get user sources o k response has a 4xx status code
func (*GetUserSourcesOK) IsCode ¶
func (o *GetUserSourcesOK) IsCode(code int) bool
IsCode returns true when this get user sources o k response a status code equal to that given
func (*GetUserSourcesOK) IsRedirect ¶
func (o *GetUserSourcesOK) IsRedirect() bool
IsRedirect returns true when this get user sources o k response has a 3xx status code
func (*GetUserSourcesOK) IsServerError ¶
func (o *GetUserSourcesOK) IsServerError() bool
IsServerError returns true when this get user sources o k response has a 5xx status code
func (*GetUserSourcesOK) IsSuccess ¶
func (o *GetUserSourcesOK) IsSuccess() bool
IsSuccess returns true when this get user sources o k response has a 2xx status code
func (*GetUserSourcesOK) String ¶
func (o *GetUserSourcesOK) String() string
type GetUserSourcesParams ¶
type GetUserSourcesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUserSourcesParams contains all the parameters to send to the API endpoint
for the get user sources operation. Typically these are written to a http.Request.
func NewGetUserSourcesParams ¶
func NewGetUserSourcesParams() *GetUserSourcesParams
NewGetUserSourcesParams creates a new GetUserSourcesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetUserSourcesParamsWithContext ¶
func NewGetUserSourcesParamsWithContext(ctx context.Context) *GetUserSourcesParams
NewGetUserSourcesParamsWithContext creates a new GetUserSourcesParams object with the ability to set a context for a request.
func NewGetUserSourcesParamsWithHTTPClient ¶
func NewGetUserSourcesParamsWithHTTPClient(client *http.Client) *GetUserSourcesParams
NewGetUserSourcesParamsWithHTTPClient creates a new GetUserSourcesParams object with the ability to set a custom HTTPClient for a request.
func NewGetUserSourcesParamsWithTimeout ¶
func NewGetUserSourcesParamsWithTimeout(timeout time.Duration) *GetUserSourcesParams
NewGetUserSourcesParamsWithTimeout creates a new GetUserSourcesParams object with the ability to set a timeout on a request.
func (*GetUserSourcesParams) SetContext ¶
func (o *GetUserSourcesParams) SetContext(ctx context.Context)
SetContext adds the context to the get user sources params
func (*GetUserSourcesParams) SetDefaults ¶
func (o *GetUserSourcesParams) SetDefaults()
SetDefaults hydrates default values in the get user sources params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserSourcesParams) SetHTTPClient ¶
func (o *GetUserSourcesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get user sources params
func (*GetUserSourcesParams) SetTimeout ¶
func (o *GetUserSourcesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get user sources params
func (*GetUserSourcesParams) WithContext ¶
func (o *GetUserSourcesParams) WithContext(ctx context.Context) *GetUserSourcesParams
WithContext adds the context to the get user sources params
func (*GetUserSourcesParams) WithDefaults ¶
func (o *GetUserSourcesParams) WithDefaults() *GetUserSourcesParams
WithDefaults hydrates default values in the get user sources params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserSourcesParams) WithHTTPClient ¶
func (o *GetUserSourcesParams) WithHTTPClient(client *http.Client) *GetUserSourcesParams
WithHTTPClient adds the HTTPClient to the get user sources params
func (*GetUserSourcesParams) WithTimeout ¶
func (o *GetUserSourcesParams) WithTimeout(timeout time.Duration) *GetUserSourcesParams
WithTimeout adds the timeout to the get user sources params
func (*GetUserSourcesParams) WriteToRequest ¶
func (o *GetUserSourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUserSourcesReader ¶
type GetUserSourcesReader struct {
// contains filtered or unexported fields
}
GetUserSourcesReader is a Reader for the GetUserSources structure.
func (*GetUserSourcesReader) ReadResponse ¶
func (o *GetUserSourcesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.