Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //IPNotValid validator IPNotValid = func() error { return valid.TextErr{Err: errors.New("Not an IP address")} } // GremlinNotValid validator GremlinNotValid = func(err error) error { return valid.TextErr{Err: fmt.Errorf("Not a valid Gremlin expression: %s", err)} } // BPFFilterNotValid validator BPFFilterNotValid = func(err error) error { return valid.TextErr{Err: fmt.Errorf("Not a valid BPF expression: %s", err)} } // CaptureHeaderSizeNotValid validator CaptureHeaderSizeNotValid = func(min, max uint32) error { return valid.TextErr{Err: fmt.Errorf("A valid header size is >= %d && <= %d", min, max)} } // RawPacketLimitNotValid validator RawPacketLimitNotValid = func(min, max uint32) error { return valid.TextErr{Err: fmt.Errorf("A valid raw packet limit size is > %d && <= %d", min, max)} } //LayerKeyModeNotValid validator LayerKeyModeNotValid = func() error { return valid.TextErr{Err: errors.New("Not a valid layer key mode")} } //CaptureTypeNotValid validator CaptureTypeNotValid = func(t string) error { return valid.TextErr{Err: fmt.Errorf("Not a valid capture type: %s, available types: %v", t, common.ProbeTypes)} } //AddressNotValid validator AddressNotValid = func() error { return valid.TextErr{Err: errors.New("Not a valid address")} } //MACNotValid validator MACNotValid = func() error { return valid.TextErr{Err: errors.New("Not a MAC address")} } //IPOrCIDRNotValid validator IPOrCIDRNotValid = func() error { return valid.TextErr{Err: errors.New("Not a IP or CIDR address")} } )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.