Documentation ¶
Index ¶
- type ApplicationRepo
- func (repo *ApplicationRepo) Close()
- func (repo *ApplicationRepo) Create(ctx context.Context, application model.ApplicationModel) (model.ApplicationModel, error)
- func (repo *ApplicationRepo) Delete(ctx context.Context, id uint64) error
- func (repo *ApplicationRepo) Get(ctx context.Context, id uint64) (model.ApplicationModel, error)
- func (repo *ApplicationRepo) GetByName(ctx context.Context, name string) (model.ApplicationModel, error)
- func (repo *ApplicationRepo) GetList(ctx context.Context, userId *uint64) ([]*model.ApplicationModel, error)
- func (repo *ApplicationRepo) PluginGetList(ctx context.Context, userId uint64) ([]*model.PluginApplicationModel, error)
- func (repo *ApplicationRepo) PublicSwitch(ctx context.Context, applicationId uint64, public uint8) error
- func (repo *ApplicationRepo) Update(ctx context.Context, applicationModel *model.ApplicationModel) (*model.ApplicationModel, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationRepo ¶
type ApplicationRepo struct {
// contains filtered or unexported fields
}
func NewClusterRepo ¶
func NewClusterRepo(db *gorm.DB) *ApplicationRepo
func (*ApplicationRepo) Create ¶
func (repo *ApplicationRepo) Create(ctx context.Context, application model.ApplicationModel) ( model.ApplicationModel, error, )
func (*ApplicationRepo) Delete ¶
func (repo *ApplicationRepo) Delete(ctx context.Context, id uint64) error
func (*ApplicationRepo) Get ¶
func (repo *ApplicationRepo) Get(ctx context.Context, id uint64) (model.ApplicationModel, error)
func (*ApplicationRepo) GetByName ¶
func (repo *ApplicationRepo) GetByName(ctx context.Context, name string) (model.ApplicationModel, error)
func (*ApplicationRepo) GetList ¶
func (repo *ApplicationRepo) GetList(ctx context.Context, userId *uint64) ([]*model.ApplicationModel, error)
func (*ApplicationRepo) PluginGetList ¶
func (repo *ApplicationRepo) PluginGetList(ctx context.Context, userId uint64) ( []*model.PluginApplicationModel, error, )
func (*ApplicationRepo) PublicSwitch ¶
func (*ApplicationRepo) Update ¶
func (repo *ApplicationRepo) Update( ctx context.Context, applicationModel *model.ApplicationModel, ) (*model.ApplicationModel, error)
Click to show internal directories.
Click to hide internal directories.