custom_templates

package
v2.29.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeMultipartFormData

func WithContentTypeMultipartFormData(r *runtime.ClientOperation)

WithContentTypeMultipartFormData sets the Content-Type header to "multipart/form-data".

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for custom templates API

func (*Client) CustomTemplateCreate

func (a *Client) CustomTemplateCreate(params *CustomTemplateCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateCreateOK, error)
CustomTemplateCreate creates a custom template

Create a custom template.

**Access policy**: authenticated

func (*Client) CustomTemplateCreateFile

func (a *Client) CustomTemplateCreateFile(params *CustomTemplateCreateFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateCreateFileOK, error)
CustomTemplateCreateFile creates a custom template

Create a custom template.

**Access policy**: authenticated

func (*Client) CustomTemplateCreateRepository

func (a *Client) CustomTemplateCreateRepository(params *CustomTemplateCreateRepositoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateCreateRepositoryOK, error)
CustomTemplateCreateRepository creates a custom template

Create a custom template.

**Access policy**: authenticated

func (*Client) CustomTemplateCreateString

func (a *Client) CustomTemplateCreateString(params *CustomTemplateCreateStringParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateCreateStringOK, error)
CustomTemplateCreateString creates a custom template

Create a custom template.

**Access policy**: authenticated

func (*Client) CustomTemplateDelete

func (a *Client) CustomTemplateDelete(params *CustomTemplateDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateDeleteNoContent, error)
CustomTemplateDelete removes a template

Remove a template.

**Access policy**: authenticated

func (*Client) CustomTemplateFile

func (a *Client) CustomTemplateFile(params *CustomTemplateFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateFileOK, error)
CustomTemplateFile gets template stack file content

Retrieve the content of the Stack file for the specified custom template

**Access policy**: authenticated

func (*Client) CustomTemplateGitFetch

func (a *Client) CustomTemplateGitFetch(params *CustomTemplateGitFetchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateGitFetchOK, error)
CustomTemplateGitFetch fetches the latest config file content based on custom template s git repository configuration

Retrieve details about a template created from git repository method.

**Access policy**: authenticated

func (*Client) CustomTemplateInspect

func (a *Client) CustomTemplateInspect(params *CustomTemplateInspectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateInspectOK, error)
CustomTemplateInspect inspects a custom template

Retrieve details about a template.

**Access policy**: authenticated

func (*Client) CustomTemplateList

func (a *Client) CustomTemplateList(params *CustomTemplateListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateListOK, error)
CustomTemplateList lists available custom templates

List available custom templates.

**Access policy**: authenticated

func (*Client) CustomTemplateUpdate

func (a *Client) CustomTemplateUpdate(params *CustomTemplateUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateUpdateOK, error)
CustomTemplateUpdate updates a template

Update a template.

**Access policy**: authenticated

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 may be used to customize the behavior of Client methods.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	CustomTemplateCreate(params *CustomTemplateCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateCreateOK, error)

	CustomTemplateCreateFile(params *CustomTemplateCreateFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateCreateFileOK, error)

	CustomTemplateCreateRepository(params *CustomTemplateCreateRepositoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateCreateRepositoryOK, error)

	CustomTemplateCreateString(params *CustomTemplateCreateStringParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateCreateStringOK, error)

	CustomTemplateDelete(params *CustomTemplateDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateDeleteNoContent, error)

	CustomTemplateFile(params *CustomTemplateFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateFileOK, error)

	CustomTemplateGitFetch(params *CustomTemplateGitFetchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateGitFetchOK, error)

	CustomTemplateInspect(params *CustomTemplateInspectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateInspectOK, error)

	CustomTemplateList(params *CustomTemplateListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateListOK, error)

	CustomTemplateUpdate(params *CustomTemplateUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomTemplateUpdateOK, 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 custom templates API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new custom templates API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new custom templates API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type CustomTemplateCreateBadRequest

type CustomTemplateCreateBadRequest struct {
}

CustomTemplateCreateBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewCustomTemplateCreateBadRequest

func NewCustomTemplateCreateBadRequest() *CustomTemplateCreateBadRequest

NewCustomTemplateCreateBadRequest creates a CustomTemplateCreateBadRequest with default headers values

func (*CustomTemplateCreateBadRequest) Code

Code gets the status code for the custom template create bad request response

func (*CustomTemplateCreateBadRequest) Error

func (*CustomTemplateCreateBadRequest) IsClientError

func (o *CustomTemplateCreateBadRequest) IsClientError() bool

IsClientError returns true when this custom template create bad request response has a 4xx status code

func (*CustomTemplateCreateBadRequest) IsCode

func (o *CustomTemplateCreateBadRequest) IsCode(code int) bool

IsCode returns true when this custom template create bad request response a status code equal to that given

func (*CustomTemplateCreateBadRequest) IsRedirect

func (o *CustomTemplateCreateBadRequest) IsRedirect() bool

IsRedirect returns true when this custom template create bad request response has a 3xx status code

func (*CustomTemplateCreateBadRequest) IsServerError

func (o *CustomTemplateCreateBadRequest) IsServerError() bool

IsServerError returns true when this custom template create bad request response has a 5xx status code

func (*CustomTemplateCreateBadRequest) IsSuccess

func (o *CustomTemplateCreateBadRequest) IsSuccess() bool

IsSuccess returns true when this custom template create bad request response has a 2xx status code

func (*CustomTemplateCreateBadRequest) String

type CustomTemplateCreateFileBadRequest

type CustomTemplateCreateFileBadRequest struct {
}

CustomTemplateCreateFileBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewCustomTemplateCreateFileBadRequest

func NewCustomTemplateCreateFileBadRequest() *CustomTemplateCreateFileBadRequest

NewCustomTemplateCreateFileBadRequest creates a CustomTemplateCreateFileBadRequest with default headers values

func (*CustomTemplateCreateFileBadRequest) Code

Code gets the status code for the custom template create file bad request response

func (*CustomTemplateCreateFileBadRequest) Error

func (*CustomTemplateCreateFileBadRequest) IsClientError

func (o *CustomTemplateCreateFileBadRequest) IsClientError() bool

IsClientError returns true when this custom template create file bad request response has a 4xx status code

func (*CustomTemplateCreateFileBadRequest) IsCode

IsCode returns true when this custom template create file bad request response a status code equal to that given

func (*CustomTemplateCreateFileBadRequest) IsRedirect

func (o *CustomTemplateCreateFileBadRequest) IsRedirect() bool

IsRedirect returns true when this custom template create file bad request response has a 3xx status code

func (*CustomTemplateCreateFileBadRequest) IsServerError

func (o *CustomTemplateCreateFileBadRequest) IsServerError() bool

IsServerError returns true when this custom template create file bad request response has a 5xx status code

func (*CustomTemplateCreateFileBadRequest) IsSuccess

IsSuccess returns true when this custom template create file bad request response has a 2xx status code

func (*CustomTemplateCreateFileBadRequest) String

type CustomTemplateCreateFileInternalServerError

type CustomTemplateCreateFileInternalServerError struct {
}

CustomTemplateCreateFileInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCustomTemplateCreateFileInternalServerError

func NewCustomTemplateCreateFileInternalServerError() *CustomTemplateCreateFileInternalServerError

NewCustomTemplateCreateFileInternalServerError creates a CustomTemplateCreateFileInternalServerError with default headers values

func (*CustomTemplateCreateFileInternalServerError) Code

Code gets the status code for the custom template create file internal server error response

func (*CustomTemplateCreateFileInternalServerError) Error

func (*CustomTemplateCreateFileInternalServerError) IsClientError

IsClientError returns true when this custom template create file internal server error response has a 4xx status code

func (*CustomTemplateCreateFileInternalServerError) IsCode

IsCode returns true when this custom template create file internal server error response a status code equal to that given

func (*CustomTemplateCreateFileInternalServerError) IsRedirect

IsRedirect returns true when this custom template create file internal server error response has a 3xx status code

func (*CustomTemplateCreateFileInternalServerError) IsServerError

IsServerError returns true when this custom template create file internal server error response has a 5xx status code

func (*CustomTemplateCreateFileInternalServerError) IsSuccess

IsSuccess returns true when this custom template create file internal server error response has a 2xx status code

func (*CustomTemplateCreateFileInternalServerError) String

type CustomTemplateCreateFileOK

type CustomTemplateCreateFileOK struct {
	Payload *models.PortainereeCustomTemplate
}

CustomTemplateCreateFileOK describes a response with status code 200, with default header values.

OK

func NewCustomTemplateCreateFileOK

func NewCustomTemplateCreateFileOK() *CustomTemplateCreateFileOK

NewCustomTemplateCreateFileOK creates a CustomTemplateCreateFileOK with default headers values

func (*CustomTemplateCreateFileOK) Code

func (o *CustomTemplateCreateFileOK) Code() int

Code gets the status code for the custom template create file o k response

func (*CustomTemplateCreateFileOK) Error

func (*CustomTemplateCreateFileOK) GetPayload

func (*CustomTemplateCreateFileOK) IsClientError

func (o *CustomTemplateCreateFileOK) IsClientError() bool

IsClientError returns true when this custom template create file o k response has a 4xx status code

func (*CustomTemplateCreateFileOK) IsCode

func (o *CustomTemplateCreateFileOK) IsCode(code int) bool

IsCode returns true when this custom template create file o k response a status code equal to that given

func (*CustomTemplateCreateFileOK) IsRedirect

func (o *CustomTemplateCreateFileOK) IsRedirect() bool

IsRedirect returns true when this custom template create file o k response has a 3xx status code

func (*CustomTemplateCreateFileOK) IsServerError

func (o *CustomTemplateCreateFileOK) IsServerError() bool

IsServerError returns true when this custom template create file o k response has a 5xx status code

func (*CustomTemplateCreateFileOK) IsSuccess

func (o *CustomTemplateCreateFileOK) IsSuccess() bool

IsSuccess returns true when this custom template create file o k response has a 2xx status code

func (*CustomTemplateCreateFileOK) String

func (o *CustomTemplateCreateFileOK) String() string

type CustomTemplateCreateFileParams

type CustomTemplateCreateFileParams struct {

	/* Description.

	   Description of the template
	*/
	Description string

	/* EdgeSettings.

	   A json object of edge config
	*/
	EdgeSettings *string

	/* EdgeTemplate.

	   Indicates if this template purpose for Edge Stack
	*/
	EdgeTemplate *bool

	/* File.

	   File
	*/
	File runtime.NamedReadCloser


	Logo *string

	/* Note.

	   A note that will be displayed in the UI. Supports HTML content
	*/
	Note string

	/* Platform.

	   Platform associated to the template (1 - 'linux', 2 - 'windows')
	*/
	Platform int64

	/* Title.

	   Title of the template
	*/
	Title string

	/* Type.

	   Type of created stack (1 - swarm, 2 - compose, 3 - kubernetes)
	*/
	Type int64

	/* Variables.

	   A json array of variables definitions
	*/
	Variables *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CustomTemplateCreateFileParams contains all the parameters to send to the API endpoint

for the custom template create file operation.

Typically these are written to a http.Request.

func NewCustomTemplateCreateFileParams

func NewCustomTemplateCreateFileParams() *CustomTemplateCreateFileParams

NewCustomTemplateCreateFileParams creates a new CustomTemplateCreateFileParams 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 NewCustomTemplateCreateFileParamsWithContext

func NewCustomTemplateCreateFileParamsWithContext(ctx context.Context) *CustomTemplateCreateFileParams

NewCustomTemplateCreateFileParamsWithContext creates a new CustomTemplateCreateFileParams object with the ability to set a context for a request.

func NewCustomTemplateCreateFileParamsWithHTTPClient

func NewCustomTemplateCreateFileParamsWithHTTPClient(client *http.Client) *CustomTemplateCreateFileParams

NewCustomTemplateCreateFileParamsWithHTTPClient creates a new CustomTemplateCreateFileParams object with the ability to set a custom HTTPClient for a request.

func NewCustomTemplateCreateFileParamsWithTimeout

func NewCustomTemplateCreateFileParamsWithTimeout(timeout time.Duration) *CustomTemplateCreateFileParams

NewCustomTemplateCreateFileParamsWithTimeout creates a new CustomTemplateCreateFileParams object with the ability to set a timeout on a request.

func (*CustomTemplateCreateFileParams) SetContext

func (o *CustomTemplateCreateFileParams) SetContext(ctx context.Context)

SetContext adds the context to the custom template create file params

func (*CustomTemplateCreateFileParams) SetDefaults

func (o *CustomTemplateCreateFileParams) SetDefaults()

SetDefaults hydrates default values in the custom template create file params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateCreateFileParams) SetDescription

func (o *CustomTemplateCreateFileParams) SetDescription(description string)

SetDescription adds the description to the custom template create file params

func (*CustomTemplateCreateFileParams) SetEdgeSettings

func (o *CustomTemplateCreateFileParams) SetEdgeSettings(edgeSettings *string)

SetEdgeSettings adds the edgeSettings to the custom template create file params

func (*CustomTemplateCreateFileParams) SetEdgeTemplate

func (o *CustomTemplateCreateFileParams) SetEdgeTemplate(edgeTemplate *bool)

SetEdgeTemplate adds the edgeTemplate to the custom template create file params

func (*CustomTemplateCreateFileParams) SetFile

SetFile adds the file to the custom template create file params

func (*CustomTemplateCreateFileParams) SetHTTPClient

func (o *CustomTemplateCreateFileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the custom template create file params

func (o *CustomTemplateCreateFileParams) SetLogo(logo *string)

SetLogo adds the logo to the custom template create file params

func (*CustomTemplateCreateFileParams) SetNote

func (o *CustomTemplateCreateFileParams) SetNote(note string)

SetNote adds the note to the custom template create file params

func (*CustomTemplateCreateFileParams) SetPlatform

func (o *CustomTemplateCreateFileParams) SetPlatform(platform int64)

SetPlatform adds the platform to the custom template create file params

func (*CustomTemplateCreateFileParams) SetTimeout

func (o *CustomTemplateCreateFileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the custom template create file params

func (*CustomTemplateCreateFileParams) SetTitle

func (o *CustomTemplateCreateFileParams) SetTitle(title string)

SetTitle adds the title to the custom template create file params

func (*CustomTemplateCreateFileParams) SetType

func (o *CustomTemplateCreateFileParams) SetType(typeVar int64)

SetType adds the type to the custom template create file params

func (*CustomTemplateCreateFileParams) SetVariables

func (o *CustomTemplateCreateFileParams) SetVariables(variables *string)

SetVariables adds the variables to the custom template create file params

func (*CustomTemplateCreateFileParams) WithContext

WithContext adds the context to the custom template create file params

func (*CustomTemplateCreateFileParams) WithDefaults

WithDefaults hydrates default values in the custom template create file params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateCreateFileParams) WithDescription

func (o *CustomTemplateCreateFileParams) WithDescription(description string) *CustomTemplateCreateFileParams

WithDescription adds the description to the custom template create file params

func (*CustomTemplateCreateFileParams) WithEdgeSettings

func (o *CustomTemplateCreateFileParams) WithEdgeSettings(edgeSettings *string) *CustomTemplateCreateFileParams

WithEdgeSettings adds the edgeSettings to the custom template create file params

func (*CustomTemplateCreateFileParams) WithEdgeTemplate

func (o *CustomTemplateCreateFileParams) WithEdgeTemplate(edgeTemplate *bool) *CustomTemplateCreateFileParams

WithEdgeTemplate adds the edgeTemplate to the custom template create file params

func (*CustomTemplateCreateFileParams) WithFile

WithFile adds the file to the custom template create file params

func (*CustomTemplateCreateFileParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the custom template create file params

WithLogo adds the logo to the custom template create file params

func (*CustomTemplateCreateFileParams) WithNote

WithNote adds the note to the custom template create file params

func (*CustomTemplateCreateFileParams) WithPlatform

WithPlatform adds the platform to the custom template create file params

func (*CustomTemplateCreateFileParams) WithTimeout

WithTimeout adds the timeout to the custom template create file params

func (*CustomTemplateCreateFileParams) WithTitle

WithTitle adds the title to the custom template create file params

func (*CustomTemplateCreateFileParams) WithType

WithType adds the typeVar to the custom template create file params

func (*CustomTemplateCreateFileParams) WithVariables

WithVariables adds the variables to the custom template create file params

func (*CustomTemplateCreateFileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CustomTemplateCreateFileReader

type CustomTemplateCreateFileReader struct {
	// contains filtered or unexported fields
}

CustomTemplateCreateFileReader is a Reader for the CustomTemplateCreateFile structure.

func (*CustomTemplateCreateFileReader) ReadResponse

func (o *CustomTemplateCreateFileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CustomTemplateCreateInternalServerError

type CustomTemplateCreateInternalServerError struct {
}

CustomTemplateCreateInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCustomTemplateCreateInternalServerError

func NewCustomTemplateCreateInternalServerError() *CustomTemplateCreateInternalServerError

NewCustomTemplateCreateInternalServerError creates a CustomTemplateCreateInternalServerError with default headers values

func (*CustomTemplateCreateInternalServerError) Code

Code gets the status code for the custom template create internal server error response

func (*CustomTemplateCreateInternalServerError) Error

func (*CustomTemplateCreateInternalServerError) IsClientError

func (o *CustomTemplateCreateInternalServerError) IsClientError() bool

IsClientError returns true when this custom template create internal server error response has a 4xx status code

func (*CustomTemplateCreateInternalServerError) IsCode

IsCode returns true when this custom template create internal server error response a status code equal to that given

func (*CustomTemplateCreateInternalServerError) IsRedirect

IsRedirect returns true when this custom template create internal server error response has a 3xx status code

func (*CustomTemplateCreateInternalServerError) IsServerError

func (o *CustomTemplateCreateInternalServerError) IsServerError() bool

IsServerError returns true when this custom template create internal server error response has a 5xx status code

func (*CustomTemplateCreateInternalServerError) IsSuccess

IsSuccess returns true when this custom template create internal server error response has a 2xx status code

func (*CustomTemplateCreateInternalServerError) String

type CustomTemplateCreateOK

type CustomTemplateCreateOK struct {
	Payload *models.PortainereeCustomTemplate
}

CustomTemplateCreateOK describes a response with status code 200, with default header values.

OK

func NewCustomTemplateCreateOK

func NewCustomTemplateCreateOK() *CustomTemplateCreateOK

NewCustomTemplateCreateOK creates a CustomTemplateCreateOK with default headers values

func (*CustomTemplateCreateOK) Code

func (o *CustomTemplateCreateOK) Code() int

Code gets the status code for the custom template create o k response

func (*CustomTemplateCreateOK) Error

func (o *CustomTemplateCreateOK) Error() string

func (*CustomTemplateCreateOK) GetPayload

func (*CustomTemplateCreateOK) IsClientError

func (o *CustomTemplateCreateOK) IsClientError() bool

IsClientError returns true when this custom template create o k response has a 4xx status code

func (*CustomTemplateCreateOK) IsCode

func (o *CustomTemplateCreateOK) IsCode(code int) bool

IsCode returns true when this custom template create o k response a status code equal to that given

func (*CustomTemplateCreateOK) IsRedirect

func (o *CustomTemplateCreateOK) IsRedirect() bool

IsRedirect returns true when this custom template create o k response has a 3xx status code

func (*CustomTemplateCreateOK) IsServerError

func (o *CustomTemplateCreateOK) IsServerError() bool

IsServerError returns true when this custom template create o k response has a 5xx status code

func (*CustomTemplateCreateOK) IsSuccess

func (o *CustomTemplateCreateOK) IsSuccess() bool

IsSuccess returns true when this custom template create o k response has a 2xx status code

func (*CustomTemplateCreateOK) String

func (o *CustomTemplateCreateOK) String() string

type CustomTemplateCreateParams

type CustomTemplateCreateParams struct {

	/* Body.

	   for body documentation see the relevant /custom_templates/{method} endpoint
	*/
	Body interface{}

	/* Method.

	   method for creating template
	*/
	Method string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CustomTemplateCreateParams contains all the parameters to send to the API endpoint

for the custom template create operation.

Typically these are written to a http.Request.

func NewCustomTemplateCreateParams

func NewCustomTemplateCreateParams() *CustomTemplateCreateParams

NewCustomTemplateCreateParams creates a new CustomTemplateCreateParams 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 NewCustomTemplateCreateParamsWithContext

func NewCustomTemplateCreateParamsWithContext(ctx context.Context) *CustomTemplateCreateParams

NewCustomTemplateCreateParamsWithContext creates a new CustomTemplateCreateParams object with the ability to set a context for a request.

func NewCustomTemplateCreateParamsWithHTTPClient

func NewCustomTemplateCreateParamsWithHTTPClient(client *http.Client) *CustomTemplateCreateParams

NewCustomTemplateCreateParamsWithHTTPClient creates a new CustomTemplateCreateParams object with the ability to set a custom HTTPClient for a request.

func NewCustomTemplateCreateParamsWithTimeout

func NewCustomTemplateCreateParamsWithTimeout(timeout time.Duration) *CustomTemplateCreateParams

NewCustomTemplateCreateParamsWithTimeout creates a new CustomTemplateCreateParams object with the ability to set a timeout on a request.

func (*CustomTemplateCreateParams) SetBody

func (o *CustomTemplateCreateParams) SetBody(body interface{})

SetBody adds the body to the custom template create params

func (*CustomTemplateCreateParams) SetContext

func (o *CustomTemplateCreateParams) SetContext(ctx context.Context)

SetContext adds the context to the custom template create params

func (*CustomTemplateCreateParams) SetDefaults

func (o *CustomTemplateCreateParams) SetDefaults()

SetDefaults hydrates default values in the custom template create params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateCreateParams) SetHTTPClient

func (o *CustomTemplateCreateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the custom template create params

func (*CustomTemplateCreateParams) SetMethod

func (o *CustomTemplateCreateParams) SetMethod(method string)

SetMethod adds the method to the custom template create params

func (*CustomTemplateCreateParams) SetTimeout

func (o *CustomTemplateCreateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the custom template create params

func (*CustomTemplateCreateParams) WithBody

func (o *CustomTemplateCreateParams) WithBody(body interface{}) *CustomTemplateCreateParams

WithBody adds the body to the custom template create params

func (*CustomTemplateCreateParams) WithContext

WithContext adds the context to the custom template create params

func (*CustomTemplateCreateParams) WithDefaults

WithDefaults hydrates default values in the custom template create params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateCreateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the custom template create params

func (*CustomTemplateCreateParams) WithMethod

WithMethod adds the method to the custom template create params

func (*CustomTemplateCreateParams) WithTimeout

WithTimeout adds the timeout to the custom template create params

func (*CustomTemplateCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CustomTemplateCreateReader

type CustomTemplateCreateReader struct {
	// contains filtered or unexported fields
}

CustomTemplateCreateReader is a Reader for the CustomTemplateCreate structure.

func (*CustomTemplateCreateReader) ReadResponse

func (o *CustomTemplateCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CustomTemplateCreateRepositoryBadRequest

type CustomTemplateCreateRepositoryBadRequest struct {
}

CustomTemplateCreateRepositoryBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewCustomTemplateCreateRepositoryBadRequest

func NewCustomTemplateCreateRepositoryBadRequest() *CustomTemplateCreateRepositoryBadRequest

NewCustomTemplateCreateRepositoryBadRequest creates a CustomTemplateCreateRepositoryBadRequest with default headers values

func (*CustomTemplateCreateRepositoryBadRequest) Code

Code gets the status code for the custom template create repository bad request response

func (*CustomTemplateCreateRepositoryBadRequest) Error

func (*CustomTemplateCreateRepositoryBadRequest) IsClientError

IsClientError returns true when this custom template create repository bad request response has a 4xx status code

func (*CustomTemplateCreateRepositoryBadRequest) IsCode

IsCode returns true when this custom template create repository bad request response a status code equal to that given

func (*CustomTemplateCreateRepositoryBadRequest) IsRedirect

IsRedirect returns true when this custom template create repository bad request response has a 3xx status code

func (*CustomTemplateCreateRepositoryBadRequest) IsServerError

IsServerError returns true when this custom template create repository bad request response has a 5xx status code

func (*CustomTemplateCreateRepositoryBadRequest) IsSuccess

IsSuccess returns true when this custom template create repository bad request response has a 2xx status code

func (*CustomTemplateCreateRepositoryBadRequest) String

type CustomTemplateCreateRepositoryInternalServerError

type CustomTemplateCreateRepositoryInternalServerError struct {
}

CustomTemplateCreateRepositoryInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCustomTemplateCreateRepositoryInternalServerError

func NewCustomTemplateCreateRepositoryInternalServerError() *CustomTemplateCreateRepositoryInternalServerError

NewCustomTemplateCreateRepositoryInternalServerError creates a CustomTemplateCreateRepositoryInternalServerError with default headers values

func (*CustomTemplateCreateRepositoryInternalServerError) Code

Code gets the status code for the custom template create repository internal server error response

func (*CustomTemplateCreateRepositoryInternalServerError) Error

func (*CustomTemplateCreateRepositoryInternalServerError) IsClientError

IsClientError returns true when this custom template create repository internal server error response has a 4xx status code

func (*CustomTemplateCreateRepositoryInternalServerError) IsCode

IsCode returns true when this custom template create repository internal server error response a status code equal to that given

func (*CustomTemplateCreateRepositoryInternalServerError) IsRedirect

IsRedirect returns true when this custom template create repository internal server error response has a 3xx status code

func (*CustomTemplateCreateRepositoryInternalServerError) IsServerError

IsServerError returns true when this custom template create repository internal server error response has a 5xx status code

func (*CustomTemplateCreateRepositoryInternalServerError) IsSuccess

IsSuccess returns true when this custom template create repository internal server error response has a 2xx status code

func (*CustomTemplateCreateRepositoryInternalServerError) String

type CustomTemplateCreateRepositoryOK

type CustomTemplateCreateRepositoryOK struct {
	Payload *models.PortainereeCustomTemplate
}

CustomTemplateCreateRepositoryOK describes a response with status code 200, with default header values.

OK

func NewCustomTemplateCreateRepositoryOK

func NewCustomTemplateCreateRepositoryOK() *CustomTemplateCreateRepositoryOK

NewCustomTemplateCreateRepositoryOK creates a CustomTemplateCreateRepositoryOK with default headers values

func (*CustomTemplateCreateRepositoryOK) Code

Code gets the status code for the custom template create repository o k response

func (*CustomTemplateCreateRepositoryOK) Error

func (*CustomTemplateCreateRepositoryOK) GetPayload

func (*CustomTemplateCreateRepositoryOK) IsClientError

func (o *CustomTemplateCreateRepositoryOK) IsClientError() bool

IsClientError returns true when this custom template create repository o k response has a 4xx status code

func (*CustomTemplateCreateRepositoryOK) IsCode

func (o *CustomTemplateCreateRepositoryOK) IsCode(code int) bool

IsCode returns true when this custom template create repository o k response a status code equal to that given

func (*CustomTemplateCreateRepositoryOK) IsRedirect

func (o *CustomTemplateCreateRepositoryOK) IsRedirect() bool

IsRedirect returns true when this custom template create repository o k response has a 3xx status code

func (*CustomTemplateCreateRepositoryOK) IsServerError

func (o *CustomTemplateCreateRepositoryOK) IsServerError() bool

IsServerError returns true when this custom template create repository o k response has a 5xx status code

func (*CustomTemplateCreateRepositoryOK) IsSuccess

func (o *CustomTemplateCreateRepositoryOK) IsSuccess() bool

IsSuccess returns true when this custom template create repository o k response has a 2xx status code

func (*CustomTemplateCreateRepositoryOK) String

type CustomTemplateCreateRepositoryParams

type CustomTemplateCreateRepositoryParams struct {

	/* Body.

	   Required when using method=repository
	*/
	Body *models.CustomtemplatesCustomTemplateFromGitRepositoryPayload

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CustomTemplateCreateRepositoryParams contains all the parameters to send to the API endpoint

for the custom template create repository operation.

Typically these are written to a http.Request.

func NewCustomTemplateCreateRepositoryParams

func NewCustomTemplateCreateRepositoryParams() *CustomTemplateCreateRepositoryParams

NewCustomTemplateCreateRepositoryParams creates a new CustomTemplateCreateRepositoryParams 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 NewCustomTemplateCreateRepositoryParamsWithContext

func NewCustomTemplateCreateRepositoryParamsWithContext(ctx context.Context) *CustomTemplateCreateRepositoryParams

NewCustomTemplateCreateRepositoryParamsWithContext creates a new CustomTemplateCreateRepositoryParams object with the ability to set a context for a request.

func NewCustomTemplateCreateRepositoryParamsWithHTTPClient

func NewCustomTemplateCreateRepositoryParamsWithHTTPClient(client *http.Client) *CustomTemplateCreateRepositoryParams

NewCustomTemplateCreateRepositoryParamsWithHTTPClient creates a new CustomTemplateCreateRepositoryParams object with the ability to set a custom HTTPClient for a request.

func NewCustomTemplateCreateRepositoryParamsWithTimeout

func NewCustomTemplateCreateRepositoryParamsWithTimeout(timeout time.Duration) *CustomTemplateCreateRepositoryParams

NewCustomTemplateCreateRepositoryParamsWithTimeout creates a new CustomTemplateCreateRepositoryParams object with the ability to set a timeout on a request.

func (*CustomTemplateCreateRepositoryParams) SetBody

SetBody adds the body to the custom template create repository params

func (*CustomTemplateCreateRepositoryParams) SetContext

SetContext adds the context to the custom template create repository params

func (*CustomTemplateCreateRepositoryParams) SetDefaults

func (o *CustomTemplateCreateRepositoryParams) SetDefaults()

SetDefaults hydrates default values in the custom template create repository params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateCreateRepositoryParams) SetHTTPClient

func (o *CustomTemplateCreateRepositoryParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the custom template create repository params

func (*CustomTemplateCreateRepositoryParams) SetTimeout

func (o *CustomTemplateCreateRepositoryParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the custom template create repository params

func (*CustomTemplateCreateRepositoryParams) WithBody

WithBody adds the body to the custom template create repository params

func (*CustomTemplateCreateRepositoryParams) WithContext

WithContext adds the context to the custom template create repository params

func (*CustomTemplateCreateRepositoryParams) WithDefaults

WithDefaults hydrates default values in the custom template create repository params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateCreateRepositoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the custom template create repository params

func (*CustomTemplateCreateRepositoryParams) WithTimeout

WithTimeout adds the timeout to the custom template create repository params

func (*CustomTemplateCreateRepositoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CustomTemplateCreateRepositoryReader

type CustomTemplateCreateRepositoryReader struct {
	// contains filtered or unexported fields
}

CustomTemplateCreateRepositoryReader is a Reader for the CustomTemplateCreateRepository structure.

func (*CustomTemplateCreateRepositoryReader) ReadResponse

func (o *CustomTemplateCreateRepositoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CustomTemplateCreateStringBadRequest

type CustomTemplateCreateStringBadRequest struct {
}

CustomTemplateCreateStringBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewCustomTemplateCreateStringBadRequest

func NewCustomTemplateCreateStringBadRequest() *CustomTemplateCreateStringBadRequest

NewCustomTemplateCreateStringBadRequest creates a CustomTemplateCreateStringBadRequest with default headers values

func (*CustomTemplateCreateStringBadRequest) Code

Code gets the status code for the custom template create string bad request response

func (*CustomTemplateCreateStringBadRequest) Error

func (*CustomTemplateCreateStringBadRequest) IsClientError

func (o *CustomTemplateCreateStringBadRequest) IsClientError() bool

IsClientError returns true when this custom template create string bad request response has a 4xx status code

func (*CustomTemplateCreateStringBadRequest) IsCode

IsCode returns true when this custom template create string bad request response a status code equal to that given

func (*CustomTemplateCreateStringBadRequest) IsRedirect

IsRedirect returns true when this custom template create string bad request response has a 3xx status code

func (*CustomTemplateCreateStringBadRequest) IsServerError

func (o *CustomTemplateCreateStringBadRequest) IsServerError() bool

IsServerError returns true when this custom template create string bad request response has a 5xx status code

func (*CustomTemplateCreateStringBadRequest) IsSuccess

IsSuccess returns true when this custom template create string bad request response has a 2xx status code

func (*CustomTemplateCreateStringBadRequest) String

type CustomTemplateCreateStringInternalServerError

type CustomTemplateCreateStringInternalServerError struct {
}

CustomTemplateCreateStringInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCustomTemplateCreateStringInternalServerError

func NewCustomTemplateCreateStringInternalServerError() *CustomTemplateCreateStringInternalServerError

NewCustomTemplateCreateStringInternalServerError creates a CustomTemplateCreateStringInternalServerError with default headers values

func (*CustomTemplateCreateStringInternalServerError) Code

Code gets the status code for the custom template create string internal server error response

func (*CustomTemplateCreateStringInternalServerError) Error

func (*CustomTemplateCreateStringInternalServerError) IsClientError

IsClientError returns true when this custom template create string internal server error response has a 4xx status code

func (*CustomTemplateCreateStringInternalServerError) IsCode

IsCode returns true when this custom template create string internal server error response a status code equal to that given

func (*CustomTemplateCreateStringInternalServerError) IsRedirect

IsRedirect returns true when this custom template create string internal server error response has a 3xx status code

func (*CustomTemplateCreateStringInternalServerError) IsServerError

IsServerError returns true when this custom template create string internal server error response has a 5xx status code

func (*CustomTemplateCreateStringInternalServerError) IsSuccess

IsSuccess returns true when this custom template create string internal server error response has a 2xx status code

func (*CustomTemplateCreateStringInternalServerError) String

type CustomTemplateCreateStringOK

type CustomTemplateCreateStringOK struct {
	Payload *models.PortainereeCustomTemplate
}

CustomTemplateCreateStringOK describes a response with status code 200, with default header values.

OK

func NewCustomTemplateCreateStringOK

func NewCustomTemplateCreateStringOK() *CustomTemplateCreateStringOK

NewCustomTemplateCreateStringOK creates a CustomTemplateCreateStringOK with default headers values

func (*CustomTemplateCreateStringOK) Code

Code gets the status code for the custom template create string o k response

func (*CustomTemplateCreateStringOK) Error

func (*CustomTemplateCreateStringOK) GetPayload

func (*CustomTemplateCreateStringOK) IsClientError

func (o *CustomTemplateCreateStringOK) IsClientError() bool

IsClientError returns true when this custom template create string o k response has a 4xx status code

func (*CustomTemplateCreateStringOK) IsCode

func (o *CustomTemplateCreateStringOK) IsCode(code int) bool

IsCode returns true when this custom template create string o k response a status code equal to that given

func (*CustomTemplateCreateStringOK) IsRedirect

func (o *CustomTemplateCreateStringOK) IsRedirect() bool

IsRedirect returns true when this custom template create string o k response has a 3xx status code

func (*CustomTemplateCreateStringOK) IsServerError

func (o *CustomTemplateCreateStringOK) IsServerError() bool

IsServerError returns true when this custom template create string o k response has a 5xx status code

func (*CustomTemplateCreateStringOK) IsSuccess

func (o *CustomTemplateCreateStringOK) IsSuccess() bool

IsSuccess returns true when this custom template create string o k response has a 2xx status code

func (*CustomTemplateCreateStringOK) String

type CustomTemplateCreateStringParams

type CustomTemplateCreateStringParams struct {

	/* Body.

	   body
	*/
	Body *models.CustomtemplatesCustomTemplateFromFileContentPayload

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CustomTemplateCreateStringParams contains all the parameters to send to the API endpoint

for the custom template create string operation.

Typically these are written to a http.Request.

func NewCustomTemplateCreateStringParams

func NewCustomTemplateCreateStringParams() *CustomTemplateCreateStringParams

NewCustomTemplateCreateStringParams creates a new CustomTemplateCreateStringParams 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 NewCustomTemplateCreateStringParamsWithContext

func NewCustomTemplateCreateStringParamsWithContext(ctx context.Context) *CustomTemplateCreateStringParams

NewCustomTemplateCreateStringParamsWithContext creates a new CustomTemplateCreateStringParams object with the ability to set a context for a request.

func NewCustomTemplateCreateStringParamsWithHTTPClient

func NewCustomTemplateCreateStringParamsWithHTTPClient(client *http.Client) *CustomTemplateCreateStringParams

NewCustomTemplateCreateStringParamsWithHTTPClient creates a new CustomTemplateCreateStringParams object with the ability to set a custom HTTPClient for a request.

func NewCustomTemplateCreateStringParamsWithTimeout

func NewCustomTemplateCreateStringParamsWithTimeout(timeout time.Duration) *CustomTemplateCreateStringParams

NewCustomTemplateCreateStringParamsWithTimeout creates a new CustomTemplateCreateStringParams object with the ability to set a timeout on a request.

func (*CustomTemplateCreateStringParams) SetBody

SetBody adds the body to the custom template create string params

func (*CustomTemplateCreateStringParams) SetContext

SetContext adds the context to the custom template create string params

func (*CustomTemplateCreateStringParams) SetDefaults

func (o *CustomTemplateCreateStringParams) SetDefaults()

SetDefaults hydrates default values in the custom template create string params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateCreateStringParams) SetHTTPClient

func (o *CustomTemplateCreateStringParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the custom template create string params

func (*CustomTemplateCreateStringParams) SetTimeout

func (o *CustomTemplateCreateStringParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the custom template create string params

func (*CustomTemplateCreateStringParams) WithBody

WithBody adds the body to the custom template create string params

func (*CustomTemplateCreateStringParams) WithContext

WithContext adds the context to the custom template create string params

func (*CustomTemplateCreateStringParams) WithDefaults

WithDefaults hydrates default values in the custom template create string params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateCreateStringParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the custom template create string params

func (*CustomTemplateCreateStringParams) WithTimeout

WithTimeout adds the timeout to the custom template create string params

func (*CustomTemplateCreateStringParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CustomTemplateCreateStringReader

type CustomTemplateCreateStringReader struct {
	// contains filtered or unexported fields
}

CustomTemplateCreateStringReader is a Reader for the CustomTemplateCreateString structure.

func (*CustomTemplateCreateStringReader) ReadResponse

func (o *CustomTemplateCreateStringReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CustomTemplateDeleteBadRequest

type CustomTemplateDeleteBadRequest struct {
}

CustomTemplateDeleteBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewCustomTemplateDeleteBadRequest

func NewCustomTemplateDeleteBadRequest() *CustomTemplateDeleteBadRequest

NewCustomTemplateDeleteBadRequest creates a CustomTemplateDeleteBadRequest with default headers values

func (*CustomTemplateDeleteBadRequest) Code

Code gets the status code for the custom template delete bad request response

func (*CustomTemplateDeleteBadRequest) Error

func (*CustomTemplateDeleteBadRequest) IsClientError

func (o *CustomTemplateDeleteBadRequest) IsClientError() bool

IsClientError returns true when this custom template delete bad request response has a 4xx status code

func (*CustomTemplateDeleteBadRequest) IsCode

func (o *CustomTemplateDeleteBadRequest) IsCode(code int) bool

IsCode returns true when this custom template delete bad request response a status code equal to that given

func (*CustomTemplateDeleteBadRequest) IsRedirect

func (o *CustomTemplateDeleteBadRequest) IsRedirect() bool

IsRedirect returns true when this custom template delete bad request response has a 3xx status code

func (*CustomTemplateDeleteBadRequest) IsServerError

func (o *CustomTemplateDeleteBadRequest) IsServerError() bool

IsServerError returns true when this custom template delete bad request response has a 5xx status code

func (*CustomTemplateDeleteBadRequest) IsSuccess

func (o *CustomTemplateDeleteBadRequest) IsSuccess() bool

IsSuccess returns true when this custom template delete bad request response has a 2xx status code

func (*CustomTemplateDeleteBadRequest) String

type CustomTemplateDeleteForbidden

type CustomTemplateDeleteForbidden struct {
}

CustomTemplateDeleteForbidden describes a response with status code 403, with default header values.

Access denied to resource

func NewCustomTemplateDeleteForbidden

func NewCustomTemplateDeleteForbidden() *CustomTemplateDeleteForbidden

NewCustomTemplateDeleteForbidden creates a CustomTemplateDeleteForbidden with default headers values

func (*CustomTemplateDeleteForbidden) Code

Code gets the status code for the custom template delete forbidden response

func (*CustomTemplateDeleteForbidden) Error

func (*CustomTemplateDeleteForbidden) IsClientError

func (o *CustomTemplateDeleteForbidden) IsClientError() bool

IsClientError returns true when this custom template delete forbidden response has a 4xx status code

func (*CustomTemplateDeleteForbidden) IsCode

func (o *CustomTemplateDeleteForbidden) IsCode(code int) bool

IsCode returns true when this custom template delete forbidden response a status code equal to that given

func (*CustomTemplateDeleteForbidden) IsRedirect

func (o *CustomTemplateDeleteForbidden) IsRedirect() bool

IsRedirect returns true when this custom template delete forbidden response has a 3xx status code

func (*CustomTemplateDeleteForbidden) IsServerError

func (o *CustomTemplateDeleteForbidden) IsServerError() bool

IsServerError returns true when this custom template delete forbidden response has a 5xx status code

func (*CustomTemplateDeleteForbidden) IsSuccess

func (o *CustomTemplateDeleteForbidden) IsSuccess() bool

IsSuccess returns true when this custom template delete forbidden response has a 2xx status code

func (*CustomTemplateDeleteForbidden) String

type CustomTemplateDeleteInternalServerError

type CustomTemplateDeleteInternalServerError struct {
}

CustomTemplateDeleteInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCustomTemplateDeleteInternalServerError

func NewCustomTemplateDeleteInternalServerError() *CustomTemplateDeleteInternalServerError

NewCustomTemplateDeleteInternalServerError creates a CustomTemplateDeleteInternalServerError with default headers values

func (*CustomTemplateDeleteInternalServerError) Code

Code gets the status code for the custom template delete internal server error response

func (*CustomTemplateDeleteInternalServerError) Error

func (*CustomTemplateDeleteInternalServerError) IsClientError

func (o *CustomTemplateDeleteInternalServerError) IsClientError() bool

IsClientError returns true when this custom template delete internal server error response has a 4xx status code

func (*CustomTemplateDeleteInternalServerError) IsCode

IsCode returns true when this custom template delete internal server error response a status code equal to that given

func (*CustomTemplateDeleteInternalServerError) IsRedirect

IsRedirect returns true when this custom template delete internal server error response has a 3xx status code

func (*CustomTemplateDeleteInternalServerError) IsServerError

func (o *CustomTemplateDeleteInternalServerError) IsServerError() bool

IsServerError returns true when this custom template delete internal server error response has a 5xx status code

func (*CustomTemplateDeleteInternalServerError) IsSuccess

IsSuccess returns true when this custom template delete internal server error response has a 2xx status code

func (*CustomTemplateDeleteInternalServerError) String

type CustomTemplateDeleteNoContent

type CustomTemplateDeleteNoContent struct {
}

CustomTemplateDeleteNoContent describes a response with status code 204, with default header values.

Success

func NewCustomTemplateDeleteNoContent

func NewCustomTemplateDeleteNoContent() *CustomTemplateDeleteNoContent

NewCustomTemplateDeleteNoContent creates a CustomTemplateDeleteNoContent with default headers values

func (*CustomTemplateDeleteNoContent) Code

Code gets the status code for the custom template delete no content response

func (*CustomTemplateDeleteNoContent) Error

func (*CustomTemplateDeleteNoContent) IsClientError

func (o *CustomTemplateDeleteNoContent) IsClientError() bool

IsClientError returns true when this custom template delete no content response has a 4xx status code

func (*CustomTemplateDeleteNoContent) IsCode

func (o *CustomTemplateDeleteNoContent) IsCode(code int) bool

IsCode returns true when this custom template delete no content response a status code equal to that given

func (*CustomTemplateDeleteNoContent) IsRedirect

func (o *CustomTemplateDeleteNoContent) IsRedirect() bool

IsRedirect returns true when this custom template delete no content response has a 3xx status code

func (*CustomTemplateDeleteNoContent) IsServerError

func (o *CustomTemplateDeleteNoContent) IsServerError() bool

IsServerError returns true when this custom template delete no content response has a 5xx status code

func (*CustomTemplateDeleteNoContent) IsSuccess

func (o *CustomTemplateDeleteNoContent) IsSuccess() bool

IsSuccess returns true when this custom template delete no content response has a 2xx status code

func (*CustomTemplateDeleteNoContent) String

type CustomTemplateDeleteNotFound

type CustomTemplateDeleteNotFound struct {
}

CustomTemplateDeleteNotFound describes a response with status code 404, with default header values.

Template not found

func NewCustomTemplateDeleteNotFound

func NewCustomTemplateDeleteNotFound() *CustomTemplateDeleteNotFound

NewCustomTemplateDeleteNotFound creates a CustomTemplateDeleteNotFound with default headers values

func (*CustomTemplateDeleteNotFound) Code

Code gets the status code for the custom template delete not found response

func (*CustomTemplateDeleteNotFound) Error

func (*CustomTemplateDeleteNotFound) IsClientError

func (o *CustomTemplateDeleteNotFound) IsClientError() bool

IsClientError returns true when this custom template delete not found response has a 4xx status code

func (*CustomTemplateDeleteNotFound) IsCode

func (o *CustomTemplateDeleteNotFound) IsCode(code int) bool

IsCode returns true when this custom template delete not found response a status code equal to that given

func (*CustomTemplateDeleteNotFound) IsRedirect

func (o *CustomTemplateDeleteNotFound) IsRedirect() bool

IsRedirect returns true when this custom template delete not found response has a 3xx status code

func (*CustomTemplateDeleteNotFound) IsServerError

func (o *CustomTemplateDeleteNotFound) IsServerError() bool

IsServerError returns true when this custom template delete not found response has a 5xx status code

func (*CustomTemplateDeleteNotFound) IsSuccess

func (o *CustomTemplateDeleteNotFound) IsSuccess() bool

IsSuccess returns true when this custom template delete not found response has a 2xx status code

func (*CustomTemplateDeleteNotFound) String

type CustomTemplateDeleteParams

type CustomTemplateDeleteParams struct {

	/* ID.

	   Template identifier
	*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CustomTemplateDeleteParams contains all the parameters to send to the API endpoint

for the custom template delete operation.

Typically these are written to a http.Request.

func NewCustomTemplateDeleteParams

func NewCustomTemplateDeleteParams() *CustomTemplateDeleteParams

NewCustomTemplateDeleteParams creates a new CustomTemplateDeleteParams 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 NewCustomTemplateDeleteParamsWithContext

func NewCustomTemplateDeleteParamsWithContext(ctx context.Context) *CustomTemplateDeleteParams

NewCustomTemplateDeleteParamsWithContext creates a new CustomTemplateDeleteParams object with the ability to set a context for a request.

func NewCustomTemplateDeleteParamsWithHTTPClient

func NewCustomTemplateDeleteParamsWithHTTPClient(client *http.Client) *CustomTemplateDeleteParams

NewCustomTemplateDeleteParamsWithHTTPClient creates a new CustomTemplateDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewCustomTemplateDeleteParamsWithTimeout

func NewCustomTemplateDeleteParamsWithTimeout(timeout time.Duration) *CustomTemplateDeleteParams

NewCustomTemplateDeleteParamsWithTimeout creates a new CustomTemplateDeleteParams object with the ability to set a timeout on a request.

func (*CustomTemplateDeleteParams) SetContext

func (o *CustomTemplateDeleteParams) SetContext(ctx context.Context)

SetContext adds the context to the custom template delete params

func (*CustomTemplateDeleteParams) SetDefaults

func (o *CustomTemplateDeleteParams) SetDefaults()

SetDefaults hydrates default values in the custom template delete params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateDeleteParams) SetHTTPClient

func (o *CustomTemplateDeleteParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the custom template delete params

func (*CustomTemplateDeleteParams) SetID

func (o *CustomTemplateDeleteParams) SetID(id int64)

SetID adds the id to the custom template delete params

func (*CustomTemplateDeleteParams) SetTimeout

func (o *CustomTemplateDeleteParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the custom template delete params

func (*CustomTemplateDeleteParams) WithContext

WithContext adds the context to the custom template delete params

func (*CustomTemplateDeleteParams) WithDefaults

WithDefaults hydrates default values in the custom template delete params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateDeleteParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the custom template delete params

func (*CustomTemplateDeleteParams) WithID

WithID adds the id to the custom template delete params

func (*CustomTemplateDeleteParams) WithTimeout

WithTimeout adds the timeout to the custom template delete params

func (*CustomTemplateDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CustomTemplateDeleteReader

type CustomTemplateDeleteReader struct {
	// contains filtered or unexported fields
}

CustomTemplateDeleteReader is a Reader for the CustomTemplateDelete structure.

func (*CustomTemplateDeleteReader) ReadResponse

func (o *CustomTemplateDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CustomTemplateFileBadRequest

type CustomTemplateFileBadRequest struct {
}

CustomTemplateFileBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewCustomTemplateFileBadRequest

func NewCustomTemplateFileBadRequest() *CustomTemplateFileBadRequest

NewCustomTemplateFileBadRequest creates a CustomTemplateFileBadRequest with default headers values

func (*CustomTemplateFileBadRequest) Code

Code gets the status code for the custom template file bad request response

func (*CustomTemplateFileBadRequest) Error

func (*CustomTemplateFileBadRequest) IsClientError

func (o *CustomTemplateFileBadRequest) IsClientError() bool

IsClientError returns true when this custom template file bad request response has a 4xx status code

func (*CustomTemplateFileBadRequest) IsCode

func (o *CustomTemplateFileBadRequest) IsCode(code int) bool

IsCode returns true when this custom template file bad request response a status code equal to that given

func (*CustomTemplateFileBadRequest) IsRedirect

func (o *CustomTemplateFileBadRequest) IsRedirect() bool

IsRedirect returns true when this custom template file bad request response has a 3xx status code

func (*CustomTemplateFileBadRequest) IsServerError

func (o *CustomTemplateFileBadRequest) IsServerError() bool

IsServerError returns true when this custom template file bad request response has a 5xx status code

func (*CustomTemplateFileBadRequest) IsSuccess

func (o *CustomTemplateFileBadRequest) IsSuccess() bool

IsSuccess returns true when this custom template file bad request response has a 2xx status code

func (*CustomTemplateFileBadRequest) String

type CustomTemplateFileInternalServerError

type CustomTemplateFileInternalServerError struct {
}

CustomTemplateFileInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCustomTemplateFileInternalServerError

func NewCustomTemplateFileInternalServerError() *CustomTemplateFileInternalServerError

NewCustomTemplateFileInternalServerError creates a CustomTemplateFileInternalServerError with default headers values

func (*CustomTemplateFileInternalServerError) Code

Code gets the status code for the custom template file internal server error response

func (*CustomTemplateFileInternalServerError) Error

func (*CustomTemplateFileInternalServerError) IsClientError

func (o *CustomTemplateFileInternalServerError) IsClientError() bool

IsClientError returns true when this custom template file internal server error response has a 4xx status code

func (*CustomTemplateFileInternalServerError) IsCode

IsCode returns true when this custom template file internal server error response a status code equal to that given

func (*CustomTemplateFileInternalServerError) IsRedirect

IsRedirect returns true when this custom template file internal server error response has a 3xx status code

func (*CustomTemplateFileInternalServerError) IsServerError

func (o *CustomTemplateFileInternalServerError) IsServerError() bool

IsServerError returns true when this custom template file internal server error response has a 5xx status code

func (*CustomTemplateFileInternalServerError) IsSuccess

IsSuccess returns true when this custom template file internal server error response has a 2xx status code

func (*CustomTemplateFileInternalServerError) String

type CustomTemplateFileNotFound

type CustomTemplateFileNotFound struct {
}

CustomTemplateFileNotFound describes a response with status code 404, with default header values.

Custom template not found

func NewCustomTemplateFileNotFound

func NewCustomTemplateFileNotFound() *CustomTemplateFileNotFound

NewCustomTemplateFileNotFound creates a CustomTemplateFileNotFound with default headers values

func (*CustomTemplateFileNotFound) Code

func (o *CustomTemplateFileNotFound) Code() int

Code gets the status code for the custom template file not found response

func (*CustomTemplateFileNotFound) Error

func (*CustomTemplateFileNotFound) IsClientError

func (o *CustomTemplateFileNotFound) IsClientError() bool

IsClientError returns true when this custom template file not found response has a 4xx status code

func (*CustomTemplateFileNotFound) IsCode

func (o *CustomTemplateFileNotFound) IsCode(code int) bool

IsCode returns true when this custom template file not found response a status code equal to that given

func (*CustomTemplateFileNotFound) IsRedirect

func (o *CustomTemplateFileNotFound) IsRedirect() bool

IsRedirect returns true when this custom template file not found response has a 3xx status code

func (*CustomTemplateFileNotFound) IsServerError

func (o *CustomTemplateFileNotFound) IsServerError() bool

IsServerError returns true when this custom template file not found response has a 5xx status code

func (*CustomTemplateFileNotFound) IsSuccess

func (o *CustomTemplateFileNotFound) IsSuccess() bool

IsSuccess returns true when this custom template file not found response has a 2xx status code

func (*CustomTemplateFileNotFound) String

func (o *CustomTemplateFileNotFound) String() string

type CustomTemplateFileOK

type CustomTemplateFileOK struct {
	Payload *models.CustomtemplatesFileResponse
}

CustomTemplateFileOK describes a response with status code 200, with default header values.

Success

func NewCustomTemplateFileOK

func NewCustomTemplateFileOK() *CustomTemplateFileOK

NewCustomTemplateFileOK creates a CustomTemplateFileOK with default headers values

func (*CustomTemplateFileOK) Code

func (o *CustomTemplateFileOK) Code() int

Code gets the status code for the custom template file o k response

func (*CustomTemplateFileOK) Error

func (o *CustomTemplateFileOK) Error() string

func (*CustomTemplateFileOK) GetPayload

func (*CustomTemplateFileOK) IsClientError

func (o *CustomTemplateFileOK) IsClientError() bool

IsClientError returns true when this custom template file o k response has a 4xx status code

func (*CustomTemplateFileOK) IsCode

func (o *CustomTemplateFileOK) IsCode(code int) bool

IsCode returns true when this custom template file o k response a status code equal to that given

func (*CustomTemplateFileOK) IsRedirect

func (o *CustomTemplateFileOK) IsRedirect() bool

IsRedirect returns true when this custom template file o k response has a 3xx status code

func (*CustomTemplateFileOK) IsServerError

func (o *CustomTemplateFileOK) IsServerError() bool

IsServerError returns true when this custom template file o k response has a 5xx status code

func (*CustomTemplateFileOK) IsSuccess

func (o *CustomTemplateFileOK) IsSuccess() bool

IsSuccess returns true when this custom template file o k response has a 2xx status code

func (*CustomTemplateFileOK) String

func (o *CustomTemplateFileOK) String() string

type CustomTemplateFileParams

type CustomTemplateFileParams struct {

	/* ID.

	   Template identifier
	*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CustomTemplateFileParams contains all the parameters to send to the API endpoint

for the custom template file operation.

Typically these are written to a http.Request.

func NewCustomTemplateFileParams

func NewCustomTemplateFileParams() *CustomTemplateFileParams

NewCustomTemplateFileParams creates a new CustomTemplateFileParams 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 NewCustomTemplateFileParamsWithContext

func NewCustomTemplateFileParamsWithContext(ctx context.Context) *CustomTemplateFileParams

NewCustomTemplateFileParamsWithContext creates a new CustomTemplateFileParams object with the ability to set a context for a request.

func NewCustomTemplateFileParamsWithHTTPClient

func NewCustomTemplateFileParamsWithHTTPClient(client *http.Client) *CustomTemplateFileParams

NewCustomTemplateFileParamsWithHTTPClient creates a new CustomTemplateFileParams object with the ability to set a custom HTTPClient for a request.

func NewCustomTemplateFileParamsWithTimeout

func NewCustomTemplateFileParamsWithTimeout(timeout time.Duration) *CustomTemplateFileParams

NewCustomTemplateFileParamsWithTimeout creates a new CustomTemplateFileParams object with the ability to set a timeout on a request.

func (*CustomTemplateFileParams) SetContext

func (o *CustomTemplateFileParams) SetContext(ctx context.Context)

SetContext adds the context to the custom template file params

func (*CustomTemplateFileParams) SetDefaults

func (o *CustomTemplateFileParams) SetDefaults()

SetDefaults hydrates default values in the custom template file params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateFileParams) SetHTTPClient

func (o *CustomTemplateFileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the custom template file params

func (*CustomTemplateFileParams) SetID

func (o *CustomTemplateFileParams) SetID(id int64)

SetID adds the id to the custom template file params

func (*CustomTemplateFileParams) SetTimeout

func (o *CustomTemplateFileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the custom template file params

func (*CustomTemplateFileParams) WithContext

WithContext adds the context to the custom template file params

func (*CustomTemplateFileParams) WithDefaults

WithDefaults hydrates default values in the custom template file params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateFileParams) WithHTTPClient

func (o *CustomTemplateFileParams) WithHTTPClient(client *http.Client) *CustomTemplateFileParams

WithHTTPClient adds the HTTPClient to the custom template file params

func (*CustomTemplateFileParams) WithID

WithID adds the id to the custom template file params

func (*CustomTemplateFileParams) WithTimeout

WithTimeout adds the timeout to the custom template file params

func (*CustomTemplateFileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CustomTemplateFileReader

type CustomTemplateFileReader struct {
	// contains filtered or unexported fields
}

CustomTemplateFileReader is a Reader for the CustomTemplateFile structure.

func (*CustomTemplateFileReader) ReadResponse

func (o *CustomTemplateFileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CustomTemplateGitFetchBadRequest

type CustomTemplateGitFetchBadRequest struct {
}

CustomTemplateGitFetchBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewCustomTemplateGitFetchBadRequest

func NewCustomTemplateGitFetchBadRequest() *CustomTemplateGitFetchBadRequest

NewCustomTemplateGitFetchBadRequest creates a CustomTemplateGitFetchBadRequest with default headers values

func (*CustomTemplateGitFetchBadRequest) Code

Code gets the status code for the custom template git fetch bad request response

func (*CustomTemplateGitFetchBadRequest) Error

func (*CustomTemplateGitFetchBadRequest) IsClientError

func (o *CustomTemplateGitFetchBadRequest) IsClientError() bool

IsClientError returns true when this custom template git fetch bad request response has a 4xx status code

func (*CustomTemplateGitFetchBadRequest) IsCode

func (o *CustomTemplateGitFetchBadRequest) IsCode(code int) bool

IsCode returns true when this custom template git fetch bad request response a status code equal to that given

func (*CustomTemplateGitFetchBadRequest) IsRedirect

func (o *CustomTemplateGitFetchBadRequest) IsRedirect() bool

IsRedirect returns true when this custom template git fetch bad request response has a 3xx status code

func (*CustomTemplateGitFetchBadRequest) IsServerError

func (o *CustomTemplateGitFetchBadRequest) IsServerError() bool

IsServerError returns true when this custom template git fetch bad request response has a 5xx status code

func (*CustomTemplateGitFetchBadRequest) IsSuccess

func (o *CustomTemplateGitFetchBadRequest) IsSuccess() bool

IsSuccess returns true when this custom template git fetch bad request response has a 2xx status code

func (*CustomTemplateGitFetchBadRequest) String

type CustomTemplateGitFetchInternalServerError

type CustomTemplateGitFetchInternalServerError struct {
}

CustomTemplateGitFetchInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCustomTemplateGitFetchInternalServerError

func NewCustomTemplateGitFetchInternalServerError() *CustomTemplateGitFetchInternalServerError

NewCustomTemplateGitFetchInternalServerError creates a CustomTemplateGitFetchInternalServerError with default headers values

func (*CustomTemplateGitFetchInternalServerError) Code

Code gets the status code for the custom template git fetch internal server error response

func (*CustomTemplateGitFetchInternalServerError) Error

func (*CustomTemplateGitFetchInternalServerError) IsClientError

IsClientError returns true when this custom template git fetch internal server error response has a 4xx status code

func (*CustomTemplateGitFetchInternalServerError) IsCode

IsCode returns true when this custom template git fetch internal server error response a status code equal to that given

func (*CustomTemplateGitFetchInternalServerError) IsRedirect

IsRedirect returns true when this custom template git fetch internal server error response has a 3xx status code

func (*CustomTemplateGitFetchInternalServerError) IsServerError

IsServerError returns true when this custom template git fetch internal server error response has a 5xx status code

func (*CustomTemplateGitFetchInternalServerError) IsSuccess

IsSuccess returns true when this custom template git fetch internal server error response has a 2xx status code

func (*CustomTemplateGitFetchInternalServerError) String

type CustomTemplateGitFetchNotFound

type CustomTemplateGitFetchNotFound struct {
}

CustomTemplateGitFetchNotFound describes a response with status code 404, with default header values.

Custom template not found

func NewCustomTemplateGitFetchNotFound

func NewCustomTemplateGitFetchNotFound() *CustomTemplateGitFetchNotFound

NewCustomTemplateGitFetchNotFound creates a CustomTemplateGitFetchNotFound with default headers values

func (*CustomTemplateGitFetchNotFound) Code

Code gets the status code for the custom template git fetch not found response

func (*CustomTemplateGitFetchNotFound) Error

func (*CustomTemplateGitFetchNotFound) IsClientError

func (o *CustomTemplateGitFetchNotFound) IsClientError() bool

IsClientError returns true when this custom template git fetch not found response has a 4xx status code

func (*CustomTemplateGitFetchNotFound) IsCode

func (o *CustomTemplateGitFetchNotFound) IsCode(code int) bool

IsCode returns true when this custom template git fetch not found response a status code equal to that given

func (*CustomTemplateGitFetchNotFound) IsRedirect

func (o *CustomTemplateGitFetchNotFound) IsRedirect() bool

IsRedirect returns true when this custom template git fetch not found response has a 3xx status code

func (*CustomTemplateGitFetchNotFound) IsServerError

func (o *CustomTemplateGitFetchNotFound) IsServerError() bool

IsServerError returns true when this custom template git fetch not found response has a 5xx status code

func (*CustomTemplateGitFetchNotFound) IsSuccess

func (o *CustomTemplateGitFetchNotFound) IsSuccess() bool

IsSuccess returns true when this custom template git fetch not found response has a 2xx status code

func (*CustomTemplateGitFetchNotFound) String

type CustomTemplateGitFetchOK

type CustomTemplateGitFetchOK struct {
	Payload *models.CustomtemplatesFileResponse
}

CustomTemplateGitFetchOK describes a response with status code 200, with default header values.

Success

func NewCustomTemplateGitFetchOK

func NewCustomTemplateGitFetchOK() *CustomTemplateGitFetchOK

NewCustomTemplateGitFetchOK creates a CustomTemplateGitFetchOK with default headers values

func (*CustomTemplateGitFetchOK) Code

func (o *CustomTemplateGitFetchOK) Code() int

Code gets the status code for the custom template git fetch o k response

func (*CustomTemplateGitFetchOK) Error

func (o *CustomTemplateGitFetchOK) Error() string

func (*CustomTemplateGitFetchOK) GetPayload

func (*CustomTemplateGitFetchOK) IsClientError

func (o *CustomTemplateGitFetchOK) IsClientError() bool

IsClientError returns true when this custom template git fetch o k response has a 4xx status code

func (*CustomTemplateGitFetchOK) IsCode

func (o *CustomTemplateGitFetchOK) IsCode(code int) bool

IsCode returns true when this custom template git fetch o k response a status code equal to that given

func (*CustomTemplateGitFetchOK) IsRedirect

func (o *CustomTemplateGitFetchOK) IsRedirect() bool

IsRedirect returns true when this custom template git fetch o k response has a 3xx status code

func (*CustomTemplateGitFetchOK) IsServerError

func (o *CustomTemplateGitFetchOK) IsServerError() bool

IsServerError returns true when this custom template git fetch o k response has a 5xx status code

func (*CustomTemplateGitFetchOK) IsSuccess

func (o *CustomTemplateGitFetchOK) IsSuccess() bool

IsSuccess returns true when this custom template git fetch o k response has a 2xx status code

func (*CustomTemplateGitFetchOK) String

func (o *CustomTemplateGitFetchOK) String() string

type CustomTemplateGitFetchParams

type CustomTemplateGitFetchParams struct {

	/* ID.

	   Template identifier
	*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CustomTemplateGitFetchParams contains all the parameters to send to the API endpoint

for the custom template git fetch operation.

Typically these are written to a http.Request.

func NewCustomTemplateGitFetchParams

func NewCustomTemplateGitFetchParams() *CustomTemplateGitFetchParams

NewCustomTemplateGitFetchParams creates a new CustomTemplateGitFetchParams 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 NewCustomTemplateGitFetchParamsWithContext

func NewCustomTemplateGitFetchParamsWithContext(ctx context.Context) *CustomTemplateGitFetchParams

NewCustomTemplateGitFetchParamsWithContext creates a new CustomTemplateGitFetchParams object with the ability to set a context for a request.

func NewCustomTemplateGitFetchParamsWithHTTPClient

func NewCustomTemplateGitFetchParamsWithHTTPClient(client *http.Client) *CustomTemplateGitFetchParams

NewCustomTemplateGitFetchParamsWithHTTPClient creates a new CustomTemplateGitFetchParams object with the ability to set a custom HTTPClient for a request.

func NewCustomTemplateGitFetchParamsWithTimeout

func NewCustomTemplateGitFetchParamsWithTimeout(timeout time.Duration) *CustomTemplateGitFetchParams

NewCustomTemplateGitFetchParamsWithTimeout creates a new CustomTemplateGitFetchParams object with the ability to set a timeout on a request.

func (*CustomTemplateGitFetchParams) SetContext

func (o *CustomTemplateGitFetchParams) SetContext(ctx context.Context)

SetContext adds the context to the custom template git fetch params

func (*CustomTemplateGitFetchParams) SetDefaults

func (o *CustomTemplateGitFetchParams) SetDefaults()

SetDefaults hydrates default values in the custom template git fetch params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateGitFetchParams) SetHTTPClient

func (o *CustomTemplateGitFetchParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the custom template git fetch params

func (*CustomTemplateGitFetchParams) SetID

func (o *CustomTemplateGitFetchParams) SetID(id int64)

SetID adds the id to the custom template git fetch params

func (*CustomTemplateGitFetchParams) SetTimeout

func (o *CustomTemplateGitFetchParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the custom template git fetch params

func (*CustomTemplateGitFetchParams) WithContext

WithContext adds the context to the custom template git fetch params

func (*CustomTemplateGitFetchParams) WithDefaults

WithDefaults hydrates default values in the custom template git fetch params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateGitFetchParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the custom template git fetch params

func (*CustomTemplateGitFetchParams) WithID

WithID adds the id to the custom template git fetch params

func (*CustomTemplateGitFetchParams) WithTimeout

WithTimeout adds the timeout to the custom template git fetch params

func (*CustomTemplateGitFetchParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CustomTemplateGitFetchReader

type CustomTemplateGitFetchReader struct {
	// contains filtered or unexported fields
}

CustomTemplateGitFetchReader is a Reader for the CustomTemplateGitFetch structure.

func (*CustomTemplateGitFetchReader) ReadResponse

func (o *CustomTemplateGitFetchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CustomTemplateInspectBadRequest

type CustomTemplateInspectBadRequest struct {
}

CustomTemplateInspectBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewCustomTemplateInspectBadRequest

func NewCustomTemplateInspectBadRequest() *CustomTemplateInspectBadRequest

NewCustomTemplateInspectBadRequest creates a CustomTemplateInspectBadRequest with default headers values

func (*CustomTemplateInspectBadRequest) Code

Code gets the status code for the custom template inspect bad request response

func (*CustomTemplateInspectBadRequest) Error

func (*CustomTemplateInspectBadRequest) IsClientError

func (o *CustomTemplateInspectBadRequest) IsClientError() bool

IsClientError returns true when this custom template inspect bad request response has a 4xx status code

func (*CustomTemplateInspectBadRequest) IsCode

func (o *CustomTemplateInspectBadRequest) IsCode(code int) bool

IsCode returns true when this custom template inspect bad request response a status code equal to that given

func (*CustomTemplateInspectBadRequest) IsRedirect

func (o *CustomTemplateInspectBadRequest) IsRedirect() bool

IsRedirect returns true when this custom template inspect bad request response has a 3xx status code

func (*CustomTemplateInspectBadRequest) IsServerError

func (o *CustomTemplateInspectBadRequest) IsServerError() bool

IsServerError returns true when this custom template inspect bad request response has a 5xx status code

func (*CustomTemplateInspectBadRequest) IsSuccess

func (o *CustomTemplateInspectBadRequest) IsSuccess() bool

IsSuccess returns true when this custom template inspect bad request response has a 2xx status code

func (*CustomTemplateInspectBadRequest) String

type CustomTemplateInspectInternalServerError

type CustomTemplateInspectInternalServerError struct {
}

CustomTemplateInspectInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCustomTemplateInspectInternalServerError

func NewCustomTemplateInspectInternalServerError() *CustomTemplateInspectInternalServerError

NewCustomTemplateInspectInternalServerError creates a CustomTemplateInspectInternalServerError with default headers values

func (*CustomTemplateInspectInternalServerError) Code

Code gets the status code for the custom template inspect internal server error response

func (*CustomTemplateInspectInternalServerError) Error

func (*CustomTemplateInspectInternalServerError) IsClientError

IsClientError returns true when this custom template inspect internal server error response has a 4xx status code

func (*CustomTemplateInspectInternalServerError) IsCode

IsCode returns true when this custom template inspect internal server error response a status code equal to that given

func (*CustomTemplateInspectInternalServerError) IsRedirect

IsRedirect returns true when this custom template inspect internal server error response has a 3xx status code

func (*CustomTemplateInspectInternalServerError) IsServerError

IsServerError returns true when this custom template inspect internal server error response has a 5xx status code

func (*CustomTemplateInspectInternalServerError) IsSuccess

IsSuccess returns true when this custom template inspect internal server error response has a 2xx status code

func (*CustomTemplateInspectInternalServerError) String

type CustomTemplateInspectNotFound

type CustomTemplateInspectNotFound struct {
}

CustomTemplateInspectNotFound describes a response with status code 404, with default header values.

Template not found

func NewCustomTemplateInspectNotFound

func NewCustomTemplateInspectNotFound() *CustomTemplateInspectNotFound

NewCustomTemplateInspectNotFound creates a CustomTemplateInspectNotFound with default headers values

func (*CustomTemplateInspectNotFound) Code

Code gets the status code for the custom template inspect not found response

func (*CustomTemplateInspectNotFound) Error

func (*CustomTemplateInspectNotFound) IsClientError

func (o *CustomTemplateInspectNotFound) IsClientError() bool

IsClientError returns true when this custom template inspect not found response has a 4xx status code

func (*CustomTemplateInspectNotFound) IsCode

func (o *CustomTemplateInspectNotFound) IsCode(code int) bool

IsCode returns true when this custom template inspect not found response a status code equal to that given

func (*CustomTemplateInspectNotFound) IsRedirect

func (o *CustomTemplateInspectNotFound) IsRedirect() bool

IsRedirect returns true when this custom template inspect not found response has a 3xx status code

func (*CustomTemplateInspectNotFound) IsServerError

func (o *CustomTemplateInspectNotFound) IsServerError() bool

IsServerError returns true when this custom template inspect not found response has a 5xx status code

func (*CustomTemplateInspectNotFound) IsSuccess

func (o *CustomTemplateInspectNotFound) IsSuccess() bool

IsSuccess returns true when this custom template inspect not found response has a 2xx status code

func (*CustomTemplateInspectNotFound) String

type CustomTemplateInspectOK

type CustomTemplateInspectOK struct {
	Payload *models.PortainereeCustomTemplate
}

CustomTemplateInspectOK describes a response with status code 200, with default header values.

Success

func NewCustomTemplateInspectOK

func NewCustomTemplateInspectOK() *CustomTemplateInspectOK

NewCustomTemplateInspectOK creates a CustomTemplateInspectOK with default headers values

func (*CustomTemplateInspectOK) Code

func (o *CustomTemplateInspectOK) Code() int

Code gets the status code for the custom template inspect o k response

func (*CustomTemplateInspectOK) Error

func (o *CustomTemplateInspectOK) Error() string

func (*CustomTemplateInspectOK) GetPayload

func (*CustomTemplateInspectOK) IsClientError

func (o *CustomTemplateInspectOK) IsClientError() bool

IsClientError returns true when this custom template inspect o k response has a 4xx status code

func (*CustomTemplateInspectOK) IsCode

func (o *CustomTemplateInspectOK) IsCode(code int) bool

IsCode returns true when this custom template inspect o k response a status code equal to that given

func (*CustomTemplateInspectOK) IsRedirect

func (o *CustomTemplateInspectOK) IsRedirect() bool

IsRedirect returns true when this custom template inspect o k response has a 3xx status code

func (*CustomTemplateInspectOK) IsServerError

func (o *CustomTemplateInspectOK) IsServerError() bool

IsServerError returns true when this custom template inspect o k response has a 5xx status code

func (*CustomTemplateInspectOK) IsSuccess

func (o *CustomTemplateInspectOK) IsSuccess() bool

IsSuccess returns true when this custom template inspect o k response has a 2xx status code

func (*CustomTemplateInspectOK) String

func (o *CustomTemplateInspectOK) String() string

type CustomTemplateInspectParams

type CustomTemplateInspectParams struct {

	/* ID.

	   Template identifier
	*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CustomTemplateInspectParams contains all the parameters to send to the API endpoint

for the custom template inspect operation.

Typically these are written to a http.Request.

func NewCustomTemplateInspectParams

func NewCustomTemplateInspectParams() *CustomTemplateInspectParams

NewCustomTemplateInspectParams creates a new CustomTemplateInspectParams 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 NewCustomTemplateInspectParamsWithContext

func NewCustomTemplateInspectParamsWithContext(ctx context.Context) *CustomTemplateInspectParams

NewCustomTemplateInspectParamsWithContext creates a new CustomTemplateInspectParams object with the ability to set a context for a request.

func NewCustomTemplateInspectParamsWithHTTPClient

func NewCustomTemplateInspectParamsWithHTTPClient(client *http.Client) *CustomTemplateInspectParams

NewCustomTemplateInspectParamsWithHTTPClient creates a new CustomTemplateInspectParams object with the ability to set a custom HTTPClient for a request.

func NewCustomTemplateInspectParamsWithTimeout

func NewCustomTemplateInspectParamsWithTimeout(timeout time.Duration) *CustomTemplateInspectParams

NewCustomTemplateInspectParamsWithTimeout creates a new CustomTemplateInspectParams object with the ability to set a timeout on a request.

func (*CustomTemplateInspectParams) SetContext

func (o *CustomTemplateInspectParams) SetContext(ctx context.Context)

SetContext adds the context to the custom template inspect params

func (*CustomTemplateInspectParams) SetDefaults

func (o *CustomTemplateInspectParams) SetDefaults()

SetDefaults hydrates default values in the custom template inspect params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateInspectParams) SetHTTPClient

func (o *CustomTemplateInspectParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the custom template inspect params

func (*CustomTemplateInspectParams) SetID

func (o *CustomTemplateInspectParams) SetID(id int64)

SetID adds the id to the custom template inspect params

func (*CustomTemplateInspectParams) SetTimeout

func (o *CustomTemplateInspectParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the custom template inspect params

func (*CustomTemplateInspectParams) WithContext

WithContext adds the context to the custom template inspect params

func (*CustomTemplateInspectParams) WithDefaults

WithDefaults hydrates default values in the custom template inspect params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateInspectParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the custom template inspect params

func (*CustomTemplateInspectParams) WithID

WithID adds the id to the custom template inspect params

func (*CustomTemplateInspectParams) WithTimeout

WithTimeout adds the timeout to the custom template inspect params

func (*CustomTemplateInspectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CustomTemplateInspectReader

type CustomTemplateInspectReader struct {
	// contains filtered or unexported fields
}

CustomTemplateInspectReader is a Reader for the CustomTemplateInspect structure.

func (*CustomTemplateInspectReader) ReadResponse

func (o *CustomTemplateInspectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CustomTemplateListInternalServerError

type CustomTemplateListInternalServerError struct {
}

CustomTemplateListInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCustomTemplateListInternalServerError

func NewCustomTemplateListInternalServerError() *CustomTemplateListInternalServerError

NewCustomTemplateListInternalServerError creates a CustomTemplateListInternalServerError with default headers values

func (*CustomTemplateListInternalServerError) Code

Code gets the status code for the custom template list internal server error response

func (*CustomTemplateListInternalServerError) Error

func (*CustomTemplateListInternalServerError) IsClientError

func (o *CustomTemplateListInternalServerError) IsClientError() bool

IsClientError returns true when this custom template list internal server error response has a 4xx status code

func (*CustomTemplateListInternalServerError) IsCode

IsCode returns true when this custom template list internal server error response a status code equal to that given

func (*CustomTemplateListInternalServerError) IsRedirect

IsRedirect returns true when this custom template list internal server error response has a 3xx status code

func (*CustomTemplateListInternalServerError) IsServerError

func (o *CustomTemplateListInternalServerError) IsServerError() bool

IsServerError returns true when this custom template list internal server error response has a 5xx status code

func (*CustomTemplateListInternalServerError) IsSuccess

IsSuccess returns true when this custom template list internal server error response has a 2xx status code

func (*CustomTemplateListInternalServerError) String

type CustomTemplateListOK

type CustomTemplateListOK struct {
	Payload []*models.PortainereeCustomTemplate
}

CustomTemplateListOK describes a response with status code 200, with default header values.

Success

func NewCustomTemplateListOK

func NewCustomTemplateListOK() *CustomTemplateListOK

NewCustomTemplateListOK creates a CustomTemplateListOK with default headers values

func (*CustomTemplateListOK) Code

func (o *CustomTemplateListOK) Code() int

Code gets the status code for the custom template list o k response

func (*CustomTemplateListOK) Error

func (o *CustomTemplateListOK) Error() string

func (*CustomTemplateListOK) GetPayload

func (*CustomTemplateListOK) IsClientError

func (o *CustomTemplateListOK) IsClientError() bool

IsClientError returns true when this custom template list o k response has a 4xx status code

func (*CustomTemplateListOK) IsCode

func (o *CustomTemplateListOK) IsCode(code int) bool

IsCode returns true when this custom template list o k response a status code equal to that given

func (*CustomTemplateListOK) IsRedirect

func (o *CustomTemplateListOK) IsRedirect() bool

IsRedirect returns true when this custom template list o k response has a 3xx status code

func (*CustomTemplateListOK) IsServerError

func (o *CustomTemplateListOK) IsServerError() bool

IsServerError returns true when this custom template list o k response has a 5xx status code

func (*CustomTemplateListOK) IsSuccess

func (o *CustomTemplateListOK) IsSuccess() bool

IsSuccess returns true when this custom template list o k response has a 2xx status code

func (*CustomTemplateListOK) String

func (o *CustomTemplateListOK) String() string

type CustomTemplateListParams

type CustomTemplateListParams struct {

	/* Edge.

	   Filter by edge templates
	*/
	Edge *bool

	/* Type.

	   Template types
	*/
	Type []int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CustomTemplateListParams contains all the parameters to send to the API endpoint

for the custom template list operation.

Typically these are written to a http.Request.

func NewCustomTemplateListParams

func NewCustomTemplateListParams() *CustomTemplateListParams

NewCustomTemplateListParams creates a new CustomTemplateListParams 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 NewCustomTemplateListParamsWithContext

func NewCustomTemplateListParamsWithContext(ctx context.Context) *CustomTemplateListParams

NewCustomTemplateListParamsWithContext creates a new CustomTemplateListParams object with the ability to set a context for a request.

func NewCustomTemplateListParamsWithHTTPClient

func NewCustomTemplateListParamsWithHTTPClient(client *http.Client) *CustomTemplateListParams

NewCustomTemplateListParamsWithHTTPClient creates a new CustomTemplateListParams object with the ability to set a custom HTTPClient for a request.

func NewCustomTemplateListParamsWithTimeout

func NewCustomTemplateListParamsWithTimeout(timeout time.Duration) *CustomTemplateListParams

NewCustomTemplateListParamsWithTimeout creates a new CustomTemplateListParams object with the ability to set a timeout on a request.

func (*CustomTemplateListParams) SetContext

func (o *CustomTemplateListParams) SetContext(ctx context.Context)

SetContext adds the context to the custom template list params

func (*CustomTemplateListParams) SetDefaults

func (o *CustomTemplateListParams) SetDefaults()

SetDefaults hydrates default values in the custom template list params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateListParams) SetEdge

func (o *CustomTemplateListParams) SetEdge(edge *bool)

SetEdge adds the edge to the custom template list params

func (*CustomTemplateListParams) SetHTTPClient

func (o *CustomTemplateListParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the custom template list params

func (*CustomTemplateListParams) SetTimeout

func (o *CustomTemplateListParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the custom template list params

func (*CustomTemplateListParams) SetType

func (o *CustomTemplateListParams) SetType(typeVar []int64)

SetType adds the type to the custom template list params

func (*CustomTemplateListParams) WithContext

WithContext adds the context to the custom template list params

func (*CustomTemplateListParams) WithDefaults

WithDefaults hydrates default values in the custom template list params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateListParams) WithEdge

WithEdge adds the edge to the custom template list params

func (*CustomTemplateListParams) WithHTTPClient

func (o *CustomTemplateListParams) WithHTTPClient(client *http.Client) *CustomTemplateListParams

WithHTTPClient adds the HTTPClient to the custom template list params

func (*CustomTemplateListParams) WithTimeout

WithTimeout adds the timeout to the custom template list params

func (*CustomTemplateListParams) WithType

WithType adds the typeVar to the custom template list params

func (*CustomTemplateListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CustomTemplateListReader

type CustomTemplateListReader struct {
	// contains filtered or unexported fields
}

CustomTemplateListReader is a Reader for the CustomTemplateList structure.

func (*CustomTemplateListReader) ReadResponse

func (o *CustomTemplateListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CustomTemplateUpdateBadRequest

type CustomTemplateUpdateBadRequest struct {
}

CustomTemplateUpdateBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewCustomTemplateUpdateBadRequest

func NewCustomTemplateUpdateBadRequest() *CustomTemplateUpdateBadRequest

NewCustomTemplateUpdateBadRequest creates a CustomTemplateUpdateBadRequest with default headers values

func (*CustomTemplateUpdateBadRequest) Code

Code gets the status code for the custom template update bad request response

func (*CustomTemplateUpdateBadRequest) Error

func (*CustomTemplateUpdateBadRequest) IsClientError

func (o *CustomTemplateUpdateBadRequest) IsClientError() bool

IsClientError returns true when this custom template update bad request response has a 4xx status code

func (*CustomTemplateUpdateBadRequest) IsCode

func (o *CustomTemplateUpdateBadRequest) IsCode(code int) bool

IsCode returns true when this custom template update bad request response a status code equal to that given

func (*CustomTemplateUpdateBadRequest) IsRedirect

func (o *CustomTemplateUpdateBadRequest) IsRedirect() bool

IsRedirect returns true when this custom template update bad request response has a 3xx status code

func (*CustomTemplateUpdateBadRequest) IsServerError

func (o *CustomTemplateUpdateBadRequest) IsServerError() bool

IsServerError returns true when this custom template update bad request response has a 5xx status code

func (*CustomTemplateUpdateBadRequest) IsSuccess

func (o *CustomTemplateUpdateBadRequest) IsSuccess() bool

IsSuccess returns true when this custom template update bad request response has a 2xx status code

func (*CustomTemplateUpdateBadRequest) String

type CustomTemplateUpdateForbidden

type CustomTemplateUpdateForbidden struct {
}

CustomTemplateUpdateForbidden describes a response with status code 403, with default header values.

Permission denied to access template

func NewCustomTemplateUpdateForbidden

func NewCustomTemplateUpdateForbidden() *CustomTemplateUpdateForbidden

NewCustomTemplateUpdateForbidden creates a CustomTemplateUpdateForbidden with default headers values

func (*CustomTemplateUpdateForbidden) Code

Code gets the status code for the custom template update forbidden response

func (*CustomTemplateUpdateForbidden) Error

func (*CustomTemplateUpdateForbidden) IsClientError

func (o *CustomTemplateUpdateForbidden) IsClientError() bool

IsClientError returns true when this custom template update forbidden response has a 4xx status code

func (*CustomTemplateUpdateForbidden) IsCode

func (o *CustomTemplateUpdateForbidden) IsCode(code int) bool

IsCode returns true when this custom template update forbidden response a status code equal to that given

func (*CustomTemplateUpdateForbidden) IsRedirect

func (o *CustomTemplateUpdateForbidden) IsRedirect() bool

IsRedirect returns true when this custom template update forbidden response has a 3xx status code

func (*CustomTemplateUpdateForbidden) IsServerError

func (o *CustomTemplateUpdateForbidden) IsServerError() bool

IsServerError returns true when this custom template update forbidden response has a 5xx status code

func (*CustomTemplateUpdateForbidden) IsSuccess

func (o *CustomTemplateUpdateForbidden) IsSuccess() bool

IsSuccess returns true when this custom template update forbidden response has a 2xx status code

func (*CustomTemplateUpdateForbidden) String

type CustomTemplateUpdateInternalServerError

type CustomTemplateUpdateInternalServerError struct {
}

CustomTemplateUpdateInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCustomTemplateUpdateInternalServerError

func NewCustomTemplateUpdateInternalServerError() *CustomTemplateUpdateInternalServerError

NewCustomTemplateUpdateInternalServerError creates a CustomTemplateUpdateInternalServerError with default headers values

func (*CustomTemplateUpdateInternalServerError) Code

Code gets the status code for the custom template update internal server error response

func (*CustomTemplateUpdateInternalServerError) Error

func (*CustomTemplateUpdateInternalServerError) IsClientError

func (o *CustomTemplateUpdateInternalServerError) IsClientError() bool

IsClientError returns true when this custom template update internal server error response has a 4xx status code

func (*CustomTemplateUpdateInternalServerError) IsCode

IsCode returns true when this custom template update internal server error response a status code equal to that given

func (*CustomTemplateUpdateInternalServerError) IsRedirect

IsRedirect returns true when this custom template update internal server error response has a 3xx status code

func (*CustomTemplateUpdateInternalServerError) IsServerError

func (o *CustomTemplateUpdateInternalServerError) IsServerError() bool

IsServerError returns true when this custom template update internal server error response has a 5xx status code

func (*CustomTemplateUpdateInternalServerError) IsSuccess

IsSuccess returns true when this custom template update internal server error response has a 2xx status code

func (*CustomTemplateUpdateInternalServerError) String

type CustomTemplateUpdateNotFound

type CustomTemplateUpdateNotFound struct {
}

CustomTemplateUpdateNotFound describes a response with status code 404, with default header values.

Template not found

func NewCustomTemplateUpdateNotFound

func NewCustomTemplateUpdateNotFound() *CustomTemplateUpdateNotFound

NewCustomTemplateUpdateNotFound creates a CustomTemplateUpdateNotFound with default headers values

func (*CustomTemplateUpdateNotFound) Code

Code gets the status code for the custom template update not found response

func (*CustomTemplateUpdateNotFound) Error

func (*CustomTemplateUpdateNotFound) IsClientError

func (o *CustomTemplateUpdateNotFound) IsClientError() bool

IsClientError returns true when this custom template update not found response has a 4xx status code

func (*CustomTemplateUpdateNotFound) IsCode

func (o *CustomTemplateUpdateNotFound) IsCode(code int) bool

IsCode returns true when this custom template update not found response a status code equal to that given

func (*CustomTemplateUpdateNotFound) IsRedirect

func (o *CustomTemplateUpdateNotFound) IsRedirect() bool

IsRedirect returns true when this custom template update not found response has a 3xx status code

func (*CustomTemplateUpdateNotFound) IsServerError

func (o *CustomTemplateUpdateNotFound) IsServerError() bool

IsServerError returns true when this custom template update not found response has a 5xx status code

func (*CustomTemplateUpdateNotFound) IsSuccess

func (o *CustomTemplateUpdateNotFound) IsSuccess() bool

IsSuccess returns true when this custom template update not found response has a 2xx status code

func (*CustomTemplateUpdateNotFound) String

type CustomTemplateUpdateOK

type CustomTemplateUpdateOK struct {
	Payload *models.PortainereeCustomTemplate
}

CustomTemplateUpdateOK describes a response with status code 200, with default header values.

Success

func NewCustomTemplateUpdateOK

func NewCustomTemplateUpdateOK() *CustomTemplateUpdateOK

NewCustomTemplateUpdateOK creates a CustomTemplateUpdateOK with default headers values

func (*CustomTemplateUpdateOK) Code

func (o *CustomTemplateUpdateOK) Code() int

Code gets the status code for the custom template update o k response

func (*CustomTemplateUpdateOK) Error

func (o *CustomTemplateUpdateOK) Error() string

func (*CustomTemplateUpdateOK) GetPayload

func (*CustomTemplateUpdateOK) IsClientError

func (o *CustomTemplateUpdateOK) IsClientError() bool

IsClientError returns true when this custom template update o k response has a 4xx status code

func (*CustomTemplateUpdateOK) IsCode

func (o *CustomTemplateUpdateOK) IsCode(code int) bool

IsCode returns true when this custom template update o k response a status code equal to that given

func (*CustomTemplateUpdateOK) IsRedirect

func (o *CustomTemplateUpdateOK) IsRedirect() bool

IsRedirect returns true when this custom template update o k response has a 3xx status code

func (*CustomTemplateUpdateOK) IsServerError

func (o *CustomTemplateUpdateOK) IsServerError() bool

IsServerError returns true when this custom template update o k response has a 5xx status code

func (*CustomTemplateUpdateOK) IsSuccess

func (o *CustomTemplateUpdateOK) IsSuccess() bool

IsSuccess returns true when this custom template update o k response has a 2xx status code

func (*CustomTemplateUpdateOK) String

func (o *CustomTemplateUpdateOK) String() string

type CustomTemplateUpdateParams

type CustomTemplateUpdateParams struct {

	/* Body.

	   Template details
	*/
	Body *models.CustomtemplatesCustomTemplateUpdatePayload

	/* ID.

	   Template identifier
	*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CustomTemplateUpdateParams contains all the parameters to send to the API endpoint

for the custom template update operation.

Typically these are written to a http.Request.

func NewCustomTemplateUpdateParams

func NewCustomTemplateUpdateParams() *CustomTemplateUpdateParams

NewCustomTemplateUpdateParams creates a new CustomTemplateUpdateParams 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 NewCustomTemplateUpdateParamsWithContext

func NewCustomTemplateUpdateParamsWithContext(ctx context.Context) *CustomTemplateUpdateParams

NewCustomTemplateUpdateParamsWithContext creates a new CustomTemplateUpdateParams object with the ability to set a context for a request.

func NewCustomTemplateUpdateParamsWithHTTPClient

func NewCustomTemplateUpdateParamsWithHTTPClient(client *http.Client) *CustomTemplateUpdateParams

NewCustomTemplateUpdateParamsWithHTTPClient creates a new CustomTemplateUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewCustomTemplateUpdateParamsWithTimeout

func NewCustomTemplateUpdateParamsWithTimeout(timeout time.Duration) *CustomTemplateUpdateParams

NewCustomTemplateUpdateParamsWithTimeout creates a new CustomTemplateUpdateParams object with the ability to set a timeout on a request.

func (*CustomTemplateUpdateParams) SetBody

SetBody adds the body to the custom template update params

func (*CustomTemplateUpdateParams) SetContext

func (o *CustomTemplateUpdateParams) SetContext(ctx context.Context)

SetContext adds the context to the custom template update params

func (*CustomTemplateUpdateParams) SetDefaults

func (o *CustomTemplateUpdateParams) SetDefaults()

SetDefaults hydrates default values in the custom template update params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateUpdateParams) SetHTTPClient

func (o *CustomTemplateUpdateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the custom template update params

func (*CustomTemplateUpdateParams) SetID

func (o *CustomTemplateUpdateParams) SetID(id int64)

SetID adds the id to the custom template update params

func (*CustomTemplateUpdateParams) SetTimeout

func (o *CustomTemplateUpdateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the custom template update params

func (*CustomTemplateUpdateParams) WithBody

WithBody adds the body to the custom template update params

func (*CustomTemplateUpdateParams) WithContext

WithContext adds the context to the custom template update params

func (*CustomTemplateUpdateParams) WithDefaults

WithDefaults hydrates default values in the custom template update params (not the query body).

All values with no default are reset to their zero value.

func (*CustomTemplateUpdateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the custom template update params

func (*CustomTemplateUpdateParams) WithID

WithID adds the id to the custom template update params

func (*CustomTemplateUpdateParams) WithTimeout

WithTimeout adds the timeout to the custom template update params

func (*CustomTemplateUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CustomTemplateUpdateReader

type CustomTemplateUpdateReader struct {
	// contains filtered or unexported fields
}

CustomTemplateUpdateReader is a Reader for the CustomTemplateUpdate structure.

func (*CustomTemplateUpdateReader) ReadResponse

func (o *CustomTemplateUpdateReader) 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