swauth/requests.go
func NewObjectStorageV1(pc *gophercloud.ProviderClient, authOpts AuthOpts) (*gophercloud.ServiceClient, error) {
	auth, err := Auth(pc, authOpts).Extract()
	if err != nil {
		return nil, err
	}

	swiftClient := &gophercloud.ServiceClient{
		ProviderClient: pc,
		Endpoint:       gophercloud.NormalizeURL(auth.StorageURL),
	}

	swiftClient.TokenID = auth.Token

	return swiftClient, nil
}
func NewObjectStorageV1(pc *gophercloud.ProviderClient, authOpts AuthOpts) (*gophercloud.ServiceClient, error) {
	auth, err := Auth(pc, authOpts).Extract()
	if err != nil {
		return nil, err
	}

	swiftClient := &gophercloud.ServiceClient{
		ProviderClient: pc,
		Endpoint:       gophercloud.NormalizeURL(auth.StorageURL),
	}

	swiftClient.TokenID = auth.Token

	return swiftClient, nil
}
func NewObjectStorageV1 ( pc * gophercloud . ProviderClient , authOpts AuthOpts ) ( * gophercloud . ServiceClient , error ) { auth , err := Auth ( pc , authOpts ) . Extract ( ) if err != nil { return nil , err } swiftClient := & gophercloud . ServiceClient { ProviderClient : pc , Endpoint : gophercloud . NormalizeURL ( auth . StorageURL ) , } swiftClient . TokenID = auth . Token return swiftClient , nil }
// NewObjectStorageV1 creates a Swauth-authenticated *gophercloud.ServiceClient
// client that can issue ObjectStorage-based API calls.
NewObjectStorageV1 creates a Swauth - authenticated * gophercloud . ServiceClient client that can issue ObjectStorage - based API calls .