modulemd

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API added in v0.3.8

type API struct {
	Rpms []string `yaml:"rpms,omitempty"`
}

type Artifacts added in v0.3.8

type Artifacts struct {
	Rpms   []string                               `yaml:"rpms,omitempty"`
	RpmMap map[string]map[string]*ArtifactsRPMMap `yaml:"rpm-map,omitempty"`
}

type ArtifactsRPMMap added in v0.3.8

type ArtifactsRPMMap struct {
	Name    string  `yaml:"name,omitempty"`
	Epoch   int     `yaml:"epoch,omitempty"`
	Version float64 `yaml:"version,omitempty"`
	Release string  `yaml:"release,omitempty"`
	Arch    string  `yaml:"arch,omitempty"`
	Nevra   string  `yaml:"nevra,omitempty"`
}

type BuildOpts added in v0.3.8

type BuildOpts struct {
	Rpms   *BuildOptsRPM `yaml:"rpms,omitempty"`
	Arches []string      `yaml:"arches,omitempty"`
}

type BuildOptsRPM added in v0.3.8

type BuildOptsRPM struct {
	Macros    string   `yaml:"macros,omitempty"`
	Whitelist []string `yaml:"whitelist,omitempty"`
}

type ComponentModule added in v0.3.8

type ComponentModule struct {
	Rationale  string `yaml:"rationale,omitempty"`
	Repository string `yaml:"repository,omitempty"`
	Ref        string `yaml:"ref,omitempty"`
	Buildorder int    `yaml:"buildorder,omitempty"`
}

type ComponentRPM added in v0.3.8

type ComponentRPM struct {
	Name          string   `yaml:"name,omitempty"`
	Rationale     string   `yaml:"rationale,omitempty"`
	Repository    string   `yaml:"repository,omitempty"`
	Cache         string   `yaml:"cache,omitempty"`
	Ref           string   `yaml:"ref,omitempty"`
	Buildonly     bool     `yaml:"buildonly,omitempty"`
	Buildroot     bool     `yaml:"buildroot,omitempty"`
	SrpmBuildroot bool     `yaml:"srpm-buildroot,omitempty"`
	Buildorder    int      `yaml:"buildorder,omitempty"`
	Arches        []string `yaml:"arches,omitempty"`
	Multilib      []string `yaml:"multilib,omitempty"`
}

type Components added in v0.3.8

type Components struct {
	Rpms    map[string]*ComponentRPM    `yaml:"rpms,omitempty"`
	Modules map[string]*ComponentModule `yaml:"modules,omitempty"`
}

type Configurations added in v0.3.8

type Configurations struct {
	Context       string              `yaml:"context,omitempty"`
	Platform      string              `yaml:"platform,omitempty"`
	BuildRequires map[string][]string `yaml:"buildrequires,omitempty"`
	Requires      map[string][]string `yaml:"requires,omitempty"`
	BuildOpts     *BuildOpts          `yaml:"buildopts,omitempty"`
}

type Data added in v0.3.8

type Data struct {
	Name          string                             `yaml:"name,omitempty"`
	Stream        string                             `yaml:"stream,omitempty"`
	Version       string                             `yaml:"version,omitempty"`
	StaticContext bool                               `yaml:"static_context,omitempty"`
	Context       string                             `yaml:"context,omitempty"`
	Arch          string                             `yaml:"arch,omitempty"`
	Summary       string                             `yaml:"summary,omitempty"`
	Description   string                             `yaml:"description,omitempty"`
	ServiceLevels map[ServiceLevelType]*ServiceLevel `yaml:"servicelevels,omitempty"`
	License       *License                           `yaml:"license,omitempty"`
	Xmd           map[string]map[string]string       `yaml:"xmd,omitempty"`
	Dependencies  []*Dependencies                    `yaml:"dependencies,omitempty"`
	References    *References                        `yaml:"references,omitempty"`
	Profiles      map[string]*Profile                `yaml:"profiles,omitempty"`
	Profile       map[string]*Profile                `yaml:"profile,omitempty"`
	API           *API                               `yaml:"api,omitempty"`
	Filter        *API                               `yaml:"filter,omitempty"`
	BuildOpts     *BuildOpts                         `yaml:"buildopts,omitempty"`
	Components    *Components                        `yaml:"components,omitempty"`
	Artifacts     *Artifacts                         `yaml:"artifacts,omitempty"`
}

type Defaults added in v0.3.8

type Defaults struct {
	Document string        `yaml:"document,omitempty"`
	Version  int           `yaml:"version,omitempty"`
	Data     *DefaultsData `yaml:"data,omitempty"`
}

type DefaultsData added in v0.3.8

type DefaultsData struct {
	Module   string              `yaml:"module,omitempty"`
	Stream   string              `yaml:"stream,omitempty"`
	Profiles map[string][]string `yaml:"profiles,omitempty"`
}

type Dependencies added in v0.3.8

type Dependencies struct {
	BuildRequires map[string][]string `yaml:"buildrequires,omitempty,omitempty"`
	Requires      map[string][]string `yaml:"requires,omitempty,omitempty"`
}

type DetectVersionDocument added in v0.3.8

type DetectVersionDocument struct {
	Document string `yaml:"document,omitempty"`
	Version  int    `yaml:"version,omitempty"`
}

type License added in v0.3.8

type License struct {
	Module  []string `yaml:"module,omitempty"`
	Content []string `yaml:"content,omitempty"`
}

type ModuleMd

type ModuleMd struct {
	Document string `yaml:"document,omitempty"`
	Version  int    `yaml:"version,omitempty"`
	Data     *Data  `yaml:"data,omitempty"`
}

type NotBackwardsCompatibleModuleMd added in v0.4.1

type NotBackwardsCompatibleModuleMd struct {
	V2 *ModuleMd
	V3 *V3
}

func Parse

func Parse(input []byte) (*NotBackwardsCompatibleModuleMd, error)

func (*NotBackwardsCompatibleModuleMd) Marshal added in v0.4.1

func (m *NotBackwardsCompatibleModuleMd) Marshal(fs billy.Filesystem, path string) error

type Profile added in v0.3.8

type Profile struct {
	Description string   `yaml:"description,omitempty"`
	Rpms        []string `yaml:"rpms,omitempty"`
}

type References added in v0.3.8

type References struct {
	Community     string `yaml:"community,omitempty"`
	Documentation string `yaml:"documentation,omitempty"`
	Tracker       string `yaml:"tracker,omitempty"`
}

type ServiceLevel added in v0.3.8

type ServiceLevel struct {
	Eol string `yaml:"eol,omitempty"`
}

type ServiceLevelType added in v0.3.8

type ServiceLevelType string
const (
	ServiceLevelRawhide       ServiceLevelType = "rawhide"
	ServiceLevelStableAPI     ServiceLevelType = "stable_api"
	ServiceLevelBugFixes      ServiceLevelType = "bug_fixes"
	ServiceLevelSecurityFixes ServiceLevelType = "security_fixes"
)

type V3 added in v0.3.8

type V3 struct {
	Document string  `yaml:"document,omitempty"`
	Version  int     `yaml:"version,omitempty"`
	Data     *V3Data `yaml:"data,omitempty"`
}

type V3Data added in v0.3.8

type V3Data struct {
	Name           string                       `yaml:"name,omitempty"`
	Stream         string                       `yaml:"stream,omitempty"`
	Summary        string                       `yaml:"summary,omitempty"`
	Description    string                       `yaml:"description,omitempty"`
	License        []string                     `yaml:"license,omitempty"`
	Xmd            map[string]map[string]string `yaml:"xmd,omitempty"`
	Configurations []*Configurations            `yaml:"configurations,omitempty"`
	References     *References                  `yaml:"references,omitempty"`
	Profiles       map[string]*Profile          `yaml:"profiles,omitempty"`
	Profile        map[string]*Profile          `yaml:"profile,omitempty"`
	API            *API                         `yaml:"api,omitempty"`
	Filter         *API                         `yaml:"filter,omitempty"`
	Demodularized  *API                         `yaml:"demodularized,omitempty"`
	Components     *Components                  `yaml:"components,omitempty"`
}

Jump to

Keyboard shortcuts

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