api

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GOOSENV = os.Getenv("GOOS")

Functions

func BuildProject

func BuildProject(project common.AppProject, options common.BuildOptions) error

func CreateLegacyMetadata

func CreateLegacyMetadata(path, contribType, contribPkg string) error

func CreateProject

func CreateProject(basePath, appName, appCfgPath, coreVersion string) (common.AppProject, error)

func GetAliasRef

func GetAliasRef(contribType string, alias string) (string, bool)

func GetTempDir

func GetTempDir() (string, error)

func InstallContribBundle

func InstallContribBundle(project common.AppProject, path string) error

func InstallLegacySupport

func InstallLegacySupport(project common.AppProject) error

func InstallPackage

func InstallPackage(project common.AppProject, pkg string) error

func InstallReplacedPackage

func InstallReplacedPackage(project common.AppProject, replacedPath string, pkg string) error

func ListContribs

func ListContribs(project common.AppProject, jsonFormat bool, filter string) error

func ListOrphanedRefs

func ListOrphanedRefs(project common.AppProject, jsonFormat bool) error

func ListProjectImports

func ListProjectImports(project common.AppProject) error

func NewAppProject

func NewAppProject(appDir string) common.AppProject

func RegisterAlias

func RegisterAlias(contribType string, alias, ref string)

func RenderTemplate

func RenderTemplate(w io.Writer, text string, data interface{})

RenderTemplate renders the specified template

func ResolveProjectImports

func ResolveProjectImports(project common.AppProject) error

func SetVerbose

func SetVerbose(enable bool)

func SyncProjectImports

func SyncProjectImports(project common.AppProject) error

func UpdatePkg

func UpdatePkg(project common.AppProject, pkg string) error

func Verbose

func Verbose() bool

Types

type AppBuilder

type AppBuilder struct {
}

func (*AppBuilder) Build

func (*AppBuilder) Build(project common.AppProject) error

type ContribSpec

type ContribSpec struct {
	Name        string      `json:"name"`
	Type        string      `json:"type"`
	Description string      `json:"description"`
	Homepage    string      `json:"homepage"`
	Ref         string      `json:"ref"`
	Path        string      `json:"path"`
	Descriptor  string      `json:"descriptor"`
	IsLegacy    interface{} `json:"isLegacy,omitempty"`
}

type ListFilter

type ListFilter int

type ShimBuilder

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

func (*ShimBuilder) Build

func (sb *ShimBuilder) Build(project common.AppProject) error

Jump to

Keyboard shortcuts

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