templates

package
v0.2.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for templates API

func (*Client) CreateTemplate

func (a *Client) CreateTemplate(params *CreateTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTemplateOK, error)

CreateTemplate creates template with the parameters given

func (*Client) DeleteTemplate

func (a *Client) DeleteTemplate(params *DeleteTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error

DeleteTemplate gets template by ID

func (*Client) GetTemplate

func (a *Client) GetTemplate(params *GetTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplateOK, error)

GetTemplate gets template by ID

func (*Client) ListTemplates

func (a *Client) ListTemplates(params *ListTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTemplatesOK, error)

ListTemplates lists templates

func (*Client) RestoreTemplates

func (a *Client) RestoreTemplates(params *RestoreTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error

RestoreTemplates creates template with the parameters given

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateTemplate

func (a *Client) UpdateTemplate(params *UpdateTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTemplateOK, error)

UpdateTemplate updates template with the parameters given

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	CreateTemplate(params *CreateTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTemplateOK, error)

	DeleteTemplate(params *DeleteTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error

	GetTemplate(params *GetTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplateOK, error)

	ListTemplates(params *ListTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTemplatesOK, error)

	RestoreTemplates(params *RestoreTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error

	UpdateTemplate(params *UpdateTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTemplateOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new templates API client.

func NewClientWithBasicAuth

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

New creates a new 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 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 CreateTemplateDefault

type CreateTemplateDefault struct {
	Payload apiserver_params.APIErrorResponse
	// contains filtered or unexported fields
}

CreateTemplateDefault describes a response with status code -1, with default header values.

APIErrorResponse

func NewCreateTemplateDefault

func NewCreateTemplateDefault(code int) *CreateTemplateDefault

NewCreateTemplateDefault creates a CreateTemplateDefault with default headers values

func (*CreateTemplateDefault) Code

func (o *CreateTemplateDefault) Code() int

Code gets the status code for the create template default response

func (*CreateTemplateDefault) Error

func (o *CreateTemplateDefault) Error() string

func (*CreateTemplateDefault) GetPayload

func (*CreateTemplateDefault) IsClientError

func (o *CreateTemplateDefault) IsClientError() bool

IsClientError returns true when this create template default response has a 4xx status code

func (*CreateTemplateDefault) IsCode

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

IsCode returns true when this create template default response a status code equal to that given

func (*CreateTemplateDefault) IsRedirect

func (o *CreateTemplateDefault) IsRedirect() bool

IsRedirect returns true when this create template default response has a 3xx status code

func (*CreateTemplateDefault) IsServerError

func (o *CreateTemplateDefault) IsServerError() bool

IsServerError returns true when this create template default response has a 5xx status code

func (*CreateTemplateDefault) IsSuccess

func (o *CreateTemplateDefault) IsSuccess() bool

IsSuccess returns true when this create template default response has a 2xx status code

func (*CreateTemplateDefault) String

func (o *CreateTemplateDefault) String() string

type CreateTemplateOK

type CreateTemplateOK struct {
	Payload garm_params.Template
}

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

Template

func NewCreateTemplateOK

func NewCreateTemplateOK() *CreateTemplateOK

NewCreateTemplateOK creates a CreateTemplateOK with default headers values

func (*CreateTemplateOK) Code

func (o *CreateTemplateOK) Code() int

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

func (*CreateTemplateOK) Error

func (o *CreateTemplateOK) Error() string

func (*CreateTemplateOK) GetPayload

func (o *CreateTemplateOK) GetPayload() garm_params.Template

func (*CreateTemplateOK) IsClientError

func (o *CreateTemplateOK) IsClientError() bool

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

func (*CreateTemplateOK) IsCode

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

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

func (*CreateTemplateOK) IsRedirect

func (o *CreateTemplateOK) IsRedirect() bool

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

func (*CreateTemplateOK) IsServerError

func (o *CreateTemplateOK) IsServerError() bool

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

func (*CreateTemplateOK) IsSuccess

func (o *CreateTemplateOK) IsSuccess() bool

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

func (*CreateTemplateOK) String

func (o *CreateTemplateOK) String() string

type CreateTemplateParams

type CreateTemplateParams struct {

	/* Body.

	   Parameters used when creating the template.
	*/
	Body garm_params.CreateTemplateParams

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

CreateTemplateParams contains all the parameters to send to the API endpoint

for the create template operation.

Typically these are written to a http.Request.

func NewCreateTemplateParams

func NewCreateTemplateParams() *CreateTemplateParams

NewCreateTemplateParams creates a new CreateTemplateParams 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 NewCreateTemplateParamsWithContext

func NewCreateTemplateParamsWithContext(ctx context.Context) *CreateTemplateParams

NewCreateTemplateParamsWithContext creates a new CreateTemplateParams object with the ability to set a context for a request.

func NewCreateTemplateParamsWithHTTPClient

func NewCreateTemplateParamsWithHTTPClient(client *http.Client) *CreateTemplateParams

NewCreateTemplateParamsWithHTTPClient creates a new CreateTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTemplateParamsWithTimeout

func NewCreateTemplateParamsWithTimeout(timeout time.Duration) *CreateTemplateParams

NewCreateTemplateParamsWithTimeout creates a new CreateTemplateParams object with the ability to set a timeout on a request.

func (*CreateTemplateParams) SetBody

SetBody adds the body to the create template params

func (*CreateTemplateParams) SetContext

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

SetContext adds the context to the create template params

func (*CreateTemplateParams) SetDefaults

func (o *CreateTemplateParams) SetDefaults()

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

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

func (*CreateTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create template params

func (*CreateTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the create template params

func (*CreateTemplateParams) WithBody

WithBody adds the body to the create template params

func (*CreateTemplateParams) WithContext

WithContext adds the context to the create template params

func (*CreateTemplateParams) WithDefaults

func (o *CreateTemplateParams) WithDefaults() *CreateTemplateParams

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

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

func (*CreateTemplateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create template params

func (*CreateTemplateParams) WithTimeout

func (o *CreateTemplateParams) WithTimeout(timeout time.Duration) *CreateTemplateParams

WithTimeout adds the timeout to the create template params

func (*CreateTemplateParams) WriteToRequest

func (o *CreateTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateTemplateReader

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

CreateTemplateReader is a Reader for the CreateTemplate structure.

func (*CreateTemplateReader) ReadResponse

func (o *CreateTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type DeleteTemplateDefault

type DeleteTemplateDefault struct {
	Payload apiserver_params.APIErrorResponse
	// contains filtered or unexported fields
}

DeleteTemplateDefault describes a response with status code -1, with default header values.

APIErrorResponse

func NewDeleteTemplateDefault

func NewDeleteTemplateDefault(code int) *DeleteTemplateDefault

NewDeleteTemplateDefault creates a DeleteTemplateDefault with default headers values

func (*DeleteTemplateDefault) Code

func (o *DeleteTemplateDefault) Code() int

Code gets the status code for the delete template default response

func (*DeleteTemplateDefault) Error

func (o *DeleteTemplateDefault) Error() string

func (*DeleteTemplateDefault) GetPayload

func (*DeleteTemplateDefault) IsClientError

func (o *DeleteTemplateDefault) IsClientError() bool

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

func (*DeleteTemplateDefault) IsCode

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

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

func (*DeleteTemplateDefault) IsRedirect

func (o *DeleteTemplateDefault) IsRedirect() bool

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

func (*DeleteTemplateDefault) IsServerError

func (o *DeleteTemplateDefault) IsServerError() bool

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

func (*DeleteTemplateDefault) IsSuccess

func (o *DeleteTemplateDefault) IsSuccess() bool

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

func (*DeleteTemplateDefault) String

func (o *DeleteTemplateDefault) String() string

type DeleteTemplateParams

type DeleteTemplateParams struct {

	/* TemplateID.

	   ID of the template to delete.
	*/
	TemplateID float64

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

DeleteTemplateParams contains all the parameters to send to the API endpoint

for the delete template operation.

Typically these are written to a http.Request.

func NewDeleteTemplateParams

func NewDeleteTemplateParams() *DeleteTemplateParams

NewDeleteTemplateParams creates a new DeleteTemplateParams 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 NewDeleteTemplateParamsWithContext

func NewDeleteTemplateParamsWithContext(ctx context.Context) *DeleteTemplateParams

NewDeleteTemplateParamsWithContext creates a new DeleteTemplateParams object with the ability to set a context for a request.

func NewDeleteTemplateParamsWithHTTPClient

func NewDeleteTemplateParamsWithHTTPClient(client *http.Client) *DeleteTemplateParams

NewDeleteTemplateParamsWithHTTPClient creates a new DeleteTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteTemplateParamsWithTimeout

func NewDeleteTemplateParamsWithTimeout(timeout time.Duration) *DeleteTemplateParams

NewDeleteTemplateParamsWithTimeout creates a new DeleteTemplateParams object with the ability to set a timeout on a request.

func (*DeleteTemplateParams) SetContext

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

SetContext adds the context to the delete template params

func (*DeleteTemplateParams) SetDefaults

func (o *DeleteTemplateParams) SetDefaults()

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

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

func (*DeleteTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete template params

func (*DeleteTemplateParams) SetTemplateID

func (o *DeleteTemplateParams) SetTemplateID(templateID float64)

SetTemplateID adds the templateId to the delete template params

func (*DeleteTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the delete template params

func (*DeleteTemplateParams) WithContext

WithContext adds the context to the delete template params

func (*DeleteTemplateParams) WithDefaults

func (o *DeleteTemplateParams) WithDefaults() *DeleteTemplateParams

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

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

func (*DeleteTemplateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete template params

func (*DeleteTemplateParams) WithTemplateID

func (o *DeleteTemplateParams) WithTemplateID(templateID float64) *DeleteTemplateParams

WithTemplateID adds the templateID to the delete template params

func (*DeleteTemplateParams) WithTimeout

func (o *DeleteTemplateParams) WithTimeout(timeout time.Duration) *DeleteTemplateParams

WithTimeout adds the timeout to the delete template params

func (*DeleteTemplateParams) WriteToRequest

func (o *DeleteTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteTemplateReader

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

DeleteTemplateReader is a Reader for the DeleteTemplate structure.

func (*DeleteTemplateReader) ReadResponse

func (o *DeleteTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type GetTemplateDefault

type GetTemplateDefault struct {
	Payload apiserver_params.APIErrorResponse
	// contains filtered or unexported fields
}

GetTemplateDefault describes a response with status code -1, with default header values.

APIErrorResponse

func NewGetTemplateDefault

func NewGetTemplateDefault(code int) *GetTemplateDefault

NewGetTemplateDefault creates a GetTemplateDefault with default headers values

func (*GetTemplateDefault) Code

func (o *GetTemplateDefault) Code() int

Code gets the status code for the get template default response

func (*GetTemplateDefault) Error

func (o *GetTemplateDefault) Error() string

func (*GetTemplateDefault) GetPayload

func (*GetTemplateDefault) IsClientError

func (o *GetTemplateDefault) IsClientError() bool

IsClientError returns true when this get template default response has a 4xx status code

func (*GetTemplateDefault) IsCode

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

IsCode returns true when this get template default response a status code equal to that given

func (*GetTemplateDefault) IsRedirect

func (o *GetTemplateDefault) IsRedirect() bool

IsRedirect returns true when this get template default response has a 3xx status code

func (*GetTemplateDefault) IsServerError

func (o *GetTemplateDefault) IsServerError() bool

IsServerError returns true when this get template default response has a 5xx status code

func (*GetTemplateDefault) IsSuccess

func (o *GetTemplateDefault) IsSuccess() bool

IsSuccess returns true when this get template default response has a 2xx status code

func (*GetTemplateDefault) String

func (o *GetTemplateDefault) String() string

type GetTemplateOK

type GetTemplateOK struct {
	Payload garm_params.Template
}

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

Template

func NewGetTemplateOK

func NewGetTemplateOK() *GetTemplateOK

NewGetTemplateOK creates a GetTemplateOK with default headers values

func (*GetTemplateOK) Code

func (o *GetTemplateOK) Code() int

Code gets the status code for the get template o k response

func (*GetTemplateOK) Error

func (o *GetTemplateOK) Error() string

func (*GetTemplateOK) GetPayload

func (o *GetTemplateOK) GetPayload() garm_params.Template

func (*GetTemplateOK) IsClientError

func (o *GetTemplateOK) IsClientError() bool

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

func (*GetTemplateOK) IsCode

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

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

func (*GetTemplateOK) IsRedirect

func (o *GetTemplateOK) IsRedirect() bool

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

func (*GetTemplateOK) IsServerError

func (o *GetTemplateOK) IsServerError() bool

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

func (*GetTemplateOK) IsSuccess

func (o *GetTemplateOK) IsSuccess() bool

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

func (*GetTemplateOK) String

func (o *GetTemplateOK) String() string

type GetTemplateParams

type GetTemplateParams struct {

	/* TemplateID.

	   ID of the template to fetch.
	*/
	TemplateID float64

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

GetTemplateParams contains all the parameters to send to the API endpoint

for the get template operation.

Typically these are written to a http.Request.

func NewGetTemplateParams

func NewGetTemplateParams() *GetTemplateParams

NewGetTemplateParams creates a new GetTemplateParams 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 NewGetTemplateParamsWithContext

func NewGetTemplateParamsWithContext(ctx context.Context) *GetTemplateParams

NewGetTemplateParamsWithContext creates a new GetTemplateParams object with the ability to set a context for a request.

func NewGetTemplateParamsWithHTTPClient

func NewGetTemplateParamsWithHTTPClient(client *http.Client) *GetTemplateParams

NewGetTemplateParamsWithHTTPClient creates a new GetTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewGetTemplateParamsWithTimeout

func NewGetTemplateParamsWithTimeout(timeout time.Duration) *GetTemplateParams

NewGetTemplateParamsWithTimeout creates a new GetTemplateParams object with the ability to set a timeout on a request.

func (*GetTemplateParams) SetContext

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

SetContext adds the context to the get template params

func (*GetTemplateParams) SetDefaults

func (o *GetTemplateParams) SetDefaults()

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

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

func (*GetTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get template params

func (*GetTemplateParams) SetTemplateID

func (o *GetTemplateParams) SetTemplateID(templateID float64)

SetTemplateID adds the templateId to the get template params

func (*GetTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the get template params

func (*GetTemplateParams) WithContext

func (o *GetTemplateParams) WithContext(ctx context.Context) *GetTemplateParams

WithContext adds the context to the get template params

func (*GetTemplateParams) WithDefaults

func (o *GetTemplateParams) WithDefaults() *GetTemplateParams

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

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

func (*GetTemplateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get template params

func (*GetTemplateParams) WithTemplateID

func (o *GetTemplateParams) WithTemplateID(templateID float64) *GetTemplateParams

WithTemplateID adds the templateID to the get template params

func (*GetTemplateParams) WithTimeout

func (o *GetTemplateParams) WithTimeout(timeout time.Duration) *GetTemplateParams

WithTimeout adds the timeout to the get template params

func (*GetTemplateParams) WriteToRequest

func (o *GetTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetTemplateReader

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

GetTemplateReader is a Reader for the GetTemplate structure.

func (*GetTemplateReader) ReadResponse

func (o *GetTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type ListTemplatesDefault

type ListTemplatesDefault struct {
	Payload apiserver_params.APIErrorResponse
	// contains filtered or unexported fields
}

ListTemplatesDefault describes a response with status code -1, with default header values.

APIErrorResponse

func NewListTemplatesDefault

func NewListTemplatesDefault(code int) *ListTemplatesDefault

NewListTemplatesDefault creates a ListTemplatesDefault with default headers values

func (*ListTemplatesDefault) Code

func (o *ListTemplatesDefault) Code() int

Code gets the status code for the list templates default response

func (*ListTemplatesDefault) Error

func (o *ListTemplatesDefault) Error() string

func (*ListTemplatesDefault) GetPayload

func (*ListTemplatesDefault) IsClientError

func (o *ListTemplatesDefault) IsClientError() bool

IsClientError returns true when this list templates default response has a 4xx status code

func (*ListTemplatesDefault) IsCode

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

IsCode returns true when this list templates default response a status code equal to that given

func (*ListTemplatesDefault) IsRedirect

func (o *ListTemplatesDefault) IsRedirect() bool

IsRedirect returns true when this list templates default response has a 3xx status code

func (*ListTemplatesDefault) IsServerError

func (o *ListTemplatesDefault) IsServerError() bool

IsServerError returns true when this list templates default response has a 5xx status code

func (*ListTemplatesDefault) IsSuccess

func (o *ListTemplatesDefault) IsSuccess() bool

IsSuccess returns true when this list templates default response has a 2xx status code

func (*ListTemplatesDefault) String

func (o *ListTemplatesDefault) String() string

type ListTemplatesOK

type ListTemplatesOK struct {
	Payload garm_params.Templates
}

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

Templates

func NewListTemplatesOK

func NewListTemplatesOK() *ListTemplatesOK

NewListTemplatesOK creates a ListTemplatesOK with default headers values

func (*ListTemplatesOK) Code

func (o *ListTemplatesOK) Code() int

Code gets the status code for the list templates o k response

func (*ListTemplatesOK) Error

func (o *ListTemplatesOK) Error() string

func (*ListTemplatesOK) GetPayload

func (o *ListTemplatesOK) GetPayload() garm_params.Templates

func (*ListTemplatesOK) IsClientError

func (o *ListTemplatesOK) IsClientError() bool

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

func (*ListTemplatesOK) IsCode

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

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

func (*ListTemplatesOK) IsRedirect

func (o *ListTemplatesOK) IsRedirect() bool

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

func (*ListTemplatesOK) IsServerError

func (o *ListTemplatesOK) IsServerError() bool

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

func (*ListTemplatesOK) IsSuccess

func (o *ListTemplatesOK) IsSuccess() bool

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

func (*ListTemplatesOK) String

func (o *ListTemplatesOK) String() string

type ListTemplatesParams

type ListTemplatesParams struct {

	/* ForgeType.

	   Forge type of the templates.
	*/
	ForgeType *string

	/* OsType.

	   OS type of the templates.
	*/
	OsType *string

	/* PartialName.

	   Partial or full name of the template.
	*/
	PartialName *string

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

ListTemplatesParams contains all the parameters to send to the API endpoint

for the list templates operation.

Typically these are written to a http.Request.

func NewListTemplatesParams

func NewListTemplatesParams() *ListTemplatesParams

NewListTemplatesParams creates a new ListTemplatesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListTemplatesParamsWithContext

func NewListTemplatesParamsWithContext(ctx context.Context) *ListTemplatesParams

NewListTemplatesParamsWithContext creates a new ListTemplatesParams object with the ability to set a context for a request.

func NewListTemplatesParamsWithHTTPClient

func NewListTemplatesParamsWithHTTPClient(client *http.Client) *ListTemplatesParams

NewListTemplatesParamsWithHTTPClient creates a new ListTemplatesParams object with the ability to set a custom HTTPClient for a request.

func NewListTemplatesParamsWithTimeout

func NewListTemplatesParamsWithTimeout(timeout time.Duration) *ListTemplatesParams

NewListTemplatesParamsWithTimeout creates a new ListTemplatesParams object with the ability to set a timeout on a request.

func (*ListTemplatesParams) SetContext

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

SetContext adds the context to the list templates params

func (*ListTemplatesParams) SetDefaults

func (o *ListTemplatesParams) SetDefaults()

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

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

func (*ListTemplatesParams) SetForgeType

func (o *ListTemplatesParams) SetForgeType(forgeType *string)

SetForgeType adds the forgeType to the list templates params

func (*ListTemplatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list templates params

func (*ListTemplatesParams) SetOsType

func (o *ListTemplatesParams) SetOsType(osType *string)

SetOsType adds the osType to the list templates params

func (*ListTemplatesParams) SetPartialName

func (o *ListTemplatesParams) SetPartialName(partialName *string)

SetPartialName adds the partialName to the list templates params

func (*ListTemplatesParams) SetTimeout

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

SetTimeout adds the timeout to the list templates params

func (*ListTemplatesParams) WithContext

WithContext adds the context to the list templates params

func (*ListTemplatesParams) WithDefaults

func (o *ListTemplatesParams) WithDefaults() *ListTemplatesParams

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

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

func (*ListTemplatesParams) WithForgeType

func (o *ListTemplatesParams) WithForgeType(forgeType *string) *ListTemplatesParams

WithForgeType adds the forgeType to the list templates params

func (*ListTemplatesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list templates params

func (*ListTemplatesParams) WithOsType

func (o *ListTemplatesParams) WithOsType(osType *string) *ListTemplatesParams

WithOsType adds the osType to the list templates params

func (*ListTemplatesParams) WithPartialName

func (o *ListTemplatesParams) WithPartialName(partialName *string) *ListTemplatesParams

WithPartialName adds the partialName to the list templates params

func (*ListTemplatesParams) WithTimeout

func (o *ListTemplatesParams) WithTimeout(timeout time.Duration) *ListTemplatesParams

WithTimeout adds the timeout to the list templates params

func (*ListTemplatesParams) WriteToRequest

func (o *ListTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListTemplatesReader

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

ListTemplatesReader is a Reader for the ListTemplates structure.

func (*ListTemplatesReader) ReadResponse

func (o *ListTemplatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type RestoreTemplatesDefault

type RestoreTemplatesDefault struct {
	Payload apiserver_params.APIErrorResponse
	// contains filtered or unexported fields
}

RestoreTemplatesDefault describes a response with status code -1, with default header values.

APIErrorResponse

func NewRestoreTemplatesDefault

func NewRestoreTemplatesDefault(code int) *RestoreTemplatesDefault

NewRestoreTemplatesDefault creates a RestoreTemplatesDefault with default headers values

func (*RestoreTemplatesDefault) Code

func (o *RestoreTemplatesDefault) Code() int

Code gets the status code for the restore templates default response

func (*RestoreTemplatesDefault) Error

func (o *RestoreTemplatesDefault) Error() string

func (*RestoreTemplatesDefault) GetPayload

func (*RestoreTemplatesDefault) IsClientError

func (o *RestoreTemplatesDefault) IsClientError() bool

IsClientError returns true when this restore templates default response has a 4xx status code

func (*RestoreTemplatesDefault) IsCode

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

IsCode returns true when this restore templates default response a status code equal to that given

func (*RestoreTemplatesDefault) IsRedirect

func (o *RestoreTemplatesDefault) IsRedirect() bool

IsRedirect returns true when this restore templates default response has a 3xx status code

func (*RestoreTemplatesDefault) IsServerError

func (o *RestoreTemplatesDefault) IsServerError() bool

IsServerError returns true when this restore templates default response has a 5xx status code

func (*RestoreTemplatesDefault) IsSuccess

func (o *RestoreTemplatesDefault) IsSuccess() bool

IsSuccess returns true when this restore templates default response has a 2xx status code

func (*RestoreTemplatesDefault) String

func (o *RestoreTemplatesDefault) String() string

type RestoreTemplatesParams

type RestoreTemplatesParams struct {

	/* Body.

	   Parameters used when restoring the templates.
	*/
	Body garm_params.RestoreTemplateRequest

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

RestoreTemplatesParams contains all the parameters to send to the API endpoint

for the restore templates operation.

Typically these are written to a http.Request.

func NewRestoreTemplatesParams

func NewRestoreTemplatesParams() *RestoreTemplatesParams

NewRestoreTemplatesParams creates a new RestoreTemplatesParams 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 NewRestoreTemplatesParamsWithContext

func NewRestoreTemplatesParamsWithContext(ctx context.Context) *RestoreTemplatesParams

NewRestoreTemplatesParamsWithContext creates a new RestoreTemplatesParams object with the ability to set a context for a request.

func NewRestoreTemplatesParamsWithHTTPClient

func NewRestoreTemplatesParamsWithHTTPClient(client *http.Client) *RestoreTemplatesParams

NewRestoreTemplatesParamsWithHTTPClient creates a new RestoreTemplatesParams object with the ability to set a custom HTTPClient for a request.

func NewRestoreTemplatesParamsWithTimeout

func NewRestoreTemplatesParamsWithTimeout(timeout time.Duration) *RestoreTemplatesParams

NewRestoreTemplatesParamsWithTimeout creates a new RestoreTemplatesParams object with the ability to set a timeout on a request.

func (*RestoreTemplatesParams) SetBody

SetBody adds the body to the restore templates params

func (*RestoreTemplatesParams) SetContext

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

SetContext adds the context to the restore templates params

func (*RestoreTemplatesParams) SetDefaults

func (o *RestoreTemplatesParams) SetDefaults()

SetDefaults hydrates default values in the restore templates params (not the query body).

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

func (*RestoreTemplatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the restore templates params

func (*RestoreTemplatesParams) SetTimeout

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

SetTimeout adds the timeout to the restore templates params

func (*RestoreTemplatesParams) WithBody

WithBody adds the body to the restore templates params

func (*RestoreTemplatesParams) WithContext

WithContext adds the context to the restore templates params

func (*RestoreTemplatesParams) WithDefaults

WithDefaults hydrates default values in the restore templates params (not the query body).

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

func (*RestoreTemplatesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the restore templates params

func (*RestoreTemplatesParams) WithTimeout

WithTimeout adds the timeout to the restore templates params

func (*RestoreTemplatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RestoreTemplatesReader

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

RestoreTemplatesReader is a Reader for the RestoreTemplates structure.

func (*RestoreTemplatesReader) ReadResponse

func (o *RestoreTemplatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type UpdateTemplateDefault

type UpdateTemplateDefault struct {
	Payload apiserver_params.APIErrorResponse
	// contains filtered or unexported fields
}

UpdateTemplateDefault describes a response with status code -1, with default header values.

APIErrorResponse

func NewUpdateTemplateDefault

func NewUpdateTemplateDefault(code int) *UpdateTemplateDefault

NewUpdateTemplateDefault creates a UpdateTemplateDefault with default headers values

func (*UpdateTemplateDefault) Code

func (o *UpdateTemplateDefault) Code() int

Code gets the status code for the update template default response

func (*UpdateTemplateDefault) Error

func (o *UpdateTemplateDefault) Error() string

func (*UpdateTemplateDefault) GetPayload

func (*UpdateTemplateDefault) IsClientError

func (o *UpdateTemplateDefault) IsClientError() bool

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

func (*UpdateTemplateDefault) IsCode

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

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

func (*UpdateTemplateDefault) IsRedirect

func (o *UpdateTemplateDefault) IsRedirect() bool

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

func (*UpdateTemplateDefault) IsServerError

func (o *UpdateTemplateDefault) IsServerError() bool

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

func (*UpdateTemplateDefault) IsSuccess

func (o *UpdateTemplateDefault) IsSuccess() bool

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

func (*UpdateTemplateDefault) String

func (o *UpdateTemplateDefault) String() string

type UpdateTemplateOK

type UpdateTemplateOK struct {
	Payload garm_params.Template
}

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

Template

func NewUpdateTemplateOK

func NewUpdateTemplateOK() *UpdateTemplateOK

NewUpdateTemplateOK creates a UpdateTemplateOK with default headers values

func (*UpdateTemplateOK) Code

func (o *UpdateTemplateOK) Code() int

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

func (*UpdateTemplateOK) Error

func (o *UpdateTemplateOK) Error() string

func (*UpdateTemplateOK) GetPayload

func (o *UpdateTemplateOK) GetPayload() garm_params.Template

func (*UpdateTemplateOK) IsClientError

func (o *UpdateTemplateOK) IsClientError() bool

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

func (*UpdateTemplateOK) IsCode

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

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

func (*UpdateTemplateOK) IsRedirect

func (o *UpdateTemplateOK) IsRedirect() bool

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

func (*UpdateTemplateOK) IsServerError

func (o *UpdateTemplateOK) IsServerError() bool

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

func (*UpdateTemplateOK) IsSuccess

func (o *UpdateTemplateOK) IsSuccess() bool

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

func (*UpdateTemplateOK) String

func (o *UpdateTemplateOK) String() string

type UpdateTemplateParams

type UpdateTemplateParams struct {

	/* Body.

	   Parameters used when updating the template.
	*/
	Body garm_params.UpdateTemplateParams

	/* TemplateID.

	   ID of the template to update.
	*/
	TemplateID float64

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

UpdateTemplateParams contains all the parameters to send to the API endpoint

for the update template operation.

Typically these are written to a http.Request.

func NewUpdateTemplateParams

func NewUpdateTemplateParams() *UpdateTemplateParams

NewUpdateTemplateParams creates a new UpdateTemplateParams 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 NewUpdateTemplateParamsWithContext

func NewUpdateTemplateParamsWithContext(ctx context.Context) *UpdateTemplateParams

NewUpdateTemplateParamsWithContext creates a new UpdateTemplateParams object with the ability to set a context for a request.

func NewUpdateTemplateParamsWithHTTPClient

func NewUpdateTemplateParamsWithHTTPClient(client *http.Client) *UpdateTemplateParams

NewUpdateTemplateParamsWithHTTPClient creates a new UpdateTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateTemplateParamsWithTimeout

func NewUpdateTemplateParamsWithTimeout(timeout time.Duration) *UpdateTemplateParams

NewUpdateTemplateParamsWithTimeout creates a new UpdateTemplateParams object with the ability to set a timeout on a request.

func (*UpdateTemplateParams) SetBody

SetBody adds the body to the update template params

func (*UpdateTemplateParams) SetContext

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

SetContext adds the context to the update template params

func (*UpdateTemplateParams) SetDefaults

func (o *UpdateTemplateParams) SetDefaults()

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

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

func (*UpdateTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update template params

func (*UpdateTemplateParams) SetTemplateID

func (o *UpdateTemplateParams) SetTemplateID(templateID float64)

SetTemplateID adds the templateId to the update template params

func (*UpdateTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the update template params

func (*UpdateTemplateParams) WithBody

WithBody adds the body to the update template params

func (*UpdateTemplateParams) WithContext

WithContext adds the context to the update template params

func (*UpdateTemplateParams) WithDefaults

func (o *UpdateTemplateParams) WithDefaults() *UpdateTemplateParams

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

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

func (*UpdateTemplateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update template params

func (*UpdateTemplateParams) WithTemplateID

func (o *UpdateTemplateParams) WithTemplateID(templateID float64) *UpdateTemplateParams

WithTemplateID adds the templateID to the update template params

func (*UpdateTemplateParams) WithTimeout

func (o *UpdateTemplateParams) WithTimeout(timeout time.Duration) *UpdateTemplateParams

WithTimeout adds the timeout to the update template params

func (*UpdateTemplateParams) WriteToRequest

func (o *UpdateTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateTemplateReader

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

UpdateTemplateReader is a Reader for the UpdateTemplate structure.

func (*UpdateTemplateReader) ReadResponse

func (o *UpdateTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, 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