storage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "git"

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	Path string `koanf:"path"`
	Root string `koanf:"root,omitempty"`
}

func NewGitStorage

func NewGitStorage(path string, logger *zap.Logger) *Git

func (*Git) CheckGitRepo

func (g *Git) CheckGitRepo() (valid bool, path string, err error)

func (*Git) WriteStateFile

func (g *Git) WriteStateFile(file string, content []byte) error

Jump to

Keyboard shortcuts

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