cop

package
v0.0.0-...-7fa7f61 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cop contains generated bindings for API file cop.api.

Contents:

4 messages

Index

Constants

View Source
const (
	APIFile    = "cop"
	APIVersion = "1.0.1"
	VersionCrc = 0x78b974ae
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type CopInterfaceEnableDisable

type CopInterfaceEnableDisable struct {
	SwIfIndex     interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	EnableDisable bool                           `binapi:"bool,name=enable_disable" json:"enable_disable,omitempty"`
}

CopInterfaceEnableDisable defines message 'cop_interface_enable_disable'.

func (*CopInterfaceEnableDisable) GetCrcString

func (*CopInterfaceEnableDisable) GetCrcString() string

func (*CopInterfaceEnableDisable) GetMessageName

func (*CopInterfaceEnableDisable) GetMessageName() string

func (*CopInterfaceEnableDisable) GetMessageType

func (*CopInterfaceEnableDisable) GetMessageType() api.MessageType

func (*CopInterfaceEnableDisable) Marshal

func (m *CopInterfaceEnableDisable) Marshal(b []byte) ([]byte, error)

func (*CopInterfaceEnableDisable) Reset

func (m *CopInterfaceEnableDisable) Reset()

func (*CopInterfaceEnableDisable) Size

func (m *CopInterfaceEnableDisable) Size() (size int)

func (*CopInterfaceEnableDisable) Unmarshal

func (m *CopInterfaceEnableDisable) Unmarshal(b []byte) error

type CopInterfaceEnableDisableReply

type CopInterfaceEnableDisableReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

CopInterfaceEnableDisableReply defines message 'cop_interface_enable_disable_reply'.

func (*CopInterfaceEnableDisableReply) GetCrcString

func (*CopInterfaceEnableDisableReply) GetCrcString() string

func (*CopInterfaceEnableDisableReply) GetMessageName

func (*CopInterfaceEnableDisableReply) GetMessageName() string

func (*CopInterfaceEnableDisableReply) GetMessageType

func (*CopInterfaceEnableDisableReply) Marshal

func (m *CopInterfaceEnableDisableReply) Marshal(b []byte) ([]byte, error)

func (*CopInterfaceEnableDisableReply) Reset

func (m *CopInterfaceEnableDisableReply) Reset()

func (*CopInterfaceEnableDisableReply) Size

func (m *CopInterfaceEnableDisableReply) Size() (size int)

func (*CopInterfaceEnableDisableReply) Unmarshal

func (m *CopInterfaceEnableDisableReply) Unmarshal(b []byte) error

type CopWhitelistEnableDisable

type CopWhitelistEnableDisable struct {
	SwIfIndex  interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	FibID      uint32                         `binapi:"u32,name=fib_id" json:"fib_id,omitempty"`
	IP4        bool                           `binapi:"bool,name=ip4" json:"ip4,omitempty"`
	IP6        bool                           `binapi:"bool,name=ip6" json:"ip6,omitempty"`
	DefaultCop bool                           `binapi:"bool,name=default_cop" json:"default_cop,omitempty"`
}

CopWhitelistEnableDisable defines message 'cop_whitelist_enable_disable'.

func (*CopWhitelistEnableDisable) GetCrcString

func (*CopWhitelistEnableDisable) GetCrcString() string

func (*CopWhitelistEnableDisable) GetMessageName

func (*CopWhitelistEnableDisable) GetMessageName() string

func (*CopWhitelistEnableDisable) GetMessageType

func (*CopWhitelistEnableDisable) GetMessageType() api.MessageType

func (*CopWhitelistEnableDisable) Marshal

func (m *CopWhitelistEnableDisable) Marshal(b []byte) ([]byte, error)

func (*CopWhitelistEnableDisable) Reset

func (m *CopWhitelistEnableDisable) Reset()

func (*CopWhitelistEnableDisable) Size

func (m *CopWhitelistEnableDisable) Size() (size int)

func (*CopWhitelistEnableDisable) Unmarshal

func (m *CopWhitelistEnableDisable) Unmarshal(b []byte) error

type CopWhitelistEnableDisableReply

type CopWhitelistEnableDisableReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

CopWhitelistEnableDisableReply defines message 'cop_whitelist_enable_disable_reply'.

func (*CopWhitelistEnableDisableReply) GetCrcString

func (*CopWhitelistEnableDisableReply) GetCrcString() string

func (*CopWhitelistEnableDisableReply) GetMessageName

func (*CopWhitelistEnableDisableReply) GetMessageName() string

func (*CopWhitelistEnableDisableReply) GetMessageType

func (*CopWhitelistEnableDisableReply) Marshal

func (m *CopWhitelistEnableDisableReply) Marshal(b []byte) ([]byte, error)

func (*CopWhitelistEnableDisableReply) Reset

func (m *CopWhitelistEnableDisableReply) Reset()

func (*CopWhitelistEnableDisableReply) Size

func (m *CopWhitelistEnableDisableReply) Size() (size int)

func (*CopWhitelistEnableDisableReply) Unmarshal

func (m *CopWhitelistEnableDisableReply) Unmarshal(b []byte) error

type RPCService

type RPCService interface {
	CopInterfaceEnableDisable(ctx context.Context, in *CopInterfaceEnableDisable) (*CopInterfaceEnableDisableReply, error)
	CopWhitelistEnableDisable(ctx context.Context, in *CopWhitelistEnableDisable) (*CopWhitelistEnableDisableReply, error)
}

RPCService defines RPC service cop.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

Jump to

Keyboard shortcuts

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