Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} { return []interface{}{ func(obj *discovery.EndpointSlice, c fuzz.Continue) { c.FuzzNoCustom(obj) addressTypes := []discovery.AddressType{discovery.AddressTypeIPv4, discovery.AddressTypeIPv6, discovery.AddressTypeFQDN} obj.AddressType = addressTypes[c.Rand.Intn(len(addressTypes))] for i, endpointPort := range obj.Ports { if endpointPort.Name == nil { emptyStr := "" obj.Ports[i].Name = &emptyStr } if endpointPort.Protocol == nil { protos := []api.Protocol{api.ProtocolTCP, api.ProtocolUDP, api.ProtocolSCTP} obj.Ports[i].Protocol = &protos[c.Rand.Intn(len(protos))] } } }, } }
Funcs returns the fuzzer functions for the discovery api group.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.