Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CasdoorProvider ¶
type CasdoorProvider struct {
// contains filtered or unexported fields
}
func NewCasdoorProvider ¶
func NewCasdoorProvider(providerName string) (*CasdoorProvider, error)
func (*CasdoorProvider) DeleteObject ¶
func (p *CasdoorProvider) DeleteObject(key string) error
func (*CasdoorProvider) ListObjects ¶
func (p *CasdoorProvider) ListObjects(prefix string) ([]*Object, error)
type LocalFileSystemStorageProvider ¶
type LocalFileSystemStorageProvider struct {
// contains filtered or unexported fields
}
func NewLocalFileSystemStorageProvider ¶
func NewLocalFileSystemStorageProvider(path string) (*LocalFileSystemStorageProvider, error)
func (*LocalFileSystemStorageProvider) DeleteObject ¶
func (p *LocalFileSystemStorageProvider) DeleteObject(key string) error
func (*LocalFileSystemStorageProvider) ListObjects ¶
func (p *LocalFileSystemStorageProvider) ListObjects(prefix string) ([]*Object, error)
type StorageProvider ¶
type StorageProvider interface { ListObjects(prefix string) ([]*Object, error) PutObject(user string, parent string, key string, fileBuffer *bytes.Buffer) (string, error) DeleteObject(key string) error }
func GetStorageProvider ¶
func GetStorageProvider(typ string, clientId string, providerName string) (StorageProvider, error)
Click to show internal directories.
Click to hide internal directories.