Documentation ¶
Index ¶
- Variables
- func GenerateName(s string) string
- func GetKubernetesInfo(cfg *rest.Config, kc kubernetes.Interface) (*corev1alpha1.KubernetesInfo, error)
- func InitImageCache(size int, ttl time.Duration)
- func IsPod(gvr schema.GroupVersionResource) bool
- func PullSecretsHash(info kmapi.PullSecrets) string
- func RenderTemplate(text string, data interface{}, buf *bytes.Buffer) (string, error)
- func SendScanRequest(ctx context.Context, kc client.Client, ref string, info kmapi.PullSecrets) error
- type GroupKindSelector
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Cache cache.Cache[string, string]
)
Functions ¶
func GenerateName ¶ added in v0.0.12
func GetKubernetesInfo ¶
func GetKubernetesInfo(cfg *rest.Config, kc kubernetes.Interface) (*corev1alpha1.KubernetesInfo, error)
func InitImageCache ¶ added in v0.0.12
func IsPod ¶ added in v0.0.6
func IsPod(gvr schema.GroupVersionResource) bool
func PullSecretsHash ¶ added in v0.0.12
func PullSecretsHash(info kmapi.PullSecrets) string
func RenderTemplate ¶ added in v0.0.6
func SendScanRequest ¶ added in v0.0.12
Types ¶
type GroupKindSelector ¶
type GroupKindSelector struct {
// contains filtered or unexported fields
}
func NewGroupKindSelector ¶
func NewGroupKindSelector(s labels.Selector) GroupKindSelector
Click to show internal directories.
Click to hide internal directories.