deploy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 13 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 CreateInstanceReq added in v1.0.0

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

type CreateInstanceRsp

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

func CreateInstance

func CreateInstance(ctx context.Context, r *CreateInstanceReq) (*CreateInstanceRsp, error)

Jump to

Keyboard shortcuts

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