Documentation ¶
Index ¶
- Constants
- func BasicUser(crName, atlasUserName string, add ...func(user *v1.AtlasDatabaseUser)) *v1.AtlasDatabaseUser
- func CreateAdvancedDeployment(name string) *v1.AtlasDeployment
- func CreateAdvancedGeoshardedDeployment(name string) *v1.AtlasDeployment
- func CreateBasicDeployment(name string) *v1.AtlasDeployment
- func CreateBasicFreeDeployment(name string) *v1.AtlasDeployment
- func CreateDeploymentWithBackup(name string) *v1.AtlasDeployment
- func CreateDeploymentWithKeepPolicy(name string) *v1.AtlasDeployment
- func CreateDeploymentWithMultiregion(name string, providerName provider.ProviderName) *v1.AtlasDeployment
- func CreateDeploymentWithMultiregionAWS(name string) *v1.AtlasDeployment
- func CreateDeploymentWithMultiregionAzure(name string) *v1.AtlasDeployment
- func CreateDeploymentWithMultiregionGCP(name string) *v1.AtlasDeployment
- func CreateFreeAdvancedDeployment(name string) *v1.AtlasDeployment
- func CreateRegularGeoshardedDeployment(name string) *v1.AtlasDeployment
- func CreateServerlessDeployment(name string, providerName string, regionName string) *v1.AtlasDeployment
- func DefaultProject() *v1.AtlasProject
- func NewDeploymentWithBackupSpec() v1.AtlasDeploymentSpec
- func WithAdminRole() func(user *v1.AtlasDatabaseUser)
- func WithCustomRole(role, db, collection string) func(user *v1.AtlasDatabaseUser)
- func WithNamespace(namespace string) func(user *v1.AtlasDatabaseUser)
- func WithProject(project *v1.AtlasProject) func(user *v1.AtlasDatabaseUser)
- func WithReadWriteRole() func(user *v1.AtlasDatabaseUser)
- func WithSecretRef(name string) func(user *v1.AtlasDatabaseUser)
- func WithX509(newUserName string) func(user *v1.AtlasDatabaseUser)
Constants ¶
View Source
const ( InstanceSizeM2 = "M2" InstanceSizeM10 = "M10" InstanceSizeM20 = "M20" InstanceSizeM30 = "M30" InstanceSizeM0 = "M0" AWSRegion = "US_EAST_1" ServerlessProviderName = "SERVERLESS" )
View Source
const ( // build-in dbroles RoleBuildInAdmin string = "atlasAdmin" RoleBuildInReadWriteAny string = "readWriteAnyDatabase" RoleBuildInReadAny string = "readAnyDatabase" DefaultDatabaseName = "admin" )
View Source
const ProjectName = "my-project"
Variables ¶
This section is empty.
Functions ¶
func BasicUser ¶
func BasicUser(crName, atlasUserName string, add ...func(user *v1.AtlasDatabaseUser)) *v1.AtlasDatabaseUser
func CreateAdvancedDeployment ¶ added in v1.7.2
func CreateAdvancedDeployment(name string) *v1.AtlasDeployment
func CreateAdvancedGeoshardedDeployment ¶ added in v1.6.0
func CreateAdvancedGeoshardedDeployment(name string) *v1.AtlasDeployment
func CreateBasicDeployment ¶
func CreateBasicDeployment(name string) *v1.AtlasDeployment
func CreateBasicFreeDeployment ¶
func CreateBasicFreeDeployment(name string) *v1.AtlasDeployment
func CreateDeploymentWithBackup ¶
func CreateDeploymentWithBackup(name string) *v1.AtlasDeployment
func CreateDeploymentWithKeepPolicy ¶
func CreateDeploymentWithKeepPolicy(name string) *v1.AtlasDeployment
func CreateDeploymentWithMultiregion ¶
func CreateDeploymentWithMultiregion(name string, providerName provider.ProviderName) *v1.AtlasDeployment
func CreateDeploymentWithMultiregionAWS ¶
func CreateDeploymentWithMultiregionAWS(name string) *v1.AtlasDeployment
func CreateDeploymentWithMultiregionAzure ¶
func CreateDeploymentWithMultiregionAzure(name string) *v1.AtlasDeployment
func CreateDeploymentWithMultiregionGCP ¶
func CreateDeploymentWithMultiregionGCP(name string) *v1.AtlasDeployment
func CreateFreeAdvancedDeployment ¶ added in v1.7.0
func CreateFreeAdvancedDeployment(name string) *v1.AtlasDeployment
func CreateRegularGeoshardedDeployment ¶ added in v1.6.0
func CreateRegularGeoshardedDeployment(name string) *v1.AtlasDeployment
func CreateServerlessDeployment ¶ added in v1.5.0
func CreateServerlessDeployment(name string, providerName string, regionName string) *v1.AtlasDeployment
func DefaultProject ¶
func DefaultProject() *v1.AtlasProject
func NewDeploymentWithBackupSpec ¶
func NewDeploymentWithBackupSpec() v1.AtlasDeploymentSpec
func WithAdminRole ¶
func WithAdminRole() func(user *v1.AtlasDatabaseUser)
func WithCustomRole ¶
func WithCustomRole(role, db, collection string) func(user *v1.AtlasDatabaseUser)
func WithNamespace ¶ added in v1.7.2
func WithNamespace(namespace string) func(user *v1.AtlasDatabaseUser)
func WithProject ¶ added in v1.7.2
func WithProject(project *v1.AtlasProject) func(user *v1.AtlasDatabaseUser)
func WithReadWriteRole ¶
func WithReadWriteRole() func(user *v1.AtlasDatabaseUser)
func WithSecretRef ¶
func WithSecretRef(name string) func(user *v1.AtlasDatabaseUser)
func WithX509 ¶
func WithX509(newUserName string) func(user *v1.AtlasDatabaseUser)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.