- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for GetVolumeName (0.22 sec)
-
pkg/volume/flexvolume/plugin.go
return plugin.driverName } // GetVolumeName is part of the volume.VolumePlugin interface. func (plugin *flexVolumePlugin) GetVolumeName(spec *volume.Spec) (string, error) { call := plugin.NewDriverCall(getVolumeNameCmd) call.AppendSpec(spec, plugin.host, nil) _, err := call.Run() if isCmdNotSupportedErr(err) { return (*pluginDefaults)(plugin).GetVolumeName(spec) } else if err != nil { return "", err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 9.7K bytes - Viewed (0) -
pkg/volume/noop_expandable_plugin.go
return nil } func (n *noopExpandableVolumePluginInstance) GetPluginName() string { return n.spec.KubeletExpandablePluginName() } func (n *noopExpandableVolumePluginInstance) GetVolumeName(spec *Spec) (string, error) { return n.spec.Name(), nil } func (n *noopExpandableVolumePluginInstance) CanSupport(spec *Spec) bool { return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/controller/volume/attachdetach/testing/testvolumespec.go
} func (plugin *TestPlugin) GetPluginName() string { return TestPluginName } func (plugin *TestPlugin) GetVolumeName(spec *volume.Spec) (string, error) { plugin.pluginLock.Lock() defer plugin.pluginLock.Unlock() if spec == nil { plugin.ErrorEncountered = true return "", fmt.Errorf("GetVolumeName called with nil volume spec") } if spec.Volume != nil { return spec.Name(), nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 17 08:48:30 UTC 2023 - 16.5K bytes - Viewed (0) -
pkg/volume/plugins_test.go
} func (plugin *testPlugins) Init(host VolumeHost) error { return nil } func (plugin *testPlugins) GetPluginName() string { return testPluginName } func (plugin *testPlugins) GetVolumeName(spec *Spec) (string, error) { return "", nil } func (plugin *testPlugins) CanSupport(spec *Spec) bool { return true } func (plugin *testPlugins) RequiresRemount(spec *Spec) bool { return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 4.3K bytes - Viewed (0) -
pkg/volume/configmap/configmap.go
plugin.host = host plugin.getConfigMap = host.GetConfigMapFunc() 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(
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/csi/csi_plugin.go
return CSIPluginName } // GetvolumeName returns a concatenated string of CSIVolumeSource.Driver<volNameSe>CSIVolumeSource.VolumeHandle // That string value is used in Detach() to extract driver name and volumeName. func (p *csiPlugin) GetVolumeName(spec *volume.Spec) (string, error) { csi, err := getPVSourceFromSpec(spec) if err != nil { return "", errors.New(log("plugin.GetVolumeName failed to extract volume source from spec: %v", err))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 29.2K bytes - Viewed (0) -
pkg/volume/git_repo/git_repo.go
plugin.host = host 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(
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/nfs/nfs.go
) func (plugin *nfsPlugin) Init(host volume.VolumeHost) error { plugin.host = host 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
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/secret/secret.go
plugin.host = host plugin.getSecret = host.GetSecretFunc() 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
plugin.host = host 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") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 10.4K bytes - Viewed (0)