Skip to content

Commit

Permalink
Allow lint to function on darwin
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Lezar <elezar@nvidia.com>
  • Loading branch information
elezar committed Apr 18, 2024
1 parent 6493b9d commit 7851aac
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
File renamed without changes.
27 changes: 27 additions & 0 deletions internal/containerd/restart_other.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//go:build !linux
// +build !linux

/**
# Copyright 2024 NVIDIA CORPORATION
#
# 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 containerd

import "fmt"

// RestartContainerd is not supported on non-linux platforms.
func RestartContainerd(string) error {
return fmt.Errorf("RestartContainerd is not supported on non-linux platforms")
}

0 comments on commit 7851aac

Please sign in to comment.