Documentation ¶
Index ¶
- func Deploy(ctx context.Context, 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 Init(ctx context.Context) error
- func ListByCond(ctx context.Context, r *CondArgs) (data []models.Instance, err error)
- func Remove(ctx context.Context, r *CondArgs) error
- func RemoveByAppletSFID(ctx context.Context, id types.SFID) (err error)
- func RemoveBySFID(ctx context.Context, id types.SFID) error
- func Upsert(ctx context.Context, r *CreateReq, state enums.InstanceState, ...) (*models.Instance, error)
- func UpsertByCode(ctx context.Context, r *CreateReq, code []byte, state enums.InstanceState, ...) (*models.Instance, error)
- func WithInstanceRuntimeContext(parent context.Context) (context.Context, error)
- type CondArgs
- type CreateReq
- type ListReq
- type ListRsp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetByAppletSFID ¶ added in v1.1.0
func ListByCond ¶ added in v1.4.1
func RemoveByAppletSFID ¶ added in v1.1.0
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
Click to show internal directories.
Click to hide internal directories.