VOL-1900 lint warning fixes rw_core
Change-Id: Icaa84d7ce24163da90c91ff2babcbb78ff4e9141
diff --git a/rw_core/mocks/device_manager.go b/rw_core/mocks/device_manager.go
index c8bf1ca..1968efa 100644
--- a/rw_core/mocks/device_manager.go
+++ b/rw_core/mocks/device_manager.go
@@ -13,129 +13,166 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package mocks
import (
"context"
+
"github.com/opencord/voltha-protos/v2/go/voltha"
)
+// DeviceManager -
type DeviceManager struct {
}
-func (dm *DeviceManager) GetDevice(deviceId string) (*voltha.Device, error) {
+// GetDevice -
+func (dm *DeviceManager) GetDevice(deviceID string) (*voltha.Device, error) {
return nil, nil
}
-func (dm *DeviceManager) IsRootDevice(deviceId string) (bool, error) {
+
+// IsRootDevice -
+func (dm *DeviceManager) IsRootDevice(deviceID string) (bool, error) {
return false, nil
}
+// NotifyInvalidTransition -
func (dm *DeviceManager) NotifyInvalidTransition(pcDevice *voltha.Device) error {
return nil
}
+// SetAdminStateToEnable -
func (dm *DeviceManager) SetAdminStateToEnable(cDevice *voltha.Device) error {
return nil
}
+// CreateLogicalDevice -
func (dm *DeviceManager) CreateLogicalDevice(cDevice *voltha.Device) error {
return nil
}
+// SetupUNILogicalPorts -
func (dm *DeviceManager) SetupUNILogicalPorts(cDevice *voltha.Device) error {
return nil
}
+// DisableAllChildDevices -
func (dm *DeviceManager) DisableAllChildDevices(cDevice *voltha.Device) error {
return nil
}
+// DeleteLogicalDevice -
func (dm *DeviceManager) DeleteLogicalDevice(cDevice *voltha.Device) error {
return nil
}
+// DeleteLogicalPorts -
func (dm *DeviceManager) DeleteLogicalPorts(cDevice *voltha.Device) error {
return nil
}
+// DeleteAllChildDevices -
func (dm *DeviceManager) DeleteAllChildDevices(cDevice *voltha.Device) error {
return nil
}
+// RunPostDeviceDelete -
func (dm *DeviceManager) RunPostDeviceDelete(cDevice *voltha.Device) error {
return nil
}
+// ListDevices -
func (dm *DeviceManager) ListDevices() (*voltha.Devices, error) {
return nil, nil
}
+// ListDeviceIds -
func (dm *DeviceManager) ListDeviceIds() (*voltha.IDs, error) {
return nil, nil
}
+// ReconcileDevices -
func (dm *DeviceManager) ReconcileDevices(ctx context.Context, ids *voltha.IDs, ch chan interface{}) {
}
+// CreateDevice -
func (dm *DeviceManager) CreateDevice(ctx context.Context, device *voltha.Device, ch chan interface{}) {
}
+// EnableDevice -
func (dm *DeviceManager) EnableDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) {
}
+// DisableDevice -
func (dm *DeviceManager) DisableDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) {
}
+// RebootDevice -
func (dm *DeviceManager) RebootDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) {
}
+// DeleteDevice -
func (dm *DeviceManager) DeleteDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) {
}
+// StopManagingDevice -
func (dm *DeviceManager) StopManagingDevice(id string) {
}
+// DownloadImage -
func (dm *DeviceManager) DownloadImage(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
}
+// CancelImageDownload -
func (dm *DeviceManager) CancelImageDownload(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
}
+// ActivateImage -
func (dm *DeviceManager) ActivateImage(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
}
+// RevertImage -
func (dm *DeviceManager) RevertImage(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
}
+// GetImageDownloadStatus -
func (dm *DeviceManager) GetImageDownloadStatus(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
}
-func (dm *DeviceManager) UpdateImageDownload(deviceId string, img *voltha.ImageDownload) error {
+// UpdateImageDownload -
+func (dm *DeviceManager) UpdateImageDownload(deviceID string, img *voltha.ImageDownload) error {
return nil
}
+// SimulateAlarm -
func (dm *DeviceManager) SimulateAlarm(ctx context.Context, simulatereq *voltha.SimulateAlarmRequest, ch chan interface{}) {
}
+// GetImageDownload -
func (dm *DeviceManager) GetImageDownload(ctx context.Context, img *voltha.ImageDownload) (*voltha.ImageDownload, error) {
return nil, nil
}
-func (dm *DeviceManager) ListImageDownloads(ctx context.Context, deviceId string) (*voltha.ImageDownloads, error) {
+// ListImageDownloads -
+func (dm *DeviceManager) ListImageDownloads(ctx context.Context, deviceID string) (*voltha.ImageDownloads, error) {
return nil, nil
}
+// UpdatePmConfigs -
func (dm *DeviceManager) UpdatePmConfigs(ctx context.Context, pmConfigs *voltha.PmConfigs, ch chan interface{}) {
}
-func (dm *DeviceManager) ListPmConfigs(ctx context.Context, deviceId string) (*voltha.PmConfigs, error) {
+// ListPmConfigs -
+func (dm *DeviceManager) ListPmConfigs(ctx context.Context, deviceID string) (*voltha.PmConfigs, error) {
return nil, nil
}
-func (dm *DeviceManager) DeletePeerPorts(fromDeviceId string, deviceId string) error {
+// DeletePeerPorts -
+func (dm *DeviceManager) DeletePeerPorts(fromDeviceID string, deviceID string) error {
return nil
}
+// ProcessTransition -
func (dm *DeviceManager) ProcessTransition(previous *voltha.Device, current *voltha.Device) error {
return nil
}