Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ListTemplatesForbidden
- func (o *ListTemplatesForbidden) Code() int
- func (o *ListTemplatesForbidden) Error() string
- func (o *ListTemplatesForbidden) GetPayload() *models.RestError
- func (o *ListTemplatesForbidden) IsClientError() bool
- func (o *ListTemplatesForbidden) IsCode(code int) bool
- func (o *ListTemplatesForbidden) IsRedirect() bool
- func (o *ListTemplatesForbidden) IsServerError() bool
- func (o *ListTemplatesForbidden) IsSuccess() bool
- func (o *ListTemplatesForbidden) String() string
- type ListTemplatesInternalServerError
- func (o *ListTemplatesInternalServerError) Code() int
- func (o *ListTemplatesInternalServerError) Error() string
- func (o *ListTemplatesInternalServerError) GetPayload() *models.RestError
- func (o *ListTemplatesInternalServerError) IsClientError() bool
- func (o *ListTemplatesInternalServerError) IsCode(code int) bool
- func (o *ListTemplatesInternalServerError) IsRedirect() bool
- func (o *ListTemplatesInternalServerError) IsServerError() bool
- func (o *ListTemplatesInternalServerError) IsSuccess() bool
- func (o *ListTemplatesInternalServerError) String() string
- type ListTemplatesNotFound
- func (o *ListTemplatesNotFound) Code() int
- func (o *ListTemplatesNotFound) Error() string
- func (o *ListTemplatesNotFound) GetPayload() *models.RestError
- func (o *ListTemplatesNotFound) IsClientError() bool
- func (o *ListTemplatesNotFound) IsCode(code int) bool
- func (o *ListTemplatesNotFound) IsRedirect() bool
- func (o *ListTemplatesNotFound) IsServerError() bool
- func (o *ListTemplatesNotFound) IsSuccess() bool
- func (o *ListTemplatesNotFound) String() string
- type ListTemplatesOK
- func (o *ListTemplatesOK) Code() int
- func (o *ListTemplatesOK) Error() string
- func (o *ListTemplatesOK) GetPayload() *models.RestListTemplatesResponse
- func (o *ListTemplatesOK) IsClientError() bool
- func (o *ListTemplatesOK) IsCode(code int) bool
- func (o *ListTemplatesOK) IsRedirect() bool
- func (o *ListTemplatesOK) IsServerError() bool
- func (o *ListTemplatesOK) IsSuccess() bool
- func (o *ListTemplatesOK) String() string
- type ListTemplatesParams
- func (o *ListTemplatesParams) SetContext(ctx context.Context)
- func (o *ListTemplatesParams) SetDefaults()
- func (o *ListTemplatesParams) SetHTTPClient(client *http.Client)
- func (o *ListTemplatesParams) SetTemplateType(templateType *string)
- 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) WithTemplateType(templateType *string) *ListTemplatesParams
- func (o *ListTemplatesParams) WithTimeout(timeout time.Duration) *ListTemplatesParams
- func (o *ListTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListTemplatesReader
- type ListTemplatesUnauthorized
- func (o *ListTemplatesUnauthorized) Code() int
- func (o *ListTemplatesUnauthorized) Error() string
- func (o *ListTemplatesUnauthorized) IsClientError() bool
- func (o *ListTemplatesUnauthorized) IsCode(code int) bool
- func (o *ListTemplatesUnauthorized) IsRedirect() bool
- func (o *ListTemplatesUnauthorized) IsServerError() bool
- func (o *ListTemplatesUnauthorized) IsSuccess() bool
- func (o *ListTemplatesUnauthorized) String() string
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) Code ¶
func (o *ListTemplatesForbidden) Code() int
Code gets the status code for the list templates forbidden response
func (*ListTemplatesForbidden) Error ¶
func (o *ListTemplatesForbidden) Error() string
func (*ListTemplatesForbidden) GetPayload ¶
func (o *ListTemplatesForbidden) GetPayload() *models.RestError
func (*ListTemplatesForbidden) IsClientError ¶
func (o *ListTemplatesForbidden) IsClientError() bool
IsClientError returns true when this list templates forbidden response has a 4xx status code
func (*ListTemplatesForbidden) IsCode ¶
func (o *ListTemplatesForbidden) IsCode(code int) bool
IsCode returns true when this list templates forbidden response a status code equal to that given
func (*ListTemplatesForbidden) IsRedirect ¶
func (o *ListTemplatesForbidden) IsRedirect() bool
IsRedirect returns true when this list templates forbidden response has a 3xx status code
func (*ListTemplatesForbidden) IsServerError ¶
func (o *ListTemplatesForbidden) IsServerError() bool
IsServerError returns true when this list templates forbidden response has a 5xx status code
func (*ListTemplatesForbidden) IsSuccess ¶
func (o *ListTemplatesForbidden) IsSuccess() bool
IsSuccess returns true when this list templates forbidden response has a 2xx status code
func (*ListTemplatesForbidden) String ¶
func (o *ListTemplatesForbidden) String() string
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) Code ¶
func (o *ListTemplatesInternalServerError) Code() int
Code gets the status code for the list templates internal server error response
func (*ListTemplatesInternalServerError) Error ¶
func (o *ListTemplatesInternalServerError) Error() string
func (*ListTemplatesInternalServerError) GetPayload ¶
func (o *ListTemplatesInternalServerError) GetPayload() *models.RestError
func (*ListTemplatesInternalServerError) IsClientError ¶
func (o *ListTemplatesInternalServerError) IsClientError() bool
IsClientError returns true when this list templates internal server error response has a 4xx status code
func (*ListTemplatesInternalServerError) IsCode ¶
func (o *ListTemplatesInternalServerError) IsCode(code int) bool
IsCode returns true when this list templates internal server error response a status code equal to that given
func (*ListTemplatesInternalServerError) IsRedirect ¶
func (o *ListTemplatesInternalServerError) IsRedirect() bool
IsRedirect returns true when this list templates internal server error response has a 3xx status code
func (*ListTemplatesInternalServerError) IsServerError ¶
func (o *ListTemplatesInternalServerError) IsServerError() bool
IsServerError returns true when this list templates internal server error response has a 5xx status code
func (*ListTemplatesInternalServerError) IsSuccess ¶
func (o *ListTemplatesInternalServerError) IsSuccess() bool
IsSuccess returns true when this list templates internal server error response has a 2xx status code
func (*ListTemplatesInternalServerError) String ¶
func (o *ListTemplatesInternalServerError) String() string
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) Code ¶
func (o *ListTemplatesNotFound) Code() int
Code gets the status code for the list templates not found response
func (*ListTemplatesNotFound) Error ¶
func (o *ListTemplatesNotFound) Error() string
func (*ListTemplatesNotFound) GetPayload ¶
func (o *ListTemplatesNotFound) GetPayload() *models.RestError
func (*ListTemplatesNotFound) IsClientError ¶
func (o *ListTemplatesNotFound) IsClientError() bool
IsClientError returns true when this list templates not found response has a 4xx status code
func (*ListTemplatesNotFound) IsCode ¶
func (o *ListTemplatesNotFound) IsCode(code int) bool
IsCode returns true when this list templates not found response a status code equal to that given
func (*ListTemplatesNotFound) IsRedirect ¶
func (o *ListTemplatesNotFound) IsRedirect() bool
IsRedirect returns true when this list templates not found response has a 3xx status code
func (*ListTemplatesNotFound) IsServerError ¶
func (o *ListTemplatesNotFound) IsServerError() bool
IsServerError returns true when this list templates not found response has a 5xx status code
func (*ListTemplatesNotFound) IsSuccess ¶
func (o *ListTemplatesNotFound) IsSuccess() bool
IsSuccess returns true when this list templates not found response has a 2xx status code
func (*ListTemplatesNotFound) String ¶
func (o *ListTemplatesNotFound) String() string
type ListTemplatesOK ¶
type ListTemplatesOK struct {
Payload *models.RestListTemplatesResponse
}
ListTemplatesOK describes a response with status code 200, with default header values.
A successful response.
func NewListTemplatesOK ¶
func NewListTemplatesOK() *ListTemplatesOK
NewListTemplatesOK creates a ListTemplatesOK with default headers values
func (*ListTemplatesOK) Code ¶
func (o *ListTemplatesOK) Code() int
Code gets the status code for the list templates o k response
func (*ListTemplatesOK) Error ¶
func (o *ListTemplatesOK) Error() string
func (*ListTemplatesOK) GetPayload ¶
func (o *ListTemplatesOK) GetPayload() *models.RestListTemplatesResponse
func (*ListTemplatesOK) IsClientError ¶
func (o *ListTemplatesOK) IsClientError() bool
IsClientError returns true when this list templates o k response has a 4xx status code
func (*ListTemplatesOK) IsCode ¶
func (o *ListTemplatesOK) IsCode(code int) bool
IsCode returns true when this list templates o k response a status code equal to that given
func (*ListTemplatesOK) IsRedirect ¶
func (o *ListTemplatesOK) IsRedirect() bool
IsRedirect returns true when this list templates o k response has a 3xx status code
func (*ListTemplatesOK) IsServerError ¶
func (o *ListTemplatesOK) IsServerError() bool
IsServerError returns true when this list templates o k response has a 5xx status code
func (*ListTemplatesOK) IsSuccess ¶
func (o *ListTemplatesOK) IsSuccess() bool
IsSuccess returns true when this list templates o k response has a 2xx status code
func (*ListTemplatesOK) String ¶
func (o *ListTemplatesOK) String() string
type ListTemplatesParams ¶
type ListTemplatesParams struct { // TemplateType. TemplateType *string 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) SetTemplateType ¶
func (o *ListTemplatesParams) SetTemplateType(templateType *string)
SetTemplateType adds the templateType 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) WithTemplateType ¶
func (o *ListTemplatesParams) WithTemplateType(templateType *string) *ListTemplatesParams
WithTemplateType adds the templateType 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) Code ¶
func (o *ListTemplatesUnauthorized) Code() int
Code gets the status code for the list templates unauthorized response
func (*ListTemplatesUnauthorized) Error ¶
func (o *ListTemplatesUnauthorized) Error() string
func (*ListTemplatesUnauthorized) IsClientError ¶
func (o *ListTemplatesUnauthorized) IsClientError() bool
IsClientError returns true when this list templates unauthorized response has a 4xx status code
func (*ListTemplatesUnauthorized) IsCode ¶
func (o *ListTemplatesUnauthorized) IsCode(code int) bool
IsCode returns true when this list templates unauthorized response a status code equal to that given
func (*ListTemplatesUnauthorized) IsRedirect ¶
func (o *ListTemplatesUnauthorized) IsRedirect() bool
IsRedirect returns true when this list templates unauthorized response has a 3xx status code
func (*ListTemplatesUnauthorized) IsServerError ¶
func (o *ListTemplatesUnauthorized) IsServerError() bool
IsServerError returns true when this list templates unauthorized response has a 5xx status code
func (*ListTemplatesUnauthorized) IsSuccess ¶
func (o *ListTemplatesUnauthorized) IsSuccess() bool
IsSuccess returns true when this list templates unauthorized response has a 2xx status code
func (*ListTemplatesUnauthorized) String ¶
func (o *ListTemplatesUnauthorized) String() string