util

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackupTmpDir         = "tmp"
	BackupFilePerm       = 0600
	BackupFilenameSuffix = "etcd.backup"
)

Variables

This section is empty.

Functions

func FilterAndSortBackups

func FilterAndSortBackups(names []string) []string

func GetLatestBackupName

func GetLatestBackupName(names []string) string

func IsBackup

func IsBackup(name string) bool

func MakeBackupName

func MakeBackupName(ver string, rev int64) string

func MustParseRevision

func MustParseRevision(name string) int64

func ToMB

func ToMB(s int64) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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