package
Version:
v0.0.15
Opens a new window with list of versions in this module.
Published: Dec 7, 2023
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package kubernetes provides a low level client for small footprint consideration
GetClient returns a default client
KubernetesValidatorFunc returns a expr for checking the generic Kubernetes resources
PodValidatorFunc returns a expr for checking pod existing
type Reader interface {
GetResource(group, kind, version, namespace, name string) (map[string]interface{}, error)
}
Reader represents a reader interface
NewDefaultReader returns a reader implement
type ResourceValidator interface {
Exist() bool
Count() int
ExpectCount(int) bool
ExpectField(value interface{}, fields ...string) bool
}
ResourceValidator represents a generic resource validator
Source Files
¶
Click to show internal directories.
Click to hide internal directories.