Package gopherschwift contains a Gophercloud backend for Schwift.

    If your application uses Gophercloud (, you can use the Wrap() function in this package as an entrypoint to Schwift. A schwift.Account created this way will re-use Gophercloud's authentication code, so you only need to obtain a client token once using Gophercloud. For example:

    import (
    provider, err := clientconfig.AuthenticatedClient(nil)
    client, err := openstack.NewObjectStorageV1(provider, gophercloud.EndpointOpts{})
    account, err := gopherschwift.Wrap(client)

    Using this schwift.Account instance, you have access to all of schwift's API. Refer to the documentation in the parent package for details.



    This section is empty.


    This section is empty.


    func Wrap

    func Wrap(client *gophercloud.ServiceClient, opts *Options) (*schwift.Account, error)

      Wrap creates a schwift.Account that uses the given service client as its backend. The service client must refer to a Swift endpoint, i.e. it should have been created by openstack.NewObjectStorageV1().


      type Options

      type Options struct {
      	//If set, this User-Agent will be reported in HTTP requests instead of
      	UserAgent string

        Options contains additional options that can be passed to Wrap().

        Source Files