Documentation
¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeMultipartFormData(r *runtime.ClientOperation)
- type Client
- func (a *Client) CustomTemplateCreate(params *CustomTemplateCreateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CustomTemplateCreateOK, error)
- func (a *Client) CustomTemplateCreateFile(params *CustomTemplateCreateFileParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CustomTemplateCreateFileOK, error)
- func (a *Client) CustomTemplateCreateRepository(params *CustomTemplateCreateRepositoryParams, ...) (*CustomTemplateCreateRepositoryOK, error)
- func (a *Client) CustomTemplateCreateString(params *CustomTemplateCreateStringParams, ...) (*CustomTemplateCreateStringOK, error)
- func (a *Client) CustomTemplateDelete(params *CustomTemplateDeleteParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CustomTemplateDeleteNoContent, error)
- func (a *Client) CustomTemplateFile(params *CustomTemplateFileParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CustomTemplateFileOK, error)
- func (a *Client) CustomTemplateGitFetch(params *CustomTemplateGitFetchParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CustomTemplateGitFetchOK, error)
- func (a *Client) CustomTemplateInspect(params *CustomTemplateInspectParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CustomTemplateInspectOK, error)
- func (a *Client) CustomTemplateList(params *CustomTemplateListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CustomTemplateListOK, error)
- func (a *Client) CustomTemplateUpdate(params *CustomTemplateUpdateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CustomTemplateUpdateOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CustomTemplateCreateBadRequest
- func (o *CustomTemplateCreateBadRequest) Code() int
- func (o *CustomTemplateCreateBadRequest) Error() string
- func (o *CustomTemplateCreateBadRequest) IsClientError() bool
- func (o *CustomTemplateCreateBadRequest) IsCode(code int) bool
- func (o *CustomTemplateCreateBadRequest) IsRedirect() bool
- func (o *CustomTemplateCreateBadRequest) IsServerError() bool
- func (o *CustomTemplateCreateBadRequest) IsSuccess() bool
- func (o *CustomTemplateCreateBadRequest) String() string
- type CustomTemplateCreateFileBadRequest
- func (o *CustomTemplateCreateFileBadRequest) Code() int
- func (o *CustomTemplateCreateFileBadRequest) Error() string
- func (o *CustomTemplateCreateFileBadRequest) IsClientError() bool
- func (o *CustomTemplateCreateFileBadRequest) IsCode(code int) bool
- func (o *CustomTemplateCreateFileBadRequest) IsRedirect() bool
- func (o *CustomTemplateCreateFileBadRequest) IsServerError() bool
- func (o *CustomTemplateCreateFileBadRequest) IsSuccess() bool
- func (o *CustomTemplateCreateFileBadRequest) String() string
- type CustomTemplateCreateFileInternalServerError
- func (o *CustomTemplateCreateFileInternalServerError) Code() int
- func (o *CustomTemplateCreateFileInternalServerError) Error() string
- func (o *CustomTemplateCreateFileInternalServerError) IsClientError() bool
- func (o *CustomTemplateCreateFileInternalServerError) IsCode(code int) bool
- func (o *CustomTemplateCreateFileInternalServerError) IsRedirect() bool
- func (o *CustomTemplateCreateFileInternalServerError) IsServerError() bool
- func (o *CustomTemplateCreateFileInternalServerError) IsSuccess() bool
- func (o *CustomTemplateCreateFileInternalServerError) String() string
- type CustomTemplateCreateFileOK
- func (o *CustomTemplateCreateFileOK) Code() int
- func (o *CustomTemplateCreateFileOK) Error() string
- func (o *CustomTemplateCreateFileOK) GetPayload() *models.PortainereeCustomTemplate
- func (o *CustomTemplateCreateFileOK) IsClientError() bool
- func (o *CustomTemplateCreateFileOK) IsCode(code int) bool
- func (o *CustomTemplateCreateFileOK) IsRedirect() bool
- func (o *CustomTemplateCreateFileOK) IsServerError() bool
- func (o *CustomTemplateCreateFileOK) IsSuccess() bool
- func (o *CustomTemplateCreateFileOK) String() string
- type CustomTemplateCreateFileParams
- func NewCustomTemplateCreateFileParams() *CustomTemplateCreateFileParams
- func NewCustomTemplateCreateFileParamsWithContext(ctx context.Context) *CustomTemplateCreateFileParams
- func NewCustomTemplateCreateFileParamsWithHTTPClient(client *http.Client) *CustomTemplateCreateFileParams
- func NewCustomTemplateCreateFileParamsWithTimeout(timeout time.Duration) *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) SetContext(ctx context.Context)
- func (o *CustomTemplateCreateFileParams) SetDefaults()
- func (o *CustomTemplateCreateFileParams) SetDescription(description string)
- func (o *CustomTemplateCreateFileParams) SetEdgeSettings(edgeSettings *string)
- func (o *CustomTemplateCreateFileParams) SetEdgeTemplate(edgeTemplate *bool)
- func (o *CustomTemplateCreateFileParams) SetFile(file runtime.NamedReadCloser)
- func (o *CustomTemplateCreateFileParams) SetHTTPClient(client *http.Client)
- func (o *CustomTemplateCreateFileParams) SetLogo(logo *string)
- func (o *CustomTemplateCreateFileParams) SetNote(note string)
- func (o *CustomTemplateCreateFileParams) SetPlatform(platform int64)
- func (o *CustomTemplateCreateFileParams) SetTimeout(timeout time.Duration)
- func (o *CustomTemplateCreateFileParams) SetTitle(title string)
- func (o *CustomTemplateCreateFileParams) SetType(typeVar int64)
- func (o *CustomTemplateCreateFileParams) SetVariables(variables *string)
- func (o *CustomTemplateCreateFileParams) WithContext(ctx context.Context) *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) WithDefaults() *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) WithDescription(description string) *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) WithEdgeSettings(edgeSettings *string) *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) WithEdgeTemplate(edgeTemplate *bool) *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) WithFile(file runtime.NamedReadCloser) *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) WithHTTPClient(client *http.Client) *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) WithLogo(logo *string) *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) WithNote(note string) *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) WithPlatform(platform int64) *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) WithTimeout(timeout time.Duration) *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) WithTitle(title string) *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) WithType(typeVar int64) *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) WithVariables(variables *string) *CustomTemplateCreateFileParams
- func (o *CustomTemplateCreateFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CustomTemplateCreateFileReader
- type CustomTemplateCreateInternalServerError
- func (o *CustomTemplateCreateInternalServerError) Code() int
- func (o *CustomTemplateCreateInternalServerError) Error() string
- func (o *CustomTemplateCreateInternalServerError) IsClientError() bool
- func (o *CustomTemplateCreateInternalServerError) IsCode(code int) bool
- func (o *CustomTemplateCreateInternalServerError) IsRedirect() bool
- func (o *CustomTemplateCreateInternalServerError) IsServerError() bool
- func (o *CustomTemplateCreateInternalServerError) IsSuccess() bool
- func (o *CustomTemplateCreateInternalServerError) String() string
- type CustomTemplateCreateOK
- func (o *CustomTemplateCreateOK) Code() int
- func (o *CustomTemplateCreateOK) Error() string
- func (o *CustomTemplateCreateOK) GetPayload() *models.PortainereeCustomTemplate
- func (o *CustomTemplateCreateOK) IsClientError() bool
- func (o *CustomTemplateCreateOK) IsCode(code int) bool
- func (o *CustomTemplateCreateOK) IsRedirect() bool
- func (o *CustomTemplateCreateOK) IsServerError() bool
- func (o *CustomTemplateCreateOK) IsSuccess() bool
- func (o *CustomTemplateCreateOK) String() string
- type CustomTemplateCreateParams
- func NewCustomTemplateCreateParams() *CustomTemplateCreateParams
- func NewCustomTemplateCreateParamsWithContext(ctx context.Context) *CustomTemplateCreateParams
- func NewCustomTemplateCreateParamsWithHTTPClient(client *http.Client) *CustomTemplateCreateParams
- func NewCustomTemplateCreateParamsWithTimeout(timeout time.Duration) *CustomTemplateCreateParams
- func (o *CustomTemplateCreateParams) SetBody(body interface{})
- func (o *CustomTemplateCreateParams) SetContext(ctx context.Context)
- func (o *CustomTemplateCreateParams) SetDefaults()
- func (o *CustomTemplateCreateParams) SetHTTPClient(client *http.Client)
- func (o *CustomTemplateCreateParams) SetMethod(method string)
- func (o *CustomTemplateCreateParams) SetTimeout(timeout time.Duration)
- func (o *CustomTemplateCreateParams) WithBody(body interface{}) *CustomTemplateCreateParams
- func (o *CustomTemplateCreateParams) WithContext(ctx context.Context) *CustomTemplateCreateParams
- func (o *CustomTemplateCreateParams) WithDefaults() *CustomTemplateCreateParams
- func (o *CustomTemplateCreateParams) WithHTTPClient(client *http.Client) *CustomTemplateCreateParams
- func (o *CustomTemplateCreateParams) WithMethod(method string) *CustomTemplateCreateParams
- func (o *CustomTemplateCreateParams) WithTimeout(timeout time.Duration) *CustomTemplateCreateParams
- func (o *CustomTemplateCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CustomTemplateCreateReader
- type CustomTemplateCreateRepositoryBadRequest
- func (o *CustomTemplateCreateRepositoryBadRequest) Code() int
- func (o *CustomTemplateCreateRepositoryBadRequest) Error() string
- func (o *CustomTemplateCreateRepositoryBadRequest) IsClientError() bool
- func (o *CustomTemplateCreateRepositoryBadRequest) IsCode(code int) bool
- func (o *CustomTemplateCreateRepositoryBadRequest) IsRedirect() bool
- func (o *CustomTemplateCreateRepositoryBadRequest) IsServerError() bool
- func (o *CustomTemplateCreateRepositoryBadRequest) IsSuccess() bool
- func (o *CustomTemplateCreateRepositoryBadRequest) String() string
- type CustomTemplateCreateRepositoryInternalServerError
- func (o *CustomTemplateCreateRepositoryInternalServerError) Code() int
- func (o *CustomTemplateCreateRepositoryInternalServerError) Error() string
- func (o *CustomTemplateCreateRepositoryInternalServerError) IsClientError() bool
- func (o *CustomTemplateCreateRepositoryInternalServerError) IsCode(code int) bool
- func (o *CustomTemplateCreateRepositoryInternalServerError) IsRedirect() bool
- func (o *CustomTemplateCreateRepositoryInternalServerError) IsServerError() bool
- func (o *CustomTemplateCreateRepositoryInternalServerError) IsSuccess() bool
- func (o *CustomTemplateCreateRepositoryInternalServerError) String() string
- type CustomTemplateCreateRepositoryOK
- func (o *CustomTemplateCreateRepositoryOK) Code() int
- func (o *CustomTemplateCreateRepositoryOK) Error() string
- func (o *CustomTemplateCreateRepositoryOK) GetPayload() *models.PortainereeCustomTemplate
- func (o *CustomTemplateCreateRepositoryOK) IsClientError() bool
- func (o *CustomTemplateCreateRepositoryOK) IsCode(code int) bool
- func (o *CustomTemplateCreateRepositoryOK) IsRedirect() bool
- func (o *CustomTemplateCreateRepositoryOK) IsServerError() bool
- func (o *CustomTemplateCreateRepositoryOK) IsSuccess() bool
- func (o *CustomTemplateCreateRepositoryOK) String() string
- type CustomTemplateCreateRepositoryParams
- func NewCustomTemplateCreateRepositoryParams() *CustomTemplateCreateRepositoryParams
- func NewCustomTemplateCreateRepositoryParamsWithContext(ctx context.Context) *CustomTemplateCreateRepositoryParams
- func NewCustomTemplateCreateRepositoryParamsWithHTTPClient(client *http.Client) *CustomTemplateCreateRepositoryParams
- func NewCustomTemplateCreateRepositoryParamsWithTimeout(timeout time.Duration) *CustomTemplateCreateRepositoryParams
- func (o *CustomTemplateCreateRepositoryParams) SetBody(body *models.CustomtemplatesCustomTemplateFromGitRepositoryPayload)
- func (o *CustomTemplateCreateRepositoryParams) SetContext(ctx context.Context)
- func (o *CustomTemplateCreateRepositoryParams) SetDefaults()
- func (o *CustomTemplateCreateRepositoryParams) SetHTTPClient(client *http.Client)
- func (o *CustomTemplateCreateRepositoryParams) SetTimeout(timeout time.Duration)
- func (o *CustomTemplateCreateRepositoryParams) WithBody(body *models.CustomtemplatesCustomTemplateFromGitRepositoryPayload) *CustomTemplateCreateRepositoryParams
- func (o *CustomTemplateCreateRepositoryParams) WithContext(ctx context.Context) *CustomTemplateCreateRepositoryParams
- func (o *CustomTemplateCreateRepositoryParams) WithDefaults() *CustomTemplateCreateRepositoryParams
- func (o *CustomTemplateCreateRepositoryParams) WithHTTPClient(client *http.Client) *CustomTemplateCreateRepositoryParams
- func (o *CustomTemplateCreateRepositoryParams) WithTimeout(timeout time.Duration) *CustomTemplateCreateRepositoryParams
- func (o *CustomTemplateCreateRepositoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CustomTemplateCreateRepositoryReader
- type CustomTemplateCreateStringBadRequest
- func (o *CustomTemplateCreateStringBadRequest) Code() int
- func (o *CustomTemplateCreateStringBadRequest) Error() string
- func (o *CustomTemplateCreateStringBadRequest) IsClientError() bool
- func (o *CustomTemplateCreateStringBadRequest) IsCode(code int) bool
- func (o *CustomTemplateCreateStringBadRequest) IsRedirect() bool
- func (o *CustomTemplateCreateStringBadRequest) IsServerError() bool
- func (o *CustomTemplateCreateStringBadRequest) IsSuccess() bool
- func (o *CustomTemplateCreateStringBadRequest) String() string
- type CustomTemplateCreateStringInternalServerError
- func (o *CustomTemplateCreateStringInternalServerError) Code() int
- func (o *CustomTemplateCreateStringInternalServerError) Error() string
- func (o *CustomTemplateCreateStringInternalServerError) IsClientError() bool
- func (o *CustomTemplateCreateStringInternalServerError) IsCode(code int) bool
- func (o *CustomTemplateCreateStringInternalServerError) IsRedirect() bool
- func (o *CustomTemplateCreateStringInternalServerError) IsServerError() bool
- func (o *CustomTemplateCreateStringInternalServerError) IsSuccess() bool
- func (o *CustomTemplateCreateStringInternalServerError) String() string
- type CustomTemplateCreateStringOK
- func (o *CustomTemplateCreateStringOK) Code() int
- func (o *CustomTemplateCreateStringOK) Error() string
- func (o *CustomTemplateCreateStringOK) GetPayload() *models.PortainereeCustomTemplate
- func (o *CustomTemplateCreateStringOK) IsClientError() bool
- func (o *CustomTemplateCreateStringOK) IsCode(code int) bool
- func (o *CustomTemplateCreateStringOK) IsRedirect() bool
- func (o *CustomTemplateCreateStringOK) IsServerError() bool
- func (o *CustomTemplateCreateStringOK) IsSuccess() bool
- func (o *CustomTemplateCreateStringOK) String() string
- type CustomTemplateCreateStringParams
- func NewCustomTemplateCreateStringParams() *CustomTemplateCreateStringParams
- func NewCustomTemplateCreateStringParamsWithContext(ctx context.Context) *CustomTemplateCreateStringParams
- func NewCustomTemplateCreateStringParamsWithHTTPClient(client *http.Client) *CustomTemplateCreateStringParams
- func NewCustomTemplateCreateStringParamsWithTimeout(timeout time.Duration) *CustomTemplateCreateStringParams
- func (o *CustomTemplateCreateStringParams) SetBody(body *models.CustomtemplatesCustomTemplateFromFileContentPayload)
- func (o *CustomTemplateCreateStringParams) SetContext(ctx context.Context)
- func (o *CustomTemplateCreateStringParams) SetDefaults()
- func (o *CustomTemplateCreateStringParams) SetHTTPClient(client *http.Client)
- func (o *CustomTemplateCreateStringParams) SetTimeout(timeout time.Duration)
- func (o *CustomTemplateCreateStringParams) WithBody(body *models.CustomtemplatesCustomTemplateFromFileContentPayload) *CustomTemplateCreateStringParams
- func (o *CustomTemplateCreateStringParams) WithContext(ctx context.Context) *CustomTemplateCreateStringParams
- func (o *CustomTemplateCreateStringParams) WithDefaults() *CustomTemplateCreateStringParams
- func (o *CustomTemplateCreateStringParams) WithHTTPClient(client *http.Client) *CustomTemplateCreateStringParams
- func (o *CustomTemplateCreateStringParams) WithTimeout(timeout time.Duration) *CustomTemplateCreateStringParams
- func (o *CustomTemplateCreateStringParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CustomTemplateCreateStringReader
- type CustomTemplateDeleteBadRequest
- func (o *CustomTemplateDeleteBadRequest) Code() int
- func (o *CustomTemplateDeleteBadRequest) Error() string
- func (o *CustomTemplateDeleteBadRequest) IsClientError() bool
- func (o *CustomTemplateDeleteBadRequest) IsCode(code int) bool
- func (o *CustomTemplateDeleteBadRequest) IsRedirect() bool
- func (o *CustomTemplateDeleteBadRequest) IsServerError() bool
- func (o *CustomTemplateDeleteBadRequest) IsSuccess() bool
- func (o *CustomTemplateDeleteBadRequest) String() string
- type CustomTemplateDeleteForbidden
- func (o *CustomTemplateDeleteForbidden) Code() int
- func (o *CustomTemplateDeleteForbidden) Error() string
- func (o *CustomTemplateDeleteForbidden) IsClientError() bool
- func (o *CustomTemplateDeleteForbidden) IsCode(code int) bool
- func (o *CustomTemplateDeleteForbidden) IsRedirect() bool
- func (o *CustomTemplateDeleteForbidden) IsServerError() bool
- func (o *CustomTemplateDeleteForbidden) IsSuccess() bool
- func (o *CustomTemplateDeleteForbidden) String() string
- type CustomTemplateDeleteInternalServerError
- func (o *CustomTemplateDeleteInternalServerError) Code() int
- func (o *CustomTemplateDeleteInternalServerError) Error() string
- func (o *CustomTemplateDeleteInternalServerError) IsClientError() bool
- func (o *CustomTemplateDeleteInternalServerError) IsCode(code int) bool
- func (o *CustomTemplateDeleteInternalServerError) IsRedirect() bool
- func (o *CustomTemplateDeleteInternalServerError) IsServerError() bool
- func (o *CustomTemplateDeleteInternalServerError) IsSuccess() bool
- func (o *CustomTemplateDeleteInternalServerError) String() string
- type CustomTemplateDeleteNoContent
- func (o *CustomTemplateDeleteNoContent) Code() int
- func (o *CustomTemplateDeleteNoContent) Error() string
- func (o *CustomTemplateDeleteNoContent) IsClientError() bool
- func (o *CustomTemplateDeleteNoContent) IsCode(code int) bool
- func (o *CustomTemplateDeleteNoContent) IsRedirect() bool
- func (o *CustomTemplateDeleteNoContent) IsServerError() bool
- func (o *CustomTemplateDeleteNoContent) IsSuccess() bool
- func (o *CustomTemplateDeleteNoContent) String() string
- type CustomTemplateDeleteNotFound
- func (o *CustomTemplateDeleteNotFound) Code() int
- func (o *CustomTemplateDeleteNotFound) Error() string
- func (o *CustomTemplateDeleteNotFound) IsClientError() bool
- func (o *CustomTemplateDeleteNotFound) IsCode(code int) bool
- func (o *CustomTemplateDeleteNotFound) IsRedirect() bool
- func (o *CustomTemplateDeleteNotFound) IsServerError() bool
- func (o *CustomTemplateDeleteNotFound) IsSuccess() bool
- func (o *CustomTemplateDeleteNotFound) String() string
- type CustomTemplateDeleteParams
- func NewCustomTemplateDeleteParams() *CustomTemplateDeleteParams
- func NewCustomTemplateDeleteParamsWithContext(ctx context.Context) *CustomTemplateDeleteParams
- func NewCustomTemplateDeleteParamsWithHTTPClient(client *http.Client) *CustomTemplateDeleteParams
- func NewCustomTemplateDeleteParamsWithTimeout(timeout time.Duration) *CustomTemplateDeleteParams
- func (o *CustomTemplateDeleteParams) SetContext(ctx context.Context)
- func (o *CustomTemplateDeleteParams) SetDefaults()
- func (o *CustomTemplateDeleteParams) SetHTTPClient(client *http.Client)
- func (o *CustomTemplateDeleteParams) SetID(id int64)
- func (o *CustomTemplateDeleteParams) SetTimeout(timeout time.Duration)
- func (o *CustomTemplateDeleteParams) WithContext(ctx context.Context) *CustomTemplateDeleteParams
- func (o *CustomTemplateDeleteParams) WithDefaults() *CustomTemplateDeleteParams
- func (o *CustomTemplateDeleteParams) WithHTTPClient(client *http.Client) *CustomTemplateDeleteParams
- func (o *CustomTemplateDeleteParams) WithID(id int64) *CustomTemplateDeleteParams
- func (o *CustomTemplateDeleteParams) WithTimeout(timeout time.Duration) *CustomTemplateDeleteParams
- func (o *CustomTemplateDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CustomTemplateDeleteReader
- type CustomTemplateFileBadRequest
- func (o *CustomTemplateFileBadRequest) Code() int
- func (o *CustomTemplateFileBadRequest) Error() string
- func (o *CustomTemplateFileBadRequest) IsClientError() bool
- func (o *CustomTemplateFileBadRequest) IsCode(code int) bool
- func (o *CustomTemplateFileBadRequest) IsRedirect() bool
- func (o *CustomTemplateFileBadRequest) IsServerError() bool
- func (o *CustomTemplateFileBadRequest) IsSuccess() bool
- func (o *CustomTemplateFileBadRequest) String() string
- type CustomTemplateFileInternalServerError
- func (o *CustomTemplateFileInternalServerError) Code() int
- func (o *CustomTemplateFileInternalServerError) Error() string
- func (o *CustomTemplateFileInternalServerError) IsClientError() bool
- func (o *CustomTemplateFileInternalServerError) IsCode(code int) bool
- func (o *CustomTemplateFileInternalServerError) IsRedirect() bool
- func (o *CustomTemplateFileInternalServerError) IsServerError() bool
- func (o *CustomTemplateFileInternalServerError) IsSuccess() bool
- func (o *CustomTemplateFileInternalServerError) String() string
- type CustomTemplateFileNotFound
- func (o *CustomTemplateFileNotFound) Code() int
- func (o *CustomTemplateFileNotFound) Error() string
- func (o *CustomTemplateFileNotFound) IsClientError() bool
- func (o *CustomTemplateFileNotFound) IsCode(code int) bool
- func (o *CustomTemplateFileNotFound) IsRedirect() bool
- func (o *CustomTemplateFileNotFound) IsServerError() bool
- func (o *CustomTemplateFileNotFound) IsSuccess() bool
- func (o *CustomTemplateFileNotFound) String() string
- type CustomTemplateFileOK
- func (o *CustomTemplateFileOK) Code() int
- func (o *CustomTemplateFileOK) Error() string
- func (o *CustomTemplateFileOK) GetPayload() *models.CustomtemplatesFileResponse
- func (o *CustomTemplateFileOK) IsClientError() bool
- func (o *CustomTemplateFileOK) IsCode(code int) bool
- func (o *CustomTemplateFileOK) IsRedirect() bool
- func (o *CustomTemplateFileOK) IsServerError() bool
- func (o *CustomTemplateFileOK) IsSuccess() bool
- func (o *CustomTemplateFileOK) String() string
- type CustomTemplateFileParams
- func NewCustomTemplateFileParams() *CustomTemplateFileParams
- func NewCustomTemplateFileParamsWithContext(ctx context.Context) *CustomTemplateFileParams
- func NewCustomTemplateFileParamsWithHTTPClient(client *http.Client) *CustomTemplateFileParams
- func NewCustomTemplateFileParamsWithTimeout(timeout time.Duration) *CustomTemplateFileParams
- func (o *CustomTemplateFileParams) SetContext(ctx context.Context)
- func (o *CustomTemplateFileParams) SetDefaults()
- func (o *CustomTemplateFileParams) SetHTTPClient(client *http.Client)
- func (o *CustomTemplateFileParams) SetID(id int64)
- func (o *CustomTemplateFileParams) SetTimeout(timeout time.Duration)
- func (o *CustomTemplateFileParams) WithContext(ctx context.Context) *CustomTemplateFileParams
- func (o *CustomTemplateFileParams) WithDefaults() *CustomTemplateFileParams
- func (o *CustomTemplateFileParams) WithHTTPClient(client *http.Client) *CustomTemplateFileParams
- func (o *CustomTemplateFileParams) WithID(id int64) *CustomTemplateFileParams
- func (o *CustomTemplateFileParams) WithTimeout(timeout time.Duration) *CustomTemplateFileParams
- func (o *CustomTemplateFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CustomTemplateFileReader
- type CustomTemplateGitFetchBadRequest
- func (o *CustomTemplateGitFetchBadRequest) Code() int
- func (o *CustomTemplateGitFetchBadRequest) Error() string
- func (o *CustomTemplateGitFetchBadRequest) IsClientError() bool
- func (o *CustomTemplateGitFetchBadRequest) IsCode(code int) bool
- func (o *CustomTemplateGitFetchBadRequest) IsRedirect() bool
- func (o *CustomTemplateGitFetchBadRequest) IsServerError() bool
- func (o *CustomTemplateGitFetchBadRequest) IsSuccess() bool
- func (o *CustomTemplateGitFetchBadRequest) String() string
- type CustomTemplateGitFetchInternalServerError
- func (o *CustomTemplateGitFetchInternalServerError) Code() int
- func (o *CustomTemplateGitFetchInternalServerError) Error() string
- func (o *CustomTemplateGitFetchInternalServerError) IsClientError() bool
- func (o *CustomTemplateGitFetchInternalServerError) IsCode(code int) bool
- func (o *CustomTemplateGitFetchInternalServerError) IsRedirect() bool
- func (o *CustomTemplateGitFetchInternalServerError) IsServerError() bool
- func (o *CustomTemplateGitFetchInternalServerError) IsSuccess() bool
- func (o *CustomTemplateGitFetchInternalServerError) String() string
- type CustomTemplateGitFetchNotFound
- func (o *CustomTemplateGitFetchNotFound) Code() int
- func (o *CustomTemplateGitFetchNotFound) Error() string
- func (o *CustomTemplateGitFetchNotFound) IsClientError() bool
- func (o *CustomTemplateGitFetchNotFound) IsCode(code int) bool
- func (o *CustomTemplateGitFetchNotFound) IsRedirect() bool
- func (o *CustomTemplateGitFetchNotFound) IsServerError() bool
- func (o *CustomTemplateGitFetchNotFound) IsSuccess() bool
- func (o *CustomTemplateGitFetchNotFound) String() string
- type CustomTemplateGitFetchOK
- func (o *CustomTemplateGitFetchOK) Code() int
- func (o *CustomTemplateGitFetchOK) Error() string
- func (o *CustomTemplateGitFetchOK) GetPayload() *models.CustomtemplatesFileResponse
- func (o *CustomTemplateGitFetchOK) IsClientError() bool
- func (o *CustomTemplateGitFetchOK) IsCode(code int) bool
- func (o *CustomTemplateGitFetchOK) IsRedirect() bool
- func (o *CustomTemplateGitFetchOK) IsServerError() bool
- func (o *CustomTemplateGitFetchOK) IsSuccess() bool
- func (o *CustomTemplateGitFetchOK) String() string
- type CustomTemplateGitFetchParams
- func NewCustomTemplateGitFetchParams() *CustomTemplateGitFetchParams
- func NewCustomTemplateGitFetchParamsWithContext(ctx context.Context) *CustomTemplateGitFetchParams
- func NewCustomTemplateGitFetchParamsWithHTTPClient(client *http.Client) *CustomTemplateGitFetchParams
- func NewCustomTemplateGitFetchParamsWithTimeout(timeout time.Duration) *CustomTemplateGitFetchParams
- func (o *CustomTemplateGitFetchParams) SetContext(ctx context.Context)
- func (o *CustomTemplateGitFetchParams) SetDefaults()
- func (o *CustomTemplateGitFetchParams) SetHTTPClient(client *http.Client)
- func (o *CustomTemplateGitFetchParams) SetID(id int64)
- func (o *CustomTemplateGitFetchParams) SetTimeout(timeout time.Duration)
- func (o *CustomTemplateGitFetchParams) WithContext(ctx context.Context) *CustomTemplateGitFetchParams
- func (o *CustomTemplateGitFetchParams) WithDefaults() *CustomTemplateGitFetchParams
- func (o *CustomTemplateGitFetchParams) WithHTTPClient(client *http.Client) *CustomTemplateGitFetchParams
- func (o *CustomTemplateGitFetchParams) WithID(id int64) *CustomTemplateGitFetchParams
- func (o *CustomTemplateGitFetchParams) WithTimeout(timeout time.Duration) *CustomTemplateGitFetchParams
- func (o *CustomTemplateGitFetchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CustomTemplateGitFetchReader
- type CustomTemplateInspectBadRequest
- func (o *CustomTemplateInspectBadRequest) Code() int
- func (o *CustomTemplateInspectBadRequest) Error() string
- func (o *CustomTemplateInspectBadRequest) IsClientError() bool
- func (o *CustomTemplateInspectBadRequest) IsCode(code int) bool
- func (o *CustomTemplateInspectBadRequest) IsRedirect() bool
- func (o *CustomTemplateInspectBadRequest) IsServerError() bool
- func (o *CustomTemplateInspectBadRequest) IsSuccess() bool
- func (o *CustomTemplateInspectBadRequest) String() string
- type CustomTemplateInspectInternalServerError
- func (o *CustomTemplateInspectInternalServerError) Code() int
- func (o *CustomTemplateInspectInternalServerError) Error() string
- func (o *CustomTemplateInspectInternalServerError) IsClientError() bool
- func (o *CustomTemplateInspectInternalServerError) IsCode(code int) bool
- func (o *CustomTemplateInspectInternalServerError) IsRedirect() bool
- func (o *CustomTemplateInspectInternalServerError) IsServerError() bool
- func (o *CustomTemplateInspectInternalServerError) IsSuccess() bool
- func (o *CustomTemplateInspectInternalServerError) String() string
- type CustomTemplateInspectNotFound
- func (o *CustomTemplateInspectNotFound) Code() int
- func (o *CustomTemplateInspectNotFound) Error() string
- func (o *CustomTemplateInspectNotFound) IsClientError() bool
- func (o *CustomTemplateInspectNotFound) IsCode(code int) bool
- func (o *CustomTemplateInspectNotFound) IsRedirect() bool
- func (o *CustomTemplateInspectNotFound) IsServerError() bool
- func (o *CustomTemplateInspectNotFound) IsSuccess() bool
- func (o *CustomTemplateInspectNotFound) String() string
- type CustomTemplateInspectOK
- func (o *CustomTemplateInspectOK) Code() int
- func (o *CustomTemplateInspectOK) Error() string
- func (o *CustomTemplateInspectOK) GetPayload() *models.PortainereeCustomTemplate
- func (o *CustomTemplateInspectOK) IsClientError() bool
- func (o *CustomTemplateInspectOK) IsCode(code int) bool
- func (o *CustomTemplateInspectOK) IsRedirect() bool
- func (o *CustomTemplateInspectOK) IsServerError() bool
- func (o *CustomTemplateInspectOK) IsSuccess() bool
- func (o *CustomTemplateInspectOK) String() string
- type CustomTemplateInspectParams
- func NewCustomTemplateInspectParams() *CustomTemplateInspectParams
- func NewCustomTemplateInspectParamsWithContext(ctx context.Context) *CustomTemplateInspectParams
- func NewCustomTemplateInspectParamsWithHTTPClient(client *http.Client) *CustomTemplateInspectParams
- func NewCustomTemplateInspectParamsWithTimeout(timeout time.Duration) *CustomTemplateInspectParams
- func (o *CustomTemplateInspectParams) SetContext(ctx context.Context)
- func (o *CustomTemplateInspectParams) SetDefaults()
- func (o *CustomTemplateInspectParams) SetHTTPClient(client *http.Client)
- func (o *CustomTemplateInspectParams) SetID(id int64)
- func (o *CustomTemplateInspectParams) SetTimeout(timeout time.Duration)
- func (o *CustomTemplateInspectParams) WithContext(ctx context.Context) *CustomTemplateInspectParams
- func (o *CustomTemplateInspectParams) WithDefaults() *CustomTemplateInspectParams
- func (o *CustomTemplateInspectParams) WithHTTPClient(client *http.Client) *CustomTemplateInspectParams
- func (o *CustomTemplateInspectParams) WithID(id int64) *CustomTemplateInspectParams
- func (o *CustomTemplateInspectParams) WithTimeout(timeout time.Duration) *CustomTemplateInspectParams
- func (o *CustomTemplateInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CustomTemplateInspectReader
- type CustomTemplateListInternalServerError
- func (o *CustomTemplateListInternalServerError) Code() int
- func (o *CustomTemplateListInternalServerError) Error() string
- func (o *CustomTemplateListInternalServerError) IsClientError() bool
- func (o *CustomTemplateListInternalServerError) IsCode(code int) bool
- func (o *CustomTemplateListInternalServerError) IsRedirect() bool
- func (o *CustomTemplateListInternalServerError) IsServerError() bool
- func (o *CustomTemplateListInternalServerError) IsSuccess() bool
- func (o *CustomTemplateListInternalServerError) String() string
- type CustomTemplateListOK
- func (o *CustomTemplateListOK) Code() int
- func (o *CustomTemplateListOK) Error() string
- func (o *CustomTemplateListOK) GetPayload() []*models.PortainereeCustomTemplate
- func (o *CustomTemplateListOK) IsClientError() bool
- func (o *CustomTemplateListOK) IsCode(code int) bool
- func (o *CustomTemplateListOK) IsRedirect() bool
- func (o *CustomTemplateListOK) IsServerError() bool
- func (o *CustomTemplateListOK) IsSuccess() bool
- func (o *CustomTemplateListOK) String() string
- type CustomTemplateListParams
- func NewCustomTemplateListParams() *CustomTemplateListParams
- func NewCustomTemplateListParamsWithContext(ctx context.Context) *CustomTemplateListParams
- func NewCustomTemplateListParamsWithHTTPClient(client *http.Client) *CustomTemplateListParams
- func NewCustomTemplateListParamsWithTimeout(timeout time.Duration) *CustomTemplateListParams
- func (o *CustomTemplateListParams) SetContext(ctx context.Context)
- func (o *CustomTemplateListParams) SetDefaults()
- func (o *CustomTemplateListParams) SetEdge(edge *bool)
- func (o *CustomTemplateListParams) SetHTTPClient(client *http.Client)
- func (o *CustomTemplateListParams) SetTimeout(timeout time.Duration)
- func (o *CustomTemplateListParams) SetType(typeVar []int64)
- func (o *CustomTemplateListParams) WithContext(ctx context.Context) *CustomTemplateListParams
- func (o *CustomTemplateListParams) WithDefaults() *CustomTemplateListParams
- func (o *CustomTemplateListParams) WithEdge(edge *bool) *CustomTemplateListParams
- func (o *CustomTemplateListParams) WithHTTPClient(client *http.Client) *CustomTemplateListParams
- func (o *CustomTemplateListParams) WithTimeout(timeout time.Duration) *CustomTemplateListParams
- func (o *CustomTemplateListParams) WithType(typeVar []int64) *CustomTemplateListParams
- func (o *CustomTemplateListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CustomTemplateListReader
- type CustomTemplateUpdateBadRequest
- func (o *CustomTemplateUpdateBadRequest) Code() int
- func (o *CustomTemplateUpdateBadRequest) Error() string
- func (o *CustomTemplateUpdateBadRequest) IsClientError() bool
- func (o *CustomTemplateUpdateBadRequest) IsCode(code int) bool
- func (o *CustomTemplateUpdateBadRequest) IsRedirect() bool
- func (o *CustomTemplateUpdateBadRequest) IsServerError() bool
- func (o *CustomTemplateUpdateBadRequest) IsSuccess() bool
- func (o *CustomTemplateUpdateBadRequest) String() string
- type CustomTemplateUpdateForbidden
- func (o *CustomTemplateUpdateForbidden) Code() int
- func (o *CustomTemplateUpdateForbidden) Error() string
- func (o *CustomTemplateUpdateForbidden) IsClientError() bool
- func (o *CustomTemplateUpdateForbidden) IsCode(code int) bool
- func (o *CustomTemplateUpdateForbidden) IsRedirect() bool
- func (o *CustomTemplateUpdateForbidden) IsServerError() bool
- func (o *CustomTemplateUpdateForbidden) IsSuccess() bool
- func (o *CustomTemplateUpdateForbidden) String() string
- type CustomTemplateUpdateInternalServerError
- func (o *CustomTemplateUpdateInternalServerError) Code() int
- func (o *CustomTemplateUpdateInternalServerError) Error() string
- func (o *CustomTemplateUpdateInternalServerError) IsClientError() bool
- func (o *CustomTemplateUpdateInternalServerError) IsCode(code int) bool
- func (o *CustomTemplateUpdateInternalServerError) IsRedirect() bool
- func (o *CustomTemplateUpdateInternalServerError) IsServerError() bool
- func (o *CustomTemplateUpdateInternalServerError) IsSuccess() bool
- func (o *CustomTemplateUpdateInternalServerError) String() string
- type CustomTemplateUpdateNotFound
- func (o *CustomTemplateUpdateNotFound) Code() int
- func (o *CustomTemplateUpdateNotFound) Error() string
- func (o *CustomTemplateUpdateNotFound) IsClientError() bool
- func (o *CustomTemplateUpdateNotFound) IsCode(code int) bool
- func (o *CustomTemplateUpdateNotFound) IsRedirect() bool
- func (o *CustomTemplateUpdateNotFound) IsServerError() bool
- func (o *CustomTemplateUpdateNotFound) IsSuccess() bool
- func (o *CustomTemplateUpdateNotFound) String() string
- type CustomTemplateUpdateOK
- func (o *CustomTemplateUpdateOK) Code() int
- func (o *CustomTemplateUpdateOK) Error() string
- func (o *CustomTemplateUpdateOK) GetPayload() *models.PortainereeCustomTemplate
- func (o *CustomTemplateUpdateOK) IsClientError() bool
- func (o *CustomTemplateUpdateOK) IsCode(code int) bool
- func (o *CustomTemplateUpdateOK) IsRedirect() bool
- func (o *CustomTemplateUpdateOK) IsServerError() bool
- func (o *CustomTemplateUpdateOK) IsSuccess() bool
- func (o *CustomTemplateUpdateOK) String() string
- type CustomTemplateUpdateParams
- func NewCustomTemplateUpdateParams() *CustomTemplateUpdateParams
- func NewCustomTemplateUpdateParamsWithContext(ctx context.Context) *CustomTemplateUpdateParams
- func NewCustomTemplateUpdateParamsWithHTTPClient(client *http.Client) *CustomTemplateUpdateParams
- func NewCustomTemplateUpdateParamsWithTimeout(timeout time.Duration) *CustomTemplateUpdateParams
- func (o *CustomTemplateUpdateParams) SetBody(body *models.CustomtemplatesCustomTemplateUpdatePayload)
- func (o *CustomTemplateUpdateParams) SetContext(ctx context.Context)
- func (o *CustomTemplateUpdateParams) SetDefaults()
- func (o *CustomTemplateUpdateParams) SetHTTPClient(client *http.Client)
- func (o *CustomTemplateUpdateParams) SetID(id int64)
- func (o *CustomTemplateUpdateParams) SetTimeout(timeout time.Duration)
- func (o *CustomTemplateUpdateParams) WithBody(body *models.CustomtemplatesCustomTemplateUpdatePayload) *CustomTemplateUpdateParams
- func (o *CustomTemplateUpdateParams) WithContext(ctx context.Context) *CustomTemplateUpdateParams
- func (o *CustomTemplateUpdateParams) WithDefaults() *CustomTemplateUpdateParams
- func (o *CustomTemplateUpdateParams) WithHTTPClient(client *http.Client) *CustomTemplateUpdateParams
- func (o *CustomTemplateUpdateParams) WithID(id int64) *CustomTemplateUpdateParams
- func (o *CustomTemplateUpdateParams) WithTimeout(timeout time.Duration) *CustomTemplateUpdateParams
- func (o *CustomTemplateUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CustomTemplateUpdateReader
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 ¶
func (o *CustomTemplateCreateBadRequest) Code() int
Code gets the status code for the custom template create bad request response
func (*CustomTemplateCreateBadRequest) Error ¶
func (o *CustomTemplateCreateBadRequest) Error() string
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 ¶
func (o *CustomTemplateCreateBadRequest) String() 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 ¶
func (o *CustomTemplateCreateFileBadRequest) Code() int
Code gets the status code for the custom template create file bad request response
func (*CustomTemplateCreateFileBadRequest) Error ¶
func (o *CustomTemplateCreateFileBadRequest) Error() string
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 ¶
func (o *CustomTemplateCreateFileBadRequest) IsCode(code int) bool
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 ¶
func (o *CustomTemplateCreateFileBadRequest) IsSuccess() bool
IsSuccess returns true when this custom template create file bad request response has a 2xx status code
func (*CustomTemplateCreateFileBadRequest) String ¶
func (o *CustomTemplateCreateFileBadRequest) String() 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 ¶
func (o *CustomTemplateCreateFileInternalServerError) Code() int
Code gets the status code for the custom template create file internal server error response
func (*CustomTemplateCreateFileInternalServerError) Error ¶
func (o *CustomTemplateCreateFileInternalServerError) Error() string
func (*CustomTemplateCreateFileInternalServerError) IsClientError ¶
func (o *CustomTemplateCreateFileInternalServerError) IsClientError() bool
IsClientError returns true when this custom template create file internal server error response has a 4xx status code
func (*CustomTemplateCreateFileInternalServerError) IsCode ¶
func (o *CustomTemplateCreateFileInternalServerError) IsCode(code int) bool
IsCode returns true when this custom template create file internal server error response a status code equal to that given
func (*CustomTemplateCreateFileInternalServerError) IsRedirect ¶
func (o *CustomTemplateCreateFileInternalServerError) IsRedirect() bool
IsRedirect returns true when this custom template create file internal server error response has a 3xx status code
func (*CustomTemplateCreateFileInternalServerError) IsServerError ¶
func (o *CustomTemplateCreateFileInternalServerError) IsServerError() bool
IsServerError returns true when this custom template create file internal server error response has a 5xx status code
func (*CustomTemplateCreateFileInternalServerError) IsSuccess ¶
func (o *CustomTemplateCreateFileInternalServerError) IsSuccess() bool
IsSuccess returns true when this custom template create file internal server error response has a 2xx status code
func (*CustomTemplateCreateFileInternalServerError) String ¶
func (o *CustomTemplateCreateFileInternalServerError) String() 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 (o *CustomTemplateCreateFileOK) Error() string
func (*CustomTemplateCreateFileOK) GetPayload ¶
func (o *CustomTemplateCreateFileOK) GetPayload() *models.PortainereeCustomTemplate
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.
URL of the template's logo
*/
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 ¶
func (o *CustomTemplateCreateFileParams) SetFile(file runtime.NamedReadCloser)
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 (*CustomTemplateCreateFileParams) SetLogo ¶
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 ¶
func (o *CustomTemplateCreateFileParams) WithContext(ctx context.Context) *CustomTemplateCreateFileParams
WithContext adds the context to the custom template create file params
func (*CustomTemplateCreateFileParams) WithDefaults ¶
func (o *CustomTemplateCreateFileParams) WithDefaults() *CustomTemplateCreateFileParams
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 ¶
func (o *CustomTemplateCreateFileParams) WithFile(file runtime.NamedReadCloser) *CustomTemplateCreateFileParams
WithFile adds the file to the custom template create file params
func (*CustomTemplateCreateFileParams) WithHTTPClient ¶
func (o *CustomTemplateCreateFileParams) WithHTTPClient(client *http.Client) *CustomTemplateCreateFileParams
WithHTTPClient adds the HTTPClient to the custom template create file params
func (*CustomTemplateCreateFileParams) WithLogo ¶
func (o *CustomTemplateCreateFileParams) WithLogo(logo *string) *CustomTemplateCreateFileParams
WithLogo adds the logo to the custom template create file params
func (*CustomTemplateCreateFileParams) WithNote ¶
func (o *CustomTemplateCreateFileParams) WithNote(note string) *CustomTemplateCreateFileParams
WithNote adds the note to the custom template create file params
func (*CustomTemplateCreateFileParams) WithPlatform ¶
func (o *CustomTemplateCreateFileParams) WithPlatform(platform int64) *CustomTemplateCreateFileParams
WithPlatform adds the platform to the custom template create file params
func (*CustomTemplateCreateFileParams) WithTimeout ¶
func (o *CustomTemplateCreateFileParams) WithTimeout(timeout time.Duration) *CustomTemplateCreateFileParams
WithTimeout adds the timeout to the custom template create file params
func (*CustomTemplateCreateFileParams) WithTitle ¶
func (o *CustomTemplateCreateFileParams) WithTitle(title string) *CustomTemplateCreateFileParams
WithTitle adds the title to the custom template create file params
func (*CustomTemplateCreateFileParams) WithType ¶
func (o *CustomTemplateCreateFileParams) WithType(typeVar int64) *CustomTemplateCreateFileParams
WithType adds the typeVar to the custom template create file params
func (*CustomTemplateCreateFileParams) WithVariables ¶
func (o *CustomTemplateCreateFileParams) WithVariables(variables *string) *CustomTemplateCreateFileParams
WithVariables adds the variables to the custom template create file params
func (*CustomTemplateCreateFileParams) WriteToRequest ¶
func (o *CustomTemplateCreateFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CustomTemplateCreateInternalServerError) Code() int
Code gets the status code for the custom template create internal server error response
func (*CustomTemplateCreateInternalServerError) Error ¶
func (o *CustomTemplateCreateInternalServerError) Error() string
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 ¶
func (o *CustomTemplateCreateInternalServerError) IsCode(code int) bool
IsCode returns true when this custom template create internal server error response a status code equal to that given
func (*CustomTemplateCreateInternalServerError) IsRedirect ¶
func (o *CustomTemplateCreateInternalServerError) IsRedirect() bool
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 ¶
func (o *CustomTemplateCreateInternalServerError) IsSuccess() bool
IsSuccess returns true when this custom template create internal server error response has a 2xx status code
func (*CustomTemplateCreateInternalServerError) String ¶
func (o *CustomTemplateCreateInternalServerError) String() 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 (o *CustomTemplateCreateOK) GetPayload() *models.PortainereeCustomTemplate
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 ¶
func (o *CustomTemplateCreateParams) WithContext(ctx context.Context) *CustomTemplateCreateParams
WithContext adds the context to the custom template create params
func (*CustomTemplateCreateParams) WithDefaults ¶
func (o *CustomTemplateCreateParams) WithDefaults() *CustomTemplateCreateParams
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 ¶
func (o *CustomTemplateCreateParams) WithHTTPClient(client *http.Client) *CustomTemplateCreateParams
WithHTTPClient adds the HTTPClient to the custom template create params
func (*CustomTemplateCreateParams) WithMethod ¶
func (o *CustomTemplateCreateParams) WithMethod(method string) *CustomTemplateCreateParams
WithMethod adds the method to the custom template create params
func (*CustomTemplateCreateParams) WithTimeout ¶
func (o *CustomTemplateCreateParams) WithTimeout(timeout time.Duration) *CustomTemplateCreateParams
WithTimeout adds the timeout to the custom template create params
func (*CustomTemplateCreateParams) WriteToRequest ¶
func (o *CustomTemplateCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CustomTemplateCreateRepositoryBadRequest) Code() int
Code gets the status code for the custom template create repository bad request response
func (*CustomTemplateCreateRepositoryBadRequest) Error ¶
func (o *CustomTemplateCreateRepositoryBadRequest) Error() string
func (*CustomTemplateCreateRepositoryBadRequest) IsClientError ¶
func (o *CustomTemplateCreateRepositoryBadRequest) IsClientError() bool
IsClientError returns true when this custom template create repository bad request response has a 4xx status code
func (*CustomTemplateCreateRepositoryBadRequest) IsCode ¶
func (o *CustomTemplateCreateRepositoryBadRequest) IsCode(code int) bool
IsCode returns true when this custom template create repository bad request response a status code equal to that given
func (*CustomTemplateCreateRepositoryBadRequest) IsRedirect ¶
func (o *CustomTemplateCreateRepositoryBadRequest) IsRedirect() bool
IsRedirect returns true when this custom template create repository bad request response has a 3xx status code
func (*CustomTemplateCreateRepositoryBadRequest) IsServerError ¶
func (o *CustomTemplateCreateRepositoryBadRequest) IsServerError() bool
IsServerError returns true when this custom template create repository bad request response has a 5xx status code
func (*CustomTemplateCreateRepositoryBadRequest) IsSuccess ¶
func (o *CustomTemplateCreateRepositoryBadRequest) IsSuccess() bool
IsSuccess returns true when this custom template create repository bad request response has a 2xx status code
func (*CustomTemplateCreateRepositoryBadRequest) String ¶
func (o *CustomTemplateCreateRepositoryBadRequest) String() 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 ¶
func (o *CustomTemplateCreateRepositoryInternalServerError) Code() int
Code gets the status code for the custom template create repository internal server error response
func (*CustomTemplateCreateRepositoryInternalServerError) Error ¶
func (o *CustomTemplateCreateRepositoryInternalServerError) Error() string
func (*CustomTemplateCreateRepositoryInternalServerError) IsClientError ¶
func (o *CustomTemplateCreateRepositoryInternalServerError) IsClientError() bool
IsClientError returns true when this custom template create repository internal server error response has a 4xx status code
func (*CustomTemplateCreateRepositoryInternalServerError) IsCode ¶
func (o *CustomTemplateCreateRepositoryInternalServerError) IsCode(code int) bool
IsCode returns true when this custom template create repository internal server error response a status code equal to that given
func (*CustomTemplateCreateRepositoryInternalServerError) IsRedirect ¶
func (o *CustomTemplateCreateRepositoryInternalServerError) IsRedirect() bool
IsRedirect returns true when this custom template create repository internal server error response has a 3xx status code
func (*CustomTemplateCreateRepositoryInternalServerError) IsServerError ¶
func (o *CustomTemplateCreateRepositoryInternalServerError) IsServerError() bool
IsServerError returns true when this custom template create repository internal server error response has a 5xx status code
func (*CustomTemplateCreateRepositoryInternalServerError) IsSuccess ¶
func (o *CustomTemplateCreateRepositoryInternalServerError) IsSuccess() bool
IsSuccess returns true when this custom template create repository internal server error response has a 2xx status code
func (*CustomTemplateCreateRepositoryInternalServerError) String ¶
func (o *CustomTemplateCreateRepositoryInternalServerError) String() 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 ¶
func (o *CustomTemplateCreateRepositoryOK) Code() int
Code gets the status code for the custom template create repository o k response
func (*CustomTemplateCreateRepositoryOK) Error ¶
func (o *CustomTemplateCreateRepositoryOK) Error() string
func (*CustomTemplateCreateRepositoryOK) GetPayload ¶
func (o *CustomTemplateCreateRepositoryOK) GetPayload() *models.PortainereeCustomTemplate
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 ¶
func (o *CustomTemplateCreateRepositoryOK) String() 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 ¶
func (o *CustomTemplateCreateRepositoryParams) SetBody(body *models.CustomtemplatesCustomTemplateFromGitRepositoryPayload)
SetBody adds the body to the custom template create repository params
func (*CustomTemplateCreateRepositoryParams) SetContext ¶
func (o *CustomTemplateCreateRepositoryParams) SetContext(ctx context.Context)
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 ¶
func (o *CustomTemplateCreateRepositoryParams) WithBody(body *models.CustomtemplatesCustomTemplateFromGitRepositoryPayload) *CustomTemplateCreateRepositoryParams
WithBody adds the body to the custom template create repository params
func (*CustomTemplateCreateRepositoryParams) WithContext ¶
func (o *CustomTemplateCreateRepositoryParams) WithContext(ctx context.Context) *CustomTemplateCreateRepositoryParams
WithContext adds the context to the custom template create repository params
func (*CustomTemplateCreateRepositoryParams) WithDefaults ¶
func (o *CustomTemplateCreateRepositoryParams) WithDefaults() *CustomTemplateCreateRepositoryParams
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 ¶
func (o *CustomTemplateCreateRepositoryParams) WithHTTPClient(client *http.Client) *CustomTemplateCreateRepositoryParams
WithHTTPClient adds the HTTPClient to the custom template create repository params
func (*CustomTemplateCreateRepositoryParams) WithTimeout ¶
func (o *CustomTemplateCreateRepositoryParams) WithTimeout(timeout time.Duration) *CustomTemplateCreateRepositoryParams
WithTimeout adds the timeout to the custom template create repository params
func (*CustomTemplateCreateRepositoryParams) WriteToRequest ¶
func (o *CustomTemplateCreateRepositoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CustomTemplateCreateStringBadRequest) Code() int
Code gets the status code for the custom template create string bad request response
func (*CustomTemplateCreateStringBadRequest) Error ¶
func (o *CustomTemplateCreateStringBadRequest) Error() string
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 ¶
func (o *CustomTemplateCreateStringBadRequest) IsCode(code int) bool
IsCode returns true when this custom template create string bad request response a status code equal to that given
func (*CustomTemplateCreateStringBadRequest) IsRedirect ¶
func (o *CustomTemplateCreateStringBadRequest) IsRedirect() bool
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 ¶
func (o *CustomTemplateCreateStringBadRequest) IsSuccess() bool
IsSuccess returns true when this custom template create string bad request response has a 2xx status code
func (*CustomTemplateCreateStringBadRequest) String ¶
func (o *CustomTemplateCreateStringBadRequest) String() 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 ¶
func (o *CustomTemplateCreateStringInternalServerError) Code() int
Code gets the status code for the custom template create string internal server error response
func (*CustomTemplateCreateStringInternalServerError) Error ¶
func (o *CustomTemplateCreateStringInternalServerError) Error() string
func (*CustomTemplateCreateStringInternalServerError) IsClientError ¶
func (o *CustomTemplateCreateStringInternalServerError) IsClientError() bool
IsClientError returns true when this custom template create string internal server error response has a 4xx status code
func (*CustomTemplateCreateStringInternalServerError) IsCode ¶
func (o *CustomTemplateCreateStringInternalServerError) IsCode(code int) bool
IsCode returns true when this custom template create string internal server error response a status code equal to that given
func (*CustomTemplateCreateStringInternalServerError) IsRedirect ¶
func (o *CustomTemplateCreateStringInternalServerError) IsRedirect() bool
IsRedirect returns true when this custom template create string internal server error response has a 3xx status code
func (*CustomTemplateCreateStringInternalServerError) IsServerError ¶
func (o *CustomTemplateCreateStringInternalServerError) IsServerError() bool
IsServerError returns true when this custom template create string internal server error response has a 5xx status code
func (*CustomTemplateCreateStringInternalServerError) IsSuccess ¶
func (o *CustomTemplateCreateStringInternalServerError) IsSuccess() bool
IsSuccess returns true when this custom template create string internal server error response has a 2xx status code
func (*CustomTemplateCreateStringInternalServerError) String ¶
func (o *CustomTemplateCreateStringInternalServerError) String() 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 ¶
func (o *CustomTemplateCreateStringOK) Code() int
Code gets the status code for the custom template create string o k response
func (*CustomTemplateCreateStringOK) Error ¶
func (o *CustomTemplateCreateStringOK) Error() string
func (*CustomTemplateCreateStringOK) GetPayload ¶
func (o *CustomTemplateCreateStringOK) GetPayload() *models.PortainereeCustomTemplate
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 ¶
func (o *CustomTemplateCreateStringOK) String() 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 ¶
func (o *CustomTemplateCreateStringParams) SetBody(body *models.CustomtemplatesCustomTemplateFromFileContentPayload)
SetBody adds the body to the custom template create string params
func (*CustomTemplateCreateStringParams) SetContext ¶
func (o *CustomTemplateCreateStringParams) SetContext(ctx context.Context)
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 ¶
func (o *CustomTemplateCreateStringParams) WithBody(body *models.CustomtemplatesCustomTemplateFromFileContentPayload) *CustomTemplateCreateStringParams
WithBody adds the body to the custom template create string params
func (*CustomTemplateCreateStringParams) WithContext ¶
func (o *CustomTemplateCreateStringParams) WithContext(ctx context.Context) *CustomTemplateCreateStringParams
WithContext adds the context to the custom template create string params
func (*CustomTemplateCreateStringParams) WithDefaults ¶
func (o *CustomTemplateCreateStringParams) WithDefaults() *CustomTemplateCreateStringParams
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 ¶
func (o *CustomTemplateCreateStringParams) WithHTTPClient(client *http.Client) *CustomTemplateCreateStringParams
WithHTTPClient adds the HTTPClient to the custom template create string params
func (*CustomTemplateCreateStringParams) WithTimeout ¶
func (o *CustomTemplateCreateStringParams) WithTimeout(timeout time.Duration) *CustomTemplateCreateStringParams
WithTimeout adds the timeout to the custom template create string params
func (*CustomTemplateCreateStringParams) WriteToRequest ¶
func (o *CustomTemplateCreateStringParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CustomTemplateDeleteBadRequest) Code() int
Code gets the status code for the custom template delete bad request response
func (*CustomTemplateDeleteBadRequest) Error ¶
func (o *CustomTemplateDeleteBadRequest) Error() string
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 ¶
func (o *CustomTemplateDeleteBadRequest) String() 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 ¶
func (o *CustomTemplateDeleteForbidden) Code() int
Code gets the status code for the custom template delete forbidden response
func (*CustomTemplateDeleteForbidden) Error ¶
func (o *CustomTemplateDeleteForbidden) Error() string
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 ¶
func (o *CustomTemplateDeleteForbidden) String() 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 ¶
func (o *CustomTemplateDeleteInternalServerError) Code() int
Code gets the status code for the custom template delete internal server error response
func (*CustomTemplateDeleteInternalServerError) Error ¶
func (o *CustomTemplateDeleteInternalServerError) Error() string
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 ¶
func (o *CustomTemplateDeleteInternalServerError) IsCode(code int) bool
IsCode returns true when this custom template delete internal server error response a status code equal to that given
func (*CustomTemplateDeleteInternalServerError) IsRedirect ¶
func (o *CustomTemplateDeleteInternalServerError) IsRedirect() bool
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 ¶
func (o *CustomTemplateDeleteInternalServerError) IsSuccess() bool
IsSuccess returns true when this custom template delete internal server error response has a 2xx status code
func (*CustomTemplateDeleteInternalServerError) String ¶
func (o *CustomTemplateDeleteInternalServerError) String() 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 ¶
func (o *CustomTemplateDeleteNoContent) Code() int
Code gets the status code for the custom template delete no content response
func (*CustomTemplateDeleteNoContent) Error ¶
func (o *CustomTemplateDeleteNoContent) Error() string
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 ¶
func (o *CustomTemplateDeleteNoContent) String() 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 ¶
func (o *CustomTemplateDeleteNotFound) Code() int
Code gets the status code for the custom template delete not found response
func (*CustomTemplateDeleteNotFound) Error ¶
func (o *CustomTemplateDeleteNotFound) Error() string
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 ¶
func (o *CustomTemplateDeleteNotFound) String() 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 ¶
func (o *CustomTemplateDeleteParams) WithContext(ctx context.Context) *CustomTemplateDeleteParams
WithContext adds the context to the custom template delete params
func (*CustomTemplateDeleteParams) WithDefaults ¶
func (o *CustomTemplateDeleteParams) WithDefaults() *CustomTemplateDeleteParams
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 ¶
func (o *CustomTemplateDeleteParams) WithHTTPClient(client *http.Client) *CustomTemplateDeleteParams
WithHTTPClient adds the HTTPClient to the custom template delete params
func (*CustomTemplateDeleteParams) WithID ¶
func (o *CustomTemplateDeleteParams) WithID(id int64) *CustomTemplateDeleteParams
WithID adds the id to the custom template delete params
func (*CustomTemplateDeleteParams) WithTimeout ¶
func (o *CustomTemplateDeleteParams) WithTimeout(timeout time.Duration) *CustomTemplateDeleteParams
WithTimeout adds the timeout to the custom template delete params
func (*CustomTemplateDeleteParams) WriteToRequest ¶
func (o *CustomTemplateDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CustomTemplateFileBadRequest) Code() int
Code gets the status code for the custom template file bad request response
func (*CustomTemplateFileBadRequest) Error ¶
func (o *CustomTemplateFileBadRequest) Error() string
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 ¶
func (o *CustomTemplateFileBadRequest) String() 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 ¶
func (o *CustomTemplateFileInternalServerError) Code() int
Code gets the status code for the custom template file internal server error response
func (*CustomTemplateFileInternalServerError) Error ¶
func (o *CustomTemplateFileInternalServerError) Error() string
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 ¶
func (o *CustomTemplateFileInternalServerError) IsCode(code int) bool
IsCode returns true when this custom template file internal server error response a status code equal to that given
func (*CustomTemplateFileInternalServerError) IsRedirect ¶
func (o *CustomTemplateFileInternalServerError) IsRedirect() bool
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 ¶
func (o *CustomTemplateFileInternalServerError) IsSuccess() bool
IsSuccess returns true when this custom template file internal server error response has a 2xx status code
func (*CustomTemplateFileInternalServerError) String ¶
func (o *CustomTemplateFileInternalServerError) String() 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 (o *CustomTemplateFileNotFound) Error() string
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 (o *CustomTemplateFileOK) GetPayload() *models.CustomtemplatesFileResponse
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 ¶
func (o *CustomTemplateFileParams) WithContext(ctx context.Context) *CustomTemplateFileParams
WithContext adds the context to the custom template file params
func (*CustomTemplateFileParams) WithDefaults ¶
func (o *CustomTemplateFileParams) WithDefaults() *CustomTemplateFileParams
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 ¶
func (o *CustomTemplateFileParams) WithID(id int64) *CustomTemplateFileParams
WithID adds the id to the custom template file params
func (*CustomTemplateFileParams) WithTimeout ¶
func (o *CustomTemplateFileParams) WithTimeout(timeout time.Duration) *CustomTemplateFileParams
WithTimeout adds the timeout to the custom template file params
func (*CustomTemplateFileParams) WriteToRequest ¶
func (o *CustomTemplateFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CustomTemplateGitFetchBadRequest) Code() int
Code gets the status code for the custom template git fetch bad request response
func (*CustomTemplateGitFetchBadRequest) Error ¶
func (o *CustomTemplateGitFetchBadRequest) Error() string
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 ¶
func (o *CustomTemplateGitFetchBadRequest) String() 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 ¶
func (o *CustomTemplateGitFetchInternalServerError) Code() int
Code gets the status code for the custom template git fetch internal server error response
func (*CustomTemplateGitFetchInternalServerError) Error ¶
func (o *CustomTemplateGitFetchInternalServerError) Error() string
func (*CustomTemplateGitFetchInternalServerError) IsClientError ¶
func (o *CustomTemplateGitFetchInternalServerError) IsClientError() bool
IsClientError returns true when this custom template git fetch internal server error response has a 4xx status code
func (*CustomTemplateGitFetchInternalServerError) IsCode ¶
func (o *CustomTemplateGitFetchInternalServerError) IsCode(code int) bool
IsCode returns true when this custom template git fetch internal server error response a status code equal to that given
func (*CustomTemplateGitFetchInternalServerError) IsRedirect ¶
func (o *CustomTemplateGitFetchInternalServerError) IsRedirect() bool
IsRedirect returns true when this custom template git fetch internal server error response has a 3xx status code
func (*CustomTemplateGitFetchInternalServerError) IsServerError ¶
func (o *CustomTemplateGitFetchInternalServerError) IsServerError() bool
IsServerError returns true when this custom template git fetch internal server error response has a 5xx status code
func (*CustomTemplateGitFetchInternalServerError) IsSuccess ¶
func (o *CustomTemplateGitFetchInternalServerError) IsSuccess() bool
IsSuccess returns true when this custom template git fetch internal server error response has a 2xx status code
func (*CustomTemplateGitFetchInternalServerError) String ¶
func (o *CustomTemplateGitFetchInternalServerError) String() 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 ¶
func (o *CustomTemplateGitFetchNotFound) Code() int
Code gets the status code for the custom template git fetch not found response
func (*CustomTemplateGitFetchNotFound) Error ¶
func (o *CustomTemplateGitFetchNotFound) Error() string
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 ¶
func (o *CustomTemplateGitFetchNotFound) String() 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 (o *CustomTemplateGitFetchOK) GetPayload() *models.CustomtemplatesFileResponse
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 ¶
func (o *CustomTemplateGitFetchParams) WithContext(ctx context.Context) *CustomTemplateGitFetchParams
WithContext adds the context to the custom template git fetch params
func (*CustomTemplateGitFetchParams) WithDefaults ¶
func (o *CustomTemplateGitFetchParams) WithDefaults() *CustomTemplateGitFetchParams
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 ¶
func (o *CustomTemplateGitFetchParams) WithHTTPClient(client *http.Client) *CustomTemplateGitFetchParams
WithHTTPClient adds the HTTPClient to the custom template git fetch params
func (*CustomTemplateGitFetchParams) WithID ¶
func (o *CustomTemplateGitFetchParams) WithID(id int64) *CustomTemplateGitFetchParams
WithID adds the id to the custom template git fetch params
func (*CustomTemplateGitFetchParams) WithTimeout ¶
func (o *CustomTemplateGitFetchParams) WithTimeout(timeout time.Duration) *CustomTemplateGitFetchParams
WithTimeout adds the timeout to the custom template git fetch params
func (*CustomTemplateGitFetchParams) WriteToRequest ¶
func (o *CustomTemplateGitFetchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CustomTemplateInspectBadRequest) Code() int
Code gets the status code for the custom template inspect bad request response
func (*CustomTemplateInspectBadRequest) Error ¶
func (o *CustomTemplateInspectBadRequest) Error() string
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 ¶
func (o *CustomTemplateInspectBadRequest) String() 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 ¶
func (o *CustomTemplateInspectInternalServerError) Code() int
Code gets the status code for the custom template inspect internal server error response
func (*CustomTemplateInspectInternalServerError) Error ¶
func (o *CustomTemplateInspectInternalServerError) Error() string
func (*CustomTemplateInspectInternalServerError) IsClientError ¶
func (o *CustomTemplateInspectInternalServerError) IsClientError() bool
IsClientError returns true when this custom template inspect internal server error response has a 4xx status code
func (*CustomTemplateInspectInternalServerError) IsCode ¶
func (o *CustomTemplateInspectInternalServerError) IsCode(code int) bool
IsCode returns true when this custom template inspect internal server error response a status code equal to that given
func (*CustomTemplateInspectInternalServerError) IsRedirect ¶
func (o *CustomTemplateInspectInternalServerError) IsRedirect() bool
IsRedirect returns true when this custom template inspect internal server error response has a 3xx status code
func (*CustomTemplateInspectInternalServerError) IsServerError ¶
func (o *CustomTemplateInspectInternalServerError) IsServerError() bool
IsServerError returns true when this custom template inspect internal server error response has a 5xx status code
func (*CustomTemplateInspectInternalServerError) IsSuccess ¶
func (o *CustomTemplateInspectInternalServerError) IsSuccess() bool
IsSuccess returns true when this custom template inspect internal server error response has a 2xx status code
func (*CustomTemplateInspectInternalServerError) String ¶
func (o *CustomTemplateInspectInternalServerError) String() 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 ¶
func (o *CustomTemplateInspectNotFound) Code() int
Code gets the status code for the custom template inspect not found response
func (*CustomTemplateInspectNotFound) Error ¶
func (o *CustomTemplateInspectNotFound) Error() string
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 ¶
func (o *CustomTemplateInspectNotFound) String() 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 (o *CustomTemplateInspectOK) GetPayload() *models.PortainereeCustomTemplate
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 ¶
func (o *CustomTemplateInspectParams) WithContext(ctx context.Context) *CustomTemplateInspectParams
WithContext adds the context to the custom template inspect params
func (*CustomTemplateInspectParams) WithDefaults ¶
func (o *CustomTemplateInspectParams) WithDefaults() *CustomTemplateInspectParams
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 ¶
func (o *CustomTemplateInspectParams) WithHTTPClient(client *http.Client) *CustomTemplateInspectParams
WithHTTPClient adds the HTTPClient to the custom template inspect params
func (*CustomTemplateInspectParams) WithID ¶
func (o *CustomTemplateInspectParams) WithID(id int64) *CustomTemplateInspectParams
WithID adds the id to the custom template inspect params
func (*CustomTemplateInspectParams) WithTimeout ¶
func (o *CustomTemplateInspectParams) WithTimeout(timeout time.Duration) *CustomTemplateInspectParams
WithTimeout adds the timeout to the custom template inspect params
func (*CustomTemplateInspectParams) WriteToRequest ¶
func (o *CustomTemplateInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CustomTemplateListInternalServerError) Code() int
Code gets the status code for the custom template list internal server error response
func (*CustomTemplateListInternalServerError) Error ¶
func (o *CustomTemplateListInternalServerError) Error() string
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 ¶
func (o *CustomTemplateListInternalServerError) IsCode(code int) bool
IsCode returns true when this custom template list internal server error response a status code equal to that given
func (*CustomTemplateListInternalServerError) IsRedirect ¶
func (o *CustomTemplateListInternalServerError) IsRedirect() bool
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 ¶
func (o *CustomTemplateListInternalServerError) IsSuccess() bool
IsSuccess returns true when this custom template list internal server error response has a 2xx status code
func (*CustomTemplateListInternalServerError) String ¶
func (o *CustomTemplateListInternalServerError) String() 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 (o *CustomTemplateListOK) GetPayload() []*models.PortainereeCustomTemplate
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 ¶
func (o *CustomTemplateListParams) WithContext(ctx context.Context) *CustomTemplateListParams
WithContext adds the context to the custom template list params
func (*CustomTemplateListParams) WithDefaults ¶
func (o *CustomTemplateListParams) WithDefaults() *CustomTemplateListParams
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 ¶
func (o *CustomTemplateListParams) WithEdge(edge *bool) *CustomTemplateListParams
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 ¶
func (o *CustomTemplateListParams) WithTimeout(timeout time.Duration) *CustomTemplateListParams
WithTimeout adds the timeout to the custom template list params
func (*CustomTemplateListParams) WithType ¶
func (o *CustomTemplateListParams) WithType(typeVar []int64) *CustomTemplateListParams
WithType adds the typeVar to the custom template list params
func (*CustomTemplateListParams) WriteToRequest ¶
func (o *CustomTemplateListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CustomTemplateUpdateBadRequest) Code() int
Code gets the status code for the custom template update bad request response
func (*CustomTemplateUpdateBadRequest) Error ¶
func (o *CustomTemplateUpdateBadRequest) Error() string
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 ¶
func (o *CustomTemplateUpdateBadRequest) String() 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 ¶
func (o *CustomTemplateUpdateForbidden) Code() int
Code gets the status code for the custom template update forbidden response
func (*CustomTemplateUpdateForbidden) Error ¶
func (o *CustomTemplateUpdateForbidden) Error() string
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 ¶
func (o *CustomTemplateUpdateForbidden) String() 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 ¶
func (o *CustomTemplateUpdateInternalServerError) Code() int
Code gets the status code for the custom template update internal server error response
func (*CustomTemplateUpdateInternalServerError) Error ¶
func (o *CustomTemplateUpdateInternalServerError) Error() string
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 ¶
func (o *CustomTemplateUpdateInternalServerError) IsCode(code int) bool
IsCode returns true when this custom template update internal server error response a status code equal to that given
func (*CustomTemplateUpdateInternalServerError) IsRedirect ¶
func (o *CustomTemplateUpdateInternalServerError) IsRedirect() bool
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 ¶
func (o *CustomTemplateUpdateInternalServerError) IsSuccess() bool
IsSuccess returns true when this custom template update internal server error response has a 2xx status code
func (*CustomTemplateUpdateInternalServerError) String ¶
func (o *CustomTemplateUpdateInternalServerError) String() 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 ¶
func (o *CustomTemplateUpdateNotFound) Code() int
Code gets the status code for the custom template update not found response
func (*CustomTemplateUpdateNotFound) Error ¶
func (o *CustomTemplateUpdateNotFound) Error() string
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 ¶
func (o *CustomTemplateUpdateNotFound) String() 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 (o *CustomTemplateUpdateOK) GetPayload() *models.PortainereeCustomTemplate
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 ¶
func (o *CustomTemplateUpdateParams) SetBody(body *models.CustomtemplatesCustomTemplateUpdatePayload)
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 ¶
func (o *CustomTemplateUpdateParams) WithBody(body *models.CustomtemplatesCustomTemplateUpdatePayload) *CustomTemplateUpdateParams
WithBody adds the body to the custom template update params
func (*CustomTemplateUpdateParams) WithContext ¶
func (o *CustomTemplateUpdateParams) WithContext(ctx context.Context) *CustomTemplateUpdateParams
WithContext adds the context to the custom template update params
func (*CustomTemplateUpdateParams) WithDefaults ¶
func (o *CustomTemplateUpdateParams) WithDefaults() *CustomTemplateUpdateParams
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 ¶
func (o *CustomTemplateUpdateParams) WithHTTPClient(client *http.Client) *CustomTemplateUpdateParams
WithHTTPClient adds the HTTPClient to the custom template update params
func (*CustomTemplateUpdateParams) WithID ¶
func (o *CustomTemplateUpdateParams) WithID(id int64) *CustomTemplateUpdateParams
WithID adds the id to the custom template update params
func (*CustomTemplateUpdateParams) WithTimeout ¶
func (o *CustomTemplateUpdateParams) WithTimeout(timeout time.Duration) *CustomTemplateUpdateParams
WithTimeout adds the timeout to the custom template update params
func (*CustomTemplateUpdateParams) WriteToRequest ¶
func (o *CustomTemplateUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files
¶
- custom_template_create_file_parameters.go
- custom_template_create_file_responses.go
- custom_template_create_parameters.go
- custom_template_create_repository_parameters.go
- custom_template_create_repository_responses.go
- custom_template_create_responses.go
- custom_template_create_string_parameters.go
- custom_template_create_string_responses.go
- custom_template_delete_parameters.go
- custom_template_delete_responses.go
- custom_template_file_parameters.go
- custom_template_file_responses.go
- custom_template_git_fetch_parameters.go
- custom_template_git_fetch_responses.go
- custom_template_inspect_parameters.go
- custom_template_inspect_responses.go
- custom_template_list_parameters.go
- custom_template_list_responses.go
- custom_template_update_parameters.go
- custom_template_update_responses.go
- custom_templates_client.go