Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveSubVolumeName ¶
func ResolveSubVolumeName(pv *v1.PersistentVolume) (string, error)
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func NewCollection ¶ added in v2.1.8
func NewCollection(ctx context.Context, cephConfig *config.CephFs, options ...collector.ConfigManipulator) (*Collection, error)
NewCollection creates a new continuously updated Collection for PVC objects ensure to provide a K8s API configuration in the given context given K8s API Client in the context is either reused or new client is created if not existing
func (*Collection) All ¶
func (v *Collection) All() map[Key]*Value
All returns a new copy of the pvc collection for safe iteration
type Value ¶
type Value struct { Error error FullVolumePath string PVC *coreV1.PersistentVolumeClaim // Note: PV can be nil, e.g for unbound PVCs PV *coreV1.PersistentVolume }
Click to show internal directories.
Click to hide internal directories.