deploy

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deploy added in v1.1.0

func Deploy(ctx context.Context, cmd enums.DeployCmd) (err error)

func GetByAppletSFID added in v1.1.0

func GetByAppletSFID(ctx context.Context, id types.SFID) (*models.Instance, error)

func GetBySFID added in v1.1.0

func GetBySFID(ctx context.Context, id types.SFID) (*models.Instance, error)

func Init added in v1.1.0

func Init(ctx context.Context) error

func ListByCond added in v1.4.1

func ListByCond(ctx context.Context, r *CondArgs) (data []models.Instance, err error)

func Remove added in v1.1.0

func Remove(ctx context.Context, r *CondArgs) error

func RemoveByAppletSFID added in v1.1.0

func RemoveByAppletSFID(ctx context.Context, id types.SFID) (err error)

func RemoveBySFID added in v1.1.0

func RemoveBySFID(ctx context.Context, id types.SFID) error

func Upsert added in v1.1.0

func Upsert(ctx context.Context, r *CreateReq, state enums.InstanceState, old ...types.SFID) (*models.Instance, error)

func UpsertByCode added in v1.1.0

func UpsertByCode(ctx context.Context, r *CreateReq, code []byte, state enums.InstanceState, old ...types.SFID) (*models.Instance, error)

UpsertByCode upsert instance and its config, and deploy wasm if needed

func WithInstanceRuntimeContext added in v1.0.0

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

Types

type CondArgs added in v1.1.0

type CondArgs struct {
	ProjectID   types.SFID            `name:"-"`
	InstanceIDs []types.SFID          `in:"query" name:"instanceID,omitempty"`
	AppletIDs   []types.SFID          `in:"query" name:"appletID,omitempty"`
	States      []enums.InstanceState `in:"query" name:"state,omitempty"`
}

func (*CondArgs) Condition added in v1.1.0

func (r *CondArgs) Condition() builder.SqlCondition

type CreateReq added in v1.1.0

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

type ListReq added in v1.1.0

type ListReq struct {
	CondArgs
	datatypes.Pager
}

type ListRsp added in v1.4.1

type ListRsp struct {
	Data  []models.Instance `json:"data"`
	Total int64             `json:"total"`
}

func List added in v1.4.1

func List(ctx context.Context, r *ListReq) (ret *ListRsp, err error)

Jump to

Keyboard shortcuts

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