- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for getVolumeSource (0.47 sec)
-
pkg/volume/nfs/nfs.go
return nil } func (plugin *nfsPlugin) GetPluginName() string { return nfsPluginName } func (plugin *nfsPlugin) GetVolumeName(spec *volume.Spec) (string, error) { volumeSource, _, err := getVolumeSource(spec) if err != nil { return "", err } return fmt.Sprintf( "%v/%v", volumeSource.Server, volumeSource.Path), nil } func (plugin *nfsPlugin) CanSupport(spec *volume.Spec) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 9.5K bytes - Viewed (0) -
pkg/volume/fc/fc.go
return nil } func (plugin *fcPlugin) GetPluginName() string { return fcPluginName } func (plugin *fcPlugin) GetVolumeName(spec *volume.Spec) (string, error) { volumeSource, _, err := getVolumeSource(spec) if err != nil { return "", err } // API server validates these parameters beforehand but attach/detach // controller creates volumespec without validation. They may be nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 17.4K bytes - Viewed (0) -
pkg/volume/portworx/portworx.go
} func (plugin *portworxVolumePlugin) GetPluginName() string { return portworxVolumePluginName } func (plugin *portworxVolumePlugin) GetVolumeName(spec *volume.Spec) (string, error) { volumeSource, _, err := getVolumeSource(spec) if err != nil { return "", err } return volumeSource.VolumeID, nil } func (plugin *portworxVolumePlugin) CanSupport(spec *volume.Spec) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 13.6K bytes - Viewed (0) -
pkg/volume/hostpath/host_path.go
return nil } func (plugin *hostPathPlugin) GetPluginName() string { return hostPathPluginName } func (plugin *hostPathPlugin) GetVolumeName(spec *volume.Spec) (string, error) { volumeSource, _, err := getVolumeSource(spec) if err != nil { return "", err } return volumeSource.Path, nil } func (plugin *hostPathPlugin) CanSupport(spec *volume.Spec) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 15.3K bytes - Viewed (0) -
pkg/volume/configmap/configmap.go
return nil } func (plugin *configMapPlugin) GetPluginName() string { return configMapPluginName } func (plugin *configMapPlugin) GetVolumeName(spec *volume.Spec) (string, error) { volumeSource, _ := getVolumeSource(spec) if volumeSource == nil { return "", fmt.Errorf("Spec does not reference a ConfigMap volume type") } return fmt.Sprintf( "%v/%v", spec.Name(), volumeSource.Name), nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 10K bytes - Viewed (0) -
pkg/volume/git_repo/git_repo.go
return nil } func (plugin *gitRepoPlugin) GetPluginName() string { return gitRepoPluginName } func (plugin *gitRepoPlugin) GetVolumeName(spec *volume.Spec) (string, error) { volumeSource, _ := getVolumeSource(spec) if volumeSource == nil { return "", fmt.Errorf("Spec does not reference a Git repo volume type") } return fmt.Sprintf( "%v:%v:%v", volumeSource.Repository, volumeSource.Revision,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 8.2K bytes - Viewed (0) -
pkg/volume/secret/secret.go
return nil } func (plugin *secretPlugin) GetPluginName() string { return secretPluginName } func (plugin *secretPlugin) GetVolumeName(spec *volume.Spec) (string, error) { volumeSource, _ := getVolumeSource(spec) if volumeSource == nil { return "", fmt.Errorf("Spec does not reference a Secret volume type") } return volumeSource.SecretName, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 9.1K bytes - Viewed (0) -
pkg/volume/downwardapi/downwardapi.go
return nil } func (plugin *downwardAPIPlugin) GetPluginName() string { return downwardAPIPluginName } func (plugin *downwardAPIPlugin) GetVolumeName(spec *volume.Spec) (string, error) { volumeSource, _ := getVolumeSource(spec) if volumeSource == nil { return "", fmt.Errorf("Spec does not reference a DownwardAPI volume type") } // Return user defined volume name, since this is an ephemeral volume type return spec.Name(), nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 10.4K bytes - Viewed (0) -
pkg/volume/projected/projected.go
return nil } func (plugin *projectedPlugin) GetPluginName() string { return projectedPluginName } func (plugin *projectedPlugin) GetVolumeName(spec *volume.Spec) (string, error) { _, _, err := getVolumeSource(spec) if err != nil { return "", err } return spec.Name(), nil } func (plugin *projectedPlugin) CanSupport(spec *volume.Spec) bool { return spec.Volume != nil && spec.Volume.Projected != nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 12.8K bytes - Viewed (0) -
pkg/volume/local/local.go
// The current meaning of AccessMode is how many nodes can attach to it, not how many pods can mount it return []v1.PersistentVolumeAccessMode{ v1.ReadWriteOnce, } } func getVolumeSource(spec *volume.Spec) (*v1.LocalVolumeSource, bool, error) { if spec.PersistentVolume != nil && spec.PersistentVolume.Spec.Local != nil { return spec.PersistentVolume.Spec.Local, spec.ReadOnly, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 22.2K bytes - Viewed (0)