Versions in this module Expand all Collapse all v0 v0.7.1 Jul 25, 2023 v0.7.0 Jul 20, 2023 Changes in this version + var ErrEmptyAPIPath = errors.New("api path is empty") + var ErrEmptyCommandName = errors.New("command name is empty") + var ErrEmptyProvider = errors.New("provider is empty") + var ErrEmptyRemotePath = errors.New("remote path is empty") + var ErrEmptyTagName = errors.New("tag name is empty") + var ErrNilAsset = errors.New("asset is nil") + var ErrNilAssetOperator = errors.New("asset operator is nil") + var ErrNilContext = errors.New("context is nil") + var ErrNilManifester = errors.New("manifester is nil") + var ErrUnrecognizedRemotePath = errors.New("remote path is not recognized") + var ExtensionDir string + type AssetOperator interface + Install func(asset []byte, tagName string) error + Prepare func(localDirPath string) error + Run func(tagName string, args ...string) error + Uninstall func(tagNames ...string) error + type Client interface + DownloadAsset func(context.Context, string) ([]byte, error) + DownloadRelease func(context.Context, string) (*RepositoryRelease, error) + type Manifest struct + RepositoryOwners []*RepositoryOwner + UpdatedAt time.Time + type Manifester interface + Flush func(manifest *Manifest, dirPath string) error + Load func(dirPath string) (*Manifest, error) + type Metadata struct + CommandName string + CurrentAPIPath string + LocalDirPath string + OwnerName string + ProjectName string + ProviderName string + TagName string + UpgradeAPIPath string + type Parser func(remotePath string) (*Metadata, error) + type RepositoryAsset struct + Name string + URL string + type RepositoryOwner struct + Name string + Projects []*RepositoryProject + Provider string + type RepositoryProject struct + ActiveTagName string + CommandName string + LocalDirPath string + Name string + Owner *RepositoryOwner + Releases []*RepositoryRelease + type RepositoryRelease struct + Assets []*RepositoryAsset + CurrentAPIPath string + Metadata map[string]interface{} + Project *RepositoryProject + TagName string + UpgradeAPIPath string