Documentation ¶
Index ¶
- Constants
- func GetProviderInstance() environs.EnvironProvider
- type JoyentStorage
- func (s *JoyentStorage) DefaultConsistencyStrategy() utils.AttemptStrategy
- func (s *JoyentStorage) DeleteContainer(containerName string) error
- func (s *JoyentStorage) Get(name string) (io.ReadCloser, error)
- func (s *JoyentStorage) GetContainerName() string
- func (s *JoyentStorage) GetMantaUrl() string
- func (s *JoyentStorage) GetMantaUser() string
- func (s *JoyentStorage) List(prefix string) ([]string, error)
- func (s *JoyentStorage) Put(name string, r io.Reader, length int64) error
- func (s *JoyentStorage) Remove(name string) error
- func (s *JoyentStorage) RemoveAll() error
- func (s *JoyentStorage) ShouldRetry(err error) bool
- func (s *JoyentStorage) URL(name string) (string, error)
Constants ¶
View Source
const ( SdcAccount = "SDC_ACCOUNT" SdcKeyId = "SDC_KEY_ID" SdcUrl = "SDC_URL" MantaUser = "MANTA_USER" MantaKeyId = "MANTA_KEY_ID" MantaUrl = "MANTA_URL" MantaPrivateKeyFile = "MANTA_PRIVATE_KEY_FILE" )
Variables ¶
This section is empty.
Functions ¶
func GetProviderInstance ¶
func GetProviderInstance() environs.EnvironProvider
Types ¶
type JoyentStorage ¶
func (*JoyentStorage) DefaultConsistencyStrategy ¶
func (s *JoyentStorage) DefaultConsistencyStrategy() utils.AttemptStrategy
func (*JoyentStorage) DeleteContainer ¶
func (s *JoyentStorage) DeleteContainer(containerName string) error
DeleteContainer deletes the named container from the storage account.
func (*JoyentStorage) Get ¶
func (s *JoyentStorage) Get(name string) (io.ReadCloser, error)
func (*JoyentStorage) GetContainerName ¶
func (s *JoyentStorage) GetContainerName() string
func (*JoyentStorage) GetMantaUrl ¶
func (s *JoyentStorage) GetMantaUrl() string
func (*JoyentStorage) GetMantaUser ¶
func (s *JoyentStorage) GetMantaUser() string
func (*JoyentStorage) Remove ¶
func (s *JoyentStorage) Remove(name string) error
func (*JoyentStorage) RemoveAll ¶
func (s *JoyentStorage) RemoveAll() error
func (*JoyentStorage) ShouldRetry ¶
func (s *JoyentStorage) ShouldRetry(err error) bool
Click to show internal directories.
Click to hide internal directories.