Documentation
¶
Index ¶
- func GenerateCachePvcName(mc *aimv1alpha1.AIMArtifact) string
- type ArtifactFetchResult
- type ArtifactObservation
- type ArtifactReconciler
- func (r *ArtifactReconciler) ComposeState(ctx context.Context, ...) ArtifactObservation
- func (r *ArtifactReconciler) DecorateStatus(status *aimv1alpha1.AIMArtifactStatus, cm *controllerutils.ConditionManager, ...)
- func (r *ArtifactReconciler) FetchRemoteState(ctx context.Context, c client.Client, ...) ArtifactFetchResult
- func (r *ArtifactReconciler) PlanResources(ctx context.Context, ...) controllerutils.PlanResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCachePvcName ¶
func GenerateCachePvcName(mc *aimv1alpha1.AIMArtifact) string
Types ¶
type ArtifactFetchResult ¶
type ArtifactFetchResult struct {
// contains filtered or unexported fields
}
func (ArtifactFetchResult) CheckSizeJobSucceeded ¶
func (result ArtifactFetchResult) CheckSizeJobSucceeded() bool
CheckSizeJobSucceeded returns true if the check-size job completed successfully
func (ArtifactFetchResult) DownloadJobSucceeded ¶
func (result ArtifactFetchResult) DownloadJobSucceeded() bool
type ArtifactObservation ¶
type ArtifactObservation struct {
ArtifactFetchResult
// contains filtered or unexported fields
}
func (ArtifactObservation) GetComponentHealth ¶
func (obs ArtifactObservation) GetComponentHealth(ctx context.Context, clientset kubernetes.Interface) []controllerutils.ComponentHealth
func (ArtifactObservation) GetEffectiveSize ¶
func (obs ArtifactObservation) GetEffectiveSize() int64
func (ArtifactObservation) IsSizeKnown ¶
func (obs ArtifactObservation) IsSizeKnown() bool
type ArtifactReconciler ¶
type ArtifactReconciler struct {
Clientset kubernetes.Interface
Scheme *runtime.Scheme
}
func (*ArtifactReconciler) ComposeState ¶
func (r *ArtifactReconciler) ComposeState( ctx context.Context, _ controllerutils.ReconcileContext[*aimv1alpha1.AIMArtifact], fetch ArtifactFetchResult, ) ArtifactObservation
func (*ArtifactReconciler) DecorateStatus ¶
func (r *ArtifactReconciler) DecorateStatus( status *aimv1alpha1.AIMArtifactStatus, cm *controllerutils.ConditionManager, obs ArtifactObservation, )
DecorateStatus implements StatusDecorator to update download status and add ArtifactMode to the status
func (*ArtifactReconciler) FetchRemoteState ¶
func (r *ArtifactReconciler) FetchRemoteState( ctx context.Context, c client.Client, reconcileCtx controllerutils.ReconcileContext[*aimv1alpha1.AIMArtifact], ) ArtifactFetchResult
func (*ArtifactReconciler) PlanResources ¶
func (r *ArtifactReconciler) PlanResources( ctx context.Context, reconcileCtx controllerutils.ReconcileContext[*aimv1alpha1.AIMArtifact], obs ArtifactObservation, ) controllerutils.PlanResult
Click to show internal directories.
Click to hide internal directories.