Skip to content

Commit

Permalink
Add docs about how to connect to swiftfs
Browse files Browse the repository at this point in the history
  • Loading branch information
kolaente committed Sep 26, 2020
1 parent 818d851 commit 9a7a175
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Expand Up @@ -258,6 +258,25 @@ system using InMemoryFile.
Afero has experimental support for secure file transfer protocol (sftp). Which can
be used to perform file operations over a encrypted channel.

### SwiftFs

Afero can use openstack swift storage as a backend.
To use it, you need a `username`, `api key`, `auth url`, `domain` and `container name` for an openstack switch store:

```go
fs, err = NewSwiftFs(&swift.Connection{
UserName: "swift_username",
ApiKey: "swift_apikey",
AuthUrl: "swift_authurl",
Domain: "swift_domain",
}, "containername")
if err != nil {
fmt.Println("Error connecting to swift storage")
}
```

After creating a connection, you can use the backend in the same way as usual.

## Filtering Backends

### BasePathFs
Expand Down

0 comments on commit 9a7a175

Please sign in to comment.