Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Forward bool `json:"forward"` Name string `json:"name"` Pool string `json:"pool"` Request bool `json:"request"` }
Action for a rule
type BackendServerKey ¶
BackendServerKey is the endpoints info
type Condition ¶
type Condition struct { Equals bool `json:"equals,omitempty"` StartsWith bool `json:"startsWith,omitempty"` EndsWith bool `json:"endsWith,omitempty"` Host bool `json:"host,omitempty"` HTTPHost bool `json:"httpHost,omitempty"` HTTPURI bool `json:"httpUri,omitempty"` PathSegment bool `json:"pathSegment,omitempty"` Name string `json:"name"` Index int `json:"index"` Request bool `json:"request"` Values []string `json:"values"` }
Condition for a rule
type GlobalConfig ¶
type GlobalConfig struct { LogLevel string `json:"log-level"` VerifyInterval int `json:"verify-interval"` }
GlobalConfig for logging and checking the bigip
type Member ¶
type Member struct { Address string `json:"address"` Port uint16 `json:"port"` Session string `json:"session,omitempty"` }
Pool Member
type Monitor ¶
type Monitor struct { Name string `json:"name"` Interval int `json:"interval,omitempty"` Protocol string `json:"protocol"` Send string `json:"send,omitempty"` Timeout int `json:"timeout,omitempty"` }
backend health monitor
type Policy ¶
type Policy struct { Controls []string `json:"controls"` Description string `json:"description,omitempty"` Legacy bool `json:"legacy"` Name string `json:"name"` Requires []string `json:"requires"` Rules []*Rule `json:"rules"` Strategy string `json:"strategy"` }
Policy is the final object for the BIG-IP
type Pool ¶
type Pool struct { Name string `json:"name"` Balance string `json:"loadBalancingMode"` Members []Member `json:"members"` MonitorNames []string `json:"monitors"` Description string `json:"description"` }
Pool backend
type Resources ¶
type Resources struct { Virtuals []*Virtual `json:"virtualServers,omitempty"` Pools []*Pool `json:"pools,omitempty"` Monitors []*Monitor `json:"monitors,omitempty"` Policies []*Policy `json:"l7Policies,omitempty"` }
Resources is what gets written to and dumped out for the python side
type Rule ¶
type Rule struct { FullURI string `json:"-"` Actions []*Action `json:"actions"` Conditions []*Condition `json:"conditions"` Name string `json:"name"` Ordinal int `json:"ordinal"` Description string `json:"description"` }
Rule builds up a Policy
type SourceAddrTranslation ¶
type SourceAddrTranslation struct {
Type string `json:"type"`
}
SourceAddrTranslation is the Virtual Server Source Address Translation
type Virtual ¶
type Virtual struct { VirtualServerName string `json:"name"` PoolName string `json:"pool,omitempty"` Mode string `json:"ipProtocol,omitempty"` Enabled bool `json:"enabled,omitempty"` Destination string `json:"destination,omitempty"` Policies []*NameRef `json:"policies,omitempty"` Profiles []*NameRef `json:"profiles,omitempty"` SourceAddrTranslation SourceAddrTranslation `json:"sourceAddressTranslation,omitempty"` }
Virtual server frontend
type VirtualAddress ¶
type VirtualAddress struct { BindAddr string `json:"bindAddr,omitempty"` Port int32 `json:"port,omitempty"` }
VirtualAddress is frontend bindaddr and port
Click to show internal directories.
Click to hide internal directories.