Documentation ¶
Index ¶
- Constants
- func BuildOptions(workDir string, settings, arguments, overrides []string, ...) ([]kcl.Option, error)
- func CompileUsingCmd(sourceKclFiles []string, targetFile string, args map[string]string, ...) (string, string, error)
- func EnableRPC() bool
- func GetKclPath() string
- func GetKclvmPath() string
- func Init() error
- func Overwrite(fileName string, overrides []string) (bool, error)
- type CompileResult
- type Generator
Constants ¶
View Source
const ( KusionKclPathEnv = "KUSION_KCL_PATH" ID = "id" Type = "type" Attributes = "attributes" )
Variables ¶
This section is empty.
Functions ¶
func BuildOptions ¶
Types ¶
type CompileResult ¶
The result of a KCL compilation
func NewCompileResult ¶
func NewCompileResult(k *kcl.KCLResultList) *CompileResult
New a CompileResult by KCLResultList
func NewCompileResultByMapList ¶
func NewCompileResultByMapList(mapList []map[string]interface{}) *CompileResult
New a CompileResult by map array
func Run ¶
func Run(o *generator.Options, stack *projectstack.Stack) (*CompileResult, error)
func (*CompileResult) RawYAML ¶
func (c *CompileResult) RawYAML() string
Click to show internal directories.
Click to hide internal directories.