github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/pkg/adapter/volumes_remote.go (about)

     1  // +build remoteclient
     2  
     3  package adapter
     4  
     5  // Name returns the name of the volume
     6  func (v *Volume) Name() string {
     7  	return v.config.Name
     8  }
     9  
    10  //Labels returns the labels for a volume
    11  func (v *Volume) Labels() map[string]string {
    12  	return v.config.Labels
    13  }
    14  
    15  // Driver returns the driver for the volume
    16  func (v *Volume) Driver() string {
    17  	return v.config.Driver
    18  }
    19  
    20  // Options returns the options a volume was created with
    21  func (v *Volume) Options() map[string]string {
    22  	return v.config.Options
    23  }
    24  
    25  // MountPath returns the path the volume is mounted to
    26  func (v *Volume) MountPoint() string {
    27  	return v.config.MountPoint
    28  }
    29  
    30  // Scope returns the scope for an adapter.volume
    31  func (v *Volume) Scope() string {
    32  	return "local"
    33  }