generated from falcosecurity/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new(pkg): initial implementation of dynamic builder images loading an…
…d indexing given a docker repo. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
- Loading branch information
Showing
4 changed files
with
124 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package builder | ||
|
||
import ( | ||
"github.com/blang/semver" | ||
"github.com/falcosecurity/driverkit/pkg/kernelrelease" | ||
) | ||
|
||
type Image struct { | ||
Target Type | ||
Arch kernelrelease.Architecture | ||
GCCVersion semver.Version // we expect images to internally link eg: gcc5 to gcc5.0.0 | ||
Name string | ||
} | ||
|
||
func (i *Image) toKey() string { | ||
return i.Target.String() + "_" + i.Arch.String() + "_" + i.GCCVersion.String() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters