package
0.8.7-rc1
Repository: https://github.com/nir0s/nomad.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package servers provides an interface for choosing Servers to communicate with from a Nomad Client perspective.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

NewAllocGarbageCollector returns a garbage collector for terminated allocations on a node.
NewAllocRunner is used to create a new allocation context.
NewClient is used to create a new client from the given configuration.
No description provided by the author
NewFingerprintManager is a constructor that creates and returns an instance of FingerprintManager.
No description provided by the author
NewTaskRunner is used to create a new task context.
No description provided by the author
NewTokenFuture returns a new token future without any token set.
TestClient creates an in-memory client for testing purposes.

# Constants

DefaultMaxTemplateEventRate is the default maximum rate at which a template event should be fired.
MB is a constant which converts values in bytes to MB.
No description provided by the author
OriginStart and OriginEnd are the available parameters for the origin argument when streaming a file.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Allocations endpoint is used for interacting with client allocations.
AllocGarbageCollector garbage collects terminated allocations on a node.
AllocRunner is used to wrap an allocation and provide the execution context.
Client is used to implement the client interaction with Nomad.
ClientStats endpoint is used for retrieving stats about a client.
FileSystem endpoint is used for accessing the logs and filesystem of allocations.
FingerprintManager runs a client fingerprinters on a continuous basis, and updates the client when the node has changed.
GCAlloc wraps an allocation runner and an index enabling it to be used within a PQ.
GCConfig allows changing the behaviour of the garbage collector.
IndexedGCAllocPQ is an indexed PQ which maintains a list of allocation runner based on their termination time.
No description provided by the author
SignalEvent is a tuple of the signal and the event generating it.
TaskRunner is used to wrap a task within an allocation and provide the execution context.
TaskTemplateManager is used to run a set of templates for a given task.
TaskTemplateManagerConfig is used to configure an instance of the TaskTemplateManager.

# Interfaces

AllocCounter is used by AllocGarbageCollector to discover how many un-GC'd allocations a client has and is generally fulfilled by the Client.
No description provided by the author
ClientStatsReporter exposes all the APIs related to resource usage of a Nomad Client.
ConsulServiceAPI is the interface the Nomad Client uses to register and remove services and checks from Consul.
TaskHooks is an interface which provides hooks into the tasks life-cycle.

# Type aliases

AllocStateUpdater is used to update the status of an allocation.
No description provided by the author
TaskStateUpdater is used to signal that tasks state has changed.