spectooling

package
v0.41.1-geaaru Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultPackageSanitized

type DefaultPackageSanitized struct {
	Name             string                     `json:"name" yaml:"name"`
	Version          string                     `json:"version" yaml:"version"`
	Category         string                     `json:"category" yaml:"category"`
	UseFlags         []string                   `json:"use_flags,omitempty" yaml:"use_flags,omitempty"`
	PackageRequires  []*DefaultPackageSanitized `json:"requires,omitempty" yaml:"requires,omitempty"`
	PackageConflicts []*DefaultPackageSanitized `json:"conflicts,omitempty" yaml:"conflicts,omitempty"`
	Provides         []*DefaultPackageSanitized `json:"provides,omitempty" yaml:"provides,omitempty"`

	Annotations map[string]interface{} `json:"annotations,omitempty" yaml:"annotations,omitempty"`

	// Path is set only internally when tree is loaded from disk
	Path string `json:"path,omitempty" yaml:"path,omitempty"`

	Description string   `json:"description,omitempty" yaml:"description,omitempty"`
	Uri         []string `json:"uri,omitempty" yaml:"uri,omitempty"`
	License     string   `json:"license,omitempty" yaml:"license,omitempty"`
	Hidden      bool     `json:"hidden,omitempty" yaml:"hidden,omitempty"`

	Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
}

func NewDefaultPackageSanitized

func NewDefaultPackageSanitized(p pkg.Package) *DefaultPackageSanitized

func NewDefaultPackageSanitizedFromYaml

func NewDefaultPackageSanitizedFromYaml(data []byte) (*DefaultPackageSanitized, error)

func (*DefaultPackageSanitized) Clone

func (*DefaultPackageSanitized) Yaml

func (p *DefaultPackageSanitized) Yaml() ([]byte, error)

Jump to

Keyboard shortcuts

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