Documentation
¶
Index ¶
- type FList
- type FListFilter
- type FListType
- type FileInfo
- type HubClient
- func (h *HubClient) Download(cache, repo, name string) (string, error)
- func (h *HubClient) Find(repo string, filter ...FListFilter) ([]FList, error)
- func (h *HubClient) HubBaseURL() string
- func (h *HubClient) Info(repo, name string) (info FList, err error)
- func (h *HubClient) List(repo string) ([]FList, error)
- func (h *HubClient) ListTag(repo, tag string) ([]Symlink, error)
- func (h *HubClient) MountURL(flist string) string
- func (h *HubClient) StorageURL() string
- type Regular
- type Symlink
- type TagLink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FList ¶
type FList struct {
Name string `json:"name"`
Target string `json:"target"`
Type FListType `json:"type"`
Updated uint64 `json:"updated"`
Hash string `json:"md5"`
}
FList is information of flist as returned by repo list operation
type FListFilter ¶
type FListFilter interface {
// contains filtered or unexported methods
}
func MatchName ¶
func MatchName(name string) FListFilter
func MatchType ¶
func MatchType(typ FListType) FListFilter
type HubClient ¶
type HubClient struct {
// contains filtered or unexported fields
}
HubClient API for f-list
func NewHubClient ¶
NewHubClient create new hub client with the passed option for the http client
func (*HubClient) Download ¶
Download downloads an flist to cache and return the full path to the extraced meta data directory. the returned path is in format {cache}/{hash}/
func (*HubClient) Find ¶
func (h *HubClient) Find(repo string, filter ...FListFilter) ([]FList, error)
func (*HubClient) HubBaseURL ¶ added in v0.1.1
StorageURL return hub storage url
func (*HubClient) StorageURL ¶
StorageURL return hub storage url
Click to show internal directories.
Click to hide internal directories.