install

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2015 License: Apache-2.0 Imports: 18 Imported by: 8

Documentation

Index

Constants

View Source
const (
	FileSystem = iota
	Git
)
View Source
const RepositoryRoot = "mantl-install/repository"

Variables

This section is empty.

Functions

func NewPackageCatalog added in v0.1.2

func NewPackageCatalog(kv *consul.KV, repositoryRoot string) (*packageCatalog, error)

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, 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) 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 NewPackage added in v0.1.2

func NewPackage(name string) *Package

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) PackagesKey

func (r Repository) PackagesKey() string

type RepositoryCollection

type RepositoryCollection []*Repository

type Source

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

func (Source) IsValid added in v0.1.3

func (s Source) IsValid() bool

type SourceType

type SourceType uint8

Jump to

Keyboard shortcuts

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