adapter_service

package
v5.4.7 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAdapterServiceServer

func RegisterAdapterServiceServer(s *grpc.Server, srv AdapterServiceServer)

Types

type AdapterServiceClient

type AdapterServiceClient interface {
	// GetHealthStatus is used by an AdapterService client to verify connectivity
	// to the gRPC server hosting the AdapterService service
	GetHealthStatus(ctx context.Context, opts ...grpc.CallOption) (AdapterService_GetHealthStatusClient, error)
	// Device
	AdoptDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
	ReconcileDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
	DeleteDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
	DisableDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
	ReEnableDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
	RebootDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
	SelfTestDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
	GetOfpDeviceInfo(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*core_adapter.SwitchCapability, error)
	ChildDeviceLost(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
	// Ports
	EnablePort(ctx context.Context, in *voltha.Port, opts ...grpc.CallOption) (*empty.Empty, error)
	DisablePort(ctx context.Context, in *voltha.Port, opts ...grpc.CallOption) (*empty.Empty, error)
	// Flows
	UpdateFlowsBulk(ctx context.Context, in *core_adapter.BulkFlows, opts ...grpc.CallOption) (*empty.Empty, error)
	UpdateFlowsIncrementally(ctx context.Context, in *core_adapter.IncrementalFlows, opts ...grpc.CallOption) (*empty.Empty, error)
	//Packets
	SendPacketOut(ctx context.Context, in *core_adapter.PacketOut, opts ...grpc.CallOption) (*empty.Empty, error)
	// PM
	UpdatePmConfig(ctx context.Context, in *core_adapter.PmConfigsInfo, opts ...grpc.CallOption) (*empty.Empty, error)
	// Image
	DownloadOnuImage(ctx context.Context, in *voltha.DeviceImageDownloadRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error)
	GetOnuImageStatus(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error)
	AbortOnuImageUpgrade(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error)
	GetOnuImages(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*voltha.OnuImages, error)
	ActivateOnuImage(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error)
	CommitOnuImage(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error)
	// Deprecated Image APIs
	DownloadImage(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error)
	GetImageDownloadStatus(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error)
	CancelImageDownload(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error)
	ActivateImageUpdate(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error)
	RevertImageUpdate(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error)
	// Tests
	StartOmciTest(ctx context.Context, in *core_adapter.OMCITest, opts ...grpc.CallOption) (*omci.TestResponse, error)
	SimulateAlarm(ctx context.Context, in *core_adapter.SimulateAlarmMessage, opts ...grpc.CallOption) (*common.OperationResp, error)
	// Events
	SuppressEvent(ctx context.Context, in *voltha.EventFilter, opts ...grpc.CallOption) (*empty.Empty, error)
	UnSuppressEvent(ctx context.Context, in *voltha.EventFilter, opts ...grpc.CallOption) (*empty.Empty, error)
	// Get/Set
	GetExtValue(ctx context.Context, in *core_adapter.GetExtValueMessage, opts ...grpc.CallOption) (*extension.ReturnValues, error)
	SetExtValue(ctx context.Context, in *core_adapter.SetExtValueMessage, opts ...grpc.CallOption) (*empty.Empty, error)
	GetSingleValue(ctx context.Context, in *extension.SingleGetValueRequest, opts ...grpc.CallOption) (*extension.SingleGetValueResponse, error)
	SetSingleValue(ctx context.Context, in *extension.SingleSetValueRequest, opts ...grpc.CallOption) (*extension.SingleSetValueResponse, error)
}

AdapterServiceClient is the client API for AdapterService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAdapterServiceClient

func NewAdapterServiceClient(cc *grpc.ClientConn) AdapterServiceClient

type AdapterServiceServer

type AdapterServiceServer interface {
	// GetHealthStatus is used by an AdapterService client to verify connectivity
	// to the gRPC server hosting the AdapterService service
	GetHealthStatus(AdapterService_GetHealthStatusServer) error
	// Device
	AdoptDevice(context.Context, *voltha.Device) (*empty.Empty, error)
	ReconcileDevice(context.Context, *voltha.Device) (*empty.Empty, error)
	DeleteDevice(context.Context, *voltha.Device) (*empty.Empty, error)
	DisableDevice(context.Context, *voltha.Device) (*empty.Empty, error)
	ReEnableDevice(context.Context, *voltha.Device) (*empty.Empty, error)
	RebootDevice(context.Context, *voltha.Device) (*empty.Empty, error)
	SelfTestDevice(context.Context, *voltha.Device) (*empty.Empty, error)
	GetOfpDeviceInfo(context.Context, *voltha.Device) (*core_adapter.SwitchCapability, error)
	ChildDeviceLost(context.Context, *voltha.Device) (*empty.Empty, error)
	// Ports
	EnablePort(context.Context, *voltha.Port) (*empty.Empty, error)
	DisablePort(context.Context, *voltha.Port) (*empty.Empty, error)
	// Flows
	UpdateFlowsBulk(context.Context, *core_adapter.BulkFlows) (*empty.Empty, error)
	UpdateFlowsIncrementally(context.Context, *core_adapter.IncrementalFlows) (*empty.Empty, error)
	//Packets
	SendPacketOut(context.Context, *core_adapter.PacketOut) (*empty.Empty, error)
	// PM
	UpdatePmConfig(context.Context, *core_adapter.PmConfigsInfo) (*empty.Empty, error)
	// Image
	DownloadOnuImage(context.Context, *voltha.DeviceImageDownloadRequest) (*voltha.DeviceImageResponse, error)
	GetOnuImageStatus(context.Context, *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error)
	AbortOnuImageUpgrade(context.Context, *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error)
	GetOnuImages(context.Context, *common.ID) (*voltha.OnuImages, error)
	ActivateOnuImage(context.Context, *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error)
	CommitOnuImage(context.Context, *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error)
	// Deprecated Image APIs
	DownloadImage(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error)
	GetImageDownloadStatus(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error)
	CancelImageDownload(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error)
	ActivateImageUpdate(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error)
	RevertImageUpdate(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error)
	// Tests
	StartOmciTest(context.Context, *core_adapter.OMCITest) (*omci.TestResponse, error)
	SimulateAlarm(context.Context, *core_adapter.SimulateAlarmMessage) (*common.OperationResp, error)
	// Events
	SuppressEvent(context.Context, *voltha.EventFilter) (*empty.Empty, error)
	UnSuppressEvent(context.Context, *voltha.EventFilter) (*empty.Empty, error)
	// Get/Set
	GetExtValue(context.Context, *core_adapter.GetExtValueMessage) (*extension.ReturnValues, error)
	SetExtValue(context.Context, *core_adapter.SetExtValueMessage) (*empty.Empty, error)
	GetSingleValue(context.Context, *extension.SingleGetValueRequest) (*extension.SingleGetValueResponse, error)
	SetSingleValue(context.Context, *extension.SingleSetValueRequest) (*extension.SingleSetValueResponse, error)
}

AdapterServiceServer is the server API for AdapterService service.

type AdapterService_GetHealthStatusClient

type AdapterService_GetHealthStatusClient interface {
	Send(*common.Connection) error
	Recv() (*health.HealthStatus, error)
	grpc.ClientStream
}

type AdapterService_GetHealthStatusServer

type AdapterService_GetHealthStatusServer interface {
	Send(*health.HealthStatus) error
	Recv() (*common.Connection, error)
	grpc.ServerStream
}

type UnimplementedAdapterServiceServer

type UnimplementedAdapterServiceServer struct {
}

UnimplementedAdapterServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAdapterServiceServer) AbortOnuImageUpgrade

func (*UnimplementedAdapterServiceServer) ActivateImageUpdate

func (*UnimplementedAdapterServiceServer) ActivateOnuImage

func (*UnimplementedAdapterServiceServer) AdoptDevice

func (*UnimplementedAdapterServiceServer) CancelImageDownload

func (*UnimplementedAdapterServiceServer) ChildDeviceLost

func (*UnimplementedAdapterServiceServer) CommitOnuImage

func (*UnimplementedAdapterServiceServer) DeleteDevice

func (*UnimplementedAdapterServiceServer) DisableDevice

func (*UnimplementedAdapterServiceServer) DisablePort

func (*UnimplementedAdapterServiceServer) DownloadImage

func (*UnimplementedAdapterServiceServer) DownloadOnuImage

func (*UnimplementedAdapterServiceServer) EnablePort

func (*UnimplementedAdapterServiceServer) GetExtValue

func (*UnimplementedAdapterServiceServer) GetHealthStatus

func (*UnimplementedAdapterServiceServer) GetImageDownloadStatus

func (*UnimplementedAdapterServiceServer) GetOfpDeviceInfo

func (*UnimplementedAdapterServiceServer) GetOnuImageStatus

func (*UnimplementedAdapterServiceServer) GetOnuImages

func (*UnimplementedAdapterServiceServer) GetSingleValue

func (*UnimplementedAdapterServiceServer) ReEnableDevice

func (*UnimplementedAdapterServiceServer) RebootDevice

func (*UnimplementedAdapterServiceServer) ReconcileDevice

func (*UnimplementedAdapterServiceServer) RevertImageUpdate

func (*UnimplementedAdapterServiceServer) SelfTestDevice

func (*UnimplementedAdapterServiceServer) SendPacketOut

func (*UnimplementedAdapterServiceServer) SetExtValue

func (*UnimplementedAdapterServiceServer) SetSingleValue

func (*UnimplementedAdapterServiceServer) SimulateAlarm

func (*UnimplementedAdapterServiceServer) StartOmciTest

func (*UnimplementedAdapterServiceServer) SuppressEvent

func (*UnimplementedAdapterServiceServer) UnSuppressEvent

func (*UnimplementedAdapterServiceServer) UpdateFlowsBulk

func (*UnimplementedAdapterServiceServer) UpdateFlowsIncrementally

func (*UnimplementedAdapterServiceServer) UpdatePmConfig

Jump to

Keyboard shortcuts

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