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 (p *DefaultPackageSanitized) Clone() (*DefaultPackageSanitized, error)
func (*DefaultPackageSanitized) Yaml ¶
func (p *DefaultPackageSanitized) Yaml() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.