local

package
v0.0.0-...-6e5ba41 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package local implements functionality common to both the "localdisk" and "diskpacked" storage mechanisms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generationer

type Generationer struct {
	// contains filtered or unexported fields
}

func NewGenerationer

func NewGenerationer(rootDir string) *Generationer

NewGenerationer returns a struct for implementing blobserver.Generationer

func (Generationer) ResetStorageGeneration

func (g Generationer) ResetStorageGeneration() error

ResetStorageGeneration reinitializes the generation by recreating the GENERATION.dat file with a new random string

func (Generationer) StorageGeneration

func (g Generationer) StorageGeneration() (initTime time.Time, random string, err error)

StorageGeneration returns the generation's initialization time, and the random string. If the GENERATION.dat file does not exist under root yet, then creates it now (by calling ResetGeneration).

Jump to

Keyboard shortcuts

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