github.com/sathish1597/hashicorp-terraform@v0.11.12-beta1/backend/remote-state/swift/backend_state.go (about) 1 package swift 2 3 import ( 4 "github.com/hashicorp/terraform/backend" 5 "github.com/hashicorp/terraform/state" 6 "github.com/hashicorp/terraform/state/remote" 7 ) 8 9 func (b *Backend) States() ([]string, error) { 10 return nil, backend.ErrNamedStatesNotSupported 11 } 12 13 func (b *Backend) DeleteState(name string) error { 14 return backend.ErrNamedStatesNotSupported 15 } 16 17 func (b *Backend) State(name string) (state.State, error) { 18 if name != backend.DefaultStateName { 19 return nil, backend.ErrNamedStatesNotSupported 20 } 21 22 client := &RemoteClient{ 23 client: b.client, 24 container: b.container, 25 archive: b.archive, 26 archiveContainer: b.archiveContainer, 27 expireSecs: b.expireSecs, 28 } 29 30 return &remote.State{Client: client}, nil 31 }