cluster

package
v0.0.0-...-c5a53a6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DB_USER             = "postgres"
	DB_PASSWORD         = "tmax"
	DB_NAME             = "postgres"
	HOSTNAME            = "postgres-service.hypercloud5-system.svc"
	PORT                = 5432
	INSERT_QUERY        = "" /* 166-byte string literal not displayed */
	DELETE_QUERY        = "DELETE FROM CLUSTER_MEMBER WHERE namespace = $1 and cluster = $2 and member_id = $3 and attribute = $4"
	DELETE_ALL_QUERY    = "DELETE FROM CLUSTER_MEMBER WHERE namespace = $1 and cluster = $2"
	UPDATE_STATUS_QUERY = "" /* 139-byte string literal not displayed */
	UPDATE_ROLE_QUERY   = "" /* 139-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func Delete

func Delete(item util.ClusterMemberInfo) error

func DeleteALL

func DeleteALL(namespace, cluster string) error

func GetInvitedGroup

func GetInvitedGroup(clusterMember util.ClusterMemberInfo) (int, error)

func GetPendingUser

func GetPendingUser(clusterMember util.ClusterMemberInfo) (*util.ClusterMemberInfo, error)

func GetRemainClusterForSubject

func GetRemainClusterForSubject(namespace, subject, attribute string) (int, error)

func Insert

func Insert(item util.ClusterMemberInfo) error

func ListAllClusterUser

func ListAllClusterUser(cluster string, namespace string) ([]util.ClusterMemberInfo, error)

func ListClusterAllNamespace

func ListClusterAllNamespace(userId string, userGroups []string) ([]types.NamespacedName, error)

func ListClusterGroupMember

func ListClusterGroupMember(cluster string, namespace string) ([]util.ClusterMemberInfo, error)

func ListClusterInNamespace

func ListClusterInNamespace(userId string, userGroups []string, namespace string) ([]string, error)

func ListClusterMember

func ListClusterMember(cluster string, namespace string) ([]util.ClusterMemberInfo, error)

func ListClusterMemberWithOutPending

func ListClusterMemberWithOutPending(cluster string, namespace string) ([]util.ClusterMemberInfo, error)

func ListPendingUser

func ListPendingUser(cluster string, namespace string) ([]util.ClusterMemberInfo, error)

func UpdateRole

func UpdateRole(item util.ClusterMemberInfo) error

func UpdateStatus

func UpdateStatus(item *util.ClusterMemberInfo) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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