vproj

package
v0.0.0-...-79a645e Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FileName ..
	FileName          = ".vorteilproject"
	UnpackTempPattern = "vorteil-unpack-"
)

Variables

This section is empty.

Functions

func CreateFromPackage

func CreateFromPackage(path string, pkg vpkg.Reader) error

CreateFromPackage tars the reader and proceeds to unpack on path

func NewImportSharedObject

func NewImportSharedObject(projectPath string, excludeDefaultLibs bool, logger elog.View) (*importSharedObjectsOperation, error)

NewImportSharedObject : This function is used to create and initialize a importSharedObjectsOperation.

This function requires three args:
		projectPath: The target project you wish to scan, and import shared objects to.
		excludeDefaultLibs: Whether or not to exclude default libraries.
		logger: logger object to log with
Once initialized a importSharedObjectsOperation object will be returned.
Running importSharedObjectsOperation.Start() will then begin the operation.

func NewProject

func NewProject(path string, flagVCFG *vcfg.VCFG, logger elog.View) error

NewProject intializes a new project that vorteil is able to run

func Split

func Split(src string) (path string, target string)

Split takes src and returns the path and target of provided value

func TarFromPackage

func TarFromPackage(w io.Writer, pkg vpkg.Reader) error

TarFromPackage writes a tar to w from the package reader

Types

type Project

type Project struct {
	Dir     string
	Project ProjectData
}

Project ..

func LoadProject

func LoadProject(path string) (*Project, error)

LoadProject ..

func (*Project) Target

func (p *Project) Target(name string) (*Target, error)

Target ..

type ProjectData

type ProjectData struct {
	IgnorePatterns []string     `toml:"ignore" json:"ignore"`
	Targets        []TargetData `toml:"target,omitempty" json:"target"`
}

ProjectData ..

func (*ProjectData) Marshal

func (p *ProjectData) Marshal() ([]byte, error)

Marshal ..

type Target

type Target struct {
	Name   string
	Dir    string
	Ignore []string
	Icon   string
	VCFGs  []string
	Files  []string
}

Target ..

func (*Target) NewBuilder

func (t *Target) NewBuilder() (vpkg.Builder, error)

NewBuilder ...

func (*Target) VCFG

func (t *Target) VCFG() (*vcfg.VCFG, error)

VCFG ..

type TargetData

type TargetData struct {
	Name  string   `toml:"name" json:"name"`
	VCFGs []string `toml:"vcfgs,omitempty" json:"vcfgs"`
	Icon  string   `toml:"icon,omitempty" json:"icon"`
	Files []string `toml:"files,omitempty" json:"files"`
}

TargetData ..

Jump to

Keyboard shortcuts

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