versioner.go 501 B

12345678910111213
  1. // Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file).
  2. // All rights reserved. Use of this source code is governed by an MIT-style
  3. // license that can be found in the LICENSE file.
  4. // Package versioner implements common interfaces for file versioning and a
  5. // simple default versioning scheme.
  6. package versioner
  7. type Versioner interface {
  8. Archive(filePath string) error
  9. }
  10. var Factories = map[string]func(repoID string, repoDir string, params map[string]string) Versioner{}