templates_service

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 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 templates service API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new templates service API client.

func (*Client) ListTemplates

func (a *Client) ListTemplates(params *ListTemplatesParams) (*ListTemplatesOK, error)

ListTemplates lists available templates

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ListTemplatesOK

type ListTemplatesOK struct {
	Payload *models.RestListTemplatesResponse
}

ListTemplatesOK handles this case 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

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 values initialized.

func NewListTemplatesParamsWithContext

func NewListTemplatesParamsWithContext(ctx context.Context) *ListTemplatesParams

NewListTemplatesParamsWithContext creates a new ListTemplatesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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

WithContext adds the context to the list templates params

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL