provider

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MoppiMetaVersion = "/meta/version"
	MoppiUniverses   = "/universes"
	MoppiPackages    = "/packages"
	MoppiPackage     = "/package"
	MoppiMarathon    = "/marathon"
	MoppiChronos     = "/chronos"
	MoppiInstall     = "/install"
	MoppiUninstall   = "/uninstall"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractProvider

type AbstractProvider struct {
	Enable bool
}

AbstractProvider is the base provider from which every provider inherits

type Install

type Install struct {
	Marathon bool `json:"marathon"`
	Chronos  bool `json:"chronos"`
	Update   bool `json:"update"`
}

Install describes an installment (contained in install.json)

type Package

type Package struct {
	Version   string `json:"version"`
	Chronos   chronos.Job
	Marathon  marathon.Application
	Install   Install
	Uninstall Uninstall
}

type Provider

type Provider interface {
	Version() (*store.KVPair, error)
	Universes()
	Package(req *Request) (*Package, error)
}

Provider defines the interface to a Provider (e.g. etcd)

type Request

type Request struct {
	Name     string        `json:"name"`
	Universe string        `json:"universe"`
	Revision string        `json:"revision"`
	Config   RequestConfig `json:"config"`
}

Request describes an request to the installer

type RequestConfig

type RequestConfig struct {
}

RequestConfig describes a passed in config for installer Request

type Uninstall

type Uninstall struct {
	Marathon bool `json:"marathon"`
	Chronos  bool `json:"chronos"`
}

Uninstall describes an uninstallment

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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