push

package
v0.87.0 Latest Latest
Warning

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

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

Documentation

Overview

Package push pushes resources to the holos api server.

Index

Constants

This section is empty.

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.

Jump to

Keyboard shortcuts

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