cluster_user

package
v1.0.0 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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterUser

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

func NewClusterUserService

func NewClusterUserService() *ClusterUser

func (*ClusterUser) BatchDelete

func (srv *ClusterUser) BatchDelete(ctx context.Context, ids []uint64) error

func (*ClusterUser) Close

func (srv *ClusterUser) Close()

func (*ClusterUser) Create

func (srv *ClusterUser) Create(
	ctx context.Context, clusterId, userId, memory, cpu uint64, kubeConfig, devNameSpace, spaceName string,
	spaceResourceLimit string, isBaseName bool, protected bool,
) (model.ClusterUserModel, error)

func (*ClusterUser) CreateClusterAdminSpace

func (srv *ClusterUser) CreateClusterAdminSpace(
	ctx context.Context, clusterId, userId uint64, spaceName string,
) (model.ClusterUserModel, error)

func (*ClusterUser) Delete

func (srv *ClusterUser) Delete(ctx context.Context, id uint64) error

func (*ClusterUser) Evict

func (srv *ClusterUser) Evict(id uint64)

func (*ClusterUser) GetAllCache

func (srv *ClusterUser) GetAllCache() []model.ClusterUserModel

func (*ClusterUser) GetCache

func (srv *ClusterUser) GetCache(id uint64) (
	model.ClusterUserModel, error,
)

func (*ClusterUser) GetCacheByClusterAndNameSpace

func (srv *ClusterUser) GetCacheByClusterAndNameSpace(clusterId uint64, namespace string) (
	model.ClusterUserModel, error,
)

func (*ClusterUser) GetFirst

func (srv *ClusterUser) GetFirst(ctx context.Context, models model.ClusterUserModel) (
	*model.ClusterUserModel, error,
)

func (*ClusterUser) GetJoinCluster

func (srv *ClusterUser) GetJoinCluster(
	ctx context.Context, condition model.ClusterUserJoinCluster,
) ([]*model.ClusterUserJoinCluster, error)

func (*ClusterUser) GetJoinClusterAndAppAndUser

func (srv *ClusterUser) GetJoinClusterAndAppAndUser(
	ctx context.Context, condition model.ClusterUserJoinClusterAndAppAndUser,
) ([]*model.ClusterUserJoinClusterAndAppAndUser, error)

func (*ClusterUser) GetJoinClusterAndAppAndUserDetail

func (srv *ClusterUser) GetJoinClusterAndAppAndUserDetail(
	ctx context.Context, condition model.ClusterUserJoinClusterAndAppAndUser,
) (*model.ClusterUserJoinClusterAndAppAndUser, error)

func (*ClusterUser) GetList

func (srv *ClusterUser) GetList(ctx context.Context, models model.ClusterUserModel) (
	[]*model.ClusterUserModel, error,
)

func (*ClusterUser) ListByUser

func (srv *ClusterUser) ListByUser(ctx context.Context, userId uint64) ([]*model.ClusterUserPluginModel, error)

func (*ClusterUser) ListV2

func (srv *ClusterUser) ListV2(models model.ClusterUserModel) (
	[]*model.ClusterUserV2, error,
)

func (*ClusterUser) Update

func (srv *ClusterUser) Update(ctx context.Context, models *model.ClusterUserModel) (
	*model.ClusterUserModel, error,
)

func (*ClusterUser) UpdateKubeConfig

func (srv *ClusterUser) UpdateKubeConfig(
	ctx context.Context, models *model.ClusterUserModel,
) (*model.ClusterUserModel, error)

Jump to

Keyboard shortcuts

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