Documentation
¶
Overview ¶
Package runnerconfig defines the single current private runner configuration.
Index ¶
Constants ¶
View Source
const MaxConfigBytes = 16 << 10
Variables ¶
View Source
var ErrInvalid = errors.New("invalid_runner_configuration")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Contract int `json:"contract"`
NodeID string `json:"node_id"`
InstallationID string `json:"installation_id"`
ListenPort uint16 `json:"listen_port"`
TokenSHA256 string `json:"token_sha256"`
CommitmentKey []byte `json:"commitment_key"`
Budget jobcontract.RunnerBudget `json:"budget"`
MaxStorageBytes uint64 `json:"max_storage_bytes"`
MinFreeBytes uint64 `json:"min_free_bytes"`
ReservationBytes uint64 `json:"reservation_bytes"`
}
func New ¶
New creates one installation identity from a caller-owned node token. The token itself is never persisted; existing installations must load their file.
func (*Config) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.