models

package
v2.3.13+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IResource

type IResource interface {
	GetUpdateVersion() int
	GetUpdatedAt() time.Time
}

type IStandaloneResource

type IStandaloneResource interface {
	IResource
	GetId() string
}

type IVirtualResource

type IVirtualResource interface {
	IStandaloneResource
	GetPendingDeleted() bool
}

type Loadbalancer

type Loadbalancer struct {
	VirtualResource

	Address     string
	AddressType string
	NetworkType string
	NetworkId   string
	ZoneId      string

	BackendGroupId string
}

type LoadbalancerAcl

type LoadbalancerAcl struct {
	SharableVirtualResource

	AclEntries *LoadbalancerAclEntries
}

type LoadbalancerAclEntries

type LoadbalancerAclEntries []*LoadbalancerAclEntry

type LoadbalancerAclEntry

type LoadbalancerAclEntry struct {
	Cidr    string
	Comment string
}

type LoadbalancerAgent

type LoadbalancerAgent struct {
	StandaloneResource

	HbLastSeen time.Time
	HbTimeout  int

	Loadbalancers             time.Time
	LoadbalancerListeners     time.Time
	LoadbalancerListenerRules time.Time
	LoadbalancerBackendGroups time.Time
	LoadbalancerBackends      time.Time
	LoadbalancerAcls          time.Time
	LoadbalancerCertificates  time.Time
	Params                    LoadbalancerAgentParams
}

type LoadbalancerAgentParams

type LoadbalancerAgentParams struct {
	KeepalivedConfTmpl string
	HaproxyConfTmpl    string
	TelegrafConfTmpl   string
	Vrrp               LoadbalancerAgentParamsVrrp
	Haproxy            LoadbalancerAgentParamsHaproxy
	Telegraf           LoadbalancerAgentParamsTelegraf
}

type LoadbalancerAgentParamsHaproxy

type LoadbalancerAgentParamsHaproxy struct {
	GlobalLog      string
	GlobalNbthread int
	LogHttp        bool
	LogTcp         bool
	LogNormal      bool
}

type LoadbalancerAgentParamsTelegraf

type LoadbalancerAgentParamsTelegraf struct {
	InfluxDbOutputUrl    string
	InfluxDbOutputName   string
	HaproxyInputInterval int
}

type LoadbalancerAgentParamsVrrp

type LoadbalancerAgentParamsVrrp struct {
	Priority          int
	VirtualRouterId   int
	GarpMasterRefresh int
	Preempt           bool
	Interface         string
	AdvertInt         int
	Pass              string
}

type LoadbalancerBackend

type LoadbalancerBackend struct {
	VirtualResource

	BackendGroupId string
	BackendId      string
	BackendType    string
	Weight         int
	Address        string
	Port           int
}

type LoadbalancerBackendGroup

type LoadbalancerBackendGroup struct {
	VirtualResource

	LoadbalancerId string
}

type LoadbalancerCertificate

type LoadbalancerCertificate struct {
	VirtualResource

	Certificate string
	PrivateKey  string

	PublicKeyAlgorithm      string
	PublicKeyBitLen         int
	SignatureAlgorithm      string
	FingerprintSha256       string
	NotBefore               time.Time
	NotAfter                time.Time
	CommonName              string
	SubjectAlternativeNames string
}

type LoadbalancerHTTPListener

type LoadbalancerHTTPListener struct {
	StickySession              string
	StickySessionType          string
	StickySessionCookie        string
	StickySessionCookieTimeout int

	XForwardedFor      bool
	XForwardedForSLBIP bool
	XForwardedForSLBID bool
	Gzip               bool
}

type LoadbalancerHTTPSListener

type LoadbalancerHTTPSListener struct {
	CertificateId   string
	TLSCipherPolicy string
	EnableHttp2     bool
}

CACertificate string

type LoadbalancerListener

type LoadbalancerListener struct {
	VirtualResource

	LoadbalancerId string
	Bandwidth      int
	ListenerType   string
	ListenerPort   int

	Scheduler string

	ClientRequestTimeout  int
	ClientIdleTimeout     int
	BackendConnectTimeout int
	BackendIdleTimeout    int

	BackendGroupId string

	AclStatus string
	AclType   string
	AclId     string

	HealthCheck     string
	HealthCheckType string

	HealthCheckDomain   string
	HealthCheckURI      string
	HealthCheckHttpCode string

	HealthCheckRise     int
	HealthCheckFall     int
	HealthCheckInterval int
	HealthCheckTimeout  int

	HealthCheckReq string
	HealthCheckExp string

	LoadbalancerTCPListener
	LoadbalancerUDPListener
	LoadbalancerHTTPListener
	LoadbalancerHTTPSListener

	XForwardedFor bool
	Gzip          bool
}

type LoadbalancerListenerRule

type LoadbalancerListenerRule struct {
	VirtualResource

	ListenerId     string
	BackendGroupId string

	Domain string
	Path   string
}

type LoadbalancerTCPListener

type LoadbalancerTCPListener struct{}

type LoadbalancerUDPListener

type LoadbalancerUDPListener struct{}

type Resource

type Resource struct {
	CreatedAt     time.Time
	UpdatedAt     time.Time
	UpdateVersion int
	DeletedAt     time.Time
	Deleted       bool
}

func (*Resource) GetUpdateVersion

func (r *Resource) GetUpdateVersion() int

func (*Resource) GetUpdatedAt

func (r *Resource) GetUpdatedAt() time.Time

type SharableVirtualResource

type SharableVirtualResource struct {
	VirtualResource

	IsPublic bool
}

type StandaloneResource

type StandaloneResource struct {
	Resource

	Id          string
	Name        string
	ExternalId  string
	Description string
	IsEmulated  bool
}

func (*StandaloneResource) GetId

func (r *StandaloneResource) GetId() string

type StatusStandaloneResource

type StatusStandaloneResource struct {
	StandaloneResource

	Status string
}

type VirtualResource

type VirtualResource struct {
	StatusStandaloneResource

	ProjectId        string
	IsSystem         bool
	PendingDeletedAt time.Time
	PendingDeleted   bool
}

func (*VirtualResource) GetPendingDeleted

func (r *VirtualResource) GetPendingDeleted() bool

Jump to

Keyboard shortcuts

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