push

package
v0.98.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package push pushes resources to the holos api server.

Index

Constants

View Source
const APIVersion = "holos.run/v1alpha1"

Variables

This section is empty.

Functions

func FindCueMod

func FindCueMod(name holos.InstancePath) (dir holos.PathCueMod, err error)

func PlatformForm

func PlatformForm(ctx context.Context, name string) (*object.Form, error)

PlatformForm builds a json powered web form from CUE code. The CUE code is expected to be derived from the code generated by the `holos generate platform` command.

Types

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

Instance represents a CUE instance.

func NewInstance

func NewInstance(name string) (*Instance, error)

func (*Instance) Export

func (i *Instance) Export(ctx context.Context) ([]byte, error)

Export builds the cue instance into a JSON byte slice. Equivalent of cue export.

func (*Instance) Value added in v0.90.0

func (i *Instance) Value(ctx context.Context) (*cue.Value, error)

Jump to

Keyboard shortcuts

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