install

package
v0.0.0-...-2efa320 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2015 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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 NewInstall(consulClient *consul.Client, marathon *marathon.Marathon, mesos *mesos.Mesos, zookeeper *zookeeper.Zookeeper) *Install

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 *Install) GetPackageDefinition(name string, version string, userConfig map[string]interface{}, apiConfig map[string]interface{}) (*packageDefinition, error)

func (*Install) InstallPackage

func (install *Install) InstallPackage(pkgReq *PackageRequest) (string, error)

func (*Install) LayerRepositories

func (install *Install) LayerRepositories() (RepositoryCollection, error)

func (*Install) Package

func (install *Install) Package(name string) (*Package, error)

func (*Install) Packages

func (install *Install) Packages() (PackageCollection, error)

func (*Install) Repositories

func (install *Install) Repositories() (RepositoryCollection, error)

func (*Install) SyncSources

func (install *Install) SyncSources(sources []*Source, force bool) error

func (*Install) UninstallPackage

func (install *Install) UninstallPackage(app *marathon.App) error

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 (p Package) ContainerId() string

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 (p Package) HasSupportedVersion() bool

func (Package) PackageKey

func (p Package) PackageKey() string

func (Package) PackageVersionKey

func (p Package) PackageVersionKey(index string) string

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 PackageVersion struct {
	Version   string `json:"version"`
	Index     string `json:"index"`
	Supported bool   `json:"supported"`
}

type Repository

type Repository struct {
	Name  string
	Index int
}

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

type Source

type Source struct {
	Name       string
	Path       string
	SourceType SourceType
	Index      int
}

type SourceType

type SourceType uint8

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL