handlers

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloneHandler

type CloneHandler interface {
	Run(ctx context.Context, dryrun bool, p *CloneParams) (err error)
}

func NewClone

func NewClone(init StorerInitializer) CloneHandler

type CloneHandlerFunc

type CloneHandlerFunc func(ctx context.Context, dryrun bool, p *CloneParams) error

func (CloneHandlerFunc) Run added in v0.0.20

func (f CloneHandlerFunc) Run(ctx context.Context, dryrun bool, p *CloneParams) error

type CloneParams

type CloneParams struct {
	Path   string
	Branch string
	URL    string
	Cwd    string
}

type StorerInitializer

type StorerInitializer func(string) (storage.Storer, billy.Filesystem)

func SetFileSystemStore

func SetFileSystemStore() StorerInitializer

func SetMemoryStore

func SetMemoryStore() StorerInitializer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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