Documentation
¶
Index ¶
- func StepsFromTemplateInstance(ti *templatev1.TemplateInstance, namespace string, clients client.RESTClients, ...) (map[string]*Step, error)
- type BasicStepWatcher
- type BuildStepWatcher
- type CompleteStatus
- type DeploymentConfigStepWatcher
- type EndpointsStepWatcher
- type ImageStreamTagStepWatcher
- type PersistentVolumeClaimStepWatcher
- type RouteStepWatcher
- type ServiceStepWatcher
- type Step
- type StepWatcher
- type TemplateInstanceStepWatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StepsFromTemplateInstance ¶
func StepsFromTemplateInstance(ti *templatev1.TemplateInstance, namespace string, clients client.RESTClients, timeoutChan <-chan CompleteStatus) (map[string]*Step, error)
Types ¶
type BasicStepWatcher ¶
type BuildStepWatcher ¶
type BuildStepWatcher BasicStepWatcher
func NewBuildStepWatcher ¶
func NewBuildStepWatcher(namespace, name string, buildclient *buildv1client.BuildV1Client) (*BuildStepWatcher, error)
type CompleteStatus ¶
type CompleteStatus int
const ( CompletedSuccess CompleteStatus = iota CompletedTimeout )
type DeploymentConfigStepWatcher ¶
type DeploymentConfigStepWatcher BasicStepWatcher
func NewDeploymentConfigStepWatcher ¶
func NewDeploymentConfigStepWatcher(namespace, name string, appsclient *appsv1client.AppsV1Client) (*DeploymentConfigStepWatcher, error)
type EndpointsStepWatcher ¶
type EndpointsStepWatcher BasicStepWatcher
func NewEndpointsStepWatcher ¶
func NewEndpointsStepWatcher(namespace, name string, coreclient *corev1client.CoreV1Client) (*EndpointsStepWatcher, error)
type ImageStreamTagStepWatcher ¶
type ImageStreamTagStepWatcher BasicStepWatcher
func NewImageStreamTagStepWatcher ¶
func NewImageStreamTagStepWatcher(namespace, name string, imageclient *imagev1client.ImageV1Client) (*ImageStreamTagStepWatcher, error)
type PersistentVolumeClaimStepWatcher ¶
type PersistentVolumeClaimStepWatcher BasicStepWatcher
func NewPersistentVolumeClaimStepWatcher ¶
func NewPersistentVolumeClaimStepWatcher(namespace, name string, coreclient *corev1client.CoreV1Client) (*PersistentVolumeClaimStepWatcher, error)
type RouteStepWatcher ¶
type RouteStepWatcher BasicStepWatcher
func NewRouteStepWatcher ¶
func NewRouteStepWatcher(namespace, name string, routeclient *routev1client.RouteV1Client) (*RouteStepWatcher, error)
type ServiceStepWatcher ¶
type ServiceStepWatcher BasicStepWatcher
func NewServiceStepWatcher ¶
func NewServiceStepWatcher(namespace, name string, coreclient *corev1client.CoreV1Client) (*ServiceStepWatcher, error)
type Step ¶
type Step struct {
StepWatcher
Err error
EndTime time.Time
Dependents []string
Prereqs []string
Mutex sync.Mutex
}
func (*Step) Done ¶
Done records a completion event for a step, but only if no such completion event was already recorded. There are 3 types of completion events:
- The step reached its expected "success" state. If the step flaps back to error and breaks things, we won't notice
- The step reached an unrecoverable error state. If the error is corrected (e.g. via manual intervention) we won't notice
- The step timed out, and it should check to see if it possibly timed out due to a prerequisite not completing
type StepWatcher ¶
type StepWatcher interface {
watch.Interface
// Event examines an event
// Event returns false,nil when the event doesn't indicate that the task has completed
// Event returns true,nil when the event indicates that the task completed
// Event returns false,err on an error that indicates that the task will never complete
Event(event watch.Event) (bool, error)
}
StepWatcher is just like watch.Interface, except that its Event() can tell when a step is complete
type TemplateInstanceStepWatcher ¶
type TemplateInstanceStepWatcher BasicStepWatcher
func NewTemplateInstanceStepWatcher ¶
func NewTemplateInstanceStepWatcher(namespace string, metadata metav1.ObjectMeta, templateclient *templatev1client.TemplateV1Client) (*TemplateInstanceStepWatcher, error)
Click to show internal directories.
Click to hide internal directories.