Help us shape the future of Go! Take the 2026 Go Developer Survey

conda

package
v3.1.61 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PropertyName     = "conda.name"
	PropertyChannel  = "conda.channel"
	PropertySubdir   = "conda.subdir"
	PropertyMetadata = "conda.metadata"
)

Variables

View Source
var (
	ErrInvalidStructure = util.NewInvalidArgumentErrorf("package structure is invalid")
	ErrInvalidName      = util.NewInvalidArgumentErrorf("package name is invalid")
	ErrInvalidVersion   = util.NewInvalidArgumentErrorf("package version is invalid")
)

Functions

This section is empty.

Types

type FileMetadata

type FileMetadata struct {
	IsCondaPackage bool     `json:"is_conda"`
	Architecture   string   `json:"architecture,omitempty"`
	NoArch         string   `json:"noarch,omitempty"`
	Build          string   `json:"build,omitempty"`
	BuildNumber    int64    `json:"build_number,omitempty"`
	Dependencies   []string `json:"dependencies,omitempty"`
	Platform       string   `json:"platform,omitempty"`
	Timestamp      int64    `json:"timestamp,omitempty"`
}

FileMetadata represents the metadata of a Conda package file

type Package

type Package struct {
	Name            string
	Version         string
	Subdir          string
	VersionMetadata *VersionMetadata
	FileMetadata    *FileMetadata
}

Package represents a Conda package

func ParsePackageBZ2

func ParsePackageBZ2(r io.Reader) (*Package, error)

ParsePackageBZ2 parses the Conda package file compressed with bzip2

func ParsePackageConda

func ParsePackageConda(r io.ReaderAt, size int64) (*Package, error)

ParsePackageConda parses the Conda package file compressed with zip and zstd

type ReaderAndReaderAt

type ReaderAndReaderAt interface {
	io.Reader
	io.ReaderAt
}

type VersionMetadata

type VersionMetadata struct {
	Description      string `json:"description,omitempty"`
	Summary          string `json:"summary,omitempty"`
	ProjectURL       string `json:"project_url,omitempty"`
	RepositoryURL    string `json:"repository_url,omitempty"`
	DocumentationURL string `json:"documentation_url,omitempty"`
	License          string `json:"license,omitempty"`
	LicenseFamily    string `json:"license_family,omitempty"`
}

VersionMetadata represents the metadata of a Conda package

Source Files

  • metadata.go

Jump to

Keyboard shortcuts

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