mongodb

package
v0.0.0-...-0714061 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderType = "mongodb-atlas"
View Source
const ResourceTypeMongodbAtlas = "mongodb-atlas"

Variables

This section is empty.

Functions

func ReadAtlasConfig

func ReadAtlasConfig(config *api.Config) (api.Config, error)

Types

type AtlasBackup

type AtlasBackup struct {
	Every     string `json:"every" yaml:"every"`         // e.g. 2h
	Retention string `json:"retention" yaml:"retention"` // e.g. 24h
}

type AtlasConfig

type AtlasConfig struct {
	Admins         []string                      `json:"admins" yaml:"admins"`
	Developers     []string                      `json:"developers" yaml:"developers"`
	InstanceSize   string                        `json:"instanceSize" yaml:"instanceSize"`
	OrgId          string                        `json:"orgId" yaml:"orgId"`
	ProjectId      string                        `json:"projectId" yaml:"projectId"`
	ProjectName    string                        `json:"projectName" yaml:"projectName"`
	Region         string                        `json:"region" yaml:"region"`
	PrivateKey     string                        `json:"privateKey" yaml:"privateKey"`
	PublicKey      string                        `json:"publicKey" yaml:"publicKey"`
	CloudProvider  string                        `json:"cloudProvider" yaml:"cloudProvider"`
	Backup         *AtlasBackup                  `json:"backup,omitempty" yaml:"backup,omitempty"`
	NetworkConfig  *AtlasNetworkConfig           `json:"networkConfig,omitempty" yaml:"networkConfig,omitempty"`
	ExtraProviders map[string]api.AuthDescriptor `json:"extraProviders,omitempty" yaml:"extraProviders,omitempty"`
	DiskSizeGB     *float64                      `json:"diskSizeGB,omitempty" yaml:"diskSizeGB,omitempty"`
	NumShards      *int                          `json:"numShards,omitempty" yaml:"numShards,omitempty"`
}

func (*AtlasConfig) CredentialsValue

func (r *AtlasConfig) CredentialsValue() string

func (*AtlasConfig) DependencyProviders

func (r *AtlasConfig) DependencyProviders() map[string]api.AuthDescriptor

func (*AtlasConfig) ProjectIdValue

func (r *AtlasConfig) ProjectIdValue() string

func (*AtlasConfig) ProviderType

func (r *AtlasConfig) ProviderType() string

type AtlasNetworkConfig

type AtlasNetworkConfig struct {
	PrivateLinkEndpoint *PrivateLinkEndpoint `json:"privateLinkEndpoint,omitempty" yaml:"privateLinkEndpoint,omitempty"`
	AllowAllIps         *bool                `json:"allowAllIps,omitempty" yaml:"allowAllIps,omitempty"`
	AllowCidrs          *[]string            `json:"allowCidrs,omitempty" yaml:"allowCidrs,omitempty"` // format "0.0.0.0/0"
}

type PrivateLinkEndpoint

type PrivateLinkEndpoint struct {
	ProviderName string `json:"providerName" yaml:"providerName"`
}

Jump to

Keyboard shortcuts

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