wrapper

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 5 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 PodWrapper added in v0.0.4

type PodWrapper struct {
	corev1.Pod
}

func MakePod added in v0.0.4

func MakePod(name, namespace string) *PodWrapper

func (*PodWrapper) InitContainer added in v0.0.4

func (w *PodWrapper) InitContainer(name string) *PodWrapper

func (*PodWrapper) InitContainerCommands added in v0.0.4

func (w *PodWrapper) InitContainerCommands(name string, commands ...string) *PodWrapper

func (*PodWrapper) InitContainerImage added in v0.0.4

func (w *PodWrapper) InitContainerImage(name string, image string) *PodWrapper

func (*PodWrapper) InitContainerImagePolicy added in v0.0.4

func (w *PodWrapper) InitContainerImagePolicy(name string, pullPolicy string) *PodWrapper

func (*PodWrapper) InitContainerPort added in v0.0.4

func (w *PodWrapper) InitContainerPort(name string, portName string, containerPort int32, protocol string) *PodWrapper

func (*PodWrapper) Label added in v0.0.4

func (w *PodWrapper) Label(k, v string) *PodWrapper

func (*PodWrapper) Obj added in v0.0.4

func (w *PodWrapper) Obj() *corev1.Pod

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) Preheat added in v0.0.4

func (w *TorrentWrapper) Preheat(yesOrNo bool) *TorrentWrapper

func (*TorrentWrapper) ReclaimPolicy

func (w *TorrentWrapper) ReclaimPolicy(policy api.ReclaimPolicy) *TorrentWrapper

func (*TorrentWrapper) Replicas

func (w *TorrentWrapper) Replicas(replicas int32) *TorrentWrapper

func (*TorrentWrapper) TTL added in v0.0.4

func (w *TorrentWrapper) TTL(number int32) *TorrentWrapper

Jump to

Keyboard shortcuts

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