Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client manages communication with the Kubernetes PersistentVolumeClaims.
func NewClient ¶
func NewClient(clientset *kubernetes.Clientset) *Client
NewClient constructs a new Client.
type DataSource ¶
DataSource represents Kubernetes DataSource
type LabelSelectorRequirement ¶
LabelSelectorRequirement represents Kubernetes LabelSelectorRequirement
type LabelSelectorRequirements ¶
type LabelSelectorRequirements []LabelSelectorRequirement
LabelSelectorRequirements represents Kubernetes LabelSelectorRequirements
type Options ¶
type Options struct { Annotations map[string]string Labels map[string]string Spec PersistentVolumeClaimSpec }
Options holds optional parameters for the Client.
type PersistentVolumeClaim ¶
type PersistentVolumeClaim struct { Name string Namespace string Annotations map[string]string Labels map[string]string Spec PersistentVolumeClaimSpec }
PersistentVolumeClaim represents Kubernetes PersistentVolumeClaim
func (PersistentVolumeClaim) ToK8S ¶
func (pvc PersistentVolumeClaim) ToK8S() v1.PersistentVolumeClaim
ToK8S converts PersistentVolumeClaim to Kuberntes client object
type PersistentVolumeClaimSpec ¶
type PersistentVolumeClaimSpec struct { Name string AccessModes AccessModes DataSource DataSource RequestStorage string Selector Selector StorageClass string VolumeMode string VolumeName string }
PersistentVolumeClaimSpec represents Kubernetes PersistentVolumeClaimSpec
type PersistentVolumeClaims ¶
type PersistentVolumeClaims []PersistentVolumeClaim
PersistentVolumeClaims represents Kubernetes PersistentVolumeClaims
func (PersistentVolumeClaims) ToK8S ¶
func (ps PersistentVolumeClaims) ToK8S() (l []v1.PersistentVolumeClaim)
ToK8S converts PersistentVolumeClaims to Kuberntes client objects
type Selector ¶
type Selector struct { MatchLabels map[string]string MatchExpressions LabelSelectorRequirements }
Selector represents Kubernetes LabelSelector