entries

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 19 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetFqdn

func (x *Entry) GetFqdn() string

func (*Entry) GetLbAlgoAlternate

func (x *Entry) GetLbAlgoAlternate() LBAlgo

func (*Entry) GetLbAlgoFallback

func (x *Entry) GetLbAlgoFallback() LBAlgo

func (*Entry) GetLbAlgoPreferred

func (x *Entry) GetLbAlgoPreferred() LBAlgo

func (*Entry) GetMaxAnswerReturned

func (x *Entry) GetMaxAnswerReturned() uint32

func (*Entry) GetMembersIpv4

func (x *Entry) GetMembersIpv4() []*Member

func (*Entry) GetMembersIpv6

func (x *Entry) GetMembersIpv6() []*Member

func (*Entry) GetPermissions

func (x *Entry) GetPermissions() []*v1.ElementPermission

func (*Entry) GetTags

func (x *Entry) GetTags() []string

func (*Entry) GetTtl

func (x *Entry) GetTtl() uint32

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

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

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

func (*Entry) Validate

func (m *Entry) Validate() error

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

func (m *Entry) ValidateAll() error

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
const (
	LBAlgo_ROUND_ROBIN LBAlgo = 0
	LBAlgo_TOPOLOGY    LBAlgo = 1
	LBAlgo_RATIO       LBAlgo = 2
	LBAlgo_RANDOM      LBAlgo = 3
)

func (LBAlgo) Descriptor

func (LBAlgo) Descriptor() protoreflect.EnumDescriptor

func (LBAlgo) Enum

func (x LBAlgo) Enum() *LBAlgo

func (LBAlgo) EnumDescriptor deprecated

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

Deprecated: Use LBAlgo.Descriptor instead.

func (LBAlgo) Number

func (x LBAlgo) Number() protoreflect.EnumNumber

func (LBAlgo) String

func (x LBAlgo) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Member.ProtoReflect.Descriptor instead.

func (*Member) GetDc

func (x *Member) GetDc() string

func (*Member) GetDisabled

func (x *Member) GetDisabled() bool

func (*Member) GetIp

func (x *Member) GetIp() string

func (*Member) GetRatio

func (x *Member) GetRatio() uint32

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) ProtoReflect

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

func (*Member) Reset

func (x *Member) Reset()

func (*Member) String

func (x *Member) String() string

func (*Member) Validate

func (m *Member) Validate() error

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

func (m *Member) ValidateAll() error

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

Cause function returns cause value.

func (SignedEntryValidationError) Error

Error satisfies the builtin error interface

func (SignedEntryValidationError) ErrorName

func (e SignedEntryValidationError) ErrorName() string

ErrorName returns error name.

func (SignedEntryValidationError) Field

Field function returns field value.

func (SignedEntryValidationError) Key

Key function returns key value.

func (SignedEntryValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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