deptemplateapi

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(params CreateParams) (string, error)

Create creates a deployment template from a definition. If a TemplateID is specified in the params then it uses the "PUT" version of the call which will create a deployment template with the specified id, if the ID already exists, it'll return an error.

func Delete

func Delete(params DeleteParams) error

Delete removes an existing deployment temeplate.

func Get

Get returns the specified deployment template.

func List

List returns a list of the available deployment templates.

func Update

func Update(params UpdateParams) error

Update updates an existing deployment template from a definition.

Types

type CreateParams

type CreateParams struct {
	*api.API

	Region     string
	TemplateID string
	Request    *models.DeploymentTemplateRequestBody
}

CreateParams is consumed by the Create function.

func (CreateParams) Validate

func (params CreateParams) Validate() error

Validate ensures the parameters are usable by Create.

type DeleteParams

type DeleteParams struct {
	*api.API

	TemplateID string
	Region     string
}

DeleteParams is consumed by the Delete function.

func (DeleteParams) Validate

func (params DeleteParams) Validate() error

Validate ensures the parameters are usable by Delete.

type GetParams

type GetParams struct {
	*api.API

	TemplateID   string
	Region       string
	StackVersion string

	HideInstanceConfigurations bool
	ShowMaxZones               bool
}

GetParams is consumed by the Get function.

func (GetParams) Validate

func (params GetParams) Validate() error

Validate ensures the parameters are usable by Get.

type ListParams

type ListParams struct {
	*api.API

	MetadataFilter string
	Region         string
	StackVersion   string

	ShowHidden                 bool
	HideInstanceConfigurations bool
	ShowMaxZones               bool
}

ListParams is consumed by the List function.

func (ListParams) Validate

func (params ListParams) Validate() error

Validate ensures the parameters are usable by List.

type UpdateParams

type UpdateParams struct {
	*api.API

	Region     string
	TemplateID string
	Request    *models.DeploymentTemplateRequestBody
}

UpdateParams is consumed by the Update function.

func (UpdateParams) Validate

func (params UpdateParams) Validate() error

Validate ensures the parameters are usable by Update.

Jump to

Keyboard shortcuts

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