Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // VolumeMap is a map indexing the attribute names of Volume by view name. VolumeMap = map[string][]string{ "default": { "name", "namespace", "size", "storage_class", "access_mode", "phase", "created_at", "labels", }, } )
Functions ¶
func ValidateVolume ¶
ValidateVolume runs the validations defined on the viewed result type Volume.
func ValidateVolumeView ¶
func ValidateVolumeView(result *VolumeView) (err error)
ValidateVolumeView runs the validations defined on VolumeView using the "default" view.
Types ¶
type Volume ¶
type Volume struct {
// Type to project
Projected *VolumeView
// View to render
View string
}
Volume is the viewed result type that is projected based on a view.
type VolumeView ¶
type VolumeView struct {
// PVC name
Name *string
// Kubernetes namespace
Namespace *string
// Storage size
Size *string
// Storage class
StorageClass *string
// Access mode
AccessMode *string
// PVC phase (Bound, Pending, etc.)
Phase *string
// Creation timestamp
CreatedAt *string
// Kubernetes labels on the PVC
Labels map[string]string
}
VolumeView is a type that runs validations on a projected type.
Click to show internal directories.
Click to hide internal directories.