Documentation
¶
Index ¶
- Constants
- type Install
- func (install *Install) BaseRepository() (*Repository, error)
- func (install *Install) FindInstalled(pkgReq *PackageRequest) *marathon.App
- func (install *Install) GetPackageDefinition(name string, version string, userConfig map[string]interface{}, ...) (*packageDefinition, error)
- func (install *Install) InstallPackage(pkgReq *PackageRequest) (string, error)
- func (install *Install) LayerRepositories() (RepositoryCollection, error)
- func (install *Install) Package(name string) (*Package, error)
- func (install *Install) Packages() (PackageCollection, error)
- func (install *Install) Repositories() (RepositoryCollection, error)
- func (install *Install) SyncSources(sources []*Source, force bool) error
- func (install *Install) UninstallPackage(app *marathon.App) error
- type Package
- func (p Package) ContainerId() string
- func (p Package) FindLatestPackageVersion() *PackageVersion
- func (p Package) FindLatestSupportedPackageVersion() *PackageVersion
- func (p Package) FindPackageVersion(version string) *PackageVersion
- func (p Package) GetPackageVersion(version string) *PackageVersion
- func (p Package) HasSupportedVersion() bool
- func (p Package) PackageKey() string
- func (p Package) PackageVersionKey(index string) string
- func (p Package) PackageVersions() []*PackageVersion
- func (p Package) SupportedVersions() []*PackageVersion
- type PackageCollection
- type PackageRequest
- type PackageVersion
- type Repository
- type RepositoryCollection
- type Source
- type SourceType
Constants ¶
View Source
const ( FileSystem = iota Git )
View Source
const RepositoryRoot = "mantl-install/repository"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Install ¶
type Install struct {
// contains filtered or unexported fields
}
func NewInstall ¶
func (*Install) BaseRepository ¶
func (install *Install) BaseRepository() (*Repository, error)
func (*Install) FindInstalled ¶
func (install *Install) FindInstalled(pkgReq *PackageRequest) *marathon.App
func (*Install) GetPackageDefinition ¶
func (*Install) InstallPackage ¶
func (install *Install) InstallPackage(pkgReq *PackageRequest) (string, error)
func (*Install) LayerRepositories ¶
func (install *Install) LayerRepositories() (RepositoryCollection, error)
func (*Install) Packages ¶
func (install *Install) Packages() (PackageCollection, error)
func (*Install) Repositories ¶
func (install *Install) Repositories() (RepositoryCollection, error)
func (*Install) SyncSources ¶
type Package ¶
type Package struct { Name string `json:"name"` Description string `json:"description"` Framework bool `json:"framework"` CurrentVersion string `json:"currentVersion"` Supported bool `json:"supported"` Tags []string `json:"tags"` Versions map[string]*PackageVersion `json:"versions"` }
func (Package) ContainerId ¶
func (Package) FindLatestPackageVersion ¶
func (p Package) FindLatestPackageVersion() *PackageVersion
func (Package) FindLatestSupportedPackageVersion ¶
func (p Package) FindLatestSupportedPackageVersion() *PackageVersion
func (Package) FindPackageVersion ¶
func (p Package) FindPackageVersion(version string) *PackageVersion
func (Package) GetPackageVersion ¶
func (p Package) GetPackageVersion(version string) *PackageVersion
func (Package) HasSupportedVersion ¶
func (Package) PackageKey ¶
func (Package) PackageVersionKey ¶
func (Package) PackageVersions ¶
func (p Package) PackageVersions() []*PackageVersion
func (Package) SupportedVersions ¶
func (p Package) SupportedVersions() []*PackageVersion
type PackageCollection ¶
type PackageCollection []*Package
type PackageRequest ¶
type PackageRequest struct { Name string `json:"name"` Version string `json:"version"` Config map[string]interface{} `json:"config"` UninstallOptions map[string]interface{} `json:"uninstallOptions"` }
func NewPackageRequest ¶
func NewPackageRequest(data []byte) (request *PackageRequest, err error)
type PackageVersion ¶
type Repository ¶
func (Repository) IsBase ¶
func (r Repository) IsBase() bool
func (Repository) PackageIndexKey ¶
func (r Repository) PackageIndexKey() string
func (Repository) PackagesKey ¶
func (r Repository) PackagesKey() string
type RepositoryCollection ¶
type RepositoryCollection []*Repository
func (RepositoryCollection) Base ¶
func (c RepositoryCollection) Base() *Repository
func (RepositoryCollection) Layers ¶
func (c RepositoryCollection) Layers() RepositoryCollection
type SourceType ¶
type SourceType uint8
Click to show internal directories.
Click to hide internal directories.