Documentation ¶
Index ¶
- Constants
- func BuildKCLOptions(o *builders.Options) ([]kcl.Option, error)
- func CompileUsingCmd(sourceKclFiles []string, targetFile string, args map[string]string, ...) (string, string, error)
- func EnableRPC() bool
- func Init() error
- func KCLResult2Intent(kclResults []kcl.KCLResult) (*intent.Intent, error)
- func Overwrite(fileName string, overrides []string) (bool, error)
- type Builder
- type CompileResult
Constants ¶
View Source
const ( MaxLogLength = 3751 IncludeSchemaTypePath = "include_schema_type_path" )
View Source
const ( KusionKclPathEnv = "KUSION_KCL_PATH" ID = "id" Type = "type" Attributes = "attributes" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CompileResult ¶
CompileResult is the result of a KCL compilation
func NewCompileResult ¶
func NewCompileResult(k *kcl.KCLResultList) *CompileResult
NewCompileResult news a CompileResult by KCLResultList
func NewCompileResultByMapList ¶
func NewCompileResultByMapList(mapList []map[string]interface{}) *CompileResult
NewCompileResultByMapList news a CompileResult by map array
func (*CompileResult) RawYAML ¶
func (c *CompileResult) RawYAML() string
Click to show internal directories.
Click to hide internal directories.