version

package
v0.0.0-...-b284157 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchType

type ArchType string

type DistroType

type DistroType string

type Location

type Location struct {
	Filename  string // Filename for directory containing version's download
	URLPrefix string // URL prefix to fetch the tarball from MongoDB
	URLSuffix string // URL suffix (".tgz", ."zip") for the tarball
}

type OSType

type OSType string

type ReleaseType

type ReleaseType struct {
	Version    int
	Major      int
	Minor      int
	Modifier   string // e.g. "rc1"
	Enterprise bool   // true if Enterprise edition
}

func ToRelease

func ToRelease(rs string) (ReleaseType, error)

Given a string representing a release, return a ReleaseType

type Version

type Version struct {
	Arch    ArchType    // hardware platform
	OS      OSType      // operating system
	Distro  DistroType  // Linux distribution
	Release ReleaseType // MongoDB Release
}

func ToVersion

func ToVersion(fn string) (*Version, error)

Convert filename to Version

func (*Version) ToLocation

func (v *Version) ToLocation() (*Location, error)

Get filename and URL prefix for a Version

func (*Version) Validate

func (v *Version) Validate() error

Validate a Version

Jump to

Keyboard shortcuts

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