Documentation ¶
Index ¶
- Constants
- func DoLimited(ctx context.Context, limit, n int, fn func(i int) error) error
- func IsErrExists(err error) bool
- type BackendPoolHealthCheck
- type ErrAmbiguousSearch
- type ErrItemAlreadyExists
- type ErrItemNotFound
- type GalebClient
- func (c *GalebClient) AddBackendPool(name string, wait bool) (string, error)
- func (c *GalebClient) AddBackends(backends []*url.URL, poolName string, wait bool) error
- func (c *GalebClient) AddRuleToPool(name, poolName string) (string, error)
- func (c *GalebClient) AddVirtualHost(addr string, wait bool) (string, error)
- func (c *GalebClient) AddVirtualHostWithGroup(addr string, virtualHostWithGroup string, wait bool) (string, error)
- func (c *GalebClient) FindTargetsByPool(poolName string) ([]Target, error)
- func (c *GalebClient) FindVirtualHostGroupByVirtualHostId(virtualHostId string) (int, error)
- func (c *GalebClient) FindVirtualHostsByGroup(virtualHostName string) ([]VirtualHost, error)
- func (c *GalebClient) Healthcheck() error
- func (c *GalebClient) RemoveBackendPool(poolName string) error
- func (c *GalebClient) RemoveResourceByID(resourceID string) error
- func (c *GalebClient) RemoveResourcesByIDs(resourceIDs []string, wait bool) error
- func (c *GalebClient) RemoveRule(ruleName string) error
- func (c *GalebClient) RemoveRulesOrderedByRule(ruleName string) error
- func (c *GalebClient) RemoveVirtualHost(virtualHostName string) error
- func (c *GalebClient) SetRuleVirtualHost(ruleName, virtualHostName string, wait bool) error
- func (c *GalebClient) UpdatePoolProperties(poolName string, properties BackendPoolHealthCheck) error
- func (c *GalebClient) UpdateVirtualHostWithGroup(addr string, virtualHostWithGroup string) error
- type Pool
- type Rule
- type RuleOrdered
- type RuleProperties
- type Target
- type VirtualHost
- type VirtualHostGroup
Constants ¶
View Source
const ( STATUS_SYNCHRONIZING = "SYNCHRONIZING" STATUS_PENDING = "PENDING" STATUS_OK = "OK" STATUS_DELETED = "DELETED" )
Variables ¶
This section is empty.
Functions ¶
func IsErrExists ¶
Types ¶
type BackendPoolHealthCheck ¶
type ErrAmbiguousSearch ¶
type ErrAmbiguousSearch struct {
// contains filtered or unexported fields
}
func (ErrAmbiguousSearch) Error ¶
func (e ErrAmbiguousSearch) Error() string
type ErrItemAlreadyExists ¶
type ErrItemAlreadyExists struct {
// contains filtered or unexported fields
}
func (ErrItemAlreadyExists) Error ¶
func (e ErrItemAlreadyExists) Error() string
type ErrItemNotFound ¶
type ErrItemNotFound struct {
// contains filtered or unexported fields
}
func (ErrItemNotFound) Error ¶
func (e ErrItemNotFound) Error() string
type GalebClient ¶
type GalebClient struct { ApiURL string Username string Password string TokenHeader string Environment string Project string BalancePolicy string RuleType string WaitTimeout time.Duration UseToken bool Debug bool MaxRequests int // contains filtered or unexported fields }
func (*GalebClient) AddBackendPool ¶
func (c *GalebClient) AddBackendPool(name string, wait bool) (string, error)
func (*GalebClient) AddBackends ¶
func (*GalebClient) AddRuleToPool ¶
func (c *GalebClient) AddRuleToPool(name, poolName string) (string, error)
func (*GalebClient) AddVirtualHost ¶
func (c *GalebClient) AddVirtualHost(addr string, wait bool) (string, error)
func (*GalebClient) AddVirtualHostWithGroup ¶
func (*GalebClient) FindTargetsByPool ¶
func (c *GalebClient) FindTargetsByPool(poolName string) ([]Target, error)
func (*GalebClient) FindVirtualHostGroupByVirtualHostId ¶
func (c *GalebClient) FindVirtualHostGroupByVirtualHostId(virtualHostId string) (int, error)
func (*GalebClient) FindVirtualHostsByGroup ¶
func (c *GalebClient) FindVirtualHostsByGroup(virtualHostName string) ([]VirtualHost, error)
func (*GalebClient) Healthcheck ¶
func (c *GalebClient) Healthcheck() error
func (*GalebClient) RemoveBackendPool ¶
func (c *GalebClient) RemoveBackendPool(poolName string) error
func (*GalebClient) RemoveResourceByID ¶
func (c *GalebClient) RemoveResourceByID(resourceID string) error
func (*GalebClient) RemoveResourcesByIDs ¶
func (c *GalebClient) RemoveResourcesByIDs(resourceIDs []string, wait bool) error
func (*GalebClient) RemoveRule ¶
func (c *GalebClient) RemoveRule(ruleName string) error
func (*GalebClient) RemoveRulesOrderedByRule ¶
func (c *GalebClient) RemoveRulesOrderedByRule(ruleName string) error
func (*GalebClient) RemoveVirtualHost ¶
func (c *GalebClient) RemoveVirtualHost(virtualHostName string) error
func (*GalebClient) SetRuleVirtualHost ¶
func (c *GalebClient) SetRuleVirtualHost(ruleName, virtualHostName string, wait bool) error
func (*GalebClient) UpdatePoolProperties ¶
func (c *GalebClient) UpdatePoolProperties(poolName string, properties BackendPoolHealthCheck) error
func (*GalebClient) UpdateVirtualHostWithGroup ¶
func (c *GalebClient) UpdateVirtualHostWithGroup(addr string, virtualHostWithGroup string) error
type Pool ¶
type Pool struct { Project string `json:"project"` Environment string `json:"environment"` BalancePolicy string `json:"balancepolicy"` BackendPoolHealthCheck // contains filtered or unexported fields }
type Rule ¶
type RuleOrdered ¶
type RuleProperties ¶
type RuleProperties struct {
Match string `json:"match"`
}
type Target ¶
type Target struct { BackendPool string `json:"pool,omitempty"` // contains filtered or unexported fields }
type VirtualHost ¶
Click to show internal directories.
Click to hide internal directories.