project

package
v1.6.5-rc24 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetByName added in v1.1.0

func GetByName(ctx context.Context, name string) (*models.Project, error)

func GetBySFID added in v1.1.0

func GetBySFID(ctx context.Context, prj types.SFID) (*models.Project, error)

func Init added in v1.1.0

func Init(ctx context.Context) error

func ListByCond added in v1.2.5

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

func RemoveBySFID added in v1.1.0

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

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 CreateRsp struct {
	*models.Project
	Env          *wasm.Env      `json:"envs,omitempty"`
	Database     *wasm.Database `json:"database,omitempty"`
	Flow         *wasm.Flow     `json:"flow,omitempty"`
	ChannelState datatypes.Bool `json:"channelState"`
}

func Create added in v1.1.0

func Create(ctx context.Context, r *CreateReq) (*CreateRsp, error)

type Detail

type Detail struct {
	ProjectID   types.SFID       `json:"projectID"`
	ProjectName string           `json:"projectName"`
	Applets     []*applet.Detail `json:"applets,omitempty"`
}

func GetDetail added in v1.1.0

func GetDetail(ctx context.Context, prj *models.Project) (*Detail, error)

type ListDetailRsp added in v1.1.0

type ListDetailRsp struct {
	Data  []*Detail `json:"data"`
	Total int64     `json:"total"`
}

func ListDetail added in v1.1.0

func ListDetail(ctx context.Context, r *ListReq) (*ListDetailRsp, error)

type ListReq added in v1.1.0

type ListReq struct {
	CondArgs
	datatypes.Pager
}

type ListRsp added in v1.1.0

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

func List added in v1.1.0

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

Jump to

Keyboard shortcuts

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