source

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 7 Imported by: 0

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