Documentation ¶
Index ¶
Constants ¶
View Source
const ( AppEnvironVar = "CTIROOT" AppUserDir = ".cti" )
View Source
const (
RAMLExt = ".raml"
)
Variables ¶
This section is empty.
Functions ¶
func GetCtiPackagesCacheDir ¶ added in v0.22.0
func GetRootDir ¶ added in v0.22.0
Types ¶
type CachedDependencyInfo ¶ added in v0.22.0
type Option ¶ added in v0.22.0
type Option func(*packageManager)
func WithPackagesCache ¶ added in v0.22.0
func WithStorage ¶ added in v0.22.0
type PackageIntegrityInfo ¶ added in v0.22.0
type PackageIntegrityInfo struct { Source string `json:"Source"` Version string `json:"Version"` Hash string `json:"Hash"` }
type PackageManager ¶
type PackageManager interface { // Add new dependencies to index.lock Add(pkg *ctipackage.Package, depends map[string]string) error // Install dependencies from index.lock Install(pkg *ctipackage.Package) error // Download dependencies and their sub-dependencies Download(depends map[string]string) ([]CachedDependencyInfo, error) }
func New ¶
func New(options ...Option) (PackageManager, error)
type SourceIntegrityInfo ¶ added in v0.22.0
type SourceIntegrityInfo struct { Version string `json:"Version"` Time string `json:"Time"` Origin storage.Origin `json:"Origin"` }
Click to show internal directories.
Click to hide internal directories.