skymod

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UtilModule

func UtilModule() starlark.Value

UtilModule defines a skycfg module with various helper functions in it.

func YamlModule

func YamlModule() starlark.Value

YamlModule returns a Starlark module for YAML helpers.

func YamlStrToObjs

func YamlStrToObjs(yamlStr string) ([]runtime.Object, error)

YamlStrToObjs converts a YAML string into a slice of Kubernetes objects.

Types

type Module

type Module struct {
	Name  string
	Attrs starlark.StringDict
}

Module is a skycfg module, i.e. a bundle of functions in a common namespace.

func (*Module) Attr

func (mod *Module) Attr(name string) (starlark.Value, error)

func (*Module) AttrNames

func (mod *Module) AttrNames() []string

func (*Module) Freeze

func (mod *Module) Freeze()

func (*Module) Hash

func (mod *Module) Hash() (uint32, error)

func (*Module) String

func (mod *Module) String() string

func (*Module) Truth

func (mod *Module) Truth() starlark.Bool

func (*Module) Type

func (mod *Module) Type() string

Jump to

Keyboard shortcuts

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