Documentation ¶
Index ¶
- Constants
- type AliyunSLBProvider
- func (p *AliyunSLBProvider) AddLBConfig(config model.LBConfig) (string, error)
- func (p *AliyunSLBProvider) GetLBConfigs() ([]model.LBConfig, error)
- func (p *AliyunSLBProvider) GetName() string
- func (p *AliyunSLBProvider) HealthCheck() error
- func (p *AliyunSLBProvider) Init() error
- func (p *AliyunSLBProvider) RemoveLBConfig(config model.LBConfig) error
- func (p *AliyunSLBProvider) UpdateLBConfig(config model.LBConfig) (string, error)
Constants ¶
View Source
const ( ProviderName = "Aliyun SLB" ProviderSlug = "aliyun_slb" )
View Source
const ( TagResourceFlag = "external-lb/rancher" TagNameTargetPool = "external-lb/targetPoolName" TagNameServicePort = "external-lb/servicePort" )
View Source
const ( EnvVarSLBAccessKey = "SLB_ACCESS_KEY" EnvVarSLBSecretKey = "SLB_SECRET_KEY" EnvVarSLBRegionId = "SLB_REGION_ID" EnvVarSLBVpcId = "SLB_VPC_ID" EnvVarUsePrivateIP = "SLB_USE_PRIVATE_IP" )
View Source
const (
DefaultBackendServerWeight = 100
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunSLBProvider ¶
type AliyunSLBProvider struct {
// contains filtered or unexported fields
}
func (*AliyunSLBProvider) AddLBConfig ¶
func (p *AliyunSLBProvider) AddLBConfig(config model.LBConfig) (string, error)
func (*AliyunSLBProvider) GetLBConfigs ¶
func (p *AliyunSLBProvider) GetLBConfigs() ([]model.LBConfig, error)
func (*AliyunSLBProvider) GetName ¶
func (p *AliyunSLBProvider) GetName() string
func (*AliyunSLBProvider) HealthCheck ¶
func (p *AliyunSLBProvider) HealthCheck() error
func (*AliyunSLBProvider) Init ¶
func (p *AliyunSLBProvider) Init() error
func (*AliyunSLBProvider) RemoveLBConfig ¶
func (p *AliyunSLBProvider) RemoveLBConfig(config model.LBConfig) error
func (*AliyunSLBProvider) UpdateLBConfig ¶
func (p *AliyunSLBProvider) UpdateLBConfig(config model.LBConfig) (string, error)
Click to show internal directories.
Click to hide internal directories.