atlas

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: Apache-2.0 Imports: 12 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  *mongodbatlas.Client
}

func AClient

func AClient() (Atlas, error)

func GetClientOrFail added in v1.2.0

func GetClientOrFail() *Atlas

func (*Atlas) AddKeyWithAccessList

func (a *Atlas) AddKeyWithAccessList(projectID string, roles, access []string) (*mongodbatlas.APIKey, error)

func (*Atlas) DeleteGlobalKey added in v1.1.0

func (a *Atlas) DeleteGlobalKey(key mongodbatlas.APIKey) error

func (*Atlas) GetAdvancedDeployment added in v1.0.0

func (a *Atlas) GetAdvancedDeployment(projectId, deploymentName string) (*mongodbatlas.AdvancedCluster, error)

func (*Atlas) GetDBUser added in v1.2.0

func (a *Atlas) GetDBUser(database, userName, projectID string) (*mongodbatlas.DatabaseUser, error)

func (*Atlas) GetDeployment added in v1.2.0

func (a *Atlas) GetDeployment(projectID string, name string) mongodbatlas.Cluster

func (*Atlas) GetDeployments added in v1.2.0

func (a *Atlas) GetDeployments(projectID string) []mongodbatlas.Cluster

func (*Atlas) GetIntegrationbyType added in v1.0.0

func (a *Atlas) GetIntegrationbyType(projectId, iType string) (*mongodbatlas.ThirdPartyIntegration, error)

func (*Atlas) GetPrivateEndpoint added in v0.7.0

func (a *Atlas) GetPrivateEndpoint(projectID, provider string) ([]mongodbatlas.PrivateEndpointConnection, error)

func (*Atlas) GetServerlessInstance added in v1.0.0

func (a *Atlas) GetServerlessInstance(projectId, deploymentName string) (*mongodbatlas.Cluster, error)

func (*Atlas) GetUserByName added in v1.1.0

func (a *Atlas) GetUserByName(database, projectID, username string) (*mongodbatlas.DatabaseUser, error)

func (*Atlas) IsDeploymentExist added in v1.2.0

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

func (*Atlas) IsProjectExists added in v1.2.0

func (a *Atlas) IsProjectExists(projectID string) bool

Jump to

Keyboard shortcuts

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