pkg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonnetFile     = "jsonnetfile.json"
	JsonnetLockFile = "jsonnetfile.lock.json"
	VersionMismatch = errors.New("multiple colliding versions specified")
)

Functions

func ChooseJsonnetFile

func ChooseJsonnetFile(dir string) (string, bool, error)

func FileExists

func FileExists(path string) (bool, error)

func Install

func Install(ctx context.Context, isLock bool, dependencySourceIdentifier string, m spec.JsonnetFile, dir string) (lock *spec.JsonnetFile, err error)

func LoadJsonnetfile

func LoadJsonnetfile(filepath string) (spec.JsonnetFile, error)

Types

type GitPackage

type GitPackage struct {
	Source *spec.GitSource
}

func (*GitPackage) Install

func (p *GitPackage) Install(ctx context.Context, dir, version string) (lockVersion string, err error)

type Interface

type Interface interface {
	Install(ctx context.Context, dir, version string) (lockVersion string, err error)
}

func NewGitPackage

func NewGitPackage(source *spec.GitSource) Interface

Jump to

Keyboard shortcuts

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