Documentation ¶
Index ¶
- Constants
- Variables
- type DNSProto
- func (DNSProto) Descriptor() protoreflect.EnumDescriptor
- func (x DNSProto) Enum() *DNSProto
- func (DNSProto) EnumDescriptor() ([]byte, []int)deprecated
- func (x DNSProto) Number() protoreflect.EnumNumber
- func (x DNSProto) String() string
- func (DNSProto) Type() protoreflect.EnumType
- func (x *DNSProto) UnmarshalJSON(b []byte) errordeprecated
- type ProbeConf
- func (*ProbeConf) Descriptor() ([]byte, []int)deprecated
- func (x *ProbeConf) GetDnsProto() DNSProto
- func (x *ProbeConf) GetMinAnswers() uint32
- func (x *ProbeConf) GetQueryClass() QueryClass
- func (x *ProbeConf) GetQueryType() QueryType
- func (x *ProbeConf) GetRequestsIntervalMsec() int32
- func (x *ProbeConf) GetRequestsPerProbe() int32
- func (x *ProbeConf) GetResolveFirst() bool
- func (x *ProbeConf) GetResolvedDomain() string
- func (*ProbeConf) ProtoMessage()
- func (x *ProbeConf) ProtoReflect() protoreflect.Message
- func (x *ProbeConf) Reset()
- func (x *ProbeConf) String() string
- type QueryClass
- func (QueryClass) Descriptor() protoreflect.EnumDescriptor
- func (x QueryClass) Enum() *QueryClass
- func (QueryClass) EnumDescriptor() ([]byte, []int)deprecated
- func (x QueryClass) Number() protoreflect.EnumNumber
- func (x QueryClass) String() string
- func (QueryClass) Type() protoreflect.EnumType
- func (x *QueryClass) UnmarshalJSON(b []byte) errordeprecated
- type QueryType
- func (QueryType) Descriptor() protoreflect.EnumDescriptor
- func (x QueryType) Enum() *QueryType
- func (QueryType) EnumDescriptor() ([]byte, []int)deprecated
- func (x QueryType) Number() protoreflect.EnumNumber
- func (x QueryType) String() string
- func (QueryType) Type() protoreflect.EnumType
- func (x *QueryType) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
View Source
const ( Default_ProbeConf_ResolvedDomain = string("www.google.com.") Default_ProbeConf_QueryType = QueryType_MX Default_ProbeConf_MinAnswers = uint32(0) Default_ProbeConf_QueryClass = QueryClass_IN Default_ProbeConf_DnsProto = DNSProto_UDP Default_ProbeConf_RequestsPerProbe = int32(1) Default_ProbeConf_RequestsIntervalMsec = int32(0) )
Default values for ProbeConf fields.
Variables ¶
View Source
var ( QueryType_name = map[int32]string{ 0: "NONE", 1: "A", 2: "NS", 5: "CNAME", 6: "SOA", 12: "PTR", 15: "MX", 16: "TXT", 17: "RP", 18: "AFSDB", 24: "SIG", 25: "KEY", 28: "AAAA", 29: "LOC", 33: "SRV", 35: "NAPTR", 36: "KX", 37: "CERT", 39: "DNAME", 42: "APL", 43: "DS", 44: "SSHFP", 45: "IPSECKEY", 46: "RRSIG", 47: "NSEC", 48: "DNSKEY", 49: "DHCID", 50: "NSEC3", 51: "NSEC3PARAM", 52: "TLSA", 55: "HIP", 59: "CDS", 60: "CDNSKEY", 61: "OPENPGPKEY", 249: "TKEY", 250: "TSIG", 256: "URI", 257: "CAA", 32768: "TA", 32769: "DLV", } QueryType_value = map[string]int32{ "NONE": 0, "A": 1, "NS": 2, "CNAME": 5, "SOA": 6, "PTR": 12, "MX": 15, "TXT": 16, "RP": 17, "AFSDB": 18, "SIG": 24, "KEY": 25, "AAAA": 28, "LOC": 29, "SRV": 33, "NAPTR": 35, "KX": 36, "CERT": 37, "DNAME": 39, "APL": 42, "DS": 43, "SSHFP": 44, "IPSECKEY": 45, "RRSIG": 46, "NSEC": 47, "DNSKEY": 48, "DHCID": 49, "NSEC3": 50, "NSEC3PARAM": 51, "TLSA": 52, "HIP": 55, "CDS": 59, "CDNSKEY": 60, "OPENPGPKEY": 61, "TKEY": 249, "TSIG": 250, "URI": 256, "CAA": 257, "TA": 32768, "DLV": 32769, } )
Enum value maps for QueryType.
View Source
var ( QueryClass_name = map[int32]string{ 1: "IN", 3: "CH", } QueryClass_value = map[string]int32{ "IN": 1, "CH": 3, } )
Enum value maps for QueryClass.
View Source
var ( DNSProto_name = map[int32]string{ 0: "UDP", 1: "TCP", 2: "TCP_TLS", } DNSProto_value = map[string]int32{ "UDP": 0, "TCP": 1, "TCP_TLS": 2, } )
Enum value maps for DNSProto.
View Source
var File_github_com_cloudprober_cloudprober_probes_dns_proto_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DNSProto ¶ added in v0.13.3
type DNSProto int32
func (DNSProto) Descriptor ¶ added in v0.13.3
func (DNSProto) Descriptor() protoreflect.EnumDescriptor
func (DNSProto) EnumDescriptor
deprecated
added in
v0.13.3
func (DNSProto) Number ¶ added in v0.13.3
func (x DNSProto) Number() protoreflect.EnumNumber
func (DNSProto) Type ¶ added in v0.13.3
func (DNSProto) Type() protoreflect.EnumType
func (*DNSProto) UnmarshalJSON
deprecated
added in
v0.13.3
type ProbeConf ¶
type ProbeConf struct { // Domain to use when making DNS queries ResolvedDomain *string `protobuf:"bytes,1,opt,name=resolved_domain,json=resolvedDomain,def=www.google.com." json:"resolved_domain,omitempty"` // DNS Query Type QueryType *QueryType `` /* 127-byte string literal not displayed */ // Minimum number of answers expected. Default behavior is to return success // if DNS response status is NOERROR. MinAnswers *uint32 `protobuf:"varint,4,opt,name=min_answers,json=minAnswers,def=0" json:"min_answers,omitempty"` // Whether to resolve the target (target is DNS server here) before making // the request. If set to false, we hand over the target directly to the DNS // client. Otherwise, we resolve the target first to an IP address. By // default we resolve first if it's a discovered resource, e.g., a k8s // endpoint. ResolveFirst *bool `protobuf:"varint,5,opt,name=resolve_first,json=resolveFirst" json:"resolve_first,omitempty"` // DNS Query QueryClass QueryClass *QueryClass `` /* 131-byte string literal not displayed */ // Which DNS protocol is used for resolution. DnsProto *DNSProto `protobuf:"varint,97,opt,name=dns_proto,json=dnsProto,enum=cloudprober.probes.dns.DNSProto,def=0" json:"dns_proto,omitempty"` // Requests per probe. // Number of DNS requests per probe. Requests are executed concurrently and // each DNS request contributes to probe results. For example, if you run two // requests per probe, "total" counter will be incremented by 2. RequestsPerProbe *int32 `protobuf:"varint,98,opt,name=requests_per_probe,json=requestsPerProbe,def=1" json:"requests_per_probe,omitempty"` // How long to wait between two requests to the same target. Only relevant // if requests_per_probe is also configured. // // This value should be less than (interval - timeout) / requests_per_probe. // This is to ensure that all requests are executed within one probe interval // and all of them get sufficient time. For example, if probe interval is 2s, // timeout is 1s, and requests_per_probe is 10, requests_interval_msec // should be less than 10ms. RequestsIntervalMsec *int32 `protobuf:"varint,99,opt,name=requests_interval_msec,json=requestsIntervalMsec,def=0" json:"requests_interval_msec,omitempty"` // contains filtered or unexported fields }
func (*ProbeConf) Descriptor
deprecated
func (*ProbeConf) GetDnsProto ¶ added in v0.13.3
func (*ProbeConf) GetMinAnswers ¶
func (*ProbeConf) GetQueryClass ¶ added in v0.13.8
func (x *ProbeConf) GetQueryClass() QueryClass
func (*ProbeConf) GetQueryType ¶
func (*ProbeConf) GetRequestsIntervalMsec ¶ added in v0.13.3
func (*ProbeConf) GetRequestsPerProbe ¶ added in v0.13.3
func (*ProbeConf) GetResolveFirst ¶ added in v0.11.4
func (*ProbeConf) GetResolvedDomain ¶
func (*ProbeConf) ProtoMessage ¶
func (*ProbeConf) ProtoMessage()
func (*ProbeConf) ProtoReflect ¶ added in v0.11.4
func (x *ProbeConf) ProtoReflect() protoreflect.Message
type QueryClass ¶ added in v0.13.8
type QueryClass int32
DNS query classes https://datatracker.ietf.org/doc/html/rfc1035#section-3.2.4
const ( QueryClass_IN QueryClass = 1 QueryClass_CH QueryClass = 3 )
func (QueryClass) Descriptor ¶ added in v0.13.8
func (QueryClass) Descriptor() protoreflect.EnumDescriptor
func (QueryClass) Enum ¶ added in v0.13.8
func (x QueryClass) Enum() *QueryClass
func (QueryClass) EnumDescriptor
deprecated
added in
v0.13.8
func (QueryClass) EnumDescriptor() ([]byte, []int)
Deprecated: Use QueryClass.Descriptor instead.
func (QueryClass) Number ¶ added in v0.13.8
func (x QueryClass) Number() protoreflect.EnumNumber
func (QueryClass) String ¶ added in v0.13.8
func (x QueryClass) String() string
func (QueryClass) Type ¶ added in v0.13.8
func (QueryClass) Type() protoreflect.EnumType
func (*QueryClass) UnmarshalJSON
deprecated
added in
v0.13.8
func (x *QueryClass) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type QueryType ¶
type QueryType int32
DNS query types from https://en.wikipedia.org/wiki/List_of_DNS_record_types
const ( QueryType_NONE QueryType = 0 QueryType_A QueryType = 1 QueryType_NS QueryType = 2 QueryType_CNAME QueryType = 5 QueryType_SOA QueryType = 6 QueryType_PTR QueryType = 12 QueryType_MX QueryType = 15 QueryType_TXT QueryType = 16 QueryType_RP QueryType = 17 QueryType_AFSDB QueryType = 18 QueryType_SIG QueryType = 24 QueryType_KEY QueryType = 25 QueryType_AAAA QueryType = 28 QueryType_LOC QueryType = 29 QueryType_SRV QueryType = 33 QueryType_NAPTR QueryType = 35 QueryType_KX QueryType = 36 QueryType_CERT QueryType = 37 QueryType_DNAME QueryType = 39 QueryType_APL QueryType = 42 QueryType_DS QueryType = 43 QueryType_SSHFP QueryType = 44 QueryType_IPSECKEY QueryType = 45 QueryType_RRSIG QueryType = 46 QueryType_NSEC QueryType = 47 QueryType_DNSKEY QueryType = 48 QueryType_DHCID QueryType = 49 QueryType_NSEC3 QueryType = 50 QueryType_NSEC3PARAM QueryType = 51 QueryType_TLSA QueryType = 52 QueryType_HIP QueryType = 55 QueryType_CDS QueryType = 59 QueryType_CDNSKEY QueryType = 60 QueryType_OPENPGPKEY QueryType = 61 QueryType_TKEY QueryType = 249 QueryType_TSIG QueryType = 250 QueryType_URI QueryType = 256 QueryType_CAA QueryType = 257 QueryType_TA QueryType = 32768 QueryType_DLV QueryType = 32769 )
func (QueryType) Descriptor ¶ added in v0.11.4
func (QueryType) Descriptor() protoreflect.EnumDescriptor
func (QueryType) EnumDescriptor
deprecated
func (QueryType) Number ¶ added in v0.11.4
func (x QueryType) Number() protoreflect.EnumNumber
func (QueryType) Type ¶ added in v0.11.4
func (QueryType) Type() protoreflect.EnumType
func (*QueryType) UnmarshalJSON
deprecated
Click to show internal directories.
Click to hide internal directories.