stackapi

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(params DeleteParams) error

Delete deletes a stackpack

func Get

func Get(params GetParams) (*models.StackVersionConfig, error)

Get obtains a stackpack to the current installation

func List

func List(params ListParams) (*models.StackVersionConfigs, error)

List lists all stackpacks in the current installation

func Upload

func Upload(params UploadParams) error

Upload uploads a stackpack from a location

Types

type DeleteParams

type DeleteParams struct {
	*api.API
	Region  string
	Version string
}

DeleteParams is consumed by Delete

func (DeleteParams) Validate

func (params DeleteParams) Validate() error

Validate ensures that the parameters are usable by the consuming function

type GetParams

type GetParams struct {
	*api.API
	Region  string
	Version string
}

GetParams is consumed by Get

func (GetParams) Validate

func (params GetParams) Validate() error

Validate ensures that the parameters are usable by the consuming function

type ListParams

type ListParams struct {
	*api.API
	Region  string
	Deleted bool
}

ListParams is consumed by List

func (ListParams) Validate

func (params ListParams) Validate() error

Validate ensures that the parameters are usable by the consuming function

type UploadParams

type UploadParams struct {
	*api.API
	Region    string
	StackPack io.Reader
}

UploadParams is consumed by Upload

func (UploadParams) Validate

func (params UploadParams) Validate() error

Validate ensures that the parameters are usable by the consuming function

Jump to

Keyboard shortcuts

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