Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config keeps the configuration values for downloading and storing the Mongo binary
type DownloadSpec ¶
type DownloadSpec struct { // Platform is "osx" or "linux" Platform string // Arch Arch string // OSName is one of: // - ubuntu2004 // - ubuntu1804 // - ubuntu1604 // - debian10 // - debian92 // - amazon2 // - "" for MacOS OSName string // contains filtered or unexported fields }
DownloadSpec specifies what copy of MongoDB to download
func MakeDownloadSpec ¶
func MakeDownloadSpec(version Version) (*DownloadSpec, error)
MakeDownloadSpec returns a DownloadSpec for the current operating system
func (*DownloadSpec) GetDownloadURL ¶
func (spec *DownloadSpec) GetDownloadURL() (string, error)
GetDownloadURL returns the download URL to download the binary from the MongoDB website
func (*DownloadSpec) Version ¶
func (spec *DownloadSpec) Version() string
Version returns the MongoDb version
type UnsupportedMongoVersionError ¶
type UnsupportedMongoVersionError struct {
// contains filtered or unexported fields
}
UnsupportedMongoVersionError is used to indicate we do not know how to download the given version of MongoDB
func (*UnsupportedMongoVersionError) Error ¶
func (err *UnsupportedMongoVersionError) Error() string
type UnsupportedSystemError ¶
type UnsupportedSystemError struct {
// contains filtered or unexported fields
}
UnsupportedSystemError is used to indicate that we do not support automatic selection of the right MongoDB binary for your system
func (*UnsupportedSystemError) Error ¶
func (err *UnsupportedSystemError) Error() string
type Version ¶
Version represents a version (Major.Minor.Patch)
func NewVersion ¶
NewVersion parses the version string and creates a Version object
func (*Version) IsGreaterOrEqual ¶
IsGreaterOrEqual checks if the version is greater or equal than another version