deploy

package
v1.0.1-rc3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ControlInstance

func ControlInstance(ctx context.Context, instanceID types.SFID, cmd enums.DeployCmd) (err error)

func GetInstanceByAppletID

func GetInstanceByAppletID(ctx context.Context, appletID types.SFID) (ret []models.Instance, err error)

func GetInstanceByInstanceID

func GetInstanceByInstanceID(ctx context.Context, instanceID types.SFID) (*models.Instance, error)

func StartInstances

func StartInstances(ctx context.Context) error

func WithInstanceRuntimeContext added in v1.0.0

func WithInstanceRuntimeContext(parent context.Context) (context.Context, error)

Types

type CreateOrReDeployInstanceReq

type CreateOrReDeployInstanceReq struct {
	Cache *wasm.Cache `json:"cache,omitempty"`
}

type CreateOrReDeployInstanceRsp

type CreateOrReDeployInstanceRsp struct {
	InstanceID    types.SFID          `json:"instanceID"`
	InstanceState enums.InstanceState `json:"instanceState"`
}

Jump to

Keyboard shortcuts

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