Versions in this module Expand all Collapse all v0 v0.8.0 Sep 20, 2024 Changes in this version + const GoVppAPIPackageIsVersion1 + const GoVppAPIPackageIsVersion2 + func GetRegisteredMessageTypes() map[string]map[reflect.Type]string + func GetRegisteredMessages() map[string]map[string]Message + func RegisterMessage(x Message, name string) + func RetvalToVPPApiError(retval int32) error + type BufferPool struct + Available float64 + Cached float64 + PoolName string + Used float64 + type BufferStats struct + Buffer map[string]BufferPool + type Channel interface + CheckCompatiblity func(msgs ...Message) error + Close func() + SendMultiRequest func(msg Message) MultiRequestCtx + SendRequest func(msg Message) RequestCtx + SetReplyTimeout func(timeout time.Duration) + SubscribeNotification func(notifChan chan Message, event Message) (SubscriptionCtx, error) + type ChannelProvider interface + NewAPIChannel func() (Channel, error) + NewAPIChannelBuffered func(reqChanBufSize, replyChanBufSize int) (Channel, error) + type CompatibilityError struct + CompatibleMessages []string + IncompatibleMessages []string + func (c *CompatibilityError) Error() string + type Connection interface + Invoke func(ctx context.Context, req Message, reply Message) error + NewStream func(ctx context.Context, options ...StreamOption) (Stream, error) + WatchEvent func(ctx context.Context, event Message) (Watcher, error) + type DataType interface + GetTypeName func() string + type ErrorCounter struct + CounterName string + Values []uint64 + type ErrorStats struct + Errors []ErrorCounter + type InterfaceCounterCombined struct + Bytes uint64 + Packets uint64 + type InterfaceCounters struct + Drops uint64 + IP4 uint64 + IP6 uint64 + InterfaceIndex uint32 + InterfaceName string + Mpls uint64 + Punts uint64 + Rx InterfaceCounterCombined + RxBroadcast InterfaceCounterCombined + RxErrors uint64 + RxMiss uint64 + RxMulticast InterfaceCounterCombined + RxNoBuf uint64 + RxUnicast InterfaceCounterCombined + Tx InterfaceCounterCombined + TxBroadcast InterfaceCounterCombined + TxErrors uint64 + TxMulticast InterfaceCounterCombined + TxUnicast InterfaceCounterCombined + type InterfaceStats struct + Interfaces []InterfaceCounters + type MemoryCounters struct + Free uint64 + FreeChunks uint64 + Releasable uint64 + Total uint64 + TotalAlloc uint64 + Used uint64 + UsedMMap uint64 + type MemoryStats struct + Main map[int]MemoryCounters + Stat map[int]MemoryCounters + Total float64 + Used float64 + type Message interface + GetCrcString func() string + GetMessageName func() string + GetMessageType func() MessageType + type MessageType int + const EventMessage + const OtherMessage + const ReplyMessage + const RequestMessage + type MultiRequestCtx interface + ReceiveReply func(msg Message) (lastReplyReceived bool, err error) + type NodeCounters struct + Calls uint64 + Clocks uint64 + NodeIndex uint32 + NodeName string + Suspends uint64 + Vectors uint64 + type NodeStats struct + Nodes []NodeCounters + type Record struct + ChannelID uint16 + IsReceived bool + Message Message + Timestamp time.Time + type RequestCtx interface + ReceiveReply func(msg Message) error + type StatsProvider interface + GetBufferStats func(*BufferStats) error + GetErrorStats func(*ErrorStats) error + GetInterfaceStats func(*InterfaceStats) error + GetMemoryStats func(*MemoryStats) error + GetNodeStats func(*NodeStats) error + GetSystemStats func(*SystemStats) error + type Stream interface + Close func() error + Context func() context.Context + RecvMsg func() (Message, error) + SendMsg func(Message) error + type StreamOption func(Stream) + type SubscriptionCtx interface + Unsubscribe func() error + type SystemStats struct + Heartbeat uint64 + InputRate uint64 + LastStatsClear uint64 + LastUpdate uint64 + NumWorkerThreads uint64 + VectorRate uint64 + VectorRatePerWorker []uint64 + type Trace interface + Clear func() + Enable func(enable bool) + GetRecords func() []*Record + GetRecordsForChannel func(chId uint16) []*Record + type VPPApiError int32 + const ACL_IN_USE_BY_LOOKUP_CONTEXT + const ACL_IN_USE_INBOUND + const ACL_IN_USE_OUTBOUND + const ADDRESS_FOUND_FOR_INTERFACE + const ADDRESS_IN_USE + const ADDRESS_LENGTH_MISMATCH + const ADDRESS_NOT_DELETABLE + const ADDRESS_NOT_FOUND_FOR_INTERFACE + const ADDRESS_NOT_IN_USE + const ALREADY_CONNECTED + const API_ENDIAN_FAILED + const APPLICATION_NOT_ATTACHED + const APP_ALREADY_ATTACHED + const APP_CONNECT_FILTERED + const APP_CONNECT_SCOPE + const APP_INVALID_NS + const APP_UNSUPPORTED_CFG + const APP_WRONG_NS_SECRET + const BD_ALREADY_EXISTS + const BD_ALREADY_HAS_BVI + const BD_ID_EXCEED_MAX + const BD_IN_USE + const BD_NOT_MODIFIABLE + const BFD_EAGAIN + const BFD_EEXIST + const BFD_EINUSE + const BFD_ENOENT + const BFD_NOTSUPP + const BIER_BSL_UNSUP + const BOND_SLAVE_NOT_ALLOWED + const BUG + const BUSY + const CANNOT_CREATE_PCAP_FILE + const CANNOT_ENABLE_DISABLE_FEATURE + const CLASSIFY_TABLE_NOT_FOUND + const DUPLICATE_IF_ADDRESS + const EAGAIN + const ENTRY_ALREADY_EXISTS + const EXCEEDED_NUMBER_OF_PORTS_CAPACITY + const EXCEEDED_NUMBER_OF_RANGES_CAPACITY + const FAILED_TO_ATTACH_TO_JAVA_THREAD + const FEATURE_DISABLED + const FIB_PATH_UNSUPPORTED_NH_PROTO + const IF_ALREADY_EXISTS + const IKE_NO_PORT + const ILLEGAL_NAME + const INCORRECT_ADJACENCY_TYPE + const INIT_FAILED + const INSTANCE_IN_USE + const INVALID_ADDRESS_FAMILY + const INVALID_ALGORITHM + const INVALID_ARGUMENT + const INVALID_DECAP_NEXT + const INVALID_DST_ADDRESS + const INVALID_EID_TYPE + const INVALID_GPE_MODE + const INVALID_INTERFACE + const INVALID_MEMORY_SIZE + const INVALID_PROTOCOL + const INVALID_QUEUE + const INVALID_REGISTRATION + const INVALID_SESSION_ID + const INVALID_SRC_ADDRESS + const INVALID_SUB_SW_IF_INDEX + const INVALID_SW_IF_INDEX + const INVALID_SW_IF_INDEX_2 + const INVALID_VALUE + const INVALID_VALUE_2 + const INVALID_VALUE_3 + const INVALID_VALUE_4 + const INVALID_VLAN + const INVALID_VLAN_TAG_COUNT + const INVALID_WORKER + const IN_PROGRESS + const IP6_MULTICAST_ADDRESS_NOT_PRESENT + const IP6_NOT_ENABLED + const KEY_LENGTH + const L2_MACS_EVENT_CLINET_PRESENT + const LIMIT_EXCEEDED + const LISP_DISABLED + const LISP_GPE_ENTRIES_PRESENT + const LISP_RLOC_LOCAL + const MISSING_CERT_KEY + const NAME_RESOLUTION_NOT_ENABLED + const NAME_SERVER_FORMAT_ERROR + const NAME_SERVER_NEXT_SERVER + const NAME_SERVER_NOT_FOUND + const NAME_SERVER_NO_ADDRESSES + const NAME_SERVER_NO_SUCH_NAME + const NETLINK_ERROR + const NEXT_HOP_NOT_FOUND_MP + const NEXT_HOP_NOT_IN_FIB + const NON_ETHERNET + const NOT_CONNECTED + const NOT_RUNNING_AS_ROOT + const NO_CHANGE + const NO_MATCHING_INTERFACE + const NO_NAME_SERVERS + const NO_SUCH_ENTRY + const NO_SUCH_FIB + const NO_SUCH_INNER_FIB + const NO_SUCH_LABEL + const NO_SUCH_NODE + const NO_SUCH_NODE2 + const NO_SUCH_TABLE + const NO_SUCH_TABLE2 + const NO_SUCH_TABLE3 + const PREFIX_MATCHES_NEXT_HOP + const QUEUE_FULL + const RESPONSE_NOT_READY + const RSRC_IN_USE + const SAME_SRC_DST + const SESSION_CONNECT + const SESSION_REDIRECT + const SR_POLICY_NAME_NOT_PRESENT + const SUBIF_ALREADY_EXISTS + const SUBIF_CREATE_FAILED + const SUBIF_DOESNT_EXIST + const SVM_SEGMENT_CREATE_FAIL + const SYSCALL_ERROR_1 + const SYSCALL_ERROR_10 + const SYSCALL_ERROR_2 + const SYSCALL_ERROR_3 + const SYSCALL_ERROR_4 + const SYSCALL_ERROR_5 + const SYSCALL_ERROR_6 + const SYSCALL_ERROR_7 + const SYSCALL_ERROR_8 + const SYSCALL_ERROR_9 + const TABLE_TOO_BIG + const TUNNEL_EXIST + const UDP_PORT_TAKEN + const UNEXPECTED_INTF_STATE + const UNIMPLEMENTED + const UNKNOWN_DESTINATION + const UNSPECIFIED + const UNSUPPORTED + const UNSUPPORTED_JNI_VERSION + const URI_FIFO_CREATE_FAILED + const VALUE_EXIST + const VLAN_ALREADY_EXISTS + func (e VPPApiError) Error() string + type Watcher interface + Close func() + Events func() <-chan Message