templates_service

package
v3.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 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 (*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 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

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

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.

Jump to

Keyboard shortcuts

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