mongodb

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sClusterColl

type K8sClusterColl struct {
	*mongo.Collection
	// contains filtered or unexported fields
}

func NewK8sClusterColl

func NewK8sClusterColl() *K8sClusterColl

func (*K8sClusterColl) FindConnectedClusters

func (c *K8sClusterColl) FindConnectedClusters() ([]*models.K8SCluster, error)

func (*K8sClusterColl) Get

func (c *K8sClusterColl) Get(id string) (*models.K8SCluster, error)

func (*K8sClusterColl) GetCollectionName

func (c *K8sClusterColl) GetCollectionName() string

func (*K8sClusterColl) UpdateConnectState

func (c *K8sClusterColl) UpdateConnectState(id string, disconnected bool) error

func (*K8sClusterColl) UpdateStatus

func (c *K8sClusterColl) UpdateStatus(cluster *models.K8SCluster) error

Jump to

Keyboard shortcuts

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