Documentation ¶
Index ¶
- Constants
- func ChangeDeployInformationReplicaAmount(namespace string, replicationControllerName string, size int) error
- func CleanAllServiceUnderBlueGreenDeployment(kubeApiServerEndPoint string, kubeApiServerToken string, ...) error
- func DeleteDeployClusterApplication(kubeApiServerEndPoint string, kubeApiServerToken string, namespace string, ...) error
- func DeployCreate(kubeApiServerEndPoint string, kubeApiServerToken string, namespace string, ...) error
- func DeployDelete(kubeApiServerEndPoint string, kubeApiServerToken string, namespace string, ...) error
- func DeployResize(kubeApiServerEndPoint string, kubeApiServerToken string, namespace string, ...) error
- func DeployUpdate(kubeApiServerEndPoint string, kubeApiServerToken string, namespace string, ...) error
- func GetAllBlueGreenDeployableNamespace(imageInformationName string) ([]string, error)
- func GetBlueGreenServiceName(imageInformation string) string
- func InitializeDeployClusterApplication(kubeApiServerEndPoint string, kubeApiServerToken string, namespace string, ...) error
- func IsImageInformationUsed(imageInformationName string) (bool, error)
- func IsImageRecordUsed(imageInformationName string, imageRecordVersion string) (bool, error)
- func ReloadStorage(storageType int) error
- func ResizeDeployClusterApplication(kubeApiServerEndPoint string, kubeApiServerToken string, namespace string, ...) error
- func UpdateDeployBlueGreen(kubeApiServerEndPoint string, kubeApiServerToken string, ...) error
- type DeployBlueGreen
- type DeployClusterApplication
- type DeployContainerPort
- type DeployInformation
- func GetDeployInformationInNamespace(namespace string) ([]DeployInformation, error)
- func GetDeployInformationOwningReplicationController(namespace string, replicationControllerName string) (*DeployInformation, error)
- func GetDeployInformationWithAutoUpdateForNewBuild(imageInformationName string) ([]DeployInformation, error)
- type DummyError
- type Storage
- type StorageCassandra
- func (storageCassandra *StorageCassandra) DeleteDeployBlueGreen(imageInformation string) error
- func (storageCassandra *StorageCassandra) DeleteDeployClusterApplication(namespace string, name string) error
- func (storageCassandra *StorageCassandra) DeleteDeployInformation(namespace string, imageInformation string) error
- func (storageCassandra *StorageCassandra) LoadAllDeployBlueGreen() ([]DeployBlueGreen, error)
- func (storageCassandra *StorageCassandra) LoadAllDeployClusterApplication() ([]DeployClusterApplication, error)
- func (storageCassandra *StorageCassandra) LoadAllDeployInformation() ([]DeployInformation, error)
- func (storageCassandra *StorageCassandra) LoadDeployBlueGreen(imageInformation string) (*DeployBlueGreen, error)
- func (storageCassandra *StorageCassandra) LoadDeployClusterApplication(namespace string, name string) (*DeployClusterApplication, error)
- func (storageCassandra *StorageCassandra) LoadDeployInformation(namespace string, imageInformation string) (*DeployInformation, error)
- func (storageCassandra *StorageCassandra) SaveDeployClusterApplication(deployClusterApplication *DeployClusterApplication) error
- type StorageDummy
- func (storageDummy *StorageDummy) DeleteDeployBlueGreen(imageInformation string) error
- func (storageDummy *StorageDummy) DeleteDeployClusterApplication(namespace string, name string) error
- func (storageDummy *StorageDummy) DeleteDeployInformation(namespace string, imageInformation string) error
- func (storageDummy *StorageDummy) LoadAllDeployBlueGreen() ([]DeployBlueGreen, error)
- func (storageDummy *StorageDummy) LoadAllDeployClusterApplication() ([]DeployClusterApplication, error)
- func (storageDummy *StorageDummy) LoadAllDeployInformation() ([]DeployInformation, error)
- func (storageDummy *StorageDummy) LoadDeployBlueGreen(imageInformation string) (*DeployBlueGreen, error)
- func (storageDummy *StorageDummy) LoadDeployClusterApplication(namespace string, name string) (*DeployClusterApplication, error)
- func (storageDummy *StorageDummy) LoadDeployInformation(namespace string, imageInformation string) (*DeployInformation, error)
- func (storageDummy *StorageDummy) SaveDeployClusterApplication(deployClusterApplication *DeployClusterApplication) error
- func (storageDummy *StorageDummy) ShouldCheck() bool
- type StorageEtcd
- func (storageEtcd *StorageEtcd) DeleteDeployBlueGreen(imageInformation string) error
- func (storageEtcd *StorageEtcd) DeleteDeployClusterApplication(namespace string, name string) error
- func (storageEtcd *StorageEtcd) DeleteDeployInformation(namespace string, imageInformation string) error
- func (storageEtcd *StorageEtcd) LoadAllDeployBlueGreen() ([]DeployBlueGreen, error)
- func (storageEtcd *StorageEtcd) LoadAllDeployClusterApplication() ([]DeployClusterApplication, error)
- func (storageEtcd *StorageEtcd) LoadAllDeployInformation() ([]DeployInformation, error)
- func (storageEtcd *StorageEtcd) LoadDeployBlueGreen(imageInformation string) (*DeployBlueGreen, error)
- func (storageEtcd *StorageEtcd) LoadDeployClusterApplication(namespace string, name string) (*DeployClusterApplication, error)
- func (storageEtcd *StorageEtcd) LoadDeployInformation(namespace string, imageInformation string) (*DeployInformation, error)
- func (storageEtcd *StorageEtcd) SaveDeployClusterApplication(deployClusterApplication *DeployClusterApplication) error
Constants ¶
View Source
const ( LockKind = "deploy" ProtocolTypeHTTP = "http" ProtocolTypeHTTPS = "https" ProtocolTypeOther = "other" )
Variables ¶
This section is empty.
Functions ¶
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 DeployResize ¶
func DeployUpdate ¶
func GetBlueGreenServiceName ¶
func IsImageInformationUsed ¶
func IsImageRecordUsed ¶
func ReloadStorage ¶
func UpdateDeployBlueGreen ¶
func UpdateDeployBlueGreen(kubeApiServerEndPoint string, kubeApiServerToken string, deployBlueGreen *DeployBlueGreen) error
Types ¶
type DeployBlueGreen ¶
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 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
Click to show internal directories.
Click to hide internal directories.