Documentation ¶
Index ¶
Constants ¶
View Source
const ServiceName = "file"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DelRequest ¶
type Factory ¶
func NewFileFactory ¶
type File ¶
type File interface { Init(context.Context, *FileConfig) error Put(context.Context, *PutFileStu) error Get(context.Context, *GetFileStu) (io.ReadCloser, error) List(context.Context, *ListRequest) (*ListResp, error) Del(context.Context, *DelRequest) error Stat(context.Context, *FileMetaRequest) (*FileMetaResp, error) }
type FileConfig ¶
type FileConfig struct { ref.Config Metadata json.RawMessage `json:"metadata"` Type string `json:"type"` }
FileConfig wraps configuration for a file implementation
type FileMetaRequest ¶
type FileMetaResp ¶
type FileStoreRegistry ¶
type FileStoreRegistry struct {
// contains filtered or unexported fields
}
func (*FileStoreRegistry) Create ¶
func (r *FileStoreRegistry) Create(compType string) (File, error)
func (*FileStoreRegistry) Register ¶
func (r *FileStoreRegistry) Register(fs ...*Factory)
type GetFileStu ¶
type ListRequest ¶
type PutFileStu ¶
Click to show internal directories.
Click to hide internal directories.