Skip to content

Commit

Permalink
Fix linter issues after update golangci-lint version (#639)
Browse files Browse the repository at this point in the history
* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix headers

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
  • Loading branch information
NikitaSkrynnik authored Sep 14, 2022
1 parent c597cc9 commit 96dac9e
Show file tree
Hide file tree
Showing 12 changed files with 191 additions and 187 deletions.
36 changes: 18 additions & 18 deletions pkg/networkservice/connectioncontext/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,25 @@ import (
// NewClient creates a NetworkServiceClient chain element to set the ip address on a vpp interface
// It applies the connection context to the *vpp* side of an interface leaving the
// Endpoint.
// Endpoint
// +-------------------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | networkservice.NewClient()+-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------------------------+
//
// Endpoint
// +-------------------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | networkservice.NewClient()+-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------------------------+
func NewClient(vppConn api.Connection) networkservice.NetworkServiceClient {
return chain.NewNetworkServiceClient(
mtu.NewClient(vppConn),
Expand Down
36 changes: 18 additions & 18 deletions pkg/networkservice/connectioncontext/ipcontext/ipaddress/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,25 @@ type ipaddressClient struct {
// NewClient creates a NetworkServiceClient chain element to set the ip address on a vpp interface
// It sets the IP Address on the *vpp* side of an interface leaving the
// Endpoint.
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | ipaddress.NewClient()+-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
//
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | ipaddress.NewClient()+-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
func NewClient(vppConn api.Connection, opts ...Option) networkservice.NetworkServiceClient {
o := &options{
loadIfIndex: ifindex.Load,
Expand Down
36 changes: 18 additions & 18 deletions pkg/networkservice/connectioncontext/ipcontext/ipaddress/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,25 @@ type ipaddressServer struct {
// NewServer creates a NetworkServiceServer chain element to set the ip address on a vpp interface
// It sets the IP Address on the *vpp* side of an interface plugged into the
// Endpoint.
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ ipaddress.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
//
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ ipaddress.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
func NewServer(vppConn api.Connection, opts ...Option) networkservice.NetworkServiceServer {
o := &options{
loadIfIndex: ifindex.Load,
Expand Down
38 changes: 19 additions & 19 deletions pkg/networkservice/connectioncontext/ipcontext/routes/client.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2021 Cisco and/or its affiliates.
// Copyright (c) 2020-2022 Cisco and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
//
Expand Down Expand Up @@ -35,25 +35,25 @@ type routesClient struct {
}

// NewClient creates a NetworkServiceClient chain element to set routes in vpp
// Client
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | routes.NewClient() +-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
//
// Client
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | routes.NewClient() +-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
func NewClient(vppConn api.Connection) networkservice.NetworkServiceClient {
return &routesClient{
vppConn: vppConn,
Expand Down
38 changes: 19 additions & 19 deletions pkg/networkservice/connectioncontext/ipcontext/routes/server.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2021 Cisco and/or its affiliates.
// Copyright (c) 2020-2022 Cisco and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
//
Expand Down Expand Up @@ -36,25 +36,25 @@ type routesServer struct {
// NewServer creates a NetworkServiceServer chain element to set the ip address on a vpp interface
// It sets the IP Address on the *vpp* side of an interface plugged into the
// Endpoint.
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ ipaddress.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
//
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ ipaddress.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
func NewServer(vppConn api.Connection) networkservice.NetworkServiceServer {
return &routesServer{
vppConn: vppConn,
Expand Down
36 changes: 18 additions & 18 deletions pkg/networkservice/connectioncontext/mtu/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,25 @@ type mtuClient struct {
// NewClient creates a NetworkServiceClient chain element to set the mtu on a vpp interface
// It sets the mtu on the *vpp* side of an interface leaving the
// Endpoint.
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | mtu.NewClient()+-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
//
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// | mtu.NewClient()+-------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
func NewClient(vppConn api.Connection) networkservice.NetworkServiceClient {
return &mtuClient{
vppConn: vppConn,
Expand Down
36 changes: 18 additions & 18 deletions pkg/networkservice/connectioncontext/mtu/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,25 @@ type mtuServer struct {
// NewServer creates a NetworkServiceServer chain element to set the MTU on a vpp interface
// It sets the MTU on the *vpp* side of an interface plugged into the
// Endpoint.
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ mtu.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
//
// Endpoint
// +---------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ mtu.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +---------------------------+
func NewServer(vppConn api.Connection) networkservice.NetworkServiceServer {
return &mtuServer{
vppConn: vppConn,
Expand Down
36 changes: 18 additions & 18 deletions pkg/networkservice/connectioncontext/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,25 @@ import (
// NewServer creates a NetworkServiceServer chain element to set the ip address on a vpp interface
// It applies the connection context to the *vpp* side of an interface plugged into the
// Endpoint.
// Endpoint
// +------------------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ networkservice.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +------------------------------------+
//
// Endpoint
// +------------------------------------+
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +-------------------+ networkservice.NewServer() |
// | |
// | |
// | |
// | |
// | |
// | |
// | |
// +------------------------------------+
func NewServer(vppConn api.Connection) networkservice.NetworkServiceServer {
return chain.NewNetworkServiceServer(
mtu.NewServer(vppConn),
Expand Down
Loading

0 comments on commit 96dac9e

Please sign in to comment.