metadata

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright (C) 2023 by Posit Software, PBC

Copyright (C) 2023 by Posit Software, PBC

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidBiocSchema

func IsValidBiocSchema(v version.ManifestVersion) bool

func IsValidSchema

func IsValidSchema(v version.ManifestVersion) bool

Types

type Link struct {
	Name     string       `json:"name"`
	Raw      string       `json:"-"`
	Operator LinkOperator `json:"operator"`
	Version  string       `json:"version"`
	Type     LinkType     `json:"type"`
}

Link represents the link from one package to another.

func ParseLinks(raw string, linkType LinkType) []Link

ParseLinks generates a comma-separated list of links in the format: "<package name> (<operator> <version>)

func (Link) Equals

func (a Link) Equals(b Link) bool

type LinkOperator

type LinkOperator int16
const (
	VersionEquals LinkOperator = 0
	VersionGT     LinkOperator = 1
	VersionGTE    LinkOperator = 2
	VersionLT     LinkOperator = 3
	VersionLTE    LinkOperator = 4
)

type LinkType

type LinkType int16
const (
	LinkImports   LinkType = 0
	LinkDepends   LinkType = 1
	LinkSuggests  LinkType = 2
	LinkLinkingTo LinkType = 3
	LinkEnhances  LinkType = 4
)

Jump to

Keyboard shortcuts

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