wrapper

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 (*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

type TorrentWrapper struct {
	api.Torrent
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL