filesystem

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 8 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) ([]fs.DirEntry, 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