Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getVolumeSource (0.33 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top