Documentation ¶
Index ¶
- func GetNames(cn base.Connection, dataCenter string) ([]string, error)
- func IDByName(cn base.Connection, dataCenter string, name string) (string, error)
- type Create
- type CreatePool
- type Delete
- type DeletePool
- type Entity
- type Get
- type GetNodes
- type GetPool
- type List
- type ListPools
- type LoadBalancer
- type Node
- type Pool
- type Update
- type UpdateNode
- type UpdateNodes
- type UpdatePool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreatePool ¶
type CreatePool struct { LoadBalancer `argument:"composed" URIParam:"LoadBalancerId,DataCenter" json:"-"` Port int64 `valid:"required"` Method string `oneOf:"roundRobin,leastConnection"` Persistence string `oneOf:"standard,sticky"` }
type Delete ¶
type Delete struct {
LoadBalancer `argument:"composed" URIParam:"LoadBalancerId,DataCenter" json:"-"`
}
type DeletePool ¶
type DeletePool struct { LoadBalancer `argument:"composed" URIParam:"LoadBalancerId,DataCenter" json:"-"` PoolId string `valid:"required" URIParam:"yes" json:"-"` }
type Entity ¶
type Get ¶
type Get struct {
LoadBalancer `argument:"composed" URIParam:"LoadBalancerId,DataCenter" json:"-"`
}
type GetNodes ¶
type GetNodes struct { LoadBalancer `argument:"composed" URIParam:"LoadBalancerId,DataCenter" json:"-"` PoolId string `valid:"required" URIParam:"yes"` }
type GetPool ¶
type GetPool struct { LoadBalancer `argument:"composed" URIParam:"LoadBalancerId,DataCenter" json:"-"` PoolId string `valid:"required" URIParam:"yes"` }
type ListPools ¶
type ListPools struct {
LoadBalancer `argument:"composed" URIParam:"LoadBalancerId,DataCenter"`
}
type LoadBalancer ¶
func (*LoadBalancer) GetNames ¶
func (b *LoadBalancer) GetNames(cn base.Connection, property string) ([]string, error)
func (*LoadBalancer) InferID ¶
func (b *LoadBalancer) InferID(cn base.Connection) error
func (*LoadBalancer) Validate ¶
func (b *LoadBalancer) Validate() error
type Update ¶
type Update struct { LoadBalancer `argument:"composed" URIParam:"LoadBalancerId,DataCenter" json:"-"` Name string `valid:"required"` Description string `valid:"required"` Status string `json:",omitempty" oneOf:"enabled,disabled,optional"` }
type UpdateNode ¶
type UpdateNodes ¶
type UpdateNodes struct { LoadBalancer `argument:"composed" URIParam:"LoadBalancerId,DataCenter" json:"-"` PoolId string `valid:"required" URIParam:"yes"` Nodes []UpdateNode }
func (*UpdateNodes) MarshalJSON ¶
func (u *UpdateNodes) MarshalJSON() ([]byte, error)
func (*UpdateNodes) Validate ¶
func (u *UpdateNodes) Validate() error
type UpdatePool ¶
type UpdatePool struct { LoadBalancer `argument:"composed" URIParam:"LoadBalancerId,DataCenter" json:"-"` PoolId string `json:"-" valid:"required" URIParam:"yes"` Method string `oneOf:"roundRobin,leastConnection"` Persistence string `oneOf:"standard,sticky"` }
Click to show internal directories.
Click to hide internal directories.