func PersistentVolumeHandler(ctx context.Context, pv *v1.PersistentVolume, options Options) (component.Component, error) {
	obj := NewObject(pv)
	obj.EnableEvents()

	pvh, err := newPersistentVolumeHandler(pv, obj)
	if err != nil {
		return nil, err
	}

	if err := pvh.Config(options); err != nil {
		return nil, errors.Wrap(err, "print persistent volume configuration")
	}

	if err := pvh.Status(ctx, options); err != nil {
		return nil, errors.Wrap(err, "print persistent volume claims")
	}

	return obj.ToComponent(ctx, options)
}
// PersistentVolumeHandler is a printFunc that creates a component to display a single Persistent Volume
PersistentVolumeHandler is a printFunc that creates a component to display a single Persistent Volume
// PersistentVolumeHandler is a printFunc that creates a component to display a single Persistent Volume
func PersistentVolumeHandler(ctx context.Context, pv *v1.PersistentVolume, options Options) (component.Component, error) {
	obj := NewObject(pv)
	obj.EnableEvents()
	pvh, err := newPersistentVolumeHandler(pv, obj)
	if err != nil {
		return nil, err
	}
	if err := pvh.Config(options); err != nil {
		return nil, errors.Wrap(err, "print persistent volume configuration")
	}
	if err := pvh.Status(ctx, options); err != nil {
		return nil, errors.Wrap(err, "print persistent volume claims")
	}
	return obj.ToComponent(ctx, options)
}
func PersistentVolumeHandler ( ctx context . Context , pv * v1 . PersistentVolume , options Options ) ( component . Component , error ) { obj := NewObject ( pv ) obj . EnableEvents ( ) pvh , err := newPersistentVolumeHandler ( pv , obj ) if err != nil { return nil , err } if err := pvh . Config ( options ) ; err != nil { return nil , errors . Wrap ( err , " " ) } if err := pvh . Status ( ctx , options ) ; err != nil { return nil , errors . Wrap ( err , " " ) } return obj . ToComponent ( ctx , options ) }
PersistentVolumeHandler is a printFunc that creates a component to display a single Persistent Volume
PersistentVolumeHandler is a printFunc that creates a component to display a single Persistent Volume