Documentation ¶
Overview ¶
Package support is a library of code useful to any strategy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HookExecutor ¶
type HookExecutor struct { // PodClient provides access to pods. PodClient HookExecutorPodClient }
HookExecutor executes a deployment lifecycle hook.
func (*HookExecutor) Execute ¶
func (e *HookExecutor) Execute(hook *deployapi.LifecycleHook, deployment *kapi.ReplicationController) error
Execute executes hook in the context of deployment.
type HookExecutorPodClient ¶
type HookExecutorPodClient interface { CreatePod(namespace string, pod *kapi.Pod) (*kapi.Pod, error) WatchPod(namespace, name string) (watch.Interface, error) }
HookExecutorPodClient abstracts access to pods.
type HookExecutorPodClientImpl ¶
type HookExecutorPodClientImpl struct { CreatePodFunc func(namespace string, pod *kapi.Pod) (*kapi.Pod, error) WatchPodFunc func(namespace, name string) (watch.Interface, error) }
HookExecutorPodClientImpl is a pluggable HookExecutorPodClient.
Click to show internal directories.
Click to hide internal directories.