cmd

package
v1.0.0-beta5 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute executes the root command.

func LoadSchemaFromFileOrRepo

func LoadSchemaFromFileOrRepo(compiledSchema, repoDir, schemaName string) (*ls.Layer, error)

func OutputIngestedGraph

func OutputIngestedGraph(outFormat string, target *digraph.Graph, wr io.Writer, includeSchema bool) error

func ReadGraph

func ReadGraph(gfile []string) (*digraph.Graph, error)

Types

type ImportJSONSchemaRequest

type ImportJSONSchemaRequest struct {
	Entities   []jsonsch.Entity   `json:"entities"`
	SchemaID   string             `json:"schemaId"`
	Schema     string             `json:"schemaManifest"`
	ObjectType string             `json:"objectType"`
	Layers     []SliceByTermsSpec `json:"layers"`
}

func (*ImportJSONSchemaRequest) CompileAndImport

func (req *ImportJSONSchemaRequest) CompileAndImport() ([]jsonsch.ImportedEntity, error)

func (*ImportJSONSchemaRequest) SetSchemaNames

func (req *ImportJSONSchemaRequest) SetSchemaNames()

func (*ImportJSONSchemaRequest) Slice

type SliceByTermsSpec

type SliceByTermsSpec struct {
	Type  string   `json:"type"`
	Terms []string `json:"terms"`
	ID    string   `json:"@id"`
	File  string   `json:"file"`
}

func (SliceByTermsSpec) Slice

func (spec SliceByTermsSpec) Slice(sourceLayer *ls.Layer, targetType string, templateData interface{}) (*ls.Layer, error)

Jump to

Keyboard shortcuts

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