Documentation
¶
Index ¶
- func DefaultDependentResourceNameFor(owner Resource) string
- func DeploymentName(c *Component) string
- func DeploymentNameFor(c *Component, mode halkyon.DeploymentMode) string
- func GetObjectName(object runtime.Object) string
- func NewRole() role
- func NewRoleBinding() roleBinding
- func PVCName(c *Component) string
- func PostgresName(owner Resource) string
- func RegisterNewReconciler(factory GenericReconciler, mgr manager.Manager) error
- func RoleBindingName(owner Resource) string
- func RoleName(owner Resource) string
- func ServiceAccountName(owner Resource) string
- func TaskName(owner Resource) string
- type BaseGenericReconciler
- func (b *BaseGenericReconciler) AddDependentResource(resource DependentResource)
- func (b *BaseGenericReconciler) CreateIfNeeded(owner Resource, resourceType runtime.Object) error
- func (b *BaseGenericReconciler) CreateOrUpdate(object Resource) error
- func (b *BaseGenericReconciler) Delete(object Resource) error
- func (b *BaseGenericReconciler) Fetch(into Resource) (Resource, error)
- func (b *BaseGenericReconciler) GetDependentResourceFor(owner Resource, resourceType runtime.Object) (DependentResource, error)
- func (b *BaseGenericReconciler) Helper() ReconcilerHelper
- func (b *BaseGenericReconciler) IsDependentResourceReady(resource Resource) (depOrTypeName string, ready bool)
- func (b *BaseGenericReconciler) IsTargetClusterRunningOpenShift() bool
- func (b *BaseGenericReconciler) MustGetDependentResourceFor(owner Resource, resourceType runtime.Object) (resource DependentResource)
- func (b *BaseGenericReconciler) OpenShiftVersion() int
- func (b *BaseGenericReconciler) PrimaryResourceType() Resource
- func (b *BaseGenericReconciler) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (b *BaseGenericReconciler) SetReconcilerFactory(factory ReconcilerFactory)
- func (b *BaseGenericReconciler) WatchedSecondaryResourceTypes() []runtime.Object
- type Capability
- func (in *Capability) Clone() Resource
- func (in *Capability) GetAPIObject() runtime.Object
- func (in *Capability) GetStatusAsString() string
- func (in *Capability) IsValid() bool
- func (in *Capability) NeedsRequeue() bool
- func (in *Capability) SetAPIObject(object runtime.Object)
- func (in *Capability) SetErrorStatus(err error) bool
- func (in *Capability) SetInitialStatus(msg string) bool
- func (in *Capability) SetNeedsRequeue(requeue bool)
- func (in *Capability) SetSuccessStatus(dependentName, msg string) bool
- func (in *Capability) ShouldDelete() bool
- type Component
- func (in *Component) Clone() Resource
- func (in *Component) GetAPIObject() runtime.Object
- func (in *Component) GetStatusAsString() string
- func (in *Component) IsValid() bool
- func (in *Component) NeedsRequeue() bool
- func (in *Component) SetAPIObject(object runtime.Object)
- func (in *Component) SetErrorStatus(err error) bool
- func (in *Component) SetInitialStatus(msg string) bool
- func (in *Component) SetNeedsRequeue(requeue bool)
- func (in *Component) SetSuccessStatus(dependentName, msg string) bool
- func (in *Component) ShouldDelete() bool
- type DependentResource
- type DependentResourceHelper
- func (res DependentResourceHelper) CanBeCreatedOrUpdated() bool
- func (res DependentResourceHelper) Fetch(helper ReconcilerHelper) (runtime.Object, error)
- func (res DependentResourceHelper) Name() string
- func (res DependentResourceHelper) Owner() Resource
- func (res DependentResourceHelper) Prototype() runtime.Object
- func (res *DependentResourceHelper) SetDelegate(delegate DependentResource)
- func (res DependentResourceHelper) ShouldBeOwned() bool
- func (res DependentResourceHelper) ShouldWatch() bool
- type GenericReconciler
- type Link
- func (in *Link) Clone() Resource
- func (in *Link) GetAPIObject() runtime.Object
- func (in *Link) GetStatusAsString() string
- func (in *Link) IsValid() bool
- func (in *Link) NeedsRequeue() bool
- func (in *Link) SetAPIObject(object runtime.Object)
- func (in *Link) SetErrorStatus(err error) bool
- func (in *Link) SetInitialStatus(msg string) bool
- func (in *Link) SetNeedsRequeue(requeue bool)
- func (in *Link) SetSuccessStatus(dependentName, msg string) bool
- func (in *Link) ShouldDelete() bool
- type ReconcilerFactory
- type ReconcilerHelper
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeploymentName ¶
func DeploymentNameFor ¶
func DeploymentNameFor(c *Component, mode halkyon.DeploymentMode) string
func GetObjectName ¶
func NewRoleBinding ¶
func NewRoleBinding() roleBinding
func PostgresName ¶
func RegisterNewReconciler ¶
func RegisterNewReconciler(factory GenericReconciler, mgr manager.Manager) error
func RoleBindingName ¶
func ServiceAccountName ¶
Types ¶
type BaseGenericReconciler ¶
type BaseGenericReconciler struct { ReconcilerHelper // contains filtered or unexported fields }
func NewBaseGenericReconciler ¶
func NewBaseGenericReconciler(primaryResourceType Resource, mgr manager.Manager) *BaseGenericReconciler
func (*BaseGenericReconciler) AddDependentResource ¶
func (b *BaseGenericReconciler) AddDependentResource(resource DependentResource)
func (*BaseGenericReconciler) CreateIfNeeded ¶
func (b *BaseGenericReconciler) CreateIfNeeded(owner Resource, resourceType runtime.Object) error
func (*BaseGenericReconciler) CreateOrUpdate ¶
func (b *BaseGenericReconciler) CreateOrUpdate(object Resource) error
func (*BaseGenericReconciler) Delete ¶
func (b *BaseGenericReconciler) Delete(object Resource) error
func (*BaseGenericReconciler) Fetch ¶
func (b *BaseGenericReconciler) Fetch(into Resource) (Resource, error)
func (*BaseGenericReconciler) GetDependentResourceFor ¶
func (b *BaseGenericReconciler) GetDependentResourceFor(owner Resource, resourceType runtime.Object) (DependentResource, error)
func (*BaseGenericReconciler) Helper ¶
func (b *BaseGenericReconciler) Helper() ReconcilerHelper
func (*BaseGenericReconciler) IsDependentResourceReady ¶
func (b *BaseGenericReconciler) IsDependentResourceReady(resource Resource) (depOrTypeName string, ready bool)
func (*BaseGenericReconciler) IsTargetClusterRunningOpenShift ¶
func (b *BaseGenericReconciler) IsTargetClusterRunningOpenShift() bool
func (*BaseGenericReconciler) MustGetDependentResourceFor ¶
func (b *BaseGenericReconciler) MustGetDependentResourceFor(owner Resource, resourceType runtime.Object) (resource DependentResource)
func (*BaseGenericReconciler) OpenShiftVersion ¶
func (b *BaseGenericReconciler) OpenShiftVersion() int
func (*BaseGenericReconciler) PrimaryResourceType ¶
func (b *BaseGenericReconciler) PrimaryResourceType() Resource
func (*BaseGenericReconciler) SetReconcilerFactory ¶
func (b *BaseGenericReconciler) SetReconcilerFactory(factory ReconcilerFactory)
func (*BaseGenericReconciler) WatchedSecondaryResourceTypes ¶
func (b *BaseGenericReconciler) WatchedSecondaryResourceTypes() []runtime.Object
type Capability ¶
type Capability struct { *halkyon.Capability // contains filtered or unexported fields }
func NewCapability ¶
func NewCapability(capability ...*halkyon.Capability) *Capability
func (*Capability) Clone ¶
func (in *Capability) Clone() Resource
func (*Capability) GetAPIObject ¶
func (in *Capability) GetAPIObject() runtime.Object
func (*Capability) GetStatusAsString ¶
func (in *Capability) GetStatusAsString() string
func (*Capability) IsValid ¶
func (in *Capability) IsValid() bool
func (*Capability) NeedsRequeue ¶
func (in *Capability) NeedsRequeue() bool
func (*Capability) SetAPIObject ¶
func (in *Capability) SetAPIObject(object runtime.Object)
func (*Capability) SetErrorStatus ¶
func (in *Capability) SetErrorStatus(err error) bool
func (*Capability) SetInitialStatus ¶
func (in *Capability) SetInitialStatus(msg string) bool
func (*Capability) SetNeedsRequeue ¶
func (in *Capability) SetNeedsRequeue(requeue bool)
func (*Capability) SetSuccessStatus ¶
func (in *Capability) SetSuccessStatus(dependentName, msg string) bool
func (*Capability) ShouldDelete ¶
func (in *Capability) ShouldDelete() bool
type Component ¶
func NewComponent ¶
func (*Component) GetAPIObject ¶
func (*Component) GetStatusAsString ¶
func (*Component) NeedsRequeue ¶
func (*Component) SetAPIObject ¶
func (*Component) SetErrorStatus ¶
func (*Component) SetInitialStatus ¶
func (*Component) SetNeedsRequeue ¶
func (*Component) SetSuccessStatus ¶
func (*Component) ShouldDelete ¶
type DependentResource ¶
type DependentResource interface { Name() string Fetch(helper ReconcilerHelper) (runtime.Object, error) Build() (runtime.Object, error) Update(toUpdate runtime.Object) (bool, error) NewInstanceWith(owner Resource) DependentResource Owner() Resource Prototype() runtime.Object ShouldWatch() bool CanBeCreatedOrUpdated() bool ShouldBeOwned() bool }
type DependentResourceHelper ¶
type DependentResourceHelper struct {
// contains filtered or unexported fields
}
func NewDependentResource ¶
func NewDependentResource(primaryResourceType runtime.Object, owner Resource) *DependentResourceHelper
func (DependentResourceHelper) CanBeCreatedOrUpdated ¶
func (res DependentResourceHelper) CanBeCreatedOrUpdated() bool
func (DependentResourceHelper) Fetch ¶
func (res DependentResourceHelper) Fetch(helper ReconcilerHelper) (runtime.Object, error)
func (DependentResourceHelper) Name ¶
func (res DependentResourceHelper) Name() string
func (DependentResourceHelper) Owner ¶
func (res DependentResourceHelper) Owner() Resource
func (DependentResourceHelper) Prototype ¶
func (res DependentResourceHelper) Prototype() runtime.Object
func (*DependentResourceHelper) SetDelegate ¶
func (res *DependentResourceHelper) SetDelegate(delegate DependentResource)
func (DependentResourceHelper) ShouldBeOwned ¶
func (res DependentResourceHelper) ShouldBeOwned() bool
func (DependentResourceHelper) ShouldWatch ¶
func (res DependentResourceHelper) ShouldWatch() bool
type GenericReconciler ¶
type GenericReconciler interface { ReconcilerFactory reconcile.Reconciler }
type Link ¶
func (*Link) GetAPIObject ¶
func (*Link) GetStatusAsString ¶
func (*Link) NeedsRequeue ¶
func (*Link) SetAPIObject ¶
func (*Link) SetErrorStatus ¶
func (*Link) SetInitialStatus ¶
func (*Link) SetNeedsRequeue ¶
func (*Link) SetSuccessStatus ¶
func (*Link) ShouldDelete ¶
type ReconcilerFactory ¶
type ReconcilerFactory interface { PrimaryResourceType() Resource WatchedSecondaryResourceTypes() []runtime.Object Delete(object Resource) error CreateOrUpdate(object Resource) error IsDependentResourceReady(resource Resource) (depOrTypeName string, ready bool) Helper() ReconcilerHelper GetDependentResourceFor(owner Resource, resourceType runtime.Object) (DependentResource, error) AddDependentResource(resource DependentResource) }
type ReconcilerHelper ¶
type Resource ¶
type Resource interface { v1.Object runtime.Object NeedsRequeue() bool SetNeedsRequeue(requeue bool) GetStatusAsString() string ShouldDelete() bool SetErrorStatus(err error) bool SetSuccessStatus(dependentName, msg string) bool SetInitialStatus(msg string) bool IsValid() bool Clone() Resource GetAPIObject() runtime.Object SetAPIObject(object runtime.Object) }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.