Documentation ¶
Index ¶
- type ApplicationClusterRepoBase
- func (repo *ApplicationClusterRepoBase) Close()
- func (repo *ApplicationClusterRepoBase) Create(ctx context.Context, clusterModel model.ApplicationClusterModel) (model.ApplicationClusterModel, error)
- func (repo *ApplicationClusterRepoBase) GetFirst(ctx context.Context, id uint64) (model.ApplicationClusterModel, error)
- func (repo *ApplicationClusterRepoBase) GetJoinCluster(ctx context.Context, id uint64) ([]*model.ApplicationClusterJoinModel, error)
- func (repo *ApplicationClusterRepoBase) GetList(ctx context.Context, id uint64) ([]*model.ApplicationClusterModel, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationClusterRepoBase ¶
type ApplicationClusterRepoBase struct {
// contains filtered or unexported fields
}
func NewApplicationClusterRepo ¶
func NewApplicationClusterRepo(db *gorm.DB) *ApplicationClusterRepoBase
func (*ApplicationClusterRepoBase) Close ¶
func (repo *ApplicationClusterRepoBase) Close()
Close close db
func (*ApplicationClusterRepoBase) Create ¶
func (repo *ApplicationClusterRepoBase) Create( ctx context.Context, clusterModel model.ApplicationClusterModel, ) (model.ApplicationClusterModel, error)
func (*ApplicationClusterRepoBase) GetFirst ¶
func (repo *ApplicationClusterRepoBase) GetFirst(ctx context.Context, id uint64) (model.ApplicationClusterModel, error)
func (*ApplicationClusterRepoBase) GetJoinCluster ¶
func (repo *ApplicationClusterRepoBase) GetJoinCluster( ctx context.Context, id uint64, ) ([]*model.ApplicationClusterJoinModel, error)
func (*ApplicationClusterRepoBase) GetList ¶
func (repo *ApplicationClusterRepoBase) GetList(ctx context.Context, id uint64) ([]*model.ApplicationClusterModel, error)
Click to show internal directories.
Click to hide internal directories.