Documentation ¶
Index ¶
- Constants
- func CreateClientset(l logger.Logger, insideCluster bool) (clientset kubernetes.Interface)
- func NewController(l logger.Logger, client kubernetes.Interface, storage *persistence.Storage, ...) *controller
- func StartController(l logger.Logger, storage *persistence.Storage, config *config3.CnFuzzConfig, ...) (err error)
- func StartFuzzJob(l logger.Logger, client kubernetes.Interface, cnfConfig *config.CnFuzzConfig, ...) error
- func StartFuzzJobWithName(l logger.Logger, client kubernetes.Interface, cnfConfig *config.CnFuzzConfig, ...)
- type Annotations
Constants ¶
View Source
const ( AnnotationPrefix = "cnfuzz" IgnoreMeAnno = "ignore" FuzzMeAnno = "enable" OpenApiDocAnno = "open-api-doc" SecretAnno = "secret" UsernameAnno = "username" )
Variables ¶
This section is empty.
Functions ¶
func CreateClientset ¶
func CreateClientset(l logger.Logger, insideCluster bool) (clientset kubernetes.Interface)
CreateClientset create a client to interact with the Kubernetes API
func NewController ¶
func NewController(l logger.Logger, client kubernetes.Interface, storage *persistence.Storage, config *config3.CnFuzzConfig, overwrites config3.Overwrites) *controller
func StartController ¶
func StartController(l logger.Logger, storage *persistence.Storage, config *config3.CnFuzzConfig, overwrites config3.Overwrites, client kubernetes.Interface) (err error)
StartController start informers that listen for Kubernetes events and let the EventHandler react on the events
func StartFuzzJob ¶
func StartFuzzJob(l logger.Logger, client kubernetes.Interface, cnfConfig *config.CnFuzzConfig, overwrites config.Overwrites, pod *v1.Pod) error
func StartFuzzJobWithName ¶
func StartFuzzJobWithName(l logger.Logger, client kubernetes.Interface, cnfConfig *config.CnFuzzConfig, overwrites config.Overwrites, podName, podNamespace string)
Types ¶
type Annotations ¶
type Annotations struct { IgnoreMe bool FuzzMe bool OpenApiDocLocation string Secret string Username string }
Annotations annotation values for annotations to be used inside Kubernetes configurations
func GetAnnotations ¶
func GetAnnotations(objectMeta *metav1.ObjectMeta) Annotations
GetAnnotations gather annotations inside the metadata of a Kubernetes object
Click to show internal directories.
Click to hide internal directories.