Documentation ¶
Index ¶
- func GetByName(ctx context.Context, name string) (*models.Project, error)
- func GetBySFID(ctx context.Context, prj types.SFID) (*models.Project, error)
- func Init(ctx context.Context) ([]types.SFID, error)
- func ListByCond(ctx context.Context, r *CondArgs) ([]models.Project, error)
- func RemoveBySFID(ctx context.Context, id types.SFID) (err error)
- type CondArgs
- type CreateReq
- type CreateRsp
- type Detail
- type ListDetailRsp
- type ListReq
- type ListRsp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListByCond ¶ added in v1.2.5
Types ¶
type CondArgs ¶ added in v1.1.0
type CondArgs struct { AccountID types.SFID `name:"-"` ProjectIDs []types.SFID `in:"query" name:"projectID,omitempty"` Names []string `in:"query" name:"name,omitempty"` Versions []string `in:"query" name:"version,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 { models.ProjectName models.ProjectBase Env *wasm.Env `json:"envs,omitempty"` Database *wasm.Database `json:"database,omitempty"` Flow *wasm.Flow `json:"flow,omitempty"` }
type CreateRsp ¶ added in v1.1.0
type Detail ¶
type ListDetailRsp ¶ added in v1.1.0
func ListDetail ¶ added in v1.1.0
func ListDetail(ctx context.Context, r *ListReq) (*ListDetailRsp, error)
Click to show internal directories.
Click to hide internal directories.