Documentation ¶
Index ¶
- func ExecuteRule(rule *stork_api.Rule, rType Type, owner runtime.Object, podNamespace string) (chan bool, error)
- func Init() error
- func PerformRuleRecovery(owner runtime.Object) error
- func ToImagePullSecret(name string) []v1.LocalObjectReference
- func ValidateRule(rule *stork_api.Rule, ruleType Type) error
- type Pod
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteRule ¶
func ExecuteRule( rule *stork_api.Rule, rType Type, owner runtime.Object, podNamespace string, ) (chan bool, error)
ExecuteRule executes rules for the given owner. PVCs are used to figure out the pods on which the rule actions will be run on
func PerformRuleRecovery ¶
PerformRuleRecovery terminates potential background commands running pods for the given owner
func ToImagePullSecret ¶
func ToImagePullSecret(name string) []v1.LocalObjectReference
ToImagePullSecret converts a secret name to the ImagePullSecret struct.
Types ¶
Click to show internal directories.
Click to hide internal directories.