github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/storage/plans/local/local.go (about)

     1  // Copyright 2018 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package local
     5  
     6  import (
     7  	"github.com/juju/juju/storage"
     8  	"github.com/juju/juju/storage/plans/common"
     9  )
    10  
    11  func NewLocalPlan() common.Plan {
    12  	return &localPlan{}
    13  }
    14  
    15  type localPlan struct{}
    16  
    17  func (i *localPlan) AttachVolume(volumeInfo map[string]string) (storage.BlockDevice, error) {
    18  	return storage.BlockDevice{}, nil
    19  }
    20  
    21  func (i *localPlan) DetachVolume(volumeInfo map[string]string) error {
    22  	return nil
    23  }