source

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Canonicalize

func Canonicalize(spec SourceSpec) (SourceSpec, SourceIdentity, error)

Types

type InstallRef

type InstallRef struct {
	Source SourceSpec
	Skill  string
}

func ParseInstallRef

func ParseInstallRef(ref string) (InstallRef, error)

type SourceIdentity

type SourceIdentity struct {
	Key          string `json:"key"`
	Type         string `json:"type"`
	Locator      string `json:"locator"`
	Ref          string `json:"ref,omitempty"`
	Path         string `json:"path,omitempty"`
	ResolvedRev  string `json:"resolved_rev,omitempty"`
	ContentScope string `json:"content_scope,omitempty"`
}

type SourceSpec

type SourceSpec struct {
	ID       string     `yaml:"id,omitempty" json:"id,omitempty"`
	Type     SourceType `yaml:"type" json:"type"`
	Repo     string     `yaml:"repo,omitempty" json:"repo,omitempty"`
	URL      string     `yaml:"url,omitempty" json:"url,omitempty"`
	Ref      string     `yaml:"ref,omitempty" json:"ref,omitempty"`
	Path     string     `yaml:"path,omitempty" json:"path,omitempty"`
	Host     string     `yaml:"host,omitempty" json:"host,omitempty"`
	Writable *bool      `yaml:"writable,omitempty" json:"writable,omitempty"`
}

func CanonicalSpec

func CanonicalSpec(spec SourceSpec) (SourceSpec, error)

func ParseSourceArg

func ParseSourceArg(arg string) (SourceSpec, error)

type SourceType

type SourceType string
const (
	SourceGitHub SourceType = "github"
	SourceGitLab SourceType = "gitlab"
	SourceGit    SourceType = "git"
	SourceLocal  SourceType = "local"
)

Jump to

Keyboard shortcuts

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