filesystem

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	Dir string
}

func (*Store) ReadDir

func (s *Store) ReadDir(path string) ([]os.FileInfo, error)

func (*Store) ReadFile

func (s *Store) ReadFile(path string) ([]byte, error)

func (*Store) Version

func (s *Store) Version() (string, error)

Version returns version of config files contained in Store.Dir. The directory is expected to be a git repository. Returned version uses a tag-like format: `v10.2.0` for tags, `v10.2.0-27-gf4262c857` for commits.

Jump to

Keyboard shortcuts

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