Documentation ¶
Index ¶
- Variables
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)deprecated
- func (x *Entry) GetFqdn() string
- func (x *Entry) GetLbAlgoAlternate() LBAlgo
- func (x *Entry) GetLbAlgoFallback() LBAlgo
- func (x *Entry) GetLbAlgoPreferred() LBAlgo
- func (x *Entry) GetMaxAnswerReturned() uint32
- func (x *Entry) GetMembersIpv4() []*Member
- func (x *Entry) GetMembersIpv6() []*Member
- func (x *Entry) GetPermissions() []*v1.ElementPermission
- func (x *Entry) GetTags() []string
- func (x *Entry) GetTtl() uint32
- func (*Entry) ProtoMessage()
- func (x *Entry) ProtoReflect() protoreflect.Message
- func (x *Entry) Reset()
- func (x *Entry) String() string
- func (m *Entry) Validate() error
- func (m *Entry) ValidateAll() error
- type EntryMultiError
- type EntryValidationError
- type LBAlgo
- type Member
- func (*Member) Descriptor() ([]byte, []int)deprecated
- func (x *Member) GetDc() string
- func (x *Member) GetDisabled() bool
- func (x *Member) GetIp() string
- func (x *Member) GetRatio() uint32
- func (*Member) ProtoMessage()
- func (x *Member) ProtoReflect() protoreflect.Message
- func (x *Member) Reset()
- func (x *Member) String() string
- func (m *Member) Validate() error
- func (m *Member) ValidateAll() error
- type MemberMultiError
- type MemberValidationError
- type SignedEntry
- func (*SignedEntry) Descriptor() ([]byte, []int)deprecated
- func (x *SignedEntry) GetEntry() *Entry
- func (x *SignedEntry) GetHealthcheck() *v11.HealthCheck
- func (x *SignedEntry) GetSignature() string
- func (*SignedEntry) ProtoMessage()
- func (x *SignedEntry) ProtoReflect() protoreflect.Message
- func (x *SignedEntry) Reset()
- func (x *SignedEntry) String() string
- func (m *SignedEntry) Validate() error
- func (m *SignedEntry) ValidateAll() error
- type SignedEntryMultiError
- type SignedEntryValidationError
- func (e SignedEntryValidationError) Cause() error
- func (e SignedEntryValidationError) Error() string
- func (e SignedEntryValidationError) ErrorName() string
- func (e SignedEntryValidationError) Field() string
- func (e SignedEntryValidationError) Key() bool
- func (e SignedEntryValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( LBAlgo_name = map[int32]string{ 0: "ROUND_ROBIN", 1: "TOPOLOGY", 2: "RATIO", 3: "RANDOM", } LBAlgo_value = map[string]int32{ "ROUND_ROBIN": 0, "TOPOLOGY": 1, "RATIO": 2, "RANDOM": 3, } )
Enum value maps for LBAlgo.
var File_gsloc_api_config_entries_v1_entry_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Fqdn string `protobuf:"bytes,1,opt,name=fqdn,proto3" json:"fqdn,omitempty"` LbAlgoPreferred LBAlgo `` /* 149-byte string literal not displayed */ LbAlgoAlternate LBAlgo `` /* 149-byte string literal not displayed */ LbAlgoFallback LBAlgo `` /* 146-byte string literal not displayed */ MaxAnswerReturned uint32 `protobuf:"varint,5,opt,name=max_answer_returned,json=maxAnswerReturned,proto3" json:"max_answer_returned,omitempty"` MembersIpv4 []*Member `protobuf:"bytes,6,rep,name=members_ipv4,json=membersIpv4,proto3" json:"members_ipv4,omitempty"` MembersIpv6 []*Member `protobuf:"bytes,7,rep,name=members_ipv6,json=membersIpv6,proto3" json:"members_ipv6,omitempty"` Ttl uint32 `protobuf:"varint,8,opt,name=ttl,proto3" json:"ttl,omitempty"` Permissions []*v1.ElementPermission `protobuf:"bytes,9,rep,name=permissions,proto3" json:"permissions,omitempty"` Tags []string `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*Entry) Descriptor
deprecated
func (*Entry) GetLbAlgoAlternate ¶
func (*Entry) GetLbAlgoFallback ¶
func (*Entry) GetLbAlgoPreferred ¶
func (*Entry) GetMaxAnswerReturned ¶
func (*Entry) GetMembersIpv4 ¶
func (*Entry) GetMembersIpv6 ¶
func (*Entry) GetPermissions ¶
func (x *Entry) GetPermissions() []*v1.ElementPermission
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶
func (x *Entry) ProtoReflect() protoreflect.Message
func (*Entry) Validate ¶
Validate checks the field values on Entry with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Entry) ValidateAll ¶
ValidateAll checks the field values on Entry with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EntryMultiError, or nil if none found.
type EntryMultiError ¶
type EntryMultiError []error
EntryMultiError is an error wrapping multiple validation errors returned by Entry.ValidateAll() if the designated constraints aren't met.
func (EntryMultiError) AllErrors ¶
func (m EntryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EntryMultiError) Error ¶
func (m EntryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EntryValidationError ¶
type EntryValidationError struct {
// contains filtered or unexported fields
}
EntryValidationError is the validation error returned by Entry.Validate if the designated constraints aren't met.
func (EntryValidationError) Cause ¶
func (e EntryValidationError) Cause() error
Cause function returns cause value.
func (EntryValidationError) Error ¶
func (e EntryValidationError) Error() string
Error satisfies the builtin error interface
func (EntryValidationError) ErrorName ¶
func (e EntryValidationError) ErrorName() string
ErrorName returns error name.
func (EntryValidationError) Field ¶
func (e EntryValidationError) Field() string
Field function returns field value.
func (EntryValidationError) Key ¶
func (e EntryValidationError) Key() bool
Key function returns key value.
func (EntryValidationError) Reason ¶
func (e EntryValidationError) Reason() string
Reason function returns reason value.
type LBAlgo ¶
type LBAlgo int32
func (LBAlgo) Descriptor ¶
func (LBAlgo) Descriptor() protoreflect.EnumDescriptor
func (LBAlgo) EnumDescriptor
deprecated
func (LBAlgo) Number ¶
func (x LBAlgo) Number() protoreflect.EnumNumber
func (LBAlgo) Type ¶
func (LBAlgo) Type() protoreflect.EnumType
type Member ¶
type Member struct { Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` Ratio uint32 `protobuf:"varint,2,opt,name=ratio,proto3" json:"ratio,omitempty"` Dc string `protobuf:"bytes,3,opt,name=dc,proto3" json:"dc,omitempty"` Disabled bool `protobuf:"varint,4,opt,name=disabled,proto3" json:"disabled,omitempty"` // contains filtered or unexported fields }
func (*Member) Descriptor
deprecated
func (*Member) GetDisabled ¶
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
func (*Member) ProtoReflect ¶
func (x *Member) ProtoReflect() protoreflect.Message
func (*Member) Validate ¶
Validate checks the field values on Member with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Member) ValidateAll ¶
ValidateAll checks the field values on Member with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MemberMultiError, or nil if none found.
type MemberMultiError ¶
type MemberMultiError []error
MemberMultiError is an error wrapping multiple validation errors returned by Member.ValidateAll() if the designated constraints aren't met.
func (MemberMultiError) AllErrors ¶
func (m MemberMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MemberMultiError) Error ¶
func (m MemberMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MemberValidationError ¶
type MemberValidationError struct {
// contains filtered or unexported fields
}
MemberValidationError is the validation error returned by Member.Validate if the designated constraints aren't met.
func (MemberValidationError) Cause ¶
func (e MemberValidationError) Cause() error
Cause function returns cause value.
func (MemberValidationError) Error ¶
func (e MemberValidationError) Error() string
Error satisfies the builtin error interface
func (MemberValidationError) ErrorName ¶
func (e MemberValidationError) ErrorName() string
ErrorName returns error name.
func (MemberValidationError) Field ¶
func (e MemberValidationError) Field() string
Field function returns field value.
func (MemberValidationError) Key ¶
func (e MemberValidationError) Key() bool
Key function returns key value.
func (MemberValidationError) Reason ¶
func (e MemberValidationError) Reason() string
Reason function returns reason value.
type SignedEntry ¶
type SignedEntry struct { Entry *Entry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` Healthcheck *v11.HealthCheck `protobuf:"bytes,3,opt,name=healthcheck,proto3" json:"healthcheck,omitempty"` // contains filtered or unexported fields }
func (*SignedEntry) Descriptor
deprecated
func (*SignedEntry) Descriptor() ([]byte, []int)
Deprecated: Use SignedEntry.ProtoReflect.Descriptor instead.
func (*SignedEntry) GetEntry ¶
func (x *SignedEntry) GetEntry() *Entry
func (*SignedEntry) GetHealthcheck ¶
func (x *SignedEntry) GetHealthcheck() *v11.HealthCheck
func (*SignedEntry) GetSignature ¶
func (x *SignedEntry) GetSignature() string
func (*SignedEntry) ProtoMessage ¶
func (*SignedEntry) ProtoMessage()
func (*SignedEntry) ProtoReflect ¶
func (x *SignedEntry) ProtoReflect() protoreflect.Message
func (*SignedEntry) Reset ¶
func (x *SignedEntry) Reset()
func (*SignedEntry) String ¶
func (x *SignedEntry) String() string
func (*SignedEntry) Validate ¶
func (m *SignedEntry) Validate() error
Validate checks the field values on SignedEntry with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SignedEntry) ValidateAll ¶
func (m *SignedEntry) ValidateAll() error
ValidateAll checks the field values on SignedEntry with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SignedEntryMultiError, or nil if none found.
type SignedEntryMultiError ¶
type SignedEntryMultiError []error
SignedEntryMultiError is an error wrapping multiple validation errors returned by SignedEntry.ValidateAll() if the designated constraints aren't met.
func (SignedEntryMultiError) AllErrors ¶
func (m SignedEntryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SignedEntryMultiError) Error ¶
func (m SignedEntryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SignedEntryValidationError ¶
type SignedEntryValidationError struct {
// contains filtered or unexported fields
}
SignedEntryValidationError is the validation error returned by SignedEntry.Validate if the designated constraints aren't met.
func (SignedEntryValidationError) Cause ¶
func (e SignedEntryValidationError) Cause() error
Cause function returns cause value.
func (SignedEntryValidationError) Error ¶
func (e SignedEntryValidationError) Error() string
Error satisfies the builtin error interface
func (SignedEntryValidationError) ErrorName ¶
func (e SignedEntryValidationError) ErrorName() string
ErrorName returns error name.
func (SignedEntryValidationError) Field ¶
func (e SignedEntryValidationError) Field() string
Field function returns field value.
func (SignedEntryValidationError) Key ¶
func (e SignedEntryValidationError) Key() bool
Key function returns key value.
func (SignedEntryValidationError) Reason ¶
func (e SignedEntryValidationError) Reason() string
Reason function returns reason value.