swift

package
v2.1.0-rc.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2015 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package swift provides a storagedriver.StorageDriver implementation to store blobs in Openstack Swift object storage.

This package leverages the ncw/swift client library for interfacing with Swift.

It supports both TempAuth authentication and Keystone authentication (up to version 3).

Since Swift has no concept of directories (directories are an abstration), empty objects are created with the MIME type application/vnd.swift.directory.

As Swift has a limit on the size of a single uploaded object (by default this is 5GB), the driver makes use of the Swift Large Object Support (http://docs.openstack.org/developer/swift/overview_large_objects.html). Only one container is used for both manifests and data objects. Manifests are stored in the 'files' pseudo directory, data objects are stored under 'segments'.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

Driver is a storagedriver.StorageDriver implementation backed by Openstack Swift Objects are stored at absolute keys in the provided container.

func FromParameters

func FromParameters(parameters map[string]interface{}) (*Driver, error)

FromParameters constructs a new Driver with a given parameters map Required parameters: - username - password - authurl - container

func New

func New(params Parameters) (*Driver, error)

New constructs a new Driver with the given Openstack Swift credentials and container name

type Parameters

type Parameters struct {
	Username           string
	Password           string
	AuthURL            string
	Tenant             string
	TenantID           string
	Domain             string
	DomainID           string
	Region             string
	Container          string
	Prefix             string
	InsecureSkipVerify bool
	ChunkSize          int
}

Parameters A struct that encapsulates all of the driver parameters after all values have been set

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL