Documentation ¶
Index ¶
- func ControlInstance(ctx context.Context, instanceID types.SFID, cmd enums.DeployCmd) (err error)
- func GetByAppletSFID(ctx context.Context, id types.SFID) (*models.Instance, error)
- func GetBySFID(ctx context.Context, id types.SFID) (*models.Instance, error)
- func GetInstanceByAppletID(ctx context.Context, appletID types.SFID) (ret []models.Instance, err error)
- func GetInstanceByInstanceID(ctx context.Context, instanceID types.SFID) (*models.Instance, error)
- func StartInstances(ctx context.Context) error
- func WithInstanceRuntimeContext(parent context.Context) (context.Context, error)
- type CreateOrReDeployInstanceReq
- type CreateOrReDeployInstanceRsp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControlInstance ¶
func GetByAppletSFID ¶ added in v1.1.0
func GetInstanceByAppletID ¶
func GetInstanceByInstanceID ¶
func StartInstances ¶
Types ¶
type CreateOrReDeployInstanceRsp ¶
type CreateOrReDeployInstanceRsp struct { InstanceID types.SFID `json:"instanceID"` InstanceState enums.InstanceState `json:"instanceState"` }
func CreateInstance ¶
func CreateInstance(ctx context.Context, r *CreateOrReDeployInstanceReq) (*CreateOrReDeployInstanceRsp, error)
func ReDeployInstance ¶
func ReDeployInstance(ctx context.Context, r *CreateOrReDeployInstanceReq) (*CreateOrReDeployInstanceRsp, error)
Click to show internal directories.
Click to hide internal directories.