cluster

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterBaseRepo

type ClusterBaseRepo struct {
	// contains filtered or unexported fields
}

func NewClusterRepo

func NewClusterRepo(db *gorm.DB) *ClusterBaseRepo

func (*ClusterBaseRepo) Close

func (repo *ClusterBaseRepo) Close()

Close close db

func (*ClusterBaseRepo) Create

func (repo *ClusterBaseRepo) Create(ctx context.Context, cluster model.ClusterModel) (model.ClusterModel, error)

func (*ClusterBaseRepo) Delete

func (repo *ClusterBaseRepo) Delete(ctx context.Context, clusterId uint64) error

func (*ClusterBaseRepo) DeleteByCreator

func (repo *ClusterBaseRepo) DeleteByCreator(ctx context.Context, userId uint64) error

func (*ClusterBaseRepo) Get

func (repo *ClusterBaseRepo) Get(ctx context.Context, clusterId uint64) (model.ClusterModel, error)

func (*ClusterBaseRepo) GetAny

func (repo *ClusterBaseRepo) GetAny(ctx context.Context, where map[string]interface{}) ([]*model.ClusterModel, error)

func (*ClusterBaseRepo) GetList

func (repo *ClusterBaseRepo) GetList(ctx context.Context) ([]*model.ClusterList, error)

func (*ClusterBaseRepo) Update

func (repo *ClusterBaseRepo) Update(
	ctx context.Context, update map[string]interface{}, clusterId uint64,
) (*model.ClusterModel, error)

Jump to

Keyboard shortcuts

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