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 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" )
Click to show internal directories.
Click to hide internal directories.