internal

package
v0.0.0-...-b0d8bec Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, ctxCancel context.CancelFunc, opts *git.CloneOptions, interval time.Duration, addr string)

Types

type FileConnector

type FileConnector struct {
	billy.Filesystem
	billy.File
	// contains filtered or unexported fields
}

func (FileConnector) Readdir

func (f FileConnector) Readdir(count int) ([]fs.FileInfo, error)

Readdir reads all contents regardless of count given, due to the underlying billy.Filesystem. It will not return more then count slice entries.

func (FileConnector) Stat

func (f FileConnector) Stat() (fs.FileInfo, error)

type FileSystemConnector

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

func NewFileSystemConnector

func NewFileSystemConnector(mfs billy.Filesystem) FileSystemConnector

func (FileSystemConnector) Open

func (f FileSystemConnector) Open(name string) (http.File, error)

Jump to

Keyboard shortcuts

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