Documentation
¶
Index ¶
Constants ¶
View Source
const (
FetchedMarkerFile = ".protodex_fetched"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher struct { SourceType SourceType Source string Version string Dest string // contains filtered or unexported fields }
func NewFetcher ¶
func NewFetcher(sourceType SourceType, source, version, dest string) (*Fetcher, error)
func NewFetcherFromURL ¶
type SourceInfo ¶
type SourceInfo struct { Type SourceType Source string // the main identifier (repo, service name, etc.) Version string // version, ref, tag, etc. Raw string // original input }
func ParseSource ¶
func ParseSource(input string) (*SourceInfo, error)
type SourceType ¶
type SourceType string
const ( SourceGitHub SourceType = "github" SourceHTTP SourceType = "http" SourceGoogleWellKnown SourceType = "google-well-known" SourceLocal SourceType = "local" SourceProtodex SourceType = "protodex" )
Click to show internal directories.
Click to hide internal directories.