Documentation ¶
Index ¶
- Variables
- func Init() error
- func IsErrInvalidConfiguration(err error) bool
- func RegisterStorageGenerator(typ Type, generator Generator)
- func ToConfig(exampler, cfg interface{}) (interface{}, error)
- type ErrInvalidConfiguration
- type Generator
- type ID
- type Marshaler
- type Object
- type ReadOption
- type ReadOptions
- type Storage
- type Type
- type WriteOption
- type WriteOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
Types ¶
type ErrInvalidConfiguration ¶
type ErrInvalidConfiguration struct {
// contains filtered or unexported fields
}
func (ErrInvalidConfiguration) Error ¶
func (e ErrInvalidConfiguration) Error() string
type ReadOption ¶
type ReadOption func(*ReadOptions)
type ReadOptions ¶
type ReadOptions struct { }
type Storage ¶
type Storage interface { Write(f *Object, opts ...WriteOption) (ID, error) Read(id ID, opts ...ReadOption) (*Object, error) Delete(id ID) error }
var (
LFS Storage
)
func NewStorage ¶
type WriteOption ¶
type WriteOption func(*WriteOptions)
func WithID ¶
func WithID(id uint) WriteOption
type WriteOptions ¶
type WriteOptions struct {
ID uint
}
Click to show internal directories.
Click to hide internal directories.