catalog

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ABIMatrix

type ABIMatrix struct {
	PHP  []string `yaml:"php,omitempty"`
	OS   []string `yaml:"os"`
	Arch []string `yaml:"arch"`
	TS   []string `yaml:"ts"`
}

type Catalog

type Catalog struct {
	PHP        *PHPSpec
	Extensions map[string]*ExtensionSpec
}

func LoadCatalog

func LoadCatalog(dir string) (*Catalog, error)

func (*Catalog) IsBundled

func (c *Catalog) IsBundled(extName string) bool

func (*Catalog) RequiresSeparateBundle

func (c *Catalog) RequiresSeparateBundle(extName string) bool

type ConfigureFlags

type ConfigureFlags struct {
	Common string `yaml:"common"`
	Linux  string `yaml:"linux,omitempty"`
	MacOS  string `yaml:"macos,omitempty"`
}

type ExcludeRule

type ExcludeRule struct {
	OS   string `yaml:"os,omitempty"`
	Arch string `yaml:"arch,omitempty"`
	PHP  string `yaml:"php,omitempty"`
}

type ExtensionKind

type ExtensionKind string
const (
	ExtensionKindPECL    ExtensionKind = "pecl"
	ExtensionKindBundled ExtensionKind = "bundled"
	ExtensionKindGit     ExtensionKind = "git"
)

type ExtensionSource

type ExtensionSource struct {
	PECLPackage string `yaml:"pecl_package,omitempty"`
	GitURL      string `yaml:"git_url,omitempty"`
}

type ExtensionSpec

type ExtensionSpec struct {
	Name        string              `yaml:"name"`
	Kind        ExtensionKind       `yaml:"kind"`
	Note        string              `yaml:"note,omitempty"`
	Source      ExtensionSource     `yaml:"source,omitempty"`
	Versions    []string            `yaml:"versions,omitempty"`
	ABIMatrix   ABIMatrix           `yaml:"abi_matrix,omitempty"`
	Exclude     []ExcludeRule       `yaml:"exclude,omitempty"`
	RuntimeDeps map[string][]string `yaml:"runtime_deps,omitempty"`
	Ini         []string            `yaml:"ini,omitempty"`
	Smoke       []string            `yaml:"smoke,omitempty"`
}

func LoadExtensionSpec

func LoadExtensionSpec(path string) (*ExtensionSpec, error)

func (*ExtensionSpec) Validate

func (s *ExtensionSpec) Validate() error

type PHPSource

type PHPSource struct {
	URL string `yaml:"url"`
	Sig string `yaml:"sig"`
}

type PHPSpec

type PHPSpec struct {
	Name              string         `yaml:"name"`
	Versions          []string       `yaml:"versions"`
	Source            PHPSource      `yaml:"source"`
	ABIMatrix         ABIMatrix      `yaml:"abi_matrix"`
	ConfigureFlags    ConfigureFlags `yaml:"configure_flags"`
	BundledExtensions []string       `yaml:"bundled_extensions"`
	Smoke             []string       `yaml:"smoke"`
}

func LoadPHPSpec

func LoadPHPSpec(path string) (*PHPSpec, error)

func (*PHPSpec) Validate

func (s *PHPSpec) Validate() error

Jump to

Keyboard shortcuts

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