-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor instanceidhandler with unique container type
Signed-off-by: Matthias Bertschy <[email protected]>
- Loading branch information
Showing
37 changed files
with
638 additions
and
3,484 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
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 |
---|---|---|
@@ -1,24 +1,9 @@ | ||
package instanceidhandler | ||
|
||
import "github.com/kubescape/k8s-interface/instanceidhandler/v1/helpers" | ||
|
||
type IInstanceID interface { | ||
// GetInstanceType returns the type of the instance ID | ||
GetInstanceType() helpers.InstanceType | ||
|
||
GetAPIVersion() string | ||
GetNamespace() string | ||
GetKind() string | ||
GetName() string | ||
GetContainerName() string | ||
SetAPIVersion(string) | ||
SetNamespace(string) | ||
SetKind(string) | ||
SetName(string) | ||
SetContainerName(string) | ||
GetStringFormatted() string | ||
GetHashed() string | ||
GetLabels() map[string]string | ||
// GetSlug returns a string with a human-friendly and Kubernetes-compatible name | ||
GetSlug() (string, error) | ||
GetSlug(noContainer bool) (string, error) | ||
} |
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
Oops, something went wrong.