dependencies

package
v0.0.0-...-c4bc982 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

View Source
const (
	GITHUB       = "github"
	WHISK_SYSTEM = "whisk.system"
)

Variables

This section is empty.

Functions

func CompareDependencyRecords

func CompareDependencyRecords(d1 DependencyRecord, d2 DependencyRecord) bool

func LocationIsBinding

func LocationIsBinding(location string) bool

func LocationIsGithub

func LocationIsGithub(location string) bool

Types

type DependencyRecord

type DependencyRecord struct {
	ProjectPath string //root of the source codes of dependent projects, e.g. src_project_path/Packages
	Packagename string //name of the package
	Location    string //location
	Version     string //version
	Parameters  whisk.KeyValueArr
	Annotations whisk.KeyValueArr
	IsBinding   bool
	BaseRepo    string
	SubFolder   string
}

func NewDependencyRecord

func NewDependencyRecord(projectPath string,
	packagename string,
	location string,
	version string,
	parameters whisk.KeyValueArr,
	annotations whisk.KeyValueArr,
	isBinding bool) DependencyRecord

type GitReader

type GitReader struct {
	Name string // the name of the dependency
	Url  string // pkg repo location, e.g. github.com/user/repo
	//BaseRepo    string	// base url of the git repo, e.g. github.com/user/repo
	//SubFolder   string	// subfolder of the package under BaseUrl
	Version     string
	ProjectPath string // The root folder of all dependency packages, e.g. src_project_path/Packages
	// contains filtered or unexported fields
}

func NewGitReader

func NewGitReader(projectName string, record DependencyRecord) *GitReader

func (*GitReader) CloneDependency

func (reader *GitReader) CloneDependency() error

Jump to

Keyboard shortcuts

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