application

package
v0.0.0-...-8f2995f Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2016 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LockKind = "cluster_application"
)

Variables

This section is empty.

Functions

func LaunchClusterApplication

func LaunchClusterApplication(kubeApiServerEndPoint string, kubeApiServerToken string, namespace string, name string, environmentSlice []interface{}, size int, replicationControllerExtraJsonMap map[string]interface{}) error

func LaunchClusterApplicationNoScript

func LaunchClusterApplicationNoScript(kubeApiServerEndPoint string, kubeApiServerToken string, namespace string, cluster *Cluster, environmentSlice []interface{}, size int, replicationControllerExtraJsonMap map[string]interface{}) error

func LaunchClusterApplicationPython

func LaunchClusterApplicationPython(kubeApiServerEndPoint string, kubeApiServerToken string, namespace string, cluster *Cluster, environmentSlice []interface{}, size int, replicationControllerExtraJsonMap map[string]interface{}) error

func LaunchStatelessApplication

func LaunchStatelessApplication(kubeApiServerEndPoint string, kubeApiServerToken string, namespace string, name string, environmentSlice []interface{}) error

func ReloadStorage

func ReloadStorage(storageType int) error

func StoreStatelessApplication

func StoreStatelessApplication(name string, description string,
	replicationController map[string]interface{}, service map[string]interface{}, environment map[string]string) error

Types

type Cluster

type Cluster struct {
	Name                      string
	Description               string
	ReplicationControllerJson string
	ServiceJson               string
	Environment               map[string]string
	ScriptType                string
	ScriptContent             string
}

type DummyError

type DummyError struct {
	// contains filtered or unexported fields
}

func (*DummyError) Error

func (dummyError *DummyError) Error() string

type Stateless

type Stateless struct {
	Name        string
	Description string

	Environment map[string]string
	// contains filtered or unexported fields
}

type StatelessSerializable

type StatelessSerializable struct {
	Name                      string
	Description               string
	ReplicationControllerJson map[string]interface{}
	ServiceJson               map[string]interface{}
	Environment               map[string]string
}

func RetrieveStatelessApplication

func RetrieveStatelessApplication(name string) (*StatelessSerializable, error)

type Storage

type Storage interface {
	DeleteStatelessApplication(name string) error

	LoadStatelessApplication(name string) (*Stateless, error)
	LoadAllStatelessApplication() ([]Stateless, error)
	DeleteClusterApplication(name string) error
	SaveClusterApplication(cluster *Cluster) error
	LoadClusterApplication(name string) (*Cluster, error)
	LoadAllClusterApplication() ([]Cluster, error)
	// contains filtered or unexported methods
}

func GetStorage

func GetStorage() Storage

type StorageCassandra

type StorageCassandra struct {
}

func (*StorageCassandra) DeleteClusterApplication

func (storageCassandra *StorageCassandra) DeleteClusterApplication(name string) error

func (*StorageCassandra) DeleteStatelessApplication

func (storageCassandra *StorageCassandra) DeleteStatelessApplication(name string) error

func (*StorageCassandra) LoadAllClusterApplication

func (storageCassandra *StorageCassandra) LoadAllClusterApplication() ([]Cluster, error)

func (*StorageCassandra) LoadAllStatelessApplication

func (storageCassandra *StorageCassandra) LoadAllStatelessApplication() ([]Stateless, error)

func (*StorageCassandra) LoadClusterApplication

func (storageCassandra *StorageCassandra) LoadClusterApplication(name string) (*Cluster, error)

func (*StorageCassandra) LoadStatelessApplication

func (storageCassandra *StorageCassandra) LoadStatelessApplication(name string) (*Stateless, error)

func (*StorageCassandra) SaveClusterApplication

func (storageCassandra *StorageCassandra) SaveClusterApplication(cluster *Cluster) error

type StorageDummy

type StorageDummy struct {
	// contains filtered or unexported fields
}

func (*StorageDummy) DeleteClusterApplication

func (storageDummy *StorageDummy) DeleteClusterApplication(name string) error

func (*StorageDummy) DeleteStatelessApplication

func (storageDummy *StorageDummy) DeleteStatelessApplication(name string) error

func (*StorageDummy) LoadAllClusterApplication

func (storageDummy *StorageDummy) LoadAllClusterApplication() ([]Cluster, error)

func (*StorageDummy) LoadAllStatelessApplication

func (storageDummy *StorageDummy) LoadAllStatelessApplication() ([]Stateless, error)

func (*StorageDummy) LoadClusterApplication

func (storageDummy *StorageDummy) LoadClusterApplication(name string) (*Cluster, error)

func (*StorageDummy) LoadStatelessApplication

func (storageDummy *StorageDummy) LoadStatelessApplication(name string) (*Stateless, error)

func (*StorageDummy) SaveClusterApplication

func (storageDummy *StorageDummy) SaveClusterApplication(cluster *Cluster) error

func (*StorageDummy) ShouldCheck

func (storageDummy *StorageDummy) ShouldCheck() bool

type StorageEtcd

type StorageEtcd struct {
}

func (*StorageEtcd) DeleteClusterApplication

func (storageEtcd *StorageEtcd) DeleteClusterApplication(name string) error

func (*StorageEtcd) DeleteStatelessApplication

func (storageEtcd *StorageEtcd) DeleteStatelessApplication(name string) error

func (*StorageEtcd) LoadAllClusterApplication

func (storageEtcd *StorageEtcd) LoadAllClusterApplication() ([]Cluster, error)

func (*StorageEtcd) LoadAllStatelessApplication

func (storageEtcd *StorageEtcd) LoadAllStatelessApplication() ([]Stateless, error)

func (*StorageEtcd) LoadClusterApplication

func (storageEtcd *StorageEtcd) LoadClusterApplication(name string) (*Cluster, error)

func (*StorageEtcd) LoadStatelessApplication

func (storageEtcd *StorageEtcd) LoadStatelessApplication(name string) (*Stateless, error)

func (*StorageEtcd) SaveClusterApplication

func (storageEtcd *StorageEtcd) SaveClusterApplication(cluster *Cluster) error

Jump to

Keyboard shortcuts

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