object

package
v3.4.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: LGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	Name        string
	Index       int64
	Certificate string
	PrivateKey  string
	EventID     string
	PluginName  string
	PluginOpts  map[string]string
}

func (*Certificate) GetEventID

func (p *Certificate) GetEventID() string

func (*Certificate) GetIndex

func (p *Certificate) GetIndex() int64

func (*Certificate) GetName

func (p *Certificate) GetName() string

type DomainObject

type DomainObject struct {
	Name       string //不重复的命名 不同资源之间可以一样
	Domain     string
	Protocol   string
	Index      int64
	PluginName string
	PluginOpts map[string]string
	EventID    string
}

func (*DomainObject) GetEventID

func (p *DomainObject) GetEventID() string

func (*DomainObject) GetIndex

func (p *DomainObject) GetIndex() int64

func (*DomainObject) GetName

func (p *DomainObject) GetName() string

type NodeObject

type NodeObject struct {
	Index      int64
	Host       string
	Port       int32
	Protocol   string
	State      string //Active Draining Disabled
	PoolName   string //属于哪个pool
	NodeName   string
	Ready      bool //是否已经Ready
	PluginName string
	PluginOpts map[string]string
	Weight     int
	Namespace  string
	EventID    string
}

func (*NodeObject) GetEventID

func (p *NodeObject) GetEventID() string

func (*NodeObject) GetIndex

func (p *NodeObject) GetIndex() int64

func (*NodeObject) GetName

func (p *NodeObject) GetName() string

type Object

type Object interface {
	GetName() string
	GetIndex() int64
	GetEventID() string
}

Object source object

type PoolObject

type PoolObject struct {
	ServiceID      string //租户原名.service别名 labels
	ServiceVersion string //version labels
	Index          int64
	Name           string
	Note           string //说明
	NodeNumber     int
	PluginName     string
	PluginOpts     map[string]string
	Namespace      string
	EventID        string
}

func (*PoolObject) GetEventID

func (p *PoolObject) GetEventID() string

func (*PoolObject) GetIndex

func (p *PoolObject) GetIndex() int64

func (*PoolObject) GetName

func (p *PoolObject) GetName() string

type RuleObject

type RuleObject struct {
	Name            string //不重复的命名规则
	Index           int64
	DomainName      string //与domain中的name对应
	PoolName        string
	HTTPS           bool
	TransferHTTP    bool //转移 http到https
	CertificateName string
	PluginName      string
	PluginOpts      map[string]string
	Namespace       string
	EventID         string
}

func (*RuleObject) Copy

func (p *RuleObject) Copy() *RuleObject

func (*RuleObject) GetEventID

func (p *RuleObject) GetEventID() string

func (*RuleObject) GetIndex

func (p *RuleObject) GetIndex() int64

func (*RuleObject) GetName

func (p *RuleObject) GetName() string

type VirtualServiceObject

type VirtualServiceObject struct {
	Index           int64
	Name            string //不重复的命名
	Enabled         bool
	Protocol        string //默认为 stream
	Port            int32
	Listening       []string //if Listening is nil,will listen all
	Note            string   //说明
	DefaultPoolName string
	Rules           []string //默认无
	PluginName      string
	PluginOpts      map[string]string
	Namespace       string
	EventID         string
}

func (*VirtualServiceObject) GetEventID

func (p *VirtualServiceObject) GetEventID() string

func (*VirtualServiceObject) GetIndex

func (p *VirtualServiceObject) GetIndex() int64

func (*VirtualServiceObject) GetName

func (p *VirtualServiceObject) GetName() string

Jump to

Keyboard shortcuts

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