config

package
v0.0.0-...-1cdf2d7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 11

Documentation

Index

Constants

View Source
const (
	Default_Healthcheck_Interval  = int32(10)
	Default_Healthcheck_Timeout   = int32(5)
	Default_Healthcheck_Mode      = Healthcheck_PLAIN
	Default_Healthcheck_TlsVerify = bool(true)
)

Default values for Healthcheck fields.

View Source
const (
	Default_VserverEntry_Scheduler = VserverEntry_WLC
	Default_VserverEntry_Mode      = VserverEntry_DSR
)

Default values for VserverEntry fields.

View Source
const (
	Default_Cluster_Vmac        = string("00:00:5E:00:01:01")
	Default_Cluster_BgpLocalAsn = uint32(64512)
)

Default values for Cluster fields.

View Source
const (
	Default_Backend_Weight = int32(1)
)

Default values for Backend fields.

Variables

View Source
var (
	Protocol_name = map[int32]string{
		1: "TCP",
		2: "UDP",
	}
	Protocol_value = map[string]int32{
		"TCP": 1,
		"UDP": 2,
	}
)

Enum value maps for Protocol.

View Source
var (
	Host_Status_name = map[int32]string{
		1: "PRODUCTION",
		2: "TESTING",
		3: "BUILDING",
		4: "STANDBY",
		5: "FAILURE",
		6: "DISABLED",
		7: "PROPOSED",
	}
	Host_Status_value = map[string]int32{
		"PRODUCTION": 1,
		"TESTING":    2,
		"BUILDING":   3,
		"STANDBY":    4,
		"FAILURE":    5,
		"DISABLED":   6,
		"PROPOSED":   7,
	}
)

Enum value maps for Host_Status.

View Source
var (
	Healthcheck_Type_name = map[int32]string{
		1: "ICMP_PING",
		2: "UDP",
		3: "TCP",
		4: "HTTP",
		5: "HTTPS",
		6: "DNS",
		7: "TCP_TLS",
		8: "RADIUS",
	}
	Healthcheck_Type_value = map[string]int32{
		"ICMP_PING": 1,
		"UDP":       2,
		"TCP":       3,
		"HTTP":      4,
		"HTTPS":     5,
		"DNS":       6,
		"TCP_TLS":   7,
		"RADIUS":    8,
	}
)

Enum value maps for Healthcheck_Type.

View Source
var (
	Healthcheck_Mode_name = map[int32]string{
		1: "PLAIN",
		2: "DSR",
		3: "TUN",
	}
	Healthcheck_Mode_value = map[string]int32{
		"PLAIN": 1,
		"DSR":   2,
		"TUN":   3,
	}
)

Enum value maps for Healthcheck_Mode.

View Source
var (
	VserverEntry_Scheduler_name = map[int32]string{
		1: "RR",
		2: "WRR",
		3: "LC",
		4: "WLC",
		5: "SH",
		6: "MH",
	}
	VserverEntry_Scheduler_value = map[string]int32{
		"RR":  1,
		"WRR": 2,
		"LC":  3,
		"WLC": 4,
		"SH":  5,
		"MH":  6,
	}
)

Enum value maps for VserverEntry_Scheduler.

View Source
var (
	VserverEntry_Mode_name = map[int32]string{
		1: "DSR",
		2: "NAT",
		3: "TUN",
	}
	VserverEntry_Mode_value = map[string]int32{
		"DSR": 1,
		"NAT": 2,
		"TUN": 3,
	}
)

Enum value maps for VserverEntry_Mode.

View Source
var (
	AccessGrant_Role_name = map[int32]string{
		1: "ADMIN",
		2: "OPS",
	}
	AccessGrant_Role_value = map[string]int32{
		"ADMIN": 1,
		"OPS":   2,
	}
)

Enum value maps for AccessGrant_Role.

View Source
var (
	AccessGrant_Type_name = map[int32]string{
		1: "USER",
		2: "GROUP",
	}
	AccessGrant_Type_value = map[string]int32{
		"USER":  1,
		"GROUP": 2,
	}
)

Enum value maps for AccessGrant_Type.

View Source
var File_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccessGrant

type AccessGrant struct {

	// The user or group.
	Grantee *string `protobuf:"bytes,1,req,name=grantee" json:"grantee,omitempty"`
	// The Role granted to the grantee.
	Role *AccessGrant_Role `protobuf:"varint,2,req,name=role,enum=AccessGrant_Role" json:"role,omitempty"`
	// The Type of AccessGrant.
	Type *AccessGrant_Type `protobuf:"varint,3,req,name=type,enum=AccessGrant_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessGrant) Descriptor deprecated

func (*AccessGrant) Descriptor() ([]byte, []int)

Deprecated: Use AccessGrant.ProtoReflect.Descriptor instead.

func (*AccessGrant) GetGrantee

func (x *AccessGrant) GetGrantee() string

func (*AccessGrant) GetRole

func (x *AccessGrant) GetRole() AccessGrant_Role

func (*AccessGrant) GetType

func (x *AccessGrant) GetType() AccessGrant_Type

func (*AccessGrant) ProtoMessage

func (*AccessGrant) ProtoMessage()

func (*AccessGrant) ProtoReflect

func (x *AccessGrant) ProtoReflect() protoreflect.Message

func (*AccessGrant) Reset

func (x *AccessGrant) Reset()

func (*AccessGrant) String

func (x *AccessGrant) String() string

type AccessGrant_Role

type AccessGrant_Role int32
const (
	AccessGrant_ADMIN AccessGrant_Role = 1
	AccessGrant_OPS   AccessGrant_Role = 2
)

func (AccessGrant_Role) Descriptor

func (AccessGrant_Role) Enum

func (AccessGrant_Role) EnumDescriptor deprecated

func (AccessGrant_Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use AccessGrant_Role.Descriptor instead.

func (AccessGrant_Role) Number

func (AccessGrant_Role) String

func (x AccessGrant_Role) String() string

func (AccessGrant_Role) Type

func (*AccessGrant_Role) UnmarshalJSON deprecated

func (x *AccessGrant_Role) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type AccessGrant_Type

type AccessGrant_Type int32
const (
	AccessGrant_USER  AccessGrant_Type = 1
	AccessGrant_GROUP AccessGrant_Type = 2
)

func (AccessGrant_Type) Descriptor

func (AccessGrant_Type) Enum

func (AccessGrant_Type) EnumDescriptor deprecated

func (AccessGrant_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use AccessGrant_Type.Descriptor instead.

func (AccessGrant_Type) Number

func (AccessGrant_Type) String

func (x AccessGrant_Type) String() string

func (AccessGrant_Type) Type

func (*AccessGrant_Type) UnmarshalJSON deprecated

func (x *AccessGrant_Type) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type AccessGroup

type AccessGroup struct {

	// The name of the group.
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	// The members of the group.
	Member []string `protobuf:"bytes,2,rep,name=member" json:"member,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessGroup) Descriptor deprecated

func (*AccessGroup) Descriptor() ([]byte, []int)

Deprecated: Use AccessGroup.ProtoReflect.Descriptor instead.

func (*AccessGroup) GetMember

func (x *AccessGroup) GetMember() []string

func (*AccessGroup) GetName

func (x *AccessGroup) GetName() string

func (*AccessGroup) ProtoMessage

func (*AccessGroup) ProtoMessage()

func (*AccessGroup) ProtoReflect

func (x *AccessGroup) ProtoReflect() protoreflect.Message

func (*AccessGroup) Reset

func (x *AccessGroup) Reset()

func (*AccessGroup) String

func (x *AccessGroup) String() string

type Attribute

type Attribute struct {
	Name  *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Attribute) Descriptor deprecated

func (*Attribute) Descriptor() ([]byte, []int)

Deprecated: Use Attribute.ProtoReflect.Descriptor instead.

func (*Attribute) GetName

func (x *Attribute) GetName() string

func (*Attribute) GetValue

func (x *Attribute) GetValue() string

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) ProtoReflect

func (x *Attribute) ProtoReflect() protoreflect.Message

func (*Attribute) Reset

func (x *Attribute) Reset()

func (*Attribute) String

func (x *Attribute) String() string

type Backend

type Backend struct {
	Host   *Host  `protobuf:"bytes,1,req,name=host" json:"host,omitempty"`
	Weight *int32 `protobuf:"varint,2,opt,name=weight,def=1" json:"weight,omitempty"`
	// contains filtered or unexported fields
}

func (*Backend) Descriptor deprecated

func (*Backend) Descriptor() ([]byte, []int)

Deprecated: Use Backend.ProtoReflect.Descriptor instead.

func (*Backend) GetHost

func (x *Backend) GetHost() *Host

func (*Backend) GetWeight

func (x *Backend) GetWeight() int32

func (*Backend) ProtoMessage

func (*Backend) ProtoMessage()

func (*Backend) ProtoReflect

func (x *Backend) ProtoReflect() protoreflect.Message

func (*Backend) Reset

func (x *Backend) Reset()

func (*Backend) String

func (x *Backend) String() string

type Cluster

type Cluster struct {
	SeesawVip *Host   `protobuf:"bytes,1,req,name=seesaw_vip,json=seesawVip" json:"seesaw_vip,omitempty"`
	Node      []*Host `protobuf:"bytes,2,rep,name=node" json:"node,omitempty"`
	Vmac      *string `protobuf:"bytes,3,opt,name=vmac,def=00:00:5E:00:01:01" json:"vmac,omitempty"`
	// The local ASN for BGP peering.
	BgpLocalAsn *uint32 `protobuf:"varint,4,opt,name=bgp_local_asn,json=bgpLocalAsn,def=64512" json:"bgp_local_asn,omitempty"`
	// The remote ASN for BGP peering.  If unset, BGP will not be used.
	BgpRemoteAsn *uint32 `protobuf:"varint,5,opt,name=bgp_remote_asn,json=bgpRemoteAsn" json:"bgp_remote_asn,omitempty"`
	// The BGP peers.  If empty, BGP will not be used.
	BgpPeer []*Host `protobuf:"bytes,6,rep,name=bgp_peer,json=bgpPeer" json:"bgp_peer,omitempty"`
	// The service VIPs hosted by this cluster, excluding those that are
	// misconfigured (see the misconfigured_vserver attribute).
	Vserver []*Vserver `protobuf:"bytes,7,rep,name=vserver" json:"vserver,omitempty"`
	Vlan    []*Vlan    `protobuf:"bytes,8,rep,name=vlan" json:"vlan,omitempty"`
	// The list of vservers that have broken configurations.
	MisconfiguredVserver []*MisconfiguredVserver `protobuf:"bytes,9,rep,name=misconfigured_vserver,json=misconfiguredVserver" json:"misconfigured_vserver,omitempty"`
	// Metadata about this Cluster configuration.
	Metadata *Metadata `protobuf:"bytes,10,opt,name=metadata" json:"metadata,omitempty"`
	// The dedicated VIP subnet(s) for this cluster, in CIDR notation.
	DedicatedVipSubnet []string `protobuf:"bytes,11,rep,name=dedicated_vip_subnet,json=dedicatedVipSubnet" json:"dedicated_vip_subnet,omitempty"`
	// The access groups that are referenced by the vservers.
	AccessGroups []*AccessGroup `protobuf:"bytes,12,rep,name=access_groups,json=accessGroups" json:"access_groups,omitempty"`
	// contains filtered or unexported fields
}

func (*Cluster) Descriptor deprecated

func (*Cluster) Descriptor() ([]byte, []int)

Deprecated: Use Cluster.ProtoReflect.Descriptor instead.

func (*Cluster) GetAccessGroups

func (x *Cluster) GetAccessGroups() []*AccessGroup

func (*Cluster) GetBgpLocalAsn

func (x *Cluster) GetBgpLocalAsn() uint32

func (*Cluster) GetBgpPeer

func (x *Cluster) GetBgpPeer() []*Host

func (*Cluster) GetBgpRemoteAsn

func (x *Cluster) GetBgpRemoteAsn() uint32

func (*Cluster) GetDedicatedVipSubnet

func (x *Cluster) GetDedicatedVipSubnet() []string

func (*Cluster) GetMetadata

func (x *Cluster) GetMetadata() *Metadata

func (*Cluster) GetMisconfiguredVserver

func (x *Cluster) GetMisconfiguredVserver() []*MisconfiguredVserver

func (*Cluster) GetNode

func (x *Cluster) GetNode() []*Host

func (*Cluster) GetSeesawVip

func (x *Cluster) GetSeesawVip() *Host

func (*Cluster) GetVlan

func (x *Cluster) GetVlan() []*Vlan

func (*Cluster) GetVmac

func (x *Cluster) GetVmac() string

func (*Cluster) GetVserver

func (x *Cluster) GetVserver() []*Vserver

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) ProtoReflect

func (x *Cluster) ProtoReflect() protoreflect.Message

func (*Cluster) Reset

func (x *Cluster) Reset()

func (*Cluster) String

func (x *Cluster) String() string

type Healthcheck

type Healthcheck struct {
	Type *Healthcheck_Type `protobuf:"varint,1,req,name=type,enum=Healthcheck_Type" json:"type,omitempty"`
	// Healthcheck interval in seconds.
	Interval *int32 `protobuf:"varint,2,opt,name=interval,def=10" json:"interval,omitempty"`
	// Healthcheck timeout in seconds.
	Timeout *int32 `protobuf:"varint,3,opt,name=timeout,def=5" json:"timeout,omitempty"`
	// Healthcheck port.  For Vserver healthchecks, this field is required.
	// For VserverEntry healthchecks, it is optional and uses the VserverEntry
	// port by default.
	Port *int32 `protobuf:"varint,4,opt,name=port" json:"port,omitempty"`
	// String to send for UDP/TCP/HTTP(S) healthcheck.
	Send *string `protobuf:"bytes,5,opt,name=send" json:"send,omitempty"`
	// Expected response for UDP/TCP/HTTP(S) healthcheck.
	Receive *string `protobuf:"bytes,6,opt,name=receive" json:"receive,omitempty"`
	// Expected response code for healthcheck.
	Code *int32 `protobuf:"varint,7,opt,name=code" json:"code,omitempty"`
	// The Mode of this healthcheck.
	Mode *Healthcheck_Mode `protobuf:"varint,8,opt,name=mode,enum=Healthcheck_Mode,def=1" json:"mode,omitempty"`
	// The HTTP request method to use for an HTTP(S) healthcheck.
	Method *string `protobuf:"bytes,9,opt,name=method" json:"method,omitempty"`
	// Perform a healthcheck against an HTTP proxy.
	Proxy *bool `protobuf:"varint,10,opt,name=proxy" json:"proxy,omitempty"`
	// Do TLS verification.
	TlsVerify *bool `protobuf:"varint,11,opt,name=tls_verify,json=tlsVerify,def=1" json:"tls_verify,omitempty"`
	// Number of retries before a healthcheck is considered to have failed.
	Retries *int32 `protobuf:"varint,12,opt,name=retries" json:"retries,omitempty"`
	// contains filtered or unexported fields
}

TODO(angusc): Use different message types for the different healthcheck types.

func (*Healthcheck) Descriptor deprecated

func (*Healthcheck) Descriptor() ([]byte, []int)

Deprecated: Use Healthcheck.ProtoReflect.Descriptor instead.

func (*Healthcheck) GetCode

func (x *Healthcheck) GetCode() int32

func (*Healthcheck) GetInterval

func (x *Healthcheck) GetInterval() int32

func (*Healthcheck) GetMethod

func (x *Healthcheck) GetMethod() string

func (*Healthcheck) GetMode

func (x *Healthcheck) GetMode() Healthcheck_Mode

func (*Healthcheck) GetPort

func (x *Healthcheck) GetPort() int32

func (*Healthcheck) GetProxy

func (x *Healthcheck) GetProxy() bool

func (*Healthcheck) GetReceive

func (x *Healthcheck) GetReceive() string

func (*Healthcheck) GetRetries

func (x *Healthcheck) GetRetries() int32

func (*Healthcheck) GetSend

func (x *Healthcheck) GetSend() string

func (*Healthcheck) GetTimeout

func (x *Healthcheck) GetTimeout() int32

func (*Healthcheck) GetTlsVerify

func (x *Healthcheck) GetTlsVerify() bool

func (*Healthcheck) GetType

func (x *Healthcheck) GetType() Healthcheck_Type

func (*Healthcheck) ProtoMessage

func (*Healthcheck) ProtoMessage()

func (*Healthcheck) ProtoReflect

func (x *Healthcheck) ProtoReflect() protoreflect.Message

func (*Healthcheck) Reset

func (x *Healthcheck) Reset()

func (*Healthcheck) String

func (x *Healthcheck) String() string

type Healthcheck_Mode

type Healthcheck_Mode int32
const (
	Healthcheck_PLAIN Healthcheck_Mode = 1
	Healthcheck_DSR   Healthcheck_Mode = 2
	Healthcheck_TUN   Healthcheck_Mode = 3
)

func (Healthcheck_Mode) Descriptor

func (Healthcheck_Mode) Enum

func (Healthcheck_Mode) EnumDescriptor deprecated

func (Healthcheck_Mode) EnumDescriptor() ([]byte, []int)

Deprecated: Use Healthcheck_Mode.Descriptor instead.

func (Healthcheck_Mode) Number

func (Healthcheck_Mode) String

func (x Healthcheck_Mode) String() string

func (Healthcheck_Mode) Type

func (*Healthcheck_Mode) UnmarshalJSON deprecated

func (x *Healthcheck_Mode) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Healthcheck_Type

type Healthcheck_Type int32
const (
	Healthcheck_ICMP_PING Healthcheck_Type = 1
	Healthcheck_UDP       Healthcheck_Type = 2
	Healthcheck_TCP       Healthcheck_Type = 3
	Healthcheck_HTTP      Healthcheck_Type = 4
	Healthcheck_HTTPS     Healthcheck_Type = 5
	Healthcheck_DNS       Healthcheck_Type = 6
	Healthcheck_TCP_TLS   Healthcheck_Type = 7
	Healthcheck_RADIUS    Healthcheck_Type = 8
)

func (Healthcheck_Type) Descriptor

func (Healthcheck_Type) Enum

func (Healthcheck_Type) EnumDescriptor deprecated

func (Healthcheck_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Healthcheck_Type.Descriptor instead.

func (Healthcheck_Type) Number

func (Healthcheck_Type) String

func (x Healthcheck_Type) String() string

func (Healthcheck_Type) Type

func (*Healthcheck_Type) UnmarshalJSON deprecated

func (x *Healthcheck_Type) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Host

type Host struct {

	// Fully qualified hostname.
	Fqdn *string `protobuf:"bytes,1,req,name=fqdn" json:"fqdn,omitempty"`
	// An IPv4 address and prefix length in CIDR format.
	Ipv4 *string `protobuf:"bytes,2,opt,name=ipv4" json:"ipv4,omitempty"`
	// An IPv6 address and prefix length in CIDR format.
	Ipv6 *string `protobuf:"bytes,3,opt,name=ipv6" json:"ipv6,omitempty"`
	// Host status.
	Status *Host_Status `protobuf:"varint,4,opt,name=status,enum=Host_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Host) Descriptor deprecated

func (*Host) Descriptor() ([]byte, []int)

Deprecated: Use Host.ProtoReflect.Descriptor instead.

func (*Host) GetFqdn

func (x *Host) GetFqdn() string

func (*Host) GetIpv4

func (x *Host) GetIpv4() string

func (*Host) GetIpv6

func (x *Host) GetIpv6() string

func (*Host) GetStatus

func (x *Host) GetStatus() Host_Status

func (*Host) ProtoMessage

func (*Host) ProtoMessage()

func (*Host) ProtoReflect

func (x *Host) ProtoReflect() protoreflect.Message

func (*Host) Reset

func (x *Host) Reset()

func (*Host) String

func (x *Host) String() string

type Host_Status

type Host_Status int32

Servicedb statuses

const (
	Host_PRODUCTION Host_Status = 1
	Host_TESTING    Host_Status = 2
	Host_BUILDING   Host_Status = 3
	Host_STANDBY    Host_Status = 4
	Host_FAILURE    Host_Status = 5
	Host_DISABLED   Host_Status = 6
	Host_PROPOSED   Host_Status = 7
)

func (Host_Status) Descriptor

func (Host_Status) Enum

func (x Host_Status) Enum() *Host_Status

func (Host_Status) EnumDescriptor deprecated

func (Host_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Host_Status.Descriptor instead.

func (Host_Status) Number

func (x Host_Status) Number() protoreflect.EnumNumber

func (Host_Status) String

func (x Host_Status) String() string

func (Host_Status) Type

func (*Host_Status) UnmarshalJSON deprecated

func (x *Host_Status) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Metadata

type Metadata struct {

	// The UNIX timestamp at which the Cluster configuration was last updated.
	LastUpdated *int64 `protobuf:"varint,1,req,name=last_updated,json=lastUpdated" json:"last_updated,omitempty"`
	// Miscellaneous details about the Cluster configuration (info on upstream
	// source data, etc) go here.
	Attribute []*Attribute `protobuf:"bytes,2,rep,name=attribute" json:"attribute,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata) Descriptor deprecated

func (*Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetAttribute

func (x *Metadata) GetAttribute() []*Attribute

func (*Metadata) GetLastUpdated

func (x *Metadata) GetLastUpdated() int64

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type MisconfiguredVserver

type MisconfiguredVserver struct {
	Name         *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	ErrorMessage *string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

func (*MisconfiguredVserver) Descriptor deprecated

func (*MisconfiguredVserver) Descriptor() ([]byte, []int)

Deprecated: Use MisconfiguredVserver.ProtoReflect.Descriptor instead.

func (*MisconfiguredVserver) GetErrorMessage

func (x *MisconfiguredVserver) GetErrorMessage() string

func (*MisconfiguredVserver) GetName

func (x *MisconfiguredVserver) GetName() string

func (*MisconfiguredVserver) ProtoMessage

func (*MisconfiguredVserver) ProtoMessage()

func (*MisconfiguredVserver) ProtoReflect

func (x *MisconfiguredVserver) ProtoReflect() protoreflect.Message

func (*MisconfiguredVserver) Reset

func (x *MisconfiguredVserver) Reset()

func (*MisconfiguredVserver) String

func (x *MisconfiguredVserver) String() string

type Protocol

type Protocol int32
const (
	Protocol_TCP Protocol = 1
	Protocol_UDP Protocol = 2
)

func (Protocol) Descriptor

func (Protocol) Descriptor() protoreflect.EnumDescriptor

func (Protocol) Enum

func (x Protocol) Enum() *Protocol

func (Protocol) EnumDescriptor deprecated

func (Protocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use Protocol.Descriptor instead.

func (Protocol) Number

func (x Protocol) Number() protoreflect.EnumNumber

func (Protocol) String

func (x Protocol) String() string

func (Protocol) Type

func (*Protocol) UnmarshalJSON deprecated

func (x *Protocol) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Vlan

type Vlan struct {
	VlanId *int32 `protobuf:"varint,1,req,name=vlan_id,json=vlanId" json:"vlan_id,omitempty"`
	Host   *Host  `protobuf:"bytes,2,req,name=host" json:"host,omitempty"`
	// contains filtered or unexported fields
}

func (*Vlan) Descriptor deprecated

func (*Vlan) Descriptor() ([]byte, []int)

Deprecated: Use Vlan.ProtoReflect.Descriptor instead.

func (*Vlan) GetHost

func (x *Vlan) GetHost() *Host

func (*Vlan) GetVlanId

func (x *Vlan) GetVlanId() int32

func (*Vlan) ProtoMessage

func (*Vlan) ProtoMessage()

func (*Vlan) ProtoReflect

func (x *Vlan) ProtoReflect() protoreflect.Message

func (*Vlan) Reset

func (x *Vlan) Reset()

func (*Vlan) String

func (x *Vlan) String() string

type Vserver

type Vserver struct {

	// The name of this vserver.
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	// VIP hostname and IP(s).
	EntryAddress *Host `protobuf:"bytes,2,req,name=entry_address,json=entryAddress" json:"entry_address,omitempty"`
	// Contact info for Responsible Party.
	Rp *string `protobuf:"bytes,3,req,name=rp" json:"rp,omitempty"`
	// Use firewall mark instead of individual service configurations.
	UseFwm       *bool           `protobuf:"varint,4,opt,name=use_fwm,json=useFwm" json:"use_fwm,omitempty"`
	VserverEntry []*VserverEntry `protobuf:"bytes,5,rep,name=vserver_entry,json=vserverEntry" json:"vserver_entry,omitempty"`
	// The healthchecks to perform on the backends, in addition to those that are
	// VserverEntry specific.
	Healthcheck []*Healthcheck `protobuf:"bytes,7,rep,name=healthcheck" json:"healthcheck,omitempty"`
	// The access grants for this vserver.
	AccessGrant []*AccessGrant `protobuf:"bytes,8,rep,name=access_grant,json=accessGrant" json:"access_grant,omitempty"`
	// Warning messages about this Vserver (such as misconfigured backends) to be
	// displayed on operator consoles.
	Warning []string `protobuf:"bytes,9,rep,name=warning" json:"warning,omitempty"`
	// The list of backends for this vserver.
	Backend []*Backend `protobuf:"bytes,10,rep,name=backend" json:"backend,omitempty"`
	// contains filtered or unexported fields
}

func (*Vserver) Descriptor deprecated

func (*Vserver) Descriptor() ([]byte, []int)

Deprecated: Use Vserver.ProtoReflect.Descriptor instead.

func (*Vserver) GetAccessGrant

func (x *Vserver) GetAccessGrant() []*AccessGrant

func (*Vserver) GetBackend

func (x *Vserver) GetBackend() []*Backend

func (*Vserver) GetEntryAddress

func (x *Vserver) GetEntryAddress() *Host

func (*Vserver) GetHealthcheck

func (x *Vserver) GetHealthcheck() []*Healthcheck

func (*Vserver) GetName

func (x *Vserver) GetName() string

func (*Vserver) GetRp

func (x *Vserver) GetRp() string

func (*Vserver) GetUseFwm

func (x *Vserver) GetUseFwm() bool

func (*Vserver) GetVserverEntry

func (x *Vserver) GetVserverEntry() []*VserverEntry

func (*Vserver) GetWarning

func (x *Vserver) GetWarning() []string

func (*Vserver) ProtoMessage

func (*Vserver) ProtoMessage()

func (*Vserver) ProtoReflect

func (x *Vserver) ProtoReflect() protoreflect.Message

func (*Vserver) Reset

func (x *Vserver) Reset()

func (*Vserver) String

func (x *Vserver) String() string

type VserverEntry

type VserverEntry struct {
	Protocol  *Protocol               `protobuf:"varint,1,req,name=protocol,enum=Protocol" json:"protocol,omitempty"`
	Port      *int32                  `protobuf:"varint,2,req,name=port" json:"port,omitempty"`
	Scheduler *VserverEntry_Scheduler `protobuf:"varint,5,opt,name=scheduler,enum=VserverEntry_Scheduler,def=4" json:"scheduler,omitempty"`
	Mode      *VserverEntry_Mode      `protobuf:"varint,6,opt,name=mode,enum=VserverEntry_Mode,def=1" json:"mode,omitempty"`
	// See --persisent in man ipvsadm(8).
	Persistence *int32 `protobuf:"varint,7,opt,name=persistence" json:"persistence,omitempty"`
	// Continue sending packets for existing connections to the same backend,
	// even when that backend is failing healthchecks.
	Quiescent *bool `protobuf:"varint,8,opt,name=quiescent" json:"quiescent,omitempty"`
	// The minimum fraction of backends that must be healthy for the vserver to be
	// active. If the number of backends falls below this watermark, the vserver
	// is considered unhealthy. Valid values are 0.0 to 1.0. If unset, the value
	// of server_high_watermark is used.
	ServerLowWatermark *float32 `protobuf:"fixed32,9,opt,name=server_low_watermark,json=serverLowWatermark" json:"server_low_watermark,omitempty"`
	// The minimum fraction of backends that must be healthy for vserver to become
	// active. Default is 0.0 .
	ServerHighWatermark *float32 `protobuf:"fixed32,10,opt,name=server_high_watermark,json=serverHighWatermark" json:"server_high_watermark,omitempty"`
	// --l-threshold per man ipvsadm(8).
	Lthreshold *int32 `protobuf:"varint,11,opt,name=lthreshold" json:"lthreshold,omitempty"`
	// --u-threshold per man ipvsadm(8).
	Uthreshold *int32 `protobuf:"varint,12,opt,name=uthreshold" json:"uthreshold,omitempty"`
	// The healthchecks to perform on the backends.
	Healthcheck []*Healthcheck `protobuf:"bytes,13,rep,name=healthcheck" json:"healthcheck,omitempty"`
	// Use "one packet" load balancing.
	OnePacket *bool `protobuf:"varint,14,opt,name=one_packet,json=onePacket" json:"one_packet,omitempty"`
	// contains filtered or unexported fields
}

func (*VserverEntry) Descriptor deprecated

func (*VserverEntry) Descriptor() ([]byte, []int)

Deprecated: Use VserverEntry.ProtoReflect.Descriptor instead.

func (*VserverEntry) GetHealthcheck

func (x *VserverEntry) GetHealthcheck() []*Healthcheck

func (*VserverEntry) GetLthreshold

func (x *VserverEntry) GetLthreshold() int32

func (*VserverEntry) GetMode

func (x *VserverEntry) GetMode() VserverEntry_Mode

func (*VserverEntry) GetOnePacket

func (x *VserverEntry) GetOnePacket() bool

func (*VserverEntry) GetPersistence

func (x *VserverEntry) GetPersistence() int32

func (*VserverEntry) GetPort

func (x *VserverEntry) GetPort() int32

func (*VserverEntry) GetProtocol

func (x *VserverEntry) GetProtocol() Protocol

func (*VserverEntry) GetQuiescent

func (x *VserverEntry) GetQuiescent() bool

func (*VserverEntry) GetScheduler

func (x *VserverEntry) GetScheduler() VserverEntry_Scheduler

func (*VserverEntry) GetServerHighWatermark

func (x *VserverEntry) GetServerHighWatermark() float32

func (*VserverEntry) GetServerLowWatermark

func (x *VserverEntry) GetServerLowWatermark() float32

func (*VserverEntry) GetUthreshold

func (x *VserverEntry) GetUthreshold() int32

func (*VserverEntry) ProtoMessage

func (*VserverEntry) ProtoMessage()

func (*VserverEntry) ProtoReflect

func (x *VserverEntry) ProtoReflect() protoreflect.Message

func (*VserverEntry) Reset

func (x *VserverEntry) Reset()

func (*VserverEntry) String

func (x *VserverEntry) String() string

type VserverEntry_Mode

type VserverEntry_Mode int32
const (
	// See --gatewaying in man ipvsadm(8).
	VserverEntry_DSR VserverEntry_Mode = 1
	// See --masquerding in man ipvsadm(8).
	VserverEntry_NAT VserverEntry_Mode = 2
	// See --ipip in man ipvsadm(8).
	VserverEntry_TUN VserverEntry_Mode = 3
)

func (VserverEntry_Mode) Descriptor

func (VserverEntry_Mode) Enum

func (VserverEntry_Mode) EnumDescriptor deprecated

func (VserverEntry_Mode) EnumDescriptor() ([]byte, []int)

Deprecated: Use VserverEntry_Mode.Descriptor instead.

func (VserverEntry_Mode) Number

func (VserverEntry_Mode) String

func (x VserverEntry_Mode) String() string

func (VserverEntry_Mode) Type

func (*VserverEntry_Mode) UnmarshalJSON deprecated

func (x *VserverEntry_Mode) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type VserverEntry_Scheduler

type VserverEntry_Scheduler int32

See --scheduler in man ipvsadm(8).

const (
	VserverEntry_RR  VserverEntry_Scheduler = 1
	VserverEntry_WRR VserverEntry_Scheduler = 2
	VserverEntry_LC  VserverEntry_Scheduler = 3
	VserverEntry_WLC VserverEntry_Scheduler = 4
	VserverEntry_SH  VserverEntry_Scheduler = 5
	// NOTE: MH scheduler option is available after Kernel 4.18.
	//
	// It is typically used without conntrack sync. Additional sysctl settings
	// such as `net.ipv4.vs.sloppy_tcp` is required when operating in that mode
	// to allow seamless failover.
	//
	// However, turning off conntrack sync could break other services on other
	// scheduler settings.
	//
	// Ref: https://www.kernel.org/doc/Documentation/networking/ipvs-sysctl.txt
	VserverEntry_MH VserverEntry_Scheduler = 6
)

func (VserverEntry_Scheduler) Descriptor

func (VserverEntry_Scheduler) Enum

func (VserverEntry_Scheduler) EnumDescriptor deprecated

func (VserverEntry_Scheduler) EnumDescriptor() ([]byte, []int)

Deprecated: Use VserverEntry_Scheduler.Descriptor instead.

func (VserverEntry_Scheduler) Number

func (VserverEntry_Scheduler) String

func (x VserverEntry_Scheduler) String() string

func (VserverEntry_Scheduler) Type

func (*VserverEntry_Scheduler) UnmarshalJSON deprecated

func (x *VserverEntry_Scheduler) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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