Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyTemplate = "template" KeyTemplateRelease = "templateRelease" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { GetByID(ctx context.Context, id uint, includeSoftDelete bool) (*models.Application, error) GetByIDs(ctx context.Context, ids []uint) ([]*models.Application, error) GetByGroupIDs(ctx context.Context, groupIDs []uint) ([]*models.Application, error) GetByName(ctx context.Context, name string) (*models.Application, error) GetByNamesUnderGroup(ctx context.Context, groupID uint, names []string) ([]*models.Application, error) // GetByNameFuzzily get applications that fuzzily matching the given name GetByNameFuzzily(ctx context.Context, name string, includeSoftDelete bool) ([]*models.Application, error) // CountByGroupID get the count of the records matching the given groupID CountByGroupID(ctx context.Context, groupID uint) (int64, error) Create(ctx context.Context, application *models.Application, extraMembers map[*usermodels.User]string) (*models.Application, error) UpdateByID(ctx context.Context, id uint, application *models.Application) (*models.Application, error) DeleteByID(ctx context.Context, id uint) error TransferByID(ctx context.Context, id uint, groupID uint) error List(ctx context.Context, groupIDs []uint, query *q.Query) (int, []*models.Application, error) }
Click to show internal directories.
Click to hide internal directories.