storage

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectStorage

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

ProjectStorage struct to store locally Gitlab repository

func New

func New(fs Storager) ProjectStorage

New returns a new ProjectStorage

func (ProjectStorage) DirExists

func (s ProjectStorage) DirExists(path string) (bool, error)

DirExists checks if a directory exists

type Storager

type Storager interface {
	Stat(path string) (os.FileInfo, error)
}

Storager interface defines the methods to stat a file

Jump to

Keyboard shortcuts

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