versioner

package
v0.9.0-beta6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2014 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Factories = map[string]func(map[string]string) Versioner{}

Functions

This section is empty.

Types

type Simple

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

The type holds our configuration

func (Simple) Archive

func (v Simple) Archive(repoPath, filePath string) error

Move away the named file to a version archive. If this function returns nil, the named file does not exist any more (has been archived).

type Versioner

type Versioner interface {
	Archive(repoPath, filePath string) error
}

func NewSimple

func NewSimple(params map[string]string) Versioner

The constructor function takes a map of parameters and creates the type.

Jump to

Keyboard shortcuts

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