deploy

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: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LockKind = "deploy"

	ProtocolTypeHTTP  = "http"
	ProtocolTypeHTTPS = "https"
	ProtocolTypeOther = "other"
)

Variables

This section is empty.

Functions

func ChangeDeployInformationReplicaAmount

func ChangeDeployInformationReplicaAmount(namespace string, replicationControllerName string, size int) error

func CleanAllServiceUnderBlueGreenDeployment

func CleanAllServiceUnderBlueGreenDeployment(kubeApiServerEndPoint string, kubeApiServerToken string, imageInformationName string) error

func DeleteDeployClusterApplication

func DeleteDeployClusterApplication(kubeApiServerEndPoint string, kubeApiServerToken string, namespace string, name string) error

func DeployCreate

func DeployCreate(
	kubeApiServerEndPoint string, kubeApiServerToken string,
	namespace string, imageInformationName string,
	version string, description string, replicaAmount int,
	deployContainerPortSlice []DeployContainerPort,
	replicationControllerContainerEnvironmentSlice []control.ReplicationControllerContainerEnvironment,
	resourceMap map[string]interface{},
	extraJsonMap map[string]interface{},
	autoUpdateForNewBuild bool) error

func DeployDelete

func DeployDelete(kubeApiServerEndPoint string, kubeApiServerToken string, namespace string, imageInformation string) error

func DeployResize

func DeployResize(kubeApiServerEndPoint string, kubeApiServerToken string, namespace string, imageInformation string, size int) error

func DeployUpdate

func DeployUpdate(
	kubeApiServerEndPoint string, kubeApiServerToken string, namespace string,
	imageInformationName string, version string, description string,
	environmentSlice []control.ReplicationControllerContainerEnvironment) error

func GetAllBlueGreenDeployableNamespace

func GetAllBlueGreenDeployableNamespace(imageInformationName string) ([]string, error)

func GetBlueGreenServiceName

func GetBlueGreenServiceName(imageInformation string) string

func InitializeDeployClusterApplication

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

func IsImageInformationUsed

func IsImageInformationUsed(imageInformationName string) (bool, error)

func IsImageRecordUsed

func IsImageRecordUsed(imageInformationName string, imageRecordVersion string) (bool, error)

func ReloadStorage

func ReloadStorage(storageType int) error

func ResizeDeployClusterApplication

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

func UpdateDeployBlueGreen

func UpdateDeployBlueGreen(kubeApiServerEndPoint string, kubeApiServerToken string, deployBlueGreen *DeployBlueGreen) error

Types

type DeployBlueGreen

type DeployBlueGreen struct {
	ImageInformation string
	Namespace        string
	NodePort         int
	Description      string
	SessionAffinity  string
}

type DeployClusterApplication

type DeployClusterApplication struct {
	Name                              string
	Namespace                         string
	Size                              int
	EnvironmentSlice                  []interface{}
	ReplicationControllerExtraJsonMap map[string]interface{}
	ServiceName                       string
	ReplicationControllerNameSlice    []string
	CreatedTime                       time.Time
}

func GetAllDeployClusterApplication

func GetAllDeployClusterApplication() ([]DeployClusterApplication, error)

func GetAllDeployClusterApplicationInNamespace

func GetAllDeployClusterApplicationInNamespace(namespace string) ([]DeployClusterApplication, error)

func GetDeployClusterApplication

func GetDeployClusterApplication(namespace string, name string) (*DeployClusterApplication, error)

type DeployContainerPort

type DeployContainerPort struct {
	Name          string
	ContainerPort int
	NodePort      int
	Protocol      string
}

type DeployInformation

type DeployInformation struct {
	Namespace                 string
	ImageInformationName      string
	CurrentVersion            string
	CurrentVersionDescription string
	Description               string
	ReplicaAmount             int
	ContainerPortSlice        []DeployContainerPort
	EnvironmentSlice          []control.ReplicationControllerContainerEnvironment
	ResourceMap               map[string]interface{}
	ExtraJsonMap              map[string]interface{}
	CreatedTime               time.Time
	AutoUpdateForNewBuild     bool
}

func GetDeployInformationInNamespace

func GetDeployInformationInNamespace(namespace string) ([]DeployInformation, error)

func GetDeployInformationOwningReplicationController

func GetDeployInformationOwningReplicationController(namespace string, replicationControllerName string) (*DeployInformation, error)

func GetDeployInformationWithAutoUpdateForNewBuild

func GetDeployInformationWithAutoUpdateForNewBuild(imageInformationName string) ([]DeployInformation, error)

type DummyError

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

func (*DummyError) Error

func (dummyError *DummyError) Error() string

type Storage

type Storage interface {
	DeleteDeployInformation(namespace string, imageInformation string) error

	LoadDeployInformation(namespace string, imageInformation string) (*DeployInformation, error)
	LoadAllDeployInformation() ([]DeployInformation, error)
	DeleteDeployBlueGreen(imageInformation string) error

	LoadDeployBlueGreen(imageInformation string) (*DeployBlueGreen, error)
	LoadAllDeployBlueGreen() ([]DeployBlueGreen, error)
	DeleteDeployClusterApplication(namespace string, name string) error
	SaveDeployClusterApplication(deployClusterApplication *DeployClusterApplication) error
	LoadDeployClusterApplication(namespace string, name string) (*DeployClusterApplication, error)
	LoadAllDeployClusterApplication() ([]DeployClusterApplication, error)
	// contains filtered or unexported methods
}

func GetStorage

func GetStorage() Storage

type StorageCassandra

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

func (*StorageCassandra) DeleteDeployBlueGreen

func (storageCassandra *StorageCassandra) DeleteDeployBlueGreen(imageInformation string) error

func (*StorageCassandra) DeleteDeployClusterApplication

func (storageCassandra *StorageCassandra) DeleteDeployClusterApplication(namespace string, name string) error

func (*StorageCassandra) DeleteDeployInformation

func (storageCassandra *StorageCassandra) DeleteDeployInformation(namespace string, imageInformation string) error

func (*StorageCassandra) LoadAllDeployBlueGreen

func (storageCassandra *StorageCassandra) LoadAllDeployBlueGreen() ([]DeployBlueGreen, error)

func (*StorageCassandra) LoadAllDeployClusterApplication

func (storageCassandra *StorageCassandra) LoadAllDeployClusterApplication() ([]DeployClusterApplication, error)

func (*StorageCassandra) LoadAllDeployInformation

func (storageCassandra *StorageCassandra) LoadAllDeployInformation() ([]DeployInformation, error)

func (*StorageCassandra) LoadDeployBlueGreen

func (storageCassandra *StorageCassandra) LoadDeployBlueGreen(imageInformation string) (*DeployBlueGreen, error)

func (*StorageCassandra) LoadDeployClusterApplication

func (storageCassandra *StorageCassandra) LoadDeployClusterApplication(namespace string, name string) (*DeployClusterApplication, error)

func (*StorageCassandra) LoadDeployInformation

func (storageCassandra *StorageCassandra) LoadDeployInformation(namespace string, imageInformation string) (*DeployInformation, error)

func (*StorageCassandra) SaveDeployClusterApplication

func (storageCassandra *StorageCassandra) SaveDeployClusterApplication(deployClusterApplication *DeployClusterApplication) error

type StorageDummy

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

func (*StorageDummy) DeleteDeployBlueGreen

func (storageDummy *StorageDummy) DeleteDeployBlueGreen(imageInformation string) error

func (*StorageDummy) DeleteDeployClusterApplication

func (storageDummy *StorageDummy) DeleteDeployClusterApplication(namespace string, name string) error

func (*StorageDummy) DeleteDeployInformation

func (storageDummy *StorageDummy) DeleteDeployInformation(namespace string, imageInformation string) error

func (*StorageDummy) LoadAllDeployBlueGreen

func (storageDummy *StorageDummy) LoadAllDeployBlueGreen() ([]DeployBlueGreen, error)

func (*StorageDummy) LoadAllDeployClusterApplication

func (storageDummy *StorageDummy) LoadAllDeployClusterApplication() ([]DeployClusterApplication, error)

func (*StorageDummy) LoadAllDeployInformation

func (storageDummy *StorageDummy) LoadAllDeployInformation() ([]DeployInformation, error)

func (*StorageDummy) LoadDeployBlueGreen

func (storageDummy *StorageDummy) LoadDeployBlueGreen(imageInformation string) (*DeployBlueGreen, error)

func (*StorageDummy) LoadDeployClusterApplication

func (storageDummy *StorageDummy) LoadDeployClusterApplication(namespace string, name string) (*DeployClusterApplication, error)

func (*StorageDummy) LoadDeployInformation

func (storageDummy *StorageDummy) LoadDeployInformation(namespace string, imageInformation string) (*DeployInformation, error)

func (*StorageDummy) SaveDeployClusterApplication

func (storageDummy *StorageDummy) SaveDeployClusterApplication(deployClusterApplication *DeployClusterApplication) error

func (*StorageDummy) ShouldCheck

func (storageDummy *StorageDummy) ShouldCheck() bool

type StorageEtcd

type StorageEtcd struct {
}

func (*StorageEtcd) DeleteDeployBlueGreen

func (storageEtcd *StorageEtcd) DeleteDeployBlueGreen(imageInformation string) error

func (*StorageEtcd) DeleteDeployClusterApplication

func (storageEtcd *StorageEtcd) DeleteDeployClusterApplication(namespace string, name string) error

func (*StorageEtcd) DeleteDeployInformation

func (storageEtcd *StorageEtcd) DeleteDeployInformation(namespace string, imageInformation string) error

func (*StorageEtcd) LoadAllDeployBlueGreen

func (storageEtcd *StorageEtcd) LoadAllDeployBlueGreen() ([]DeployBlueGreen, error)

func (*StorageEtcd) LoadAllDeployClusterApplication

func (storageEtcd *StorageEtcd) LoadAllDeployClusterApplication() ([]DeployClusterApplication, error)

func (*StorageEtcd) LoadAllDeployInformation

func (storageEtcd *StorageEtcd) LoadAllDeployInformation() ([]DeployInformation, error)

func (*StorageEtcd) LoadDeployBlueGreen

func (storageEtcd *StorageEtcd) LoadDeployBlueGreen(imageInformation string) (*DeployBlueGreen, error)

func (*StorageEtcd) LoadDeployClusterApplication

func (storageEtcd *StorageEtcd) LoadDeployClusterApplication(namespace string, name string) (*DeployClusterApplication, error)

func (*StorageEtcd) LoadDeployInformation

func (storageEtcd *StorageEtcd) LoadDeployInformation(namespace string, imageInformation string) (*DeployInformation, error)

func (*StorageEtcd) SaveDeployClusterApplication

func (storageEtcd *StorageEtcd) SaveDeployClusterApplication(deployClusterApplication *DeployClusterApplication) error

Jump to

Keyboard shortcuts

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