bigipResources

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2017 License: Apache-2.0 Imports: 1 Imported by: 4

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

type BackendServerKey struct {
	Address string
	Port    uint16
}

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 NameRef

type NameRef struct {
	Name      string `json:"name"`
	Partition string `json:"partition"`
}

NameRef virtual server policy/profile reference

type PartitionMap

type PartitionMap map[string]*Resources

Configs for each BIG-IP partition

type Policies

type Policies []*Policy

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 RouteMap

type RouteMap map[route.Uri]*Pool

type RoutingKey

type RoutingKey struct {
	Port uint16
}

RoutingKey is the port for the route

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 RuleMap

type RuleMap map[route.Uri]*Rule

type Rules

type Rules []*Rule

func (Rules) Len

func (r Rules) Len() int

func (Rules) Less

func (r Rules) Less(i, j int) bool

func (Rules) Swap

func (r Rules) Swap(i, j int)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL