cm

package
v0.0.0-...-4a44868 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIVersion

type APIVersion struct {
	Version version.JSON `json:"version"`
	URL     string       `json:"url"`
}

type File

type File struct {
	File    string `json:"file"`
	Version string `json:"version"`
}

type NoIndex

type NoIndex struct {
	File      []string `json:"file"`
	Directory []string `json:"directory"`
	Package   []string `json:"package"`
	Namespace []string `json:"namespace"`
}

type OptionalFeature

type OptionalFeature struct {
	Description string  `json:"description"`
	Prereqs     Prereqs `json:"prereqs"`
}

type Phase

type Phase struct {
	Requires   map[string]version.JSON `json:"requires"`
	Recommends map[string]version.JSON `json:"recommends"`
	Suggests   map[string]version.JSON `json:"suggests"`
	Conflicts  map[string]version.JSON `json:"conflicts"`
}

type Prereqs

type Prereqs struct {
	Configure Phase `json:"configure"`
	Runtime   Phase `json:"runtime"`
	Build     Phase `json:"build"`
	Test      Phase `json:"test"`
	Develop   Phase `json:"develop"`
}

type ReleaseStatus

type ReleaseStatus int32
const (
	ReleaseStatusStable ReleaseStatus = iota
	ReleaseStatusTesting
	ReleaseStatusUnstable
)

func NewReleaseStatus

func NewReleaseStatus(str string) (ReleaseStatus, error)

func (*ReleaseStatus) MarshalJSON

func (r *ReleaseStatus) MarshalJSON() ([]byte, error)

func (*ReleaseStatus) String

func (r *ReleaseStatus) String() string

func (*ReleaseStatus) UnmarshalJSON

func (r *ReleaseStatus) UnmarshalJSON(data []byte) error

type Resources

type Resources struct {
}

type Spec

type Spec struct {
	Author           []string        `json:"author"`
	DynamicConfig    bool            `json:"dynamic_config"`
	GeneratedBy      string          `json:"generated_by"`
	License          []string        `json:"license"`
	MetaSpec         APIVersion      `json:"meta-spec"`
	Name             string          `json:"name"`
	ReleaseStatus    ReleaseStatus   `json:"release_status"`
	Version          version.JSON    `json:"version"`
	Description      string          `json:"description"`
	Keywords         []string        `json:"keywords"`
	NoIndex          NoIndex         `json:"no_index"`
	OptionalFeatures Prereqs         `json:"optional_features"`
	Prereqs          Prereqs         `json:"prereqs"`
	Provides         map[string]File `json:"provides"`
	Resources        Resources       `json:"resources"`
}

func (*Spec) UnmarshalJSON

func (s *Spec) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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