Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractYAML ¶ added in v0.101.7
ExtractYAML extracts yaml encoded data from file paths. The data is unified into one cue.Value. If a path element is a directory, all files in the directory are loaded non-recursively.
Attribution: https://github.com/cue-lang/cue/issues/3504 Deprecated: Use cue embed instead.
Types ¶
type Instance ¶ added in v0.100.0
type Instance struct {
// contains filtered or unexported fields
}
Instance represents a cue instance to build. Use LoadInstance to create a new Instance.
func LoadInstance ¶ added in v0.100.0
LoadInstance loads the cue configuration instance at path. External data file paths are loaded by calling ExtractYAML providing filepaths. The extracted data values are unified with the platform configuration cue.Value in the returned Instance.
func (*Instance) Discriminate ¶ added in v0.100.0
Discriminate calls the discriminate func for side effects. Useful to switch over the instance kind and apiVersion.
type Platform ¶ added in v0.100.0
Platform represents a common abstraction over different platform schema versions.
func LoadPlatform ¶ added in v0.100.0
func (*Platform) Build ¶ added in v0.100.0
func (p *Platform) Build(ctx context.Context, opts PlatformOpts) error
Build calls PlatformOpts Fn(ctx, component) concurrently.