atlas

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Atlas

type Atlas struct {
	OrgID              string
	Public             string
	Private            string
	Client             *admin.APIClient
	ClientV20241113001 *adminv20241113001.APIClient
}

func AClient

func AClient() (Atlas, error)

func GetClientOrFail

func GetClientOrFail() *Atlas

func (*Atlas) CreateExportBucket

func (a *Atlas) CreateExportBucket(projectID, bucketName, roleID string) (*admin.DiskBackupSnapshotAWSExportBucket, error)

func (*Atlas) DeleteGlobalKey

func (a *Atlas) DeleteGlobalKey(key admin.ApiKeyUserDetails) error

func (*Atlas) GetDBUser

func (a *Atlas) GetDBUser(database, userName, projectID string) (*admin.CloudDatabaseUser, error)

func (*Atlas) GetDeployment

func (a *Atlas) GetDeployment(projectId, deploymentName string) (*admin.AdvancedClusterDescription, error)

func (*Atlas) GetDeploymentNames added in v2.6.0

func (a *Atlas) GetDeploymentNames(projectID string) []string

func (*Atlas) GetEncryptionAtRest

func (a *Atlas) GetEncryptionAtRest(projectID string) (*admin.EncryptionAtRest, error)

func (*Atlas) GetFlexInstance added in v2.8.1

func (a *Atlas) GetFlexInstance(projectId, deploymentName string) (*adminv20241113001.FlexClusterDescription20241113, error)

func (*Atlas) GetIntegrationByType

func (a *Atlas) GetIntegrationByType(projectId, iType string) (*admin.ThirdPartyIntegration, error)

func (*Atlas) GetOrgUsers

func (a *Atlas) GetOrgUsers() ([]admin.CloudAppUser, error)

func (*Atlas) GetUserByName

func (a *Atlas) GetUserByName(database, projectID, username string) (*admin.CloudDatabaseUser, error)

func (*Atlas) IsDeploymentExist

func (a *Atlas) IsDeploymentExist(projectID string, name string) bool

func (*Atlas) IsProjectExists

func (a *Atlas) IsProjectExists(g Gomega, projectID string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳