Documentation ¶
Index ¶
Constants ¶
View Source
const MONGO_RS_DOCKER_COMPOSE = `` /* 1155-byte string literal not displayed */
View Source
const REPLICA_SET_CONFG = `` /* 192-byte string literal not displayed */
View Source
const SETUP_DOCKER = `FROM mongo:4
COPY replicaSet.js .
COPY setup.sh .
`
View Source
const SETUP_SHELL = `#!/usr/bin/env bash
set -e
sleep 10 | echo Sleeping
mongo mongodb://mongo-rs0-0:27017 < replicaSet.js`
Variables ¶
This section is empty.
Functions ¶
func GetLocalIP ¶
func RenderTemplateFile ¶
Types ¶
type ResourceConfig ¶
type ResourceConfig struct { Kind string `yaml:"kind"` Host string `yaml:"host"` DataDir string `yaml:"data-dir"` SetupDir string `yaml:"setup-dir"` DatabaseName string `yaml:"database"` User string `yaml:"user"` Password string `yaml:"password"` }
func DefaultMongoDBConfig ¶
func DefaultMongoDBConfig() *ResourceConfig
func DefaultMongoReplicaSetConfig ¶
func DefaultMongoReplicaSetConfig() *ResourceConfig
func NewResourceConfig ¶
func NewResourceConfig() *ResourceConfig
func ReadConfig ¶
func ReadConfig(reader io.Reader) (*ResourceConfig, error)
func ReadConfigFromFile ¶
func ReadConfigFromFile(name string) (*ResourceConfig, error)
Click to show internal directories.
Click to hide internal directories.