mongodb

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CredsCollection string = "credentials"
)

Variables

This section is empty.

Functions

func InitStorage

func InitStorage(logVerbosity int, logWriter io.Writer) resources.StorageFactory

Types

type Store

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

func (*Store) AlreadyCreated

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

func (*Store) Connect

func (db *Store) Connect(ctx context.Context) error

func (*Store) DeleteCluster

func (db *Store) DeleteCluster() error

func (*Store) GetOneOrMoreClusters

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

func (*Store) Kill

func (db *Store) Kill() error

func (*Store) Read

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

Read implements resources.StorageFactory.

func (*Store) ReadCredentials

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

ReadCredentials implements resources.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 *types.StorageDocument) error

Write implements resources.StorageFactory.

func (*Store) WriteCredentials

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

WriteCredentials implements resources.StorageFactory.

Jump to

Keyboard shortcuts

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