model

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexMatchLine added in v1.0.0

func IndexMatchLine(ret, target string) (string, bool)

IndexMatchLine will index and extract the line contains the pattern.

Types

type Instance

type Instance interface {
	String() string
	Unstructured() (*unstructured.Unstructured, error)
	IsBase() bool
	Unify(other Instance) error
	Compile() ([]byte, error)
}

Instance defines Model Interface

func NewBase

func NewBase(v cue.Value) (Instance, error)

NewBase create a base instance

func NewOther

func NewOther(v cue.Value) (Instance, error)

NewOther create a non-base instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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