protos

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateGatewayConfig

func ValidateGatewayConfig(config *DevmandGatewayConfig) error

ValidateGatewayConfig - Validate a DevmandGatewayConfig

func ValidateManagedDevice

func ValidateManagedDevice(config *ManagedDevice) error

ValidateManagedDevice - validate a ManagedDevice

Types

type CambiumChannel

type CambiumChannel struct {
	ClientId             string   `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientSecret         string   `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	ClientMac            string   `protobuf:"bytes,3,opt,name=client_mac,json=clientMac,proto3" json:"client_mac,omitempty"`
	ClientIp             string   `protobuf:"bytes,4,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CambiumChannel) Descriptor

func (*CambiumChannel) Descriptor() ([]byte, []int)

func (*CambiumChannel) GetClientId

func (m *CambiumChannel) GetClientId() string

func (*CambiumChannel) GetClientIp

func (m *CambiumChannel) GetClientIp() string

func (*CambiumChannel) GetClientMac

func (m *CambiumChannel) GetClientMac() string

func (*CambiumChannel) GetClientSecret

func (m *CambiumChannel) GetClientSecret() string

func (*CambiumChannel) ProtoMessage

func (*CambiumChannel) ProtoMessage()

func (*CambiumChannel) Reset

func (m *CambiumChannel) Reset()

func (*CambiumChannel) String

func (m *CambiumChannel) String() string

func (*CambiumChannel) XXX_DiscardUnknown

func (m *CambiumChannel) XXX_DiscardUnknown()

func (*CambiumChannel) XXX_Marshal

func (m *CambiumChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CambiumChannel) XXX_Merge

func (m *CambiumChannel) XXX_Merge(src proto.Message)

func (*CambiumChannel) XXX_Size

func (m *CambiumChannel) XXX_Size() int

func (*CambiumChannel) XXX_Unmarshal

func (m *CambiumChannel) XXX_Unmarshal(b []byte) error

type Channels

type Channels struct {
	SnmpChannel          *SNMPChannel    `protobuf:"bytes,1,opt,name=snmp_channel,json=snmpChannel,proto3" json:"snmp_channel,omitempty"`
	FrinxChannel         *FrinxChannel   `protobuf:"bytes,2,opt,name=frinx_channel,json=frinxChannel,proto3" json:"frinx_channel,omitempty"`
	CambiumChannel       *CambiumChannel `protobuf:"bytes,3,opt,name=cambium_channel,json=cambiumChannel,proto3" json:"cambium_channel,omitempty"`
	OtherChannel         *OtherChannel   `protobuf:"bytes,4,opt,name=other_channel,json=otherChannel,proto3" json:"other_channel,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*Channels) Descriptor

func (*Channels) Descriptor() ([]byte, []int)

func (*Channels) GetCambiumChannel

func (m *Channels) GetCambiumChannel() *CambiumChannel

func (*Channels) GetFrinxChannel

func (m *Channels) GetFrinxChannel() *FrinxChannel

func (*Channels) GetOtherChannel

func (m *Channels) GetOtherChannel() *OtherChannel

func (*Channels) GetSnmpChannel

func (m *Channels) GetSnmpChannel() *SNMPChannel

func (*Channels) ProtoMessage

func (*Channels) ProtoMessage()

func (*Channels) Reset

func (m *Channels) Reset()

func (*Channels) String

func (m *Channels) String() string

func (*Channels) XXX_DiscardUnknown

func (m *Channels) XXX_DiscardUnknown()

func (*Channels) XXX_Marshal

func (m *Channels) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Channels) XXX_Merge

func (m *Channels) XXX_Merge(src proto.Message)

func (*Channels) XXX_Size

func (m *Channels) XXX_Size() int

func (*Channels) XXX_Unmarshal

func (m *Channels) XXX_Unmarshal(b []byte) error

type DevmandGatewayConfig

type DevmandGatewayConfig struct {
	ManagedDevices       []string `protobuf:"bytes,1,rep,name=managed_devices,json=managedDevices,proto3" json:"managed_devices,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DevmandGatewayConfig) Descriptor

func (*DevmandGatewayConfig) Descriptor() ([]byte, []int)

func (*DevmandGatewayConfig) GetManagedDevices

func (m *DevmandGatewayConfig) GetManagedDevices() []string

func (*DevmandGatewayConfig) ProtoMessage

func (*DevmandGatewayConfig) ProtoMessage()

func (*DevmandGatewayConfig) Reset

func (m *DevmandGatewayConfig) Reset()

func (*DevmandGatewayConfig) String

func (m *DevmandGatewayConfig) String() string

func (*DevmandGatewayConfig) XXX_DiscardUnknown

func (m *DevmandGatewayConfig) XXX_DiscardUnknown()

func (*DevmandGatewayConfig) XXX_Marshal

func (m *DevmandGatewayConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DevmandGatewayConfig) XXX_Merge

func (m *DevmandGatewayConfig) XXX_Merge(src proto.Message)

func (*DevmandGatewayConfig) XXX_Size

func (m *DevmandGatewayConfig) XXX_Size() int

func (*DevmandGatewayConfig) XXX_Unmarshal

func (m *DevmandGatewayConfig) XXX_Unmarshal(b []byte) error

type FrinxChannel

type FrinxChannel struct {
	FrinxPort            int32    `protobuf:"varint,1,opt,name=frinx_port,json=frinxPort,proto3" json:"frinx_port,omitempty"`
	Authorization        string   `protobuf:"bytes,2,opt,name=authorization,proto3" json:"authorization,omitempty"`
	Host                 string   `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
	Port                 int32    `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
	TransportType        string   `protobuf:"bytes,5,opt,name=transport_type,json=transportType,proto3" json:"transport_type,omitempty"`
	DeviceType           string   `protobuf:"bytes,6,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
	DeviceVersion        string   `protobuf:"bytes,7,opt,name=device_version,json=deviceVersion,proto3" json:"device_version,omitempty"`
	Username             string   `protobuf:"bytes,8,opt,name=username,proto3" json:"username,omitempty"`
	Password             string   `protobuf:"bytes,9,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FrinxChannel) Descriptor

func (*FrinxChannel) Descriptor() ([]byte, []int)

func (*FrinxChannel) GetAuthorization

func (m *FrinxChannel) GetAuthorization() string

func (*FrinxChannel) GetDeviceType

func (m *FrinxChannel) GetDeviceType() string

func (*FrinxChannel) GetDeviceVersion

func (m *FrinxChannel) GetDeviceVersion() string

func (*FrinxChannel) GetFrinxPort

func (m *FrinxChannel) GetFrinxPort() int32

func (*FrinxChannel) GetHost

func (m *FrinxChannel) GetHost() string

func (*FrinxChannel) GetPassword

func (m *FrinxChannel) GetPassword() string

func (*FrinxChannel) GetPort

func (m *FrinxChannel) GetPort() int32

func (*FrinxChannel) GetTransportType

func (m *FrinxChannel) GetTransportType() string

func (*FrinxChannel) GetUsername

func (m *FrinxChannel) GetUsername() string

func (*FrinxChannel) ProtoMessage

func (*FrinxChannel) ProtoMessage()

func (*FrinxChannel) Reset

func (m *FrinxChannel) Reset()

func (*FrinxChannel) String

func (m *FrinxChannel) String() string

func (*FrinxChannel) XXX_DiscardUnknown

func (m *FrinxChannel) XXX_DiscardUnknown()

func (*FrinxChannel) XXX_Marshal

func (m *FrinxChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FrinxChannel) XXX_Merge

func (m *FrinxChannel) XXX_Merge(src proto.Message)

func (*FrinxChannel) XXX_Size

func (m *FrinxChannel) XXX_Size() int

func (*FrinxChannel) XXX_Unmarshal

func (m *FrinxChannel) XXX_Unmarshal(b []byte) error

type ManagedDevice

type ManagedDevice struct {
	// Use any.Any when we are ready. for now use JSON string
	// google.protobuf.Any device_config = 1;
	DeviceConfig         string    `protobuf:"bytes,1,opt,name=device_config,json=deviceConfig,proto3" json:"device_config,omitempty"`
	Host                 string    `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	DeviceType           []string  `protobuf:"bytes,3,rep,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
	Platform             string    `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform,omitempty"`
	Channels             *Channels `protobuf:"bytes,5,opt,name=channels,proto3" json:"channels,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*ManagedDevice) Descriptor

func (*ManagedDevice) Descriptor() ([]byte, []int)

func (*ManagedDevice) GetChannels

func (m *ManagedDevice) GetChannels() *Channels

func (*ManagedDevice) GetDeviceConfig

func (m *ManagedDevice) GetDeviceConfig() string

func (*ManagedDevice) GetDeviceType

func (m *ManagedDevice) GetDeviceType() []string

func (*ManagedDevice) GetHost

func (m *ManagedDevice) GetHost() string

func (*ManagedDevice) GetPlatform

func (m *ManagedDevice) GetPlatform() string

func (*ManagedDevice) ProtoMessage

func (*ManagedDevice) ProtoMessage()

func (*ManagedDevice) Reset

func (m *ManagedDevice) Reset()

func (*ManagedDevice) String

func (m *ManagedDevice) String() string

func (*ManagedDevice) XXX_DiscardUnknown

func (m *ManagedDevice) XXX_DiscardUnknown()

func (*ManagedDevice) XXX_Marshal

func (m *ManagedDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ManagedDevice) XXX_Merge

func (m *ManagedDevice) XXX_Merge(src proto.Message)

func (*ManagedDevice) XXX_Size

func (m *ManagedDevice) XXX_Size() int

func (*ManagedDevice) XXX_Unmarshal

func (m *ManagedDevice) XXX_Unmarshal(b []byte) error

type OtherChannel

type OtherChannel struct {
	ChannelProps         map[string]string `` /* 185-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*OtherChannel) Descriptor

func (*OtherChannel) Descriptor() ([]byte, []int)

func (*OtherChannel) GetChannelProps

func (m *OtherChannel) GetChannelProps() map[string]string

func (*OtherChannel) ProtoMessage

func (*OtherChannel) ProtoMessage()

func (*OtherChannel) Reset

func (m *OtherChannel) Reset()

func (*OtherChannel) String

func (m *OtherChannel) String() string

func (*OtherChannel) XXX_DiscardUnknown

func (m *OtherChannel) XXX_DiscardUnknown()

func (*OtherChannel) XXX_Marshal

func (m *OtherChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OtherChannel) XXX_Merge

func (m *OtherChannel) XXX_Merge(src proto.Message)

func (*OtherChannel) XXX_Size

func (m *OtherChannel) XXX_Size() int

func (*OtherChannel) XXX_Unmarshal

func (m *OtherChannel) XXX_Unmarshal(b []byte) error

type SNMPChannel

type SNMPChannel struct {
	Version              string   `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Community            string   `protobuf:"bytes,2,opt,name=community,proto3" json:"community,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SNMPChannel) Descriptor

func (*SNMPChannel) Descriptor() ([]byte, []int)

func (*SNMPChannel) GetCommunity

func (m *SNMPChannel) GetCommunity() string

func (*SNMPChannel) GetVersion

func (m *SNMPChannel) GetVersion() string

func (*SNMPChannel) ProtoMessage

func (*SNMPChannel) ProtoMessage()

func (*SNMPChannel) Reset

func (m *SNMPChannel) Reset()

func (*SNMPChannel) String

func (m *SNMPChannel) String() string

func (*SNMPChannel) XXX_DiscardUnknown

func (m *SNMPChannel) XXX_DiscardUnknown()

func (*SNMPChannel) XXX_Marshal

func (m *SNMPChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SNMPChannel) XXX_Merge

func (m *SNMPChannel) XXX_Merge(src proto.Message)

func (*SNMPChannel) XXX_Size

func (m *SNMPChannel) XXX_Size() int

func (*SNMPChannel) XXX_Unmarshal

func (m *SNMPChannel) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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