mongodb

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CredsCollection string = "credentials"
)

Variables

This section is empty.

Functions

func ExportEndpoint added in v1.2.0

func ExportEndpoint() (map[string][]byte, error)

Types

type Store

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

func NewClient added in v1.2.0

func NewClient(parentCtx context.Context, _log types.LoggerFactory) *Store

func (*Store) AlreadyCreated

func (db *Store) AlreadyCreated(cloud consts.KsctlCloud, region, clusterName string, clusterType consts.KsctlClusterType) error

func (*Store) Connect

func (db *Store) Connect() error

func (*Store) DeleteCluster

func (db *Store) DeleteCluster() error

func (*Store) Export added in v1.2.0

func (*Store) GetOneOrMoreClusters

func (db *Store) GetOneOrMoreClusters(filters map[consts.KsctlSearchFilter]string) (map[consts.KsctlClusterType][]*storageTypes.StorageDocument, error)

func (*Store) Import added in v1.2.0

func (s *Store) Import(src *types.StorageStateExportImport) error

func (*Store) Kill

func (db *Store) Kill() error

func (*Store) Read

func (db *Store) Read() (*storageTypes.StorageDocument, error)

Read implements types.StorageFactory.

func (*Store) ReadCredentials

func (db *Store) ReadCredentials(cloud consts.KsctlCloud) (*storageTypes.CredentialsDocument, error)

ReadCredentials implements types.StorageFactory.

func (*Store) Setup

func (db *Store) Setup(cloud consts.KsctlCloud, region, clusterName string, clusterType consts.KsctlClusterType) error

func (*Store) Write

func (db *Store) Write(data *storageTypes.StorageDocument) error

Write implements types.StorageFactory.

func (*Store) WriteCredentials

func (db *Store) WriteCredentials(cloud consts.KsctlCloud, data *storageTypes.CredentialsDocument) error

WriteCredentials implements types.StorageFactory.

Jump to

Keyboard shortcuts

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