meta

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2019 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Name string
	URI  string
}

type Core

type Core struct {
	VersionConstraint string
}

func (Core) GetConstraint

func (d Core) GetConstraint() (version.Constraints, error)

type Data

type Data struct {
	ID           ID
	Author       Author
	Dependencies []Dependency
	Description  Description
	Core         Core
	Interface    Interface
	License      []License
	Links        []Link
	Repository   Repository
	Tags         []string
}

func (Data) GetAuthor

func (m Data) GetAuthor() Author

func (Data) GetCore

func (m Data) GetCore() Core

func (Data) GetDependencies

func (m Data) GetDependencies() []Dependency

func (Data) GetDescription

func (m Data) GetDescription() Description

func (Data) GetInterface

func (m Data) GetInterface() Interface

func (Data) GetLicense

func (m Data) GetLicense() []License
func (m Data) GetLinks() []Link

func (Data) GetRepository

func (m Data) GetRepository() Repository

func (Data) GetTags

func (m Data) GetTags() []string

func (Data) Id

func (m Data) Id() ID

type Dependency

type Dependency struct {
	ID         PluginID
	Constraint string
	Interface  Interface
}

func (Dependency) GetConstraint

func (d Dependency) GetConstraint() (version.Constraints, error)

func (Dependency) String

func (d Dependency) String() string

type Description

type Description struct {
	Name        string
	Description string
}

type ID

type ID struct {
	ID      PluginID
	Version string
}

func (ID) GetVersion

func (id ID) GetVersion() (version.Version, error)

func (ID) String

func (id ID) String() string

type Interface

type Interface string

func NewInterface

func NewInterface(name, version string) Interface

func (Interface) Dependency

func (i Interface) Dependency() Dependency

func (Interface) Equal

func (i Interface) Equal(other Interface) bool

func (Interface) IsUndefined

func (i Interface) IsUndefined() bool

func (Interface) Name

func (i Interface) Name() string

func (Interface) String

func (i Interface) String() string

func (Interface) Version

func (i Interface) Version() string

type License

type License struct {
	Title string
	Type  string
	URI   string
}
type Link struct {
	Title string
	URL   string
}

type Meta

type Meta interface {
	Id() ID
	GetAuthor() Author
	GetDependencies() []Dependency
	GetDescription() Description
	GetCore() Core
	GetInterface() Interface
	GetLicense() []License
	GetLinks() []Link
	GetRepository() Repository
	GetTags() []string
}

type PluginID

type PluginID string

type Repository

type Repository struct {
	Type string
	URI  string
}

Jump to

Keyboard shortcuts

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