api

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0 Imports: 11 Imported by: 9

Documentation

Index

Constants

View Source
const KCL_PKG_TAR = "*.tar"

Variables

This section is empty.

Functions

func RunOci

func RunOci(ociRef, version string, entryFiles []string, vendorMode bool, kclArgs string) (string, error)

RunOci will compile the kcl package from an OCI reference.

func RunPkg

func RunPkg(entryFiles []string, vendorMode bool, kclArgs string) (string, error)

RunPkg will compile current kcl package.

func RunPkgInPath

func RunPkgInPath(pkgPath string, entryFilePaths []string, vendorMode bool, kclArgs string) (string, error)

RunPkgInPath will load the 'KclPkg' from path 'pkgPath'. And run the kcl package with entry file in 'entryFilePath' in 'vendorMode'.

func RunTar

func RunTar(tarPath string, entryFiles []string, vendorMode bool, kclArgs string) (string, error)

RunTar will compile the kcl package from a kcl package tar.

Types

This section is empty.

Jump to

Keyboard shortcuts

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