slb

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

Documentation

Index

Constants

View Source
const (
	BlueGreenDeploymentPrefix = "bg."
)

Variables

This section is empty.

Functions

func CreateCommand

func CreateCommand() (*slb.Command, error)

func ReloadStorage

func ReloadStorage(storageType int) error

func SendCommandToAllSLBDaemon

func SendCommandToAllSLBDaemon() error

func SendCommandToSLBDaemon

func SendCommandToSLBDaemon(targetEndPoint string) error

Used for failed slb host to reconfigure

Types

type DummyError

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

func (*DummyError) Error

func (dummyError *DummyError) Error() string

type SLBDaemon

type SLBDaemon struct {
	Name          string
	EndPointSlice []string
	NodeHostSlice []string
	Description   string
}

func (*SLBDaemon) SendCommand

func (slbDaemon *SLBDaemon) SendCommand(command *slb.Command) error

type Storage

type Storage interface {
	DeleteSLBDaemon(name string) error
	SaveSLBDaemon(slbDaemon *SLBDaemon) error
	LoadSLBDaemon(name string) (*SLBDaemon, error)
	LoadAllSLBDaemon() ([]SLBDaemon, error)
	// contains filtered or unexported methods
}

func GetStorage

func GetStorage() Storage

type StorageDummy

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

func (*StorageDummy) DeleteSLBDaemon

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

func (*StorageDummy) LoadAllSLBDaemon

func (storageDummy *StorageDummy) LoadAllSLBDaemon() ([]SLBDaemon, error)

func (*StorageDummy) LoadSLBDaemon

func (storageDummy *StorageDummy) LoadSLBDaemon(name string) (*SLBDaemon, error)

func (*StorageDummy) SaveSLBDaemon

func (storageDummy *StorageDummy) SaveSLBDaemon(slbDaemon *SLBDaemon) error

func (*StorageDummy) ShouldCheck

func (storageDummy *StorageDummy) ShouldCheck() bool

type StorageEtcd

type StorageEtcd struct {
}

func (*StorageEtcd) DeleteSLBDaemon

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

func (*StorageEtcd) LoadAllSLBDaemon

func (storageEtcd *StorageEtcd) LoadAllSLBDaemon() ([]SLBDaemon, error)

func (*StorageEtcd) LoadSLBDaemon

func (storageEtcd *StorageEtcd) LoadSLBDaemon(name string) (*SLBDaemon, error)

func (*StorageEtcd) SaveSLBDaemon

func (storageEtcd *StorageEtcd) SaveSLBDaemon(slbDaemon *SLBDaemon) error

Jump to

Keyboard shortcuts

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