Documentation ¶
Index ¶
- Constants
- func Close()
- func Init(name string, cfg *common.Jason, router *mux.Router) error
- func Put(name string, storage *Storage)
- type ErrInvalidUID
- type ErrInvalidVolumeName
- type ErrNoVolumesDefined
- type ErrObjectAlreadyExists
- type ErrObjectNotFound
- type ErrVolumePathNotFound
- type Fs
- func (fs *Fs) AddVolume(v *FsVolume)
- func (fs *Fs) CurrentVersion(uid *FsUID) (int, error)
- func (fs *Fs) Delete(suid string, options *Options) error
- func (fs *Fs) Init(cfg *common.Jason) error
- func (fs *Fs) Load(suid string, dest io.Writer, options *Options) (*[]byte, int64, error)
- func (fs *Fs) Rebuild() (int, error)
- func (fs *Fs) RemoveVolume(v *FsVolume)
- func (fs *Fs) Start() error
- func (fs *Fs) Stop() error
- func (fs *Fs) Store(suid string, source io.Reader, options *Options) (string, *[]byte, error)
- func (fs *Fs) Volume(n string) *FsVolume
- func (fs *Fs) Volumes() []string
- type FsUID
- type FsVolume
- type Options
- type Sha
- func (sha *Sha) AddVolume(v *ShaVolume)
- func (sha *Sha) CurrentVersion(uid *ShaUID) (int, error)
- func (sha *Sha) Delete(suid string, options *Options) error
- func (sha *Sha) Init(cfg *common.Jason) error
- func (sha *Sha) Load(suid string, dest io.Writer, options *Options) (*[]byte, int64, error)
- func (sha *Sha) Rebuild() (int, error)
- func (sha *Sha) RemoveVolume(v *ShaVolume)
- func (sha *Sha) Start() error
- func (sha *Sha) Stop() error
- func (sha *Sha) Store(suid string, source io.Reader, options *Options) (string, *[]byte, error)
- func (sha *Sha) Volume(n string) *ShaVolume
- func (sha *Sha) Volumes() []string
- type ShaUID
- type ShaVolume
- type Storage
Constants ¶
View Source
const ( TYPE_FS = "fs" FS_VOLUME = "FS_VOLUME_" )
View Source
const ( TYPE_SHA = "sha" SHA_VOLUME = "SHA_VOLUME_" )
View Source
const ( TYPE = "storage" PAGE = "page" UNZIP = "unzip" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrInvalidUID ¶
type ErrInvalidUID struct {
// contains filtered or unexported fields
}
func (*ErrInvalidUID) Error ¶
func (e *ErrInvalidUID) Error() string
type ErrInvalidVolumeName ¶
type ErrInvalidVolumeName struct {
// contains filtered or unexported fields
}
func (*ErrInvalidVolumeName) Error ¶
func (e *ErrInvalidVolumeName) Error() string
type ErrNoVolumesDefined ¶
type ErrNoVolumesDefined struct { }
func (*ErrNoVolumesDefined) Error ¶
func (e *ErrNoVolumesDefined) Error() string
type ErrObjectAlreadyExists ¶
type ErrObjectAlreadyExists struct {
// contains filtered or unexported fields
}
func (*ErrObjectAlreadyExists) Error ¶
func (e *ErrObjectAlreadyExists) Error() string
type ErrObjectNotFound ¶
type ErrObjectNotFound struct {
// contains filtered or unexported fields
}
func (*ErrObjectNotFound) Error ¶
func (e *ErrObjectNotFound) Error() string
type ErrVolumePathNotFound ¶
type ErrVolumePathNotFound struct {
// contains filtered or unexported fields
}
func (*ErrVolumePathNotFound) Error ¶
func (e *ErrVolumePathNotFound) Error() string
type Fs ¶
type Fs struct {
// contains filtered or unexported fields
}
func (*Fs) RemoveVolume ¶
type Sha ¶
type Sha struct {
// contains filtered or unexported fields
}
func (*Sha) RemoveVolume ¶
type ShaUID ¶
func ParseShaUID ¶
Click to show internal directories.
Click to hide internal directories.