storage

package
v0.0.0-...-e841338 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VersionStorage

type VersionStorage interface {
	ReadVersionFile(file string) (*semver.Version, error)

	WriteVersionFile(file string, version semver.Version) error

	VersionFileExists(file string) bool
}

func NewVersionStorage

func NewVersionStorage(versionStorageType string, localDefaultVersion string) (VersionStorage, error)

type VersionStorageFile

type VersionStorageFile struct{}

func (VersionStorageFile) ReadVersionFile

func (s VersionStorageFile) ReadVersionFile(file string) (*semver.Version, error)

func (VersionStorageFile) VersionFileExists

func (s VersionStorageFile) VersionFileExists(file string) bool

func (VersionStorageFile) WriteVersionFile

func (s VersionStorageFile) WriteVersionFile(file string, version semver.Version) error

type VersionStorageLocal

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

func NewVersionStorageLocal

func NewVersionStorageLocal(versionString string) (*VersionStorageLocal, error)

func (VersionStorageLocal) ReadVersionFile

func (s VersionStorageLocal) ReadVersionFile(file string) (*semver.Version, error)

func (VersionStorageLocal) VersionFileExists

func (s VersionStorageLocal) VersionFileExists(file string) bool

func (*VersionStorageLocal) WriteVersionFile

func (s *VersionStorageLocal) WriteVersionFile(file string, version semver.Version) error

Jump to

Keyboard shortcuts

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