Documentation
¶
Index ¶
- Constants
- func IsBrokerReady(broker *keventingv1.Broker) (bool, error)
- func IsDeploymentReady(deployment *appsv1.Deployment) (bool, error)
- func IsDicomEventBridgeAvailable() bool
- func IsKnativeAvailable() bool
- func IsResourceFound(client client.Client, ctx context.Context, req ctrl.Request, ...) (bool, error)
- func IsResourceNotReadyError(err error) bool
- func IsServiceReady(service *kservingv1.Service) (bool, error)
- func IsSinkBindingReady(binding *ksourcesv1.SinkBinding) (bool, error)
- func IsTriggerReady(trigger *keventingv1.Trigger) (bool, error)
- func ResourceExists(dc discovery.DiscoveryInterface, apiGroupVersion, kind string) (bool, error)
- type ActionRunner
- type Background
- type BridgeRole
- type ControllerAction
- type ControllerActionRunner
- type DesiredResourceState
- type EventType
- type GenericCreateAction
- type GenericErrorAction
- type GenericUpdateAction
- type ResourceNotReadyError
- type StateManager
Constants ¶
View Source
const ( OpenShiftAPIServerKind = "OpenShiftAPIServer" KnativeServingKind = "Service" KnativeEventingKind = "Broker" DicomEventBridgeKind = "DicomEventBridge" AutoDetectTick = 2 * time.Minute RequeueDelay = 5 * time.Minute RequeueDelayError = 5 * time.Second EventProcessorServiceImage = "alvearie/dicom-event-driven-ingestion-postgresql:0.0.1" StowServiceImage = "alvearie/dicomweb-stow-service:0.0.1" WadoServiceImage = "alvearie/dicomweb-wado-service:0.0.1" DimseIngestionImage = "alvearie/dicom-dimse-service:0.0.1" StudyBindingServiceImage = "alvearie/dicomweb-fhir-binding:0.0.1" InstanceBindingServiceImage = "alvearie/dicomweb-stow-binding:0.0.1" DimseProxyImage = "alvearie/dicom-dimse-proxy:0.0.1" EventBridgeImage = "alvearie/nats-event-bridge:0.0.1" MinScaleAnnotation = "autoscaling.knative.dev/minScale" MaxScaleAnnotation = "autoscaling.knative.dev/maxScale" ImageStoredEventType EventType = "ImageStoredEvent" DicomAvailableEventType EventType = "DicomAvailableEvent" StudyRevisionEventType EventType = "StudyRevisionEvent" BridgeRoleHub BridgeRole = "hub" BridgeRoleEdge BridgeRole = "edge" DefaultKServiceMemoryRequest = "128Mi" DefaultKServiceMemoryLimit = "384Mi" DefaultDeploymentMemoryRequest = "64Mi" DefaultDeploymentMemoryLimit = "384Mi" )
View Source
const (
ConditionStatusSuccess = "True"
)
Variables ¶
This section is empty.
Functions ¶
func IsBrokerReady ¶
func IsBrokerReady(broker *keventingv1.Broker) (bool, error)
func IsDeploymentReady ¶
func IsDeploymentReady(deployment *appsv1.Deployment) (bool, error)
func IsDicomEventBridgeAvailable ¶
func IsDicomEventBridgeAvailable() bool
func IsKnativeAvailable ¶
func IsKnativeAvailable() bool
func IsResourceFound ¶
func IsResourceNotReadyError ¶
func IsServiceReady ¶
func IsServiceReady(service *kservingv1.Service) (bool, error)
func IsSinkBindingReady ¶
func IsSinkBindingReady(binding *ksourcesv1.SinkBinding) (bool, error)
func IsTriggerReady ¶
func IsTriggerReady(trigger *keventingv1.Trigger) (bool, error)
func ResourceExists ¶
func ResourceExists(dc discovery.DiscoveryInterface, apiGroupVersion, kind string) (bool, error)
ResourceExists returns true if the given resource kind exists in the given api groupversion
Types ¶
type ActionRunner ¶
type Background ¶
type Background struct {
// contains filtered or unexported fields
}
Background represents a procedure that runs in the background, periodically auto-detecting features
func NewAutoDetect ¶
func NewAutoDetect(mgr manager.Manager) (*Background, error)
New creates a new auto-detect runner
func (*Background) DetectRequirements ¶
func (b *Background) DetectRequirements()
func (*Background) Start ¶
func (b *Background) Start()
Start initializes the auto-detection process that runs in the background
func (*Background) Stop ¶
func (b *Background) Stop()
Stop causes the background process to stop auto detecting capabilities
type BridgeRole ¶
type BridgeRole string
type ControllerAction ¶
type ControllerAction interface {
Run(runner ActionRunner) (string, error)
}
type ControllerActionRunner ¶
type ControllerActionRunner struct {
// contains filtered or unexported fields
}
func (*ControllerActionRunner) Create ¶
func (i *ControllerActionRunner) Create(obj client.Object) error
func (*ControllerActionRunner) Error ¶
func (i *ControllerActionRunner) Error(err error) error
func (*ControllerActionRunner) RunAll ¶
func (i *ControllerActionRunner) RunAll(desiredState DesiredResourceState) error
type DesiredResourceState ¶
type DesiredResourceState []ControllerAction
func (*DesiredResourceState) AddAction ¶
func (d *DesiredResourceState) AddAction(action ControllerAction) DesiredResourceState
func (*DesiredResourceState) AddActions ¶
func (d *DesiredResourceState) AddActions(actions []ControllerAction) DesiredResourceState
type GenericCreateAction ¶
An action to create generic kubernetes resources (resources that don't require special treatment)
func (GenericCreateAction) Run ¶
func (i GenericCreateAction) Run(runner ActionRunner) (string, error)
type GenericErrorAction ¶
An action to return error
func (GenericErrorAction) Run ¶
func (i GenericErrorAction) Run(runner ActionRunner) (string, error)
type GenericUpdateAction ¶
An action to update generic kubernetes resources (resources that don't require special treatment)
func (GenericUpdateAction) Run ¶
func (i GenericUpdateAction) Run(runner ActionRunner) (string, error)
type ResourceNotReadyError ¶
func (*ResourceNotReadyError) Error ¶
func (e *ResourceNotReadyError) Error() string
type StateManager ¶
func GetStateManager ¶
func GetStateManager() *StateManager
func (*StateManager) Clear ¶
func (sm *StateManager) Clear()
func (*StateManager) GetState ¶
func (sm *StateManager) GetState(key string) interface{}
func (*StateManager) SetState ¶
func (sm *StateManager) SetState(key string, value interface{})
Click to show internal directories.
Click to hide internal directories.