Skip to content

Commit

Permalink
Fixes linux build constraints
Browse files Browse the repository at this point in the history
Added scanner_stub to accomodate for non-linux build

Signed-off-by: Nino Kodabande <[email protected]>
  • Loading branch information
Nino-K committed Nov 12, 2024
1 parent 5a6d066 commit b2aa16f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
File renamed without changes.
28 changes: 28 additions & 0 deletions src/go/guestagent/pkg/procnet/scanner_stub.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//go:build !linux

/*
Copyright © 2024 SUSE LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package procnet

import (
"context"
"fmt"
"time"

"github.com/rancher-sandbox/rancher-desktop/src/go/guestagent/pkg/tracker"
)

func ForwardPorts(ctx context.Context, tracker tracker.Tracker, scanInterval time.Duration) error {
return fmt.Errorf("only implemented for Linux")
}

0 comments on commit b2aa16f

Please sign in to comment.