Documentation ¶
Overview ¶
filer
weed master
weed volume
weedo.go
Index ¶
- Variables
- type Client
- func (c *Client) AssignUpload(filename, mimeType string, file io.Reader) (fid string, size int64, err error)
- func (c *Client) AssignUploadArgs(filename, mimeType string, file io.Reader, args url.Values) (fid string, size int64, err error)
- func (c *Client) Delete(fid string, count int, collection ...string) (err error)
- func (c *Client) Filer(url string) *Filer
- func (c *Client) GetUrl(fid string, collection ...string) (publicUrl, url string, err error)
- func (c *Client) Master() *Master
- func (c *Client) Volume(id, collection, dc string) (*Volume, error)
- type DataCenter
- type DataNode
- type Dir
- type Fid
- type File
- type Filer
- type Layout
- type Location
- type Master
- func (m *Master) Assign() (string, error)
- func (m *Master) AssignArgs(args url.Values) (fid string, err error)
- func (m *Master) AssignN(count int) (fid string, err error)
- func (m *Master) GC(threshold float64) error
- func (m *Master) Grow(count int, collection, replication, dataCenter string) error
- func (m *Master) GrowArgs(args url.Values) error
- func (m *Master) Lookup(volumeId, collection, dc string) (*Volume, error)
- func (m *Master) Status() (*SystemStatus, error)
- func (m *Master) Submit(filename, mimeType string, file io.Reader) (fid string, size int64, err error)
- func (m *Master) SubmitArgs(filename, mimeType string, file io.Reader, args url.Values) (fid string, size int64, err error)
- type Rack
- type SystemStatus
- type Topology
- type Volume
- func (v *Volume) AssignVolume(volumeId uint64, replica string) error
- func (v *Volume) Delete(fid string, count int) (err error)
- func (v *Volume) PublicUrl() string
- func (v *Volume) Status() (err error)
- func (v *Volume) Upload(fid string, version int, filename, mimeType string, file io.Reader) (size int64, err error)
- func (v *Volume) Url() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrVolumeLocationNotFound = errors.New("Location not found.")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AssignUpload ¶
func (*Client) AssignUploadArgs ¶
type Dir ¶
type Master ¶
type Master struct { Url string // contains filtered or unexported fields }
func (*Master) AssignArgs ¶
v0.4 or later only
type SystemStatus ¶
type Topology ¶
type Topology struct { DataCenters []DataCenter Free int Max int Layouts []Layout `json:"layouts"` }
Click to show internal directories.
Click to hide internal directories.