package version

import "github.com/coreos/etcd/version"

Package version implements etcd version parsing and contains latest version information.

Index

Variables

var (
	// MinClusterVersion is the min cluster version this etcd binary is compatible with.
	MinClusterVersion = "2.2.0"
	Version           = "2.3.8"

	// Git SHA Value will be set during build
	GitSHA = "Not provided (use ./build instead of go build)"
)

Functions

func Cluster

func Cluster(v string) string

Cluster only keeps the major.minor.

Types

type DataDirVersion

type DataDirVersion string

DataDirVersion is an enum for versions of etcd logs.

const (
	DataDirUnknown  DataDirVersion = "Unknown WAL"
	DataDir2_0      DataDirVersion = "2.0.0"
	DataDir2_0Proxy DataDirVersion = "2.0 proxy"
	DataDir2_0_1    DataDirVersion = "2.0.1"
)

func DetectDataDir

func DetectDataDir(dirpath string) (DataDirVersion, error)

type Versions

type Versions struct {
	Server  string `json:"etcdserver"`
	Cluster string `json:"etcdcluster"`
}

Source Files

version.go

Version
v2.3.8+incompatible (latest)
Published
Feb 16, 2017
Platform
linux/amd64
Imports
6 packages
Last checked
19 hours ago

Tools for package owners.