Documentation ¶
Index ¶
- type NodeTrackerWrpper
- type ReplicationWrapper
- func (w *ReplicationWrapper) ChunkName(name string) *ReplicationWrapper
- func (w *ReplicationWrapper) DestinationOfURI(uri string) *ReplicationWrapper
- func (w *ReplicationWrapper) NodeName(name string) *ReplicationWrapper
- func (w *ReplicationWrapper) Obj() *api.Replication
- func (w *ReplicationWrapper) SizeBytes(size int64) *ReplicationWrapper
- func (w *ReplicationWrapper) SourceOfHub(name, repoID, revision, filename string) *ReplicationWrapper
- func (w *ReplicationWrapper) SourceOfURI(uri string) *ReplicationWrapper
- type TorrentWrapper
- func (w *TorrentWrapper) Hub(name string, repoID string, filename string) *TorrentWrapper
- func (w *TorrentWrapper) NodeSelector(k, v string) *TorrentWrapper
- func (w *TorrentWrapper) Obj() *api.Torrent
- func (w *TorrentWrapper) ReclaimPolicy(policy api.ReclaimPolicy) *TorrentWrapper
- func (w *TorrentWrapper) Replicas(replicas int32) *TorrentWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeTrackerWrpper ¶
type NodeTrackerWrpper struct {
api.NodeTracker
}
func MakeNodeTracker ¶
func MakeNodeTracker(name string) *NodeTrackerWrpper
func (*NodeTrackerWrpper) Chunk ¶
func (w *NodeTrackerWrpper) Chunk(name string, size int64) *NodeTrackerWrpper
func (*NodeTrackerWrpper) Label ¶
func (w *NodeTrackerWrpper) Label(k, v string) *NodeTrackerWrpper
func (*NodeTrackerWrpper) Obj ¶
func (w *NodeTrackerWrpper) Obj() *api.NodeTracker
func (*NodeTrackerWrpper) SizeLimit ¶
func (w *NodeTrackerWrpper) SizeLimit(value string) *NodeTrackerWrpper
type ReplicationWrapper ¶
type ReplicationWrapper struct {
api.Replication
}
func MakeReplication ¶
func MakeReplication(name string) *ReplicationWrapper
func (*ReplicationWrapper) ChunkName ¶
func (w *ReplicationWrapper) ChunkName(name string) *ReplicationWrapper
func (*ReplicationWrapper) DestinationOfURI ¶
func (w *ReplicationWrapper) DestinationOfURI(uri string) *ReplicationWrapper
func (*ReplicationWrapper) NodeName ¶
func (w *ReplicationWrapper) NodeName(name string) *ReplicationWrapper
func (*ReplicationWrapper) Obj ¶
func (w *ReplicationWrapper) Obj() *api.Replication
func (*ReplicationWrapper) SizeBytes ¶
func (w *ReplicationWrapper) SizeBytes(size int64) *ReplicationWrapper
func (*ReplicationWrapper) SourceOfHub ¶
func (w *ReplicationWrapper) SourceOfHub(name, repoID, revision, filename string) *ReplicationWrapper
func (*ReplicationWrapper) SourceOfURI ¶
func (w *ReplicationWrapper) SourceOfURI(uri string) *ReplicationWrapper
type TorrentWrapper ¶
func MakeTorrent ¶
func MakeTorrent(name string) *TorrentWrapper
func (*TorrentWrapper) Hub ¶
func (w *TorrentWrapper) Hub(name string, repoID string, filename string) *TorrentWrapper
func (*TorrentWrapper) NodeSelector ¶
func (w *TorrentWrapper) NodeSelector(k, v string) *TorrentWrapper
func (*TorrentWrapper) Obj ¶
func (w *TorrentWrapper) Obj() *api.Torrent
func (*TorrentWrapper) ReclaimPolicy ¶
func (w *TorrentWrapper) ReclaimPolicy(policy api.ReclaimPolicy) *TorrentWrapper
func (*TorrentWrapper) Replicas ¶
func (w *TorrentWrapper) Replicas(replicas int32) *TorrentWrapper
Click to show internal directories.
Click to hide internal directories.