github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/state/backups/backups_nonlinux.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  // +build !linux
     5  
     6  package backups
     7  
     8  import (
     9  	"github.com/juju/errors"
    10  	"github.com/juju/names"
    11  )
    12  
    13  // Restore satisfies the Backups interface on non-Linux OSes (e.g.
    14  // windows, darwin).
    15  func (*backups) Restore(_ string, _ RestoreArgs) (names.Tag, error) {
    16  	return nil, errors.Errorf("backups supported only on Linux")
    17  }