github.com/axw/juju@v0.0.0-20161005053422-4bd6544d08d4/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 "gopkg.in/juju/names.v2" 11 ) 12 13 // Restore satisfies the Backups interface on non-Linux OSes (e.g. 14 // windows, darwin). 15 func (*backups) Restore(_ string, _ *DBInfo, _ RestoreArgs) (names.Tag, error) { 16 return nil, errors.Errorf("backups supported only on Linux") 17 }