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
Click to show internal directories.
Click to hide internal directories.