Documentation ¶
Overview ¶
Package fail is a test client. It implements the Shade drive.Client API, and fails any attempted operation. You may configure it to appear as a Local client, or not.
Index ¶
- func NewClient(c drive.Config) (drive.Client, error)
- type Drive
- func (s *Drive) GetChunk(sha256sum []byte, f *shade.File) ([]byte, error)
- func (s *Drive) GetConfig() drive.Config
- func (s *Drive) GetFile(sha256sum []byte) ([]byte, error)
- func (s *Drive) ListFiles() ([][]byte, error)
- func (s *Drive) Local() bool
- func (s *Drive) Persistent() bool
- func (s *Drive) PutChunk(sha256sum []byte, chunk []byte, f *shade.File) error
- func (s *Drive) PutFile(sha256sum, f []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Drive ¶
type Drive struct {
// contains filtered or unexported fields
}
Drive is a test client implementation which fails every operation. If you provide any OAuthConfig its will return false for Local.
func (*Drive) Persistent ¶
Persistent returns whether the storage is persistent across task restarts.
Click to show internal directories.
Click to hide internal directories.