Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnknownKind is returned when the repo kind is not supported ErrUnknownKind errUnknownKind // ErrInvalidRepoSpec is returned when the repo spec is invalid ErrInvalidRepoSpec errInvalidRepoSpec // ErrInvalidCache is returned when the cached repo is invalid ErrInvalidCache errInvalidCache // ErrNetworkRequired is returned when the network is required to complete the operation ErrNetworkRequired errNetworkRequired )
Functions ¶
func MerkelTreeHash ¶
func MerkelTreeVerify ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is a repo fetcher that caches results
func (*Cache) Sums ¶
func (c *Cache) Sums() []RepoChecksum
type RepoChecksum ¶
RepoChecksum is a checksum for a repo
type RepoFetcher ¶
type RepoFetcher interface { Parse(repobytes []byte) (RepoSpec, error) Fetch(ctx context.Context, repospec RepoSpec) (fs.FS, error) }
RepoFetcher fetches a repo of a particular kind
Click to show internal directories.
Click to hide internal directories.