local

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrSourceNotADirectory is an error indicated when the given source directory is not a directory by itself
	ErrSourceNotADirectory = errors.New("Source is not a directory")
)

Functions

func NewSource

func NewSource(localDir string, commitID string, log logger.Log) source.Source

NewSource creates a new instance of source that is a local directory. Caution: This is not to be used in production though. Primarily for test purposes

Types

type Source

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

Source represents a local source

func (*Source) Copy

func (mySource *Source) Copy(buildRoot string) error

Copy files to buildRoot

func (*Source) GetCommitID added in v0.1.13

func (mySource *Source) GetCommitID() string

GetCommitID returns the commit ID / commit hash of the project under discussion

func (*Source) GetProjectName

func (mySource *Source) GetProjectName() string

GetProjectName returns the name of the project represented by the source

Jump to

Keyboard shortcuts

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