plugins

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category added in v0.0.4

type Category struct {
	Name    string    `json:"name"`
	Objects []*Object `json:"objects,omitempty"`
}

type Export

type Export struct {
	Name        string      `json:"name"`
	Version     string      `json:"version"`
	Path        string      `json:"path"` // its file name
	Description string      `json:"description"`
	Categories  []*Category `json:"categories,omitempty"`
}

func NewPlugin

func NewPlugin(name, version, description string) *Export

func (*Export) AddCategory

func (p *Export) AddCategory(categoryName string)

func (*Export) AddChildObject added in v0.0.6

func (p *Export) AddChildObject(categoryName, parentID, childID, childExport string) error

func (*Export) AddObject added in v0.0.6

func (p *Export) AddObject(categoryName, objectID, export string) error

func (*Export) GetAllObjects added in v0.0.6

func (p *Export) GetAllObjects() []*Object

func (*Export) GetCategory

func (p *Export) GetCategory(categoryName string) (*Category, error)

func (*Export) GetObjects added in v0.0.6

func (p *Export) GetObjects(export *Export) []*Object

type Object added in v0.0.6

type Object struct {
	ID       string    `json:"id"`
	Export   string    `json:"export"`
	Children []*Object `json:"children,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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