object

package
v5.0.3-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: LGPL-3.0 Imports: 3 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) GetHash

func (p *Certificate) GetHash() (string, error)

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) GetHash

func (p *DomainObject) GetHash() (string, error)

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) GetHash

func (p *NodeObject) GetHash() (string, error)

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
	GetHash() (string, error)
}

Object source object

type PoolObject

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

func (*PoolObject) GetEventID

func (p *PoolObject) GetEventID() string

func (*PoolObject) GetHash

func (p *PoolObject) GetHash() (string, error)

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

Copy copy

func (*RuleObject) GetEventID

func (p *RuleObject) GetEventID() string

GetEventID get eventid

func (*RuleObject) GetHash

func (p *RuleObject) GetHash() (string, error)

GetHash get hash

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) GetHash

func (p *VirtualServiceObject) GetHash() (string, error)

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