Documentation ¶
Index ¶
- Constants
- type BackendPoolProperties
- type ErrAmbiguousSearch
- type ErrItemAlreadyExists
- type ErrItemNotFound
- type GalebClient
- func (c *GalebClient) AddBackend(backend *url.URL, poolName string) (string, error)
- func (c *GalebClient) AddBackendPool(name string) (string, error)
- func (c *GalebClient) AddBackends(backends []*url.URL, poolName string) error
- func (c *GalebClient) AddRuleToID(name, poolID string) (string, error)
- func (c *GalebClient) AddVirtualHost(addr string) (string, error)
- func (c *GalebClient) FindTargetsByParent(poolName string) ([]Target, error)
- func (c *GalebClient) FindVirtualHostsByRule(ruleName string) ([]VirtualHost, error)
- func (c *GalebClient) Healthcheck() error
- func (c *GalebClient) RemoveBackendByID(backendID string) error
- func (c *GalebClient) RemoveBackendPool(poolName string) error
- func (c *GalebClient) RemoveBackendsByIDs(backendIDs []string) error
- func (c *GalebClient) RemoveRule(ruleName string) error
- func (c *GalebClient) RemoveRuleVirtualHost(ruleName, virtualHostName string) error
- func (c *GalebClient) RemoveRuleVirtualHostByID(ruleID, virtualHostID string) error
- func (c *GalebClient) RemoveVirtualHost(virtualHostName string) error
- func (c *GalebClient) RemoveVirtualHostByID(virtualHostID string) error
- func (c *GalebClient) SetRuleVirtualHost(ruleName, virtualHostName string) error
- func (c *GalebClient) SetRuleVirtualHostIDs(ruleID, virtualHostID string) error
- func (c *GalebClient) UpdatePoolProperties(poolName string, properties BackendPoolProperties) error
- type Pool
- type Rule
- type RuleProperties
- type Target
- type VirtualHost
Constants ¶
View Source
const ( STATUS_SYNCHRONIZING = "SYNCHRONIZING" STATUS_PENDING = "PENDING" STATUS_OK = "OK" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendPoolProperties ¶
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 // contains filtered or unexported fields }
func (*GalebClient) AddBackend ¶
func (*GalebClient) AddBackendPool ¶
func (c *GalebClient) AddBackendPool(name string) (string, error)
func (*GalebClient) AddBackends ¶
func (c *GalebClient) AddBackends(backends []*url.URL, poolName string) error
func (*GalebClient) AddRuleToID ¶
func (c *GalebClient) AddRuleToID(name, poolID string) (string, error)
func (*GalebClient) AddVirtualHost ¶
func (c *GalebClient) AddVirtualHost(addr string) (string, error)
func (*GalebClient) FindTargetsByParent ¶
func (c *GalebClient) FindTargetsByParent(poolName string) ([]Target, error)
func (*GalebClient) FindVirtualHostsByRule ¶
func (c *GalebClient) FindVirtualHostsByRule(ruleName string) ([]VirtualHost, error)
func (*GalebClient) Healthcheck ¶
func (c *GalebClient) Healthcheck() error
func (*GalebClient) RemoveBackendByID ¶
func (c *GalebClient) RemoveBackendByID(backendID string) error
func (*GalebClient) RemoveBackendPool ¶
func (c *GalebClient) RemoveBackendPool(poolName string) error
func (*GalebClient) RemoveBackendsByIDs ¶
func (c *GalebClient) RemoveBackendsByIDs(backendIDs []string) error
func (*GalebClient) RemoveRule ¶
func (c *GalebClient) RemoveRule(ruleName string) error
func (*GalebClient) RemoveRuleVirtualHost ¶
func (c *GalebClient) RemoveRuleVirtualHost(ruleName, virtualHostName string) error
func (*GalebClient) RemoveRuleVirtualHostByID ¶
func (c *GalebClient) RemoveRuleVirtualHostByID(ruleID, virtualHostID string) error
func (*GalebClient) RemoveVirtualHost ¶
func (c *GalebClient) RemoveVirtualHost(virtualHostName string) error
func (*GalebClient) RemoveVirtualHostByID ¶
func (c *GalebClient) RemoveVirtualHostByID(virtualHostID string) error
func (*GalebClient) SetRuleVirtualHost ¶
func (c *GalebClient) SetRuleVirtualHost(ruleName, virtualHostName string) error
func (*GalebClient) SetRuleVirtualHostIDs ¶
func (c *GalebClient) SetRuleVirtualHostIDs(ruleID, virtualHostID string) error
func (*GalebClient) UpdatePoolProperties ¶
func (c *GalebClient) UpdatePoolProperties(poolName string, properties BackendPoolProperties) error
type Pool ¶
type Pool struct { Project string `json:"project"` Environment string `json:"environment"` BalancePolicy string `json:"balancePolicy"` Properties BackendPoolProperties `json:"properties,omitempty"` // contains filtered or unexported fields }
type Rule ¶
type Rule struct { RuleType string `json:"ruleType,omitempty"` BackendPool string `json:"pool,omitempty"` Default bool `json:"default,omitempty"` Order int `json:"order,omitempty"` Properties RuleProperties `json:"properties,omitempty"` // contains filtered or unexported fields }
type RuleProperties ¶
type RuleProperties struct {
Match string `json:"match"`
}
type Target ¶
type VirtualHost ¶
Click to show internal directories.
Click to hide internal directories.