adapter

package
v0.0.0-...-8f485f0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package voltha is a generated protocol buffer package.

It is generated from these files:

adapter.proto

It has these top-level messages:

AdapterConfig
Adapter
Adapters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// Unique name of adapter, matching the python packate name under
	// voltha/adapters.
	Id      string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Vendor  string `protobuf:"bytes,2,opt,name=vendor" json:"vendor,omitempty"`
	Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
	// Adapter configuration
	Config *AdapterConfig `protobuf:"bytes,16,opt,name=config" json:"config,omitempty"`
	// Custom descriptors and custom configuration
	AdditionalDescription *google_protobuf.Any `protobuf:"bytes,64,opt,name=additional_description,json=additionalDescription" json:"additional_description,omitempty"`
	LogicalDeviceIds      []string             `protobuf:"bytes,4,rep,name=logical_device_ids,json=logicalDeviceIds" json:"logical_device_ids,omitempty"`
}

Adapter (software plugin)

func (*Adapter) Descriptor

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

func (*Adapter) GetAdditionalDescription

func (m *Adapter) GetAdditionalDescription() *google_protobuf.Any

func (*Adapter) GetConfig

func (m *Adapter) GetConfig() *AdapterConfig

func (*Adapter) GetId

func (m *Adapter) GetId() string

func (*Adapter) GetLogicalDeviceIds

func (m *Adapter) GetLogicalDeviceIds() []string

func (*Adapter) GetVendor

func (m *Adapter) GetVendor() string

func (*Adapter) GetVersion

func (m *Adapter) GetVersion() string

func (*Adapter) ProtoMessage

func (*Adapter) ProtoMessage()

func (*Adapter) Reset

func (m *Adapter) Reset()

func (*Adapter) String

func (m *Adapter) String() string

type AdapterConfig

type AdapterConfig struct {
	// Common adapter config attributes here
	LogLevel voltha2.LogLevel_LogLevel `protobuf:"varint,1,opt,name=log_level,json=logLevel,enum=voltha.LogLevel_LogLevel" json:"log_level,omitempty"`
	// Custom (vendor-specific) configuration attributes
	AdditionalConfig *google_protobuf.Any `protobuf:"bytes,64,opt,name=additional_config,json=additionalConfig" json:"additional_config,omitempty"`
}

func (*AdapterConfig) Descriptor

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

func (*AdapterConfig) GetAdditionalConfig

func (m *AdapterConfig) GetAdditionalConfig() *google_protobuf.Any

func (*AdapterConfig) GetLogLevel

func (m *AdapterConfig) GetLogLevel() voltha2.LogLevel_LogLevel

func (*AdapterConfig) ProtoMessage

func (*AdapterConfig) ProtoMessage()

func (*AdapterConfig) Reset

func (m *AdapterConfig) Reset()

func (*AdapterConfig) String

func (m *AdapterConfig) String() string

type Adapters

type Adapters struct {
	Items []*Adapter `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}

func (*Adapters) Descriptor

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

func (*Adapters) GetItems

func (m *Adapters) GetItems() []*Adapter

func (*Adapters) ProtoMessage

func (*Adapters) ProtoMessage()

func (*Adapters) Reset

func (m *Adapters) Reset()

func (*Adapters) String

func (m *Adapters) String() string

Jump to

Keyboard shortcuts

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