vproxy_client_model

package
v0.0.0-...-8b4fbd1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ServerStatusUP captures enum value "UP"
	ServerStatusUP string = "UP"

	// ServerStatusDOWN captures enum value "DOWN"
	ServerStatusDOWN string = "DOWN"
)
View Source
const (

	// ServerDetailStatusUP captures enum value "UP"
	ServerDetailStatusUP string = "UP"

	// ServerDetailStatusDOWN captures enum value "DOWN"
	ServerDetailStatusDOWN string = "DOWN"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CertKey

type CertKey struct {

	// certs
	Certs []string `json:"certs"`

	// file path of the key
	Key string `json:"key,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

CertKey cert key

swagger:model CertKey

func (*CertKey) ContextValidate

func (m *CertKey) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cert key based on context it is used

func (*CertKey) MarshalBinary

func (m *CertKey) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CertKey) UnmarshalBinary

func (m *CertKey) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CertKey) Validate

func (m *CertKey) Validate(formats strfmt.Registry) error

Validate validates this cert key

type CertKeyCreate

type CertKeyCreate struct {

	// certs
	// Required: true
	Certs []string `json:"certs"`

	// file path of the key
	// Required: true
	Key *string `json:"key"`

	// name
	// Required: true
	Name *string `json:"name"`
}

CertKeyCreate cert key create

swagger:model CertKeyCreate

func (*CertKeyCreate) ContextValidate

func (m *CertKeyCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cert key create based on context it is used

func (*CertKeyCreate) MarshalBinary

func (m *CertKeyCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CertKeyCreate) UnmarshalBinary

func (m *CertKeyCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CertKeyCreate) Validate

func (m *CertKeyCreate) Validate(formats strfmt.Registry) error

Validate validates this cert key create

type CertKeyCreatePem

type CertKeyCreatePem struct {

	// certs
	// Required: true
	Certs []string `json:"certs"`

	// pem of the key
	// Required: true
	Key *string `json:"key"`

	// name
	// Required: true
	Name *string `json:"name"`
}

CertKeyCreatePem cert key create pem

swagger:model CertKeyCreatePem

func (*CertKeyCreatePem) ContextValidate

func (m *CertKeyCreatePem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cert key create pem based on context it is used

func (*CertKeyCreatePem) MarshalBinary

func (m *CertKeyCreatePem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CertKeyCreatePem) UnmarshalBinary

func (m *CertKeyCreatePem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CertKeyCreatePem) Validate

func (m *CertKeyCreatePem) Validate(formats strfmt.Registry) error

Validate validates this cert key create pem

type CertKeyDetail

type CertKeyDetail struct {

	// cert pem list
	CertPemList []string `json:"certPemList"`

	// certs
	Certs []string `json:"certs"`

	// file path of the key
	Key string `json:"key,omitempty"`

	// SHA1 of the pem of the key
	KeySHA1 string `json:"keySHA1,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

CertKeyDetail cert key detail

swagger:model CertKeyDetail

func (*CertKeyDetail) ContextValidate

func (m *CertKeyDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cert key detail based on context it is used

func (*CertKeyDetail) MarshalBinary

func (m *CertKeyDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CertKeyDetail) UnmarshalBinary

func (m *CertKeyDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CertKeyDetail) Validate

func (m *CertKeyDetail) Validate(formats strfmt.Registry) error

Validate validates this cert key detail

type CheckProtocol

type CheckProtocol string

CheckProtocol the protocol for health check

swagger:model CheckProtocol

const (

	// CheckProtocolTCP captures enum value "tcp"
	CheckProtocolTCP CheckProtocol = "tcp"

	// CheckProtocolHTTP captures enum value "http"
	CheckProtocolHTTP CheckProtocol = "http"

	// CheckProtocolDNS captures enum value "dns"
	CheckProtocolDNS CheckProtocol = "dns"

	// CheckProtocolTCPDelay captures enum value "tcpDelay"
	CheckProtocolTCPDelay CheckProtocol = "tcpDelay"

	// CheckProtocolNone captures enum value "none"
	CheckProtocolNone CheckProtocol = "none"
)

func NewCheckProtocol

func NewCheckProtocol(value CheckProtocol) *CheckProtocol

func (CheckProtocol) ContextValidate

func (m CheckProtocol) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this check protocol based on context it is used

func (CheckProtocol) Pointer

func (m CheckProtocol) Pointer() *CheckProtocol

Pointer returns a pointer to a freshly-allocated CheckProtocol.

func (CheckProtocol) Validate

func (m CheckProtocol) Validate(formats strfmt.Registry) error

Validate validates this check protocol

type DNSServer

type DNSServer struct {

	// binding l4addr
	Address string `json:"address,omitempty"`

	// reference to the running event loop group
	EventLoopGroup string `json:"eventLoopGroup,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// answer records
	Rrsets string `json:"rrsets,omitempty"`

	// security group for the dns server to use
	SecurityGroup string `json:"securityGroup,omitempty"`

	// ttl of answer records
	TTL int64 `json:"ttl,omitempty"`
}

DNSServer Dns server

swagger:model DnsServer

func (*DNSServer) ContextValidate

func (m *DNSServer) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Dns server based on context it is used

func (*DNSServer) MarshalBinary

func (m *DNSServer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DNSServer) UnmarshalBinary

func (m *DNSServer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DNSServer) Validate

func (m *DNSServer) Validate(formats strfmt.Registry) error

Validate validates this Dns server

type DNSServerCreate

type DNSServerCreate struct {

	// binding l4addr
	// Required: true
	Address *string `json:"address"`

	// reference to the running event loop group
	EventLoopGroup string `json:"eventLoopGroup,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// answer records
	// Required: true
	Rrsets *string `json:"rrsets"`

	// security group for the dns server to use
	SecurityGroup string `json:"securityGroup,omitempty"`

	// ttl of answer records
	TTL *int64 `json:"ttl,omitempty"`
}

DNSServerCreate Dns server create

swagger:model DnsServerCreate

func (*DNSServerCreate) ContextValidate

func (m *DNSServerCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Dns server create based on context it is used

func (*DNSServerCreate) MarshalBinary

func (m *DNSServerCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DNSServerCreate) UnmarshalBinary

func (m *DNSServerCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DNSServerCreate) Validate

func (m *DNSServerCreate) Validate(formats strfmt.Registry) error

Validate validates this Dns server create

type DNSServerDetail

type DNSServerDetail struct {

	// binding l4addr
	Address string `json:"address,omitempty"`

	// event loop group
	EventLoopGroup *EventLoopGroupDetail `json:"eventLoopGroup,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// rrsets
	Rrsets *UpstreamDetail `json:"rrsets,omitempty"`

	// security group
	SecurityGroup *SecurityGroupDetail `json:"securityGroup,omitempty"`

	// ttl of answer records
	TTL int64 `json:"ttl,omitempty"`
}

DNSServerDetail Dns server detail

swagger:model DnsServerDetail

func (*DNSServerDetail) ContextValidate

func (m *DNSServerDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this Dns server detail based on the context it is used

func (*DNSServerDetail) MarshalBinary

func (m *DNSServerDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DNSServerDetail) UnmarshalBinary

func (m *DNSServerDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DNSServerDetail) Validate

func (m *DNSServerDetail) Validate(formats strfmt.Registry) error

Validate validates this Dns server detail

type DNSServerUpdate

type DNSServerUpdate struct {

	// security group for the dns server to use
	SecurityGroup string `json:"securityGroup,omitempty"`

	// ttl of answer records
	TTL *int64 `json:"ttl,omitempty"`
}

DNSServerUpdate Dns server update

swagger:model DnsServerUpdate

func (*DNSServerUpdate) ContextValidate

func (m *DNSServerUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Dns server update based on context it is used

func (*DNSServerUpdate) MarshalBinary

func (m *DNSServerUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DNSServerUpdate) UnmarshalBinary

func (m *DNSServerUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DNSServerUpdate) Validate

func (m *DNSServerUpdate) Validate(formats strfmt.Registry) error

Validate validates this Dns server update

type Error400

type Error400 struct {

	// code
	Code int64 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

Error400 error400

swagger:model Error400

func (*Error400) ContextValidate

func (m *Error400) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error400 based on context it is used

func (*Error400) MarshalBinary

func (m *Error400) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error400) UnmarshalBinary

func (m *Error400) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error400) Validate

func (m *Error400) Validate(formats strfmt.Registry) error

Validate validates this error400

type Error404

type Error404 struct {

	// code
	Code int64 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

Error404 error404

swagger:model Error404

func (*Error404) ContextValidate

func (m *Error404) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error404 based on context it is used

func (*Error404) MarshalBinary

func (m *Error404) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error404) UnmarshalBinary

func (m *Error404) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error404) Validate

func (m *Error404) Validate(formats strfmt.Registry) error

Validate validates this error404

type Error409

type Error409 struct {

	// code
	Code int64 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

Error409 error409

swagger:model Error409

func (*Error409) ContextValidate

func (m *Error409) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error409 based on context it is used

func (*Error409) MarshalBinary

func (m *Error409) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error409) UnmarshalBinary

func (m *Error409) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error409) Validate

func (m *Error409) Validate(formats strfmt.Registry) error

Validate validates this error409

type Error500

type Error500 struct {

	// code
	Code int64 `json:"code,omitempty"`

	// err Id
	ErrID string `json:"errId,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

Error500 error500

swagger:model Error500

func (*Error500) ContextValidate

func (m *Error500) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error500 based on context it is used

func (*Error500) MarshalBinary

func (m *Error500) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error500) UnmarshalBinary

func (m *Error500) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error500) Validate

func (m *Error500) Validate(formats strfmt.Registry) error

Validate validates this error500

type EventLoop

type EventLoop struct {

	// name
	Name string `json:"name,omitempty"`
}

EventLoop event loop

swagger:model EventLoop

func (*EventLoop) ContextValidate

func (m *EventLoop) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this event loop based on context it is used

func (*EventLoop) MarshalBinary

func (m *EventLoop) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EventLoop) UnmarshalBinary

func (m *EventLoop) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EventLoop) Validate

func (m *EventLoop) Validate(formats strfmt.Registry) error

Validate validates this event loop

type EventLoopCreate

type EventLoopCreate struct {

	// name
	// Required: true
	Name *string `json:"name"`
}

EventLoopCreate event loop create

swagger:model EventLoopCreate

func (*EventLoopCreate) ContextValidate

func (m *EventLoopCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this event loop create based on context it is used

func (*EventLoopCreate) MarshalBinary

func (m *EventLoopCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EventLoopCreate) UnmarshalBinary

func (m *EventLoopCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EventLoopCreate) Validate

func (m *EventLoopCreate) Validate(formats strfmt.Registry) error

Validate validates this event loop create

type EventLoopDetail

type EventLoopDetail struct {

	// name
	Name string `json:"name,omitempty"`
}

EventLoopDetail event loop detail

swagger:model EventLoopDetail

func (*EventLoopDetail) ContextValidate

func (m *EventLoopDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this event loop detail based on context it is used

func (*EventLoopDetail) MarshalBinary

func (m *EventLoopDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EventLoopDetail) UnmarshalBinary

func (m *EventLoopDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EventLoopDetail) Validate

func (m *EventLoopDetail) Validate(formats strfmt.Registry) error

Validate validates this event loop detail

type EventLoopGroup

type EventLoopGroup struct {

	// name
	Name string `json:"name,omitempty"`
}

EventLoopGroup event loop group

swagger:model EventLoopGroup

func (*EventLoopGroup) ContextValidate

func (m *EventLoopGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this event loop group based on context it is used

func (*EventLoopGroup) MarshalBinary

func (m *EventLoopGroup) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EventLoopGroup) UnmarshalBinary

func (m *EventLoopGroup) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EventLoopGroup) Validate

func (m *EventLoopGroup) Validate(formats strfmt.Registry) error

Validate validates this event loop group

type EventLoopGroupCreate

type EventLoopGroupCreate struct {

	// name
	// Required: true
	Name *string `json:"name"`
}

EventLoopGroupCreate event loop group create

swagger:model EventLoopGroupCreate

func (*EventLoopGroupCreate) ContextValidate

func (m *EventLoopGroupCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this event loop group create based on context it is used

func (*EventLoopGroupCreate) MarshalBinary

func (m *EventLoopGroupCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EventLoopGroupCreate) UnmarshalBinary

func (m *EventLoopGroupCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EventLoopGroupCreate) Validate

func (m *EventLoopGroupCreate) Validate(formats strfmt.Registry) error

Validate validates this event loop group create

type EventLoopGroupDetail

type EventLoopGroupDetail struct {

	// event loop list
	EventLoopList []*EventLoopDetail `json:"eventLoopList"`

	// name
	Name string `json:"name,omitempty"`
}

EventLoopGroupDetail event loop group detail

swagger:model EventLoopGroupDetail

func (*EventLoopGroupDetail) ContextValidate

func (m *EventLoopGroupDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this event loop group detail based on the context it is used

func (*EventLoopGroupDetail) MarshalBinary

func (m *EventLoopGroupDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EventLoopGroupDetail) UnmarshalBinary

func (m *EventLoopGroupDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EventLoopGroupDetail) Validate

func (m *EventLoopGroupDetail) Validate(formats strfmt.Registry) error

Validate validates this event loop group detail

type IPType

type IPType string

IPType binds ipv4 or ipv6

swagger:model IPType

const (

	// IPTypeV4 captures enum value "v4"
	IPTypeV4 IPType = "v4"

	// IPTypeV6 captures enum value "v6"
	IPTypeV6 IPType = "v6"
)

func NewIPType

func NewIPType(value IPType) *IPType

func (IPType) ContextValidate

func (m IPType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this IP type based on context it is used

func (IPType) Pointer

func (m IPType) Pointer() *IPType

Pointer returns a pointer to a freshly-allocated IPType.

func (IPType) Validate

func (m IPType) Validate(formats strfmt.Registry) error

Validate validates this IP type

type Protocol

type Protocol string

Protocol protocol

swagger:model Protocol

const (

	// ProtocolTCP captures enum value "tcp"
	ProtocolTCP Protocol = "tcp"

	// ProtocolHTTP captures enum value "http"
	ProtocolHTTP Protocol = "http"

	// ProtocolH2 captures enum value "h2"
	ProtocolH2 Protocol = "h2"

	// ProtocolHTTP1Dotx captures enum value "http/1.x"
	ProtocolHTTP1Dotx Protocol = "http/1.x"

	// ProtocolFramedDashInt32 captures enum value "framed-int32"
	ProtocolFramedDashInt32 Protocol = "framed-int32"

	// ProtocolDubbo captures enum value "dubbo"
	ProtocolDubbo Protocol = "dubbo"
)

func NewProtocol

func NewProtocol(value Protocol) *Protocol

func (Protocol) ContextValidate

func (m Protocol) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this protocol based on context it is used

func (Protocol) Pointer

func (m Protocol) Pointer() *Protocol

Pointer returns a pointer to a freshly-allocated Protocol.

func (Protocol) Validate

func (m Protocol) Validate(formats strfmt.Registry) error

Validate validates this protocol

type Rule

type Rule string

Rule rule

swagger:model Rule

const (

	// RuleAllow captures enum value "allow"
	RuleAllow Rule = "allow"

	// RuleDeny captures enum value "deny"
	RuleDeny Rule = "deny"
)

func NewRule

func NewRule(value Rule) *Rule

func (Rule) ContextValidate

func (m Rule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rule based on context it is used

func (Rule) Pointer

func (m Rule) Pointer() *Rule

Pointer returns a pointer to a freshly-allocated Rule.

func (Rule) Validate

func (m Rule) Validate(formats strfmt.Registry) error

Validate validates this rule

type SecurityGroup

type SecurityGroup struct {

	// default rule
	DefaultRule Rule `json:"defaultRule,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

SecurityGroup security group

swagger:model SecurityGroup

func (*SecurityGroup) ContextValidate

func (m *SecurityGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this security group based on the context it is used

func (*SecurityGroup) MarshalBinary

func (m *SecurityGroup) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SecurityGroup) UnmarshalBinary

func (m *SecurityGroup) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SecurityGroup) Validate

func (m *SecurityGroup) Validate(formats strfmt.Registry) error

Validate validates this security group

type SecurityGroupCreate

type SecurityGroupCreate struct {

	// default rule
	// Required: true
	DefaultRule *Rule `json:"defaultRule"`

	// name
	// Required: true
	Name *string `json:"name"`
}

SecurityGroupCreate security group create

swagger:model SecurityGroupCreate

func (*SecurityGroupCreate) ContextValidate

func (m *SecurityGroupCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this security group create based on the context it is used

func (*SecurityGroupCreate) MarshalBinary

func (m *SecurityGroupCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SecurityGroupCreate) UnmarshalBinary

func (m *SecurityGroupCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SecurityGroupCreate) Validate

func (m *SecurityGroupCreate) Validate(formats strfmt.Registry) error

Validate validates this security group create

type SecurityGroupDetail

type SecurityGroupDetail struct {

	// default rule
	DefaultRule Rule `json:"defaultRule,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// rule list
	RuleList []*SecurityGroupRuleDetail `json:"ruleList"`
}

SecurityGroupDetail security group detail

swagger:model SecurityGroupDetail

func (*SecurityGroupDetail) ContextValidate

func (m *SecurityGroupDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this security group detail based on the context it is used

func (*SecurityGroupDetail) MarshalBinary

func (m *SecurityGroupDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SecurityGroupDetail) UnmarshalBinary

func (m *SecurityGroupDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SecurityGroupDetail) Validate

func (m *SecurityGroupDetail) Validate(formats strfmt.Registry) error

Validate validates this security group detail

type SecurityGroupProtocol

type SecurityGroupProtocol string

SecurityGroupProtocol security group protocol

swagger:model SecurityGroupProtocol

const (

	// SecurityGroupProtocolTCP captures enum value "TCP"
	SecurityGroupProtocolTCP SecurityGroupProtocol = "TCP"

	// SecurityGroupProtocolUDP captures enum value "UDP"
	SecurityGroupProtocolUDP SecurityGroupProtocol = "UDP"
)

func NewSecurityGroupProtocol

func NewSecurityGroupProtocol(value SecurityGroupProtocol) *SecurityGroupProtocol

func (SecurityGroupProtocol) ContextValidate

func (m SecurityGroupProtocol) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this security group protocol based on context it is used

func (SecurityGroupProtocol) Pointer

Pointer returns a pointer to a freshly-allocated SecurityGroupProtocol.

func (SecurityGroupProtocol) Validate

func (m SecurityGroupProtocol) Validate(formats strfmt.Registry) error

Validate validates this security group protocol

type SecurityGroupRule

type SecurityGroupRule struct {

	// network cidr
	ClientNetwork string `json:"clientNetwork,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// protocol
	Protocol SecurityGroupProtocol `json:"protocol,omitempty"`

	// rule
	Rule Rule `json:"rule,omitempty"`

	// port range max for server (inclusive)
	ServerPortMax int64 `json:"serverPortMax,omitempty"`

	// port range min for server (inclusive)
	ServerPortMin int64 `json:"serverPortMin,omitempty"`
}

SecurityGroupRule security group rule

swagger:model SecurityGroupRule

func (*SecurityGroupRule) ContextValidate

func (m *SecurityGroupRule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this security group rule based on the context it is used

func (*SecurityGroupRule) MarshalBinary

func (m *SecurityGroupRule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SecurityGroupRule) UnmarshalBinary

func (m *SecurityGroupRule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SecurityGroupRule) Validate

func (m *SecurityGroupRule) Validate(formats strfmt.Registry) error

Validate validates this security group rule

type SecurityGroupRuleCreate

type SecurityGroupRuleCreate struct {

	// network cidr
	// Required: true
	ClientNetwork *string `json:"clientNetwork"`

	// name
	// Required: true
	Name *string `json:"name"`

	// protocol
	// Required: true
	Protocol *SecurityGroupProtocol `json:"protocol"`

	// rule
	// Required: true
	Rule *Rule `json:"rule"`

	// port range max for server (inclusive)
	// Required: true
	ServerPortMax *int64 `json:"serverPortMax"`

	// port range min for server (inclusive)
	// Required: true
	ServerPortMin *int64 `json:"serverPortMin"`
}

SecurityGroupRuleCreate security group rule create

swagger:model SecurityGroupRuleCreate

func (*SecurityGroupRuleCreate) ContextValidate

func (m *SecurityGroupRuleCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this security group rule create based on the context it is used

func (*SecurityGroupRuleCreate) MarshalBinary

func (m *SecurityGroupRuleCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SecurityGroupRuleCreate) UnmarshalBinary

func (m *SecurityGroupRuleCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SecurityGroupRuleCreate) Validate

func (m *SecurityGroupRuleCreate) Validate(formats strfmt.Registry) error

Validate validates this security group rule create

type SecurityGroupRuleDetail

type SecurityGroupRuleDetail struct {

	// network cidr
	ClientNetwork string `json:"clientNetwork,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// protocol
	Protocol SecurityGroupProtocol `json:"protocol,omitempty"`

	// rule
	Rule Rule `json:"rule,omitempty"`

	// port range max for server (inclusive)
	ServerPortMax int64 `json:"serverPortMax,omitempty"`

	// port range min for server (inclusive)
	ServerPortMin int64 `json:"serverPortMin,omitempty"`
}

SecurityGroupRuleDetail security group rule detail

swagger:model SecurityGroupRuleDetail

func (*SecurityGroupRuleDetail) ContextValidate

func (m *SecurityGroupRuleDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this security group rule detail based on the context it is used

func (*SecurityGroupRuleDetail) MarshalBinary

func (m *SecurityGroupRuleDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SecurityGroupRuleDetail) UnmarshalBinary

func (m *SecurityGroupRuleDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SecurityGroupRuleDetail) Validate

func (m *SecurityGroupRuleDetail) Validate(formats strfmt.Registry) error

Validate validates this security group rule detail

type SecurityGroupUpdate

type SecurityGroupUpdate struct {

	// default rule
	DefaultRule Rule `json:"defaultRule,omitempty"`
}

SecurityGroupUpdate security group update

swagger:model SecurityGroupUpdate

func (*SecurityGroupUpdate) ContextValidate

func (m *SecurityGroupUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this security group update based on the context it is used

func (*SecurityGroupUpdate) MarshalBinary

func (m *SecurityGroupUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SecurityGroupUpdate) UnmarshalBinary

func (m *SecurityGroupUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SecurityGroupUpdate) Validate

func (m *SecurityGroupUpdate) Validate(formats strfmt.Registry) error

Validate validates this security group update

type Server

type Server struct {

	// l4addr or hostname:port
	Address string `json:"address,omitempty"`

	// the milliseconds cost for one successful health check
	Cost int64 `json:"cost,omitempty"`

	// l3addr
	CurrentIP string `json:"currentIp,omitempty"`

	// reason for the last failed health check
	DownReason string `json:"downReason,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// status
	// Enum: [UP DOWN]
	Status string `json:"status,omitempty"`

	// weight of the server in the server group
	Weight int64 `json:"weight,omitempty"`
}

Server server

swagger:model Server

func (*Server) ContextValidate

func (m *Server) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this server based on context it is used

func (*Server) MarshalBinary

func (m *Server) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Server) UnmarshalBinary

func (m *Server) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Server) Validate

func (m *Server) Validate(formats strfmt.Registry) error

Validate validates this server

type ServerCreate

type ServerCreate struct {

	// l4addr or hostname:port
	// Required: true
	Address *string `json:"address"`

	// name
	// Required: true
	Name *string `json:"name"`

	// weight of the server in the server group
	Weight *int64 `json:"weight,omitempty"`
}

ServerCreate server create

swagger:model ServerCreate

func (*ServerCreate) ContextValidate

func (m *ServerCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this server create based on context it is used

func (*ServerCreate) MarshalBinary

func (m *ServerCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServerCreate) UnmarshalBinary

func (m *ServerCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServerCreate) Validate

func (m *ServerCreate) Validate(formats strfmt.Registry) error

Validate validates this server create

type ServerDetail

type ServerDetail struct {

	// l4addr or hostname:port
	Address string `json:"address,omitempty"`

	// the milliseconds cost for one successful health check
	Cost int64 `json:"cost,omitempty"`

	// l3addr
	CurrentIP string `json:"currentIp,omitempty"`

	// reason for the last failed health check
	DownReason string `json:"downReason,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// status
	// Enum: [UP DOWN]
	Status string `json:"status,omitempty"`

	// weight of the server in the server group
	Weight int64 `json:"weight,omitempty"`
}

ServerDetail server detail

swagger:model ServerDetail

func (*ServerDetail) ContextValidate

func (m *ServerDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this server detail based on context it is used

func (*ServerDetail) MarshalBinary

func (m *ServerDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServerDetail) UnmarshalBinary

func (m *ServerDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServerDetail) Validate

func (m *ServerDetail) Validate(formats strfmt.Registry) error

Validate validates this server detail

type ServerGroup

type ServerGroup struct {

	// annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	// consider the server unhealthy after $down times of failed health checks
	Down int64 `json:"down,omitempty"`

	// the event loop group to run health check on
	EventLoopGroup string `json:"eventLoopGroup,omitempty"`

	// method
	Method *ServerGroupMethod `json:"method,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// health check period (ms) (interval between two hc)
	Period int64 `json:"period,omitempty"`

	// protocol
	Protocol *CheckProtocol `json:"protocol,omitempty"`

	// health check timeout (ms) (timeout before getting expected response)
	Timeout int64 `json:"timeout,omitempty"`

	// consider the server healthy after $up times of successful health checks
	Up int64 `json:"up,omitempty"`
}

ServerGroup server group

swagger:model ServerGroup

func (*ServerGroup) ContextValidate

func (m *ServerGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this server group based on the context it is used

func (*ServerGroup) MarshalBinary

func (m *ServerGroup) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServerGroup) UnmarshalBinary

func (m *ServerGroup) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServerGroup) Validate

func (m *ServerGroup) Validate(formats strfmt.Registry) error

Validate validates this server group

type ServerGroupCreate

type ServerGroupCreate struct {

	// annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	// consider the server unhealthy after $down times of failed health checks
	// Required: true
	Down *int64 `json:"down"`

	// the event loop group to run health check on
	EventLoopGroup string `json:"eventLoopGroup,omitempty"`

	// method
	Method *ServerGroupMethod `json:"method,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// health check period (ms) (interval between two hc)
	// Required: true
	Period *int64 `json:"period"`

	// protocol
	Protocol *CheckProtocol `json:"protocol,omitempty"`

	// health check timeout (ms) (timeout before getting expected response)
	// Required: true
	Timeout *int64 `json:"timeout"`

	// consider the server healthy after $up times of successful health checks
	// Required: true
	Up *int64 `json:"up"`
}

ServerGroupCreate server group create

swagger:model ServerGroupCreate

func (*ServerGroupCreate) ContextValidate

func (m *ServerGroupCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this server group create based on the context it is used

func (*ServerGroupCreate) MarshalBinary

func (m *ServerGroupCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServerGroupCreate) UnmarshalBinary

func (m *ServerGroupCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServerGroupCreate) Validate

func (m *ServerGroupCreate) Validate(formats strfmt.Registry) error

Validate validates this server group create

type ServerGroupDetail

type ServerGroupDetail struct {

	// annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	// consider the server unhealthy after $down times of failed health checks
	Down int64 `json:"down,omitempty"`

	// event loop group
	EventLoopGroup *EventLoopGroupDetail `json:"eventLoopGroup,omitempty"`

	// method
	Method *ServerGroupMethod `json:"method,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// health check period (ms) (interval between two hc)
	Period int64 `json:"period,omitempty"`

	// protocol
	Protocol *CheckProtocol `json:"protocol,omitempty"`

	// server list
	ServerList []*ServerDetail `json:"serverList"`

	// health check timeout (ms) (timeout before getting expected response)
	Timeout int64 `json:"timeout,omitempty"`

	// consider the server healthy after $up times of successful health checks
	Up int64 `json:"up,omitempty"`
}

ServerGroupDetail server group detail

swagger:model ServerGroupDetail

func (*ServerGroupDetail) ContextValidate

func (m *ServerGroupDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this server group detail based on the context it is used

func (*ServerGroupDetail) MarshalBinary

func (m *ServerGroupDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServerGroupDetail) UnmarshalBinary

func (m *ServerGroupDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServerGroupDetail) Validate

func (m *ServerGroupDetail) Validate(formats strfmt.Registry) error

Validate validates this server group detail

type ServerGroupInUpstream

type ServerGroupInUpstream struct {

	// annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// weight of the server-group in the upstream
	Weight int64 `json:"weight,omitempty"`
}

ServerGroupInUpstream server group in upstream

swagger:model ServerGroupInUpstream

func (*ServerGroupInUpstream) ContextValidate

func (m *ServerGroupInUpstream) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this server group in upstream based on context it is used

func (*ServerGroupInUpstream) MarshalBinary

func (m *ServerGroupInUpstream) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServerGroupInUpstream) UnmarshalBinary

func (m *ServerGroupInUpstream) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServerGroupInUpstream) Validate

func (m *ServerGroupInUpstream) Validate(formats strfmt.Registry) error

Validate validates this server group in upstream

type ServerGroupInUpstreamCreate

type ServerGroupInUpstreamCreate struct {

	// annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// weight of the server-group in the upstream
	Weight *int64 `json:"weight,omitempty"`
}

ServerGroupInUpstreamCreate server group in upstream create

swagger:model ServerGroupInUpstreamCreate

func (*ServerGroupInUpstreamCreate) ContextValidate

func (m *ServerGroupInUpstreamCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this server group in upstream create based on context it is used

func (*ServerGroupInUpstreamCreate) MarshalBinary

func (m *ServerGroupInUpstreamCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServerGroupInUpstreamCreate) UnmarshalBinary

func (m *ServerGroupInUpstreamCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServerGroupInUpstreamCreate) Validate

func (m *ServerGroupInUpstreamCreate) Validate(formats strfmt.Registry) error

Validate validates this server group in upstream create

type ServerGroupInUpstreamDetail

type ServerGroupInUpstreamDetail struct {

	// annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// server group
	ServerGroup *ServerGroupDetail `json:"serverGroup,omitempty"`

	// weight of the server-group in the upstream
	Weight int64 `json:"weight,omitempty"`
}

ServerGroupInUpstreamDetail server group in upstream detail

swagger:model ServerGroupInUpstreamDetail

func (*ServerGroupInUpstreamDetail) ContextValidate

func (m *ServerGroupInUpstreamDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this server group in upstream detail based on the context it is used

func (*ServerGroupInUpstreamDetail) MarshalBinary

func (m *ServerGroupInUpstreamDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServerGroupInUpstreamDetail) UnmarshalBinary

func (m *ServerGroupInUpstreamDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServerGroupInUpstreamDetail) Validate

func (m *ServerGroupInUpstreamDetail) Validate(formats strfmt.Registry) error

Validate validates this server group in upstream detail

type ServerGroupInUpstreamUpdate

type ServerGroupInUpstreamUpdate struct {

	// annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	// weight of the server-group in the upstream
	Weight *int64 `json:"weight,omitempty"`
}

ServerGroupInUpstreamUpdate server group in upstream update

swagger:model ServerGroupInUpstreamUpdate

func (*ServerGroupInUpstreamUpdate) ContextValidate

func (m *ServerGroupInUpstreamUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this server group in upstream update based on context it is used

func (*ServerGroupInUpstreamUpdate) MarshalBinary

func (m *ServerGroupInUpstreamUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServerGroupInUpstreamUpdate) UnmarshalBinary

func (m *ServerGroupInUpstreamUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServerGroupInUpstreamUpdate) Validate

func (m *ServerGroupInUpstreamUpdate) Validate(formats strfmt.Registry) error

Validate validates this server group in upstream update

type ServerGroupMethod

type ServerGroupMethod string

ServerGroupMethod the loadbalancing method

swagger:model ServerGroupMethod

const (

	// ServerGroupMethodWrr captures enum value "wrr"
	ServerGroupMethodWrr ServerGroupMethod = "wrr"

	// ServerGroupMethodWlc captures enum value "wlc"
	ServerGroupMethodWlc ServerGroupMethod = "wlc"

	// ServerGroupMethodSource captures enum value "source"
	ServerGroupMethodSource ServerGroupMethod = "source"
)

func NewServerGroupMethod

func NewServerGroupMethod(value ServerGroupMethod) *ServerGroupMethod

func (ServerGroupMethod) ContextValidate

func (m ServerGroupMethod) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this server group method based on context it is used

func (ServerGroupMethod) Pointer

func (m ServerGroupMethod) Pointer() *ServerGroupMethod

Pointer returns a pointer to a freshly-allocated ServerGroupMethod.

func (ServerGroupMethod) Validate

func (m ServerGroupMethod) Validate(formats strfmt.Registry) error

Validate validates this server group method

type ServerGroupUpdate

type ServerGroupUpdate struct {

	// annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	// consider the server unhealthy after $down times of failed health checks
	Down int64 `json:"down,omitempty"`

	// method
	Method *ServerGroupMethod `json:"method,omitempty"`

	// health check period (ms) (interval between two hc)
	Period int64 `json:"period,omitempty"`

	// protocol
	Protocol *CheckProtocol `json:"protocol,omitempty"`

	// health check timeout (ms) (timeout before getting expected response)
	Timeout int64 `json:"timeout,omitempty"`

	// consider the server healthy after $up times of successful health checks
	Up int64 `json:"up,omitempty"`
}

ServerGroupUpdate server group update

swagger:model ServerGroupUpdate

func (*ServerGroupUpdate) ContextValidate

func (m *ServerGroupUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this server group update based on the context it is used

func (*ServerGroupUpdate) MarshalBinary

func (m *ServerGroupUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServerGroupUpdate) UnmarshalBinary

func (m *ServerGroupUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServerGroupUpdate) Validate

func (m *ServerGroupUpdate) Validate(formats strfmt.Registry) error

Validate validates this server group update

type ServerUpdate

type ServerUpdate struct {

	// weight of the server in the server group
	Weight *int64 `json:"weight,omitempty"`
}

ServerUpdate server update

swagger:model ServerUpdate

func (*ServerUpdate) ContextValidate

func (m *ServerUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this server update based on context it is used

func (*ServerUpdate) MarshalBinary

func (m *ServerUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServerUpdate) UnmarshalBinary

func (m *ServerUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServerUpdate) Validate

func (m *ServerUpdate) Validate(formats strfmt.Registry) error

Validate validates this server update

type Socks5Server

type Socks5Server struct {

	// event loop group for accepting connections
	AcceptorLoopGroup string `json:"acceptorLoopGroup,omitempty"`

	// binding l4addr
	Address string `json:"address,omitempty"`

	// allow or disallow to proxy to non-backend endpoints
	AllowNonBackend bool `json:"allowNonBackend,omitempty"`

	// upstream reference for backend servers
	Backend string `json:"backend,omitempty"`

	// input buffer size
	InBufferSize int64 `json:"inBufferSize,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// output buffer size
	OutBufferSize int64 `json:"outBufferSize,omitempty"`

	// security group reference for access control
	SecurityGroup string `json:"securityGroup,omitempty"`

	// event loop group for handling netflow
	WorkerLoopGroup string `json:"workerLoopGroup,omitempty"`
}

Socks5Server socks5 server

swagger:model Socks5Server

func (*Socks5Server) ContextValidate

func (m *Socks5Server) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this socks5 server based on context it is used

func (*Socks5Server) MarshalBinary

func (m *Socks5Server) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Socks5Server) UnmarshalBinary

func (m *Socks5Server) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Socks5Server) Validate

func (m *Socks5Server) Validate(formats strfmt.Registry) error

Validate validates this socks5 server

type Socks5ServerCreate

type Socks5ServerCreate struct {

	// event loop group for accepting connections
	AcceptorLoopGroup string `json:"acceptorLoopGroup,omitempty"`

	// binding l4addr
	// Required: true
	Address *string `json:"address"`

	// allow or disallow to proxy to non-backend endpoints
	AllowNonBackend *bool `json:"allowNonBackend,omitempty"`

	// upstream reference for backend servers
	// Required: true
	Backend *string `json:"backend"`

	// input buffer size
	InBufferSize int64 `json:"inBufferSize,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// output buffer size
	OutBufferSize int64 `json:"outBufferSize,omitempty"`

	// security group reference for access control
	SecurityGroup string `json:"securityGroup,omitempty"`

	// event loop group for handling netflow
	WorkerLoopGroup string `json:"workerLoopGroup,omitempty"`
}

Socks5ServerCreate socks5 server create

swagger:model Socks5ServerCreate

func (*Socks5ServerCreate) ContextValidate

func (m *Socks5ServerCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this socks5 server create based on context it is used

func (*Socks5ServerCreate) MarshalBinary

func (m *Socks5ServerCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Socks5ServerCreate) UnmarshalBinary

func (m *Socks5ServerCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Socks5ServerCreate) Validate

func (m *Socks5ServerCreate) Validate(formats strfmt.Registry) error

Validate validates this socks5 server create

type Socks5ServerDetail

type Socks5ServerDetail struct {

	// acceptor loop group
	AcceptorLoopGroup *EventLoopGroupDetail `json:"acceptorLoopGroup,omitempty"`

	// binding l4addr
	Address string `json:"address,omitempty"`

	// allow or disallow to proxy to non-backend endpoints
	AllowNonBackend bool `json:"allowNonBackend,omitempty"`

	// backend
	Backend *UpstreamDetail `json:"backend,omitempty"`

	// input buffer size
	InBufferSize int64 `json:"inBufferSize,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// output buffer size
	OutBufferSize int64 `json:"outBufferSize,omitempty"`

	// security group
	SecurityGroup *SecurityGroupDetail `json:"securityGroup,omitempty"`

	// worker loop group
	WorkerLoopGroup *EventLoopGroupDetail `json:"workerLoopGroup,omitempty"`
}

Socks5ServerDetail socks5 server detail

swagger:model Socks5ServerDetail

func (*Socks5ServerDetail) ContextValidate

func (m *Socks5ServerDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this socks5 server detail based on the context it is used

func (*Socks5ServerDetail) MarshalBinary

func (m *Socks5ServerDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Socks5ServerDetail) UnmarshalBinary

func (m *Socks5ServerDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Socks5ServerDetail) Validate

func (m *Socks5ServerDetail) Validate(formats strfmt.Registry) error

Validate validates this socks5 server detail

type Socks5ServerUpdate

type Socks5ServerUpdate struct {

	// allow or disallow to proxy to non-backend endpoints
	AllowNonBackend *bool `json:"allowNonBackend,omitempty"`

	// in buffer size
	InBufferSize int64 `json:"inBufferSize,omitempty"`

	// out buffer size
	OutBufferSize int64 `json:"outBufferSize,omitempty"`

	// security group reference for access control
	SecurityGroup string `json:"securityGroup,omitempty"`
}

Socks5ServerUpdate socks5 server update

swagger:model Socks5ServerUpdate

func (*Socks5ServerUpdate) ContextValidate

func (m *Socks5ServerUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this socks5 server update based on context it is used

func (*Socks5ServerUpdate) MarshalBinary

func (m *Socks5ServerUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Socks5ServerUpdate) UnmarshalBinary

func (m *Socks5ServerUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Socks5ServerUpdate) Validate

func (m *Socks5ServerUpdate) Validate(formats strfmt.Registry) error

Validate validates this socks5 server update

type TCPLb

type TCPLb struct {

	// event loop group for accepting connections
	AcceptorLoopGroup string `json:"acceptorLoopGroup,omitempty"`

	// binding l4addr
	Address string `json:"address,omitempty"`

	// upstream reference for backend servers
	Backend string `json:"backend,omitempty"`

	// input buffer size
	InBufferSize int64 `json:"inBufferSize,omitempty"`

	// list of cert key
	ListOfCertKey []string `json:"listOfCertKey"`

	// name
	Name string `json:"name,omitempty"`

	// output buffer size
	OutBufferSize int64 `json:"outBufferSize,omitempty"`

	// protocol
	Protocol Protocol `json:"protocol,omitempty"`

	// security group reference for access control
	SecurityGroup string `json:"securityGroup,omitempty"`

	// event loop group for handling netflow
	WorkerLoopGroup string `json:"workerLoopGroup,omitempty"`
}

TCPLb Tcp lb

swagger:model TcpLb

func (*TCPLb) ContextValidate

func (m *TCPLb) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this Tcp lb based on the context it is used

func (*TCPLb) MarshalBinary

func (m *TCPLb) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TCPLb) UnmarshalBinary

func (m *TCPLb) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TCPLb) Validate

func (m *TCPLb) Validate(formats strfmt.Registry) error

Validate validates this Tcp lb

type TCPLbCreate

type TCPLbCreate struct {

	// event loop group for accepting connections
	AcceptorLoopGroup string `json:"acceptorLoopGroup,omitempty"`

	// binding l4addr
	// Required: true
	Address *string `json:"address"`

	// upstream reference for backend servers
	// Required: true
	Backend *string `json:"backend"`

	// input buffer size
	InBufferSize int64 `json:"inBufferSize,omitempty"`

	// list of cert key
	ListOfCertKey []string `json:"listOfCertKey"`

	// name
	// Required: true
	Name *string `json:"name"`

	// output buffer size
	OutBufferSize int64 `json:"outBufferSize,omitempty"`

	// protocol
	Protocol Protocol `json:"protocol,omitempty"`

	// security group reference for access control
	SecurityGroup string `json:"securityGroup,omitempty"`

	// event loop group for handling netflow
	WorkerLoopGroup string `json:"workerLoopGroup,omitempty"`
}

TCPLbCreate Tcp lb create

swagger:model TcpLbCreate

func (*TCPLbCreate) ContextValidate

func (m *TCPLbCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this Tcp lb create based on the context it is used

func (*TCPLbCreate) MarshalBinary

func (m *TCPLbCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TCPLbCreate) UnmarshalBinary

func (m *TCPLbCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TCPLbCreate) Validate

func (m *TCPLbCreate) Validate(formats strfmt.Registry) error

Validate validates this Tcp lb create

type TCPLbDetail

type TCPLbDetail struct {

	// acceptor loop group
	AcceptorLoopGroup *EventLoopGroupDetail `json:"acceptorLoopGroup,omitempty"`

	// l4addr
	Address string `json:"address,omitempty"`

	// backend
	Backend *UpstreamDetail `json:"backend,omitempty"`

	// input buffer size
	InBufferSize int64 `json:"inBufferSize,omitempty"`

	// list of cert key
	ListOfCertKey []*CertKeyDetail `json:"listOfCertKey"`

	// name
	Name string `json:"name,omitempty"`

	// output buffer size
	OutBufferSize int64 `json:"outBufferSize,omitempty"`

	// protocol
	Protocol Protocol `json:"protocol,omitempty"`

	// security group
	SecurityGroup *SecurityGroupDetail `json:"securityGroup,omitempty"`

	// worker loop group
	WorkerLoopGroup *EventLoopGroupDetail `json:"workerLoopGroup,omitempty"`
}

TCPLbDetail Tcp lb detail

swagger:model TcpLbDetail

func (*TCPLbDetail) ContextValidate

func (m *TCPLbDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this Tcp lb detail based on the context it is used

func (*TCPLbDetail) MarshalBinary

func (m *TCPLbDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TCPLbDetail) UnmarshalBinary

func (m *TCPLbDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TCPLbDetail) Validate

func (m *TCPLbDetail) Validate(formats strfmt.Registry) error

Validate validates this Tcp lb detail

type TCPLbUpdate

type TCPLbUpdate struct {

	// in buffer size
	InBufferSize int64 `json:"inBufferSize,omitempty"`

	// list of cert key
	ListOfCertKey []string `json:"listOfCertKey"`

	// out buffer size
	OutBufferSize int64 `json:"outBufferSize,omitempty"`

	// security group reference for access control
	SecurityGroup string `json:"securityGroup,omitempty"`
}

TCPLbUpdate Tcp lb update

swagger:model TcpLbUpdate

func (*TCPLbUpdate) ContextValidate

func (m *TCPLbUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Tcp lb update based on context it is used

func (*TCPLbUpdate) MarshalBinary

func (m *TCPLbUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TCPLbUpdate) UnmarshalBinary

func (m *TCPLbUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TCPLbUpdate) Validate

func (m *TCPLbUpdate) Validate(formats strfmt.Registry) error

Validate validates this Tcp lb update

type Upstream

type Upstream struct {

	// name
	Name string `json:"name,omitempty"`
}

Upstream upstream

swagger:model Upstream

func (*Upstream) ContextValidate

func (m *Upstream) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this upstream based on context it is used

func (*Upstream) MarshalBinary

func (m *Upstream) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Upstream) UnmarshalBinary

func (m *Upstream) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Upstream) Validate

func (m *Upstream) Validate(formats strfmt.Registry) error

Validate validates this upstream

type UpstreamCreate

type UpstreamCreate struct {

	// name
	// Required: true
	Name *string `json:"name"`
}

UpstreamCreate upstream create

swagger:model UpstreamCreate

func (*UpstreamCreate) ContextValidate

func (m *UpstreamCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this upstream create based on context it is used

func (*UpstreamCreate) MarshalBinary

func (m *UpstreamCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpstreamCreate) UnmarshalBinary

func (m *UpstreamCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpstreamCreate) Validate

func (m *UpstreamCreate) Validate(formats strfmt.Registry) error

Validate validates this upstream create

type UpstreamDetail

type UpstreamDetail struct {

	// name
	Name string `json:"name,omitempty"`

	// server group list
	ServerGroupList []*ServerGroupInUpstreamDetail `json:"serverGroupList"`
}

UpstreamDetail upstream detail

swagger:model UpstreamDetail

func (*UpstreamDetail) ContextValidate

func (m *UpstreamDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this upstream detail based on the context it is used

func (*UpstreamDetail) MarshalBinary

func (m *UpstreamDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpstreamDetail) UnmarshalBinary

func (m *UpstreamDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpstreamDetail) Validate

func (m *UpstreamDetail) Validate(formats strfmt.Registry) error

Validate validates this upstream detail

Jump to

Keyboard shortcuts

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