Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: razzle <harry@razzle.cloud>
  • Loading branch information
Noxsios committed Mar 14, 2024
1 parent 41907c8 commit e6aaa10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pkg/packager/filters/deploy_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2021-Present The Zarf Authors

// Package filters contains core implementations of the ComponentFilterStrategy interface.
package filters

import (
Expand Down
2 changes: 2 additions & 0 deletions src/pkg/packager/filters/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/defenseunicorns/zarf/src/types"
)

// ByLocalOS creates a new filter that filters components based on local (runtime) OS.
func ByLocalOS(localOS string) ComponentFilterStrategy {
return &localOSFilter{localOS}
}
Expand All @@ -19,6 +20,7 @@ type localOSFilter struct {
localOS string
}

// ErrLocalOSRequired is returned when localOS is not set.
var ErrLocalOSRequired = errors.New("localOS is required")

// Apply applies the filter.
Expand Down

0 comments on commit e6aaa10

Please sign in to comment.