Documentation ¶
Index ¶
- func ModuleToImportName(module string) (string, error)
- func ObjsToStar(objs []runtime.Object, config Config) (string, error)
- func PkgToModule(pkgName string) (string, error)
- func YamlStrToStar(yamlStrs []string, config Config) (string, error)
- func YamlToStar(filePaths []string, config Config) (string, error)
- type Arg
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModuleToImportName ¶
ModuleToImportName converts a module name into the corresponding skycfg go package name.
func ObjsToStar ¶
ObjsToStar converts a slice of Kubernetes objects into a starlark string.
func PkgToModule ¶
PkgToModule converts a go package into the corresponding skycfg module name.
func YamlStrToStar ¶
YamlStrToStar converts a YAML string into a starlark representation.
Types ¶
type Arg ¶
Arg includes the details of an argument for the starlark entrypoint.
func (Arg) DefaultValueStr ¶
DefaultValueStr gets the default value for this argument.
func (Arg) RequiredStatement ¶
RequiredStatement returns a statement that ensures that this argument is set.
type Config ¶
Config stores the configuration associated with a YAML to starlark conversion.
func (Config) SubVariable ¶
SubVariable determines which variable (if any) a raw string should be replaced with.