shared

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BufferPool = sync.Pool{
	New: func() interface{} {
		return new(bytes.Buffer)
	},
}
View Source
var (
	Cache cache.Cache[string, string]
)

Functions

func GenerateName added in v0.0.12

func GenerateName(s string) string

func InitImageCache added in v0.0.12

func InitImageCache(size int, ttl time.Duration)

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 RenderTemplate(text string, data interface{}, buf *bytes.Buffer) (string, error)

func SendScanRequest added in v0.0.12

func SendScanRequest(ctx context.Context, kc client.Client, ref string, info kmapi.PullSecrets) error

Types

type GroupKindSelector

type GroupKindSelector struct {
	// contains filtered or unexported fields
}

func NewGroupKindSelector

func NewGroupKindSelector(s labels.Selector) GroupKindSelector

func (GroupKindSelector) Matches

func (s GroupKindSelector) Matches(gk schema.GroupKind) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL