Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ListTemplatesForbidden
- type ListTemplatesInternalServerError
- type ListTemplatesNotFound
- type ListTemplatesOK
- type ListTemplatesParams
- func (o *ListTemplatesParams) SetContext(ctx context.Context)
- func (o *ListTemplatesParams) SetDefaults()
- func (o *ListTemplatesParams) SetHTTPClient(client *http.Client)
- func (o *ListTemplatesParams) SetTimeout(timeout time.Duration)
- func (o *ListTemplatesParams) WithContext(ctx context.Context) *ListTemplatesParams
- func (o *ListTemplatesParams) WithDefaults() *ListTemplatesParams
- func (o *ListTemplatesParams) WithHTTPClient(client *http.Client) *ListTemplatesParams
- func (o *ListTemplatesParams) WithTimeout(timeout time.Duration) *ListTemplatesParams
- func (o *ListTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListTemplatesReader
- type ListTemplatesUnauthorized
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 templates service API
func (*Client) ListTemplates ¶
func (a *Client) ListTemplates(params *ListTemplatesParams, opts ...ClientOption) (*ListTemplatesOK, error)
ListTemplates lists available templates
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 { ListTemplates(params *ListTemplatesParams, opts ...ClientOption) (*ListTemplatesOK, 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 templates service API client.
type ListTemplatesForbidden ¶
ListTemplatesForbidden describes a response with status code 403, with default header values.
User has no permission to access this resource
func NewListTemplatesForbidden ¶
func NewListTemplatesForbidden() *ListTemplatesForbidden
NewListTemplatesForbidden creates a ListTemplatesForbidden with default headers values
func (*ListTemplatesForbidden) Error ¶
func (o *ListTemplatesForbidden) Error() string
func (*ListTemplatesForbidden) GetPayload ¶
func (o *ListTemplatesForbidden) GetPayload() *models.RestError
type ListTemplatesInternalServerError ¶
ListTemplatesInternalServerError describes a response with status code 500, with default header values.
An internal error occurred in the backend
func NewListTemplatesInternalServerError ¶
func NewListTemplatesInternalServerError() *ListTemplatesInternalServerError
NewListTemplatesInternalServerError creates a ListTemplatesInternalServerError with default headers values
func (*ListTemplatesInternalServerError) Error ¶
func (o *ListTemplatesInternalServerError) Error() string
func (*ListTemplatesInternalServerError) GetPayload ¶
func (o *ListTemplatesInternalServerError) GetPayload() *models.RestError
type ListTemplatesNotFound ¶
ListTemplatesNotFound describes a response with status code 404, with default header values.
Resource does not exist in the system
func NewListTemplatesNotFound ¶
func NewListTemplatesNotFound() *ListTemplatesNotFound
NewListTemplatesNotFound creates a ListTemplatesNotFound with default headers values
func (*ListTemplatesNotFound) Error ¶
func (o *ListTemplatesNotFound) Error() string
func (*ListTemplatesNotFound) GetPayload ¶
func (o *ListTemplatesNotFound) GetPayload() *models.RestError
type ListTemplatesOK ¶
type ListTemplatesOK struct {
Payload *models.RestListTemplatesResponse
}
ListTemplatesOK describes a response with status code 200, with default header values.
ListTemplatesOK list templates o k
func NewListTemplatesOK ¶
func NewListTemplatesOK() *ListTemplatesOK
NewListTemplatesOK creates a ListTemplatesOK with default headers values
func (*ListTemplatesOK) Error ¶
func (o *ListTemplatesOK) Error() string
func (*ListTemplatesOK) GetPayload ¶
func (o *ListTemplatesOK) GetPayload() *models.RestListTemplatesResponse
type ListTemplatesParams ¶
type ListTemplatesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListTemplatesParams contains all the parameters to send to the API endpoint
for the list templates operation. Typically these are written to a http.Request.
func NewListTemplatesParams ¶
func NewListTemplatesParams() *ListTemplatesParams
NewListTemplatesParams creates a new ListTemplatesParams 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 NewListTemplatesParamsWithContext ¶
func NewListTemplatesParamsWithContext(ctx context.Context) *ListTemplatesParams
NewListTemplatesParamsWithContext creates a new ListTemplatesParams object with the ability to set a context for a request.
func NewListTemplatesParamsWithHTTPClient ¶
func NewListTemplatesParamsWithHTTPClient(client *http.Client) *ListTemplatesParams
NewListTemplatesParamsWithHTTPClient creates a new ListTemplatesParams object with the ability to set a custom HTTPClient for a request.
func NewListTemplatesParamsWithTimeout ¶
func NewListTemplatesParamsWithTimeout(timeout time.Duration) *ListTemplatesParams
NewListTemplatesParamsWithTimeout creates a new ListTemplatesParams object with the ability to set a timeout on a request.
func (*ListTemplatesParams) SetContext ¶
func (o *ListTemplatesParams) SetContext(ctx context.Context)
SetContext adds the context to the list templates params
func (*ListTemplatesParams) SetDefaults ¶
func (o *ListTemplatesParams) SetDefaults()
SetDefaults hydrates default values in the list templates params (not the query body).
All values with no default are reset to their zero value.
func (*ListTemplatesParams) SetHTTPClient ¶
func (o *ListTemplatesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list templates params
func (*ListTemplatesParams) SetTimeout ¶
func (o *ListTemplatesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list templates params
func (*ListTemplatesParams) WithContext ¶
func (o *ListTemplatesParams) WithContext(ctx context.Context) *ListTemplatesParams
WithContext adds the context to the list templates params
func (*ListTemplatesParams) WithDefaults ¶
func (o *ListTemplatesParams) WithDefaults() *ListTemplatesParams
WithDefaults hydrates default values in the list templates params (not the query body).
All values with no default are reset to their zero value.
func (*ListTemplatesParams) WithHTTPClient ¶
func (o *ListTemplatesParams) WithHTTPClient(client *http.Client) *ListTemplatesParams
WithHTTPClient adds the HTTPClient to the list templates params
func (*ListTemplatesParams) WithTimeout ¶
func (o *ListTemplatesParams) WithTimeout(timeout time.Duration) *ListTemplatesParams
WithTimeout adds the timeout to the list templates params
func (*ListTemplatesParams) WriteToRequest ¶
func (o *ListTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListTemplatesReader ¶
type ListTemplatesReader struct {
// contains filtered or unexported fields
}
ListTemplatesReader is a Reader for the ListTemplates structure.
func (*ListTemplatesReader) ReadResponse ¶
func (o *ListTemplatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListTemplatesUnauthorized ¶
type ListTemplatesUnauthorized struct { }
ListTemplatesUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewListTemplatesUnauthorized ¶
func NewListTemplatesUnauthorized() *ListTemplatesUnauthorized
NewListTemplatesUnauthorized creates a ListTemplatesUnauthorized with default headers values
func (*ListTemplatesUnauthorized) Error ¶
func (o *ListTemplatesUnauthorized) Error() string