jsonnet

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(ctx context.Context, root string) (*loader, error)

Types

type Extractor

type Extractor struct {
}

Extractor from jsonnet

func (Extractor) Detect

func (Extractor) Detect(ctx context.Context, src string) (bool, map[string]string)

func (*Extractor) Extract

func (e *Extractor) Extract(ctx context.Context, src string) (files []*cueast.File, err error)

func (Extractor) Name

func (Extractor) Name() string

type File

type File struct {
	Name    string
	Data    []byte
	Imports map[string]string
}

func (*File) String

func (f *File) String() string

Jump to

Keyboard shortcuts

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