Package-level declarations

Types

Link copied to clipboard
class BoundedByteArrayOutputStream(capacity: Int = 32, val limit: Long = capacity.toLong()) : ByteArrayOutputStream
Link copied to clipboard
class CloseablePath(path: Path, closeHandler: (Path) -> Unit) : Closeable
Link copied to clipboard
abstract class DirectoryManager(val root: Path)
Link copied to clipboard
class DurableFileWriter(val path: Path, append: Boolean = false) : AutoCloseable
Link copied to clipboard
open class GoblinClient(val server: String, val timeout: Long = 5)

Network client implementation. Routines for

Link copied to clipboard
class GoblinClientAPI2(val server: String, val defaultTimeout: Long = 30)
Link copied to clipboard

Helper class for quickly calculating hashes.

Link copied to clipboard
object IO
Link copied to clipboard
object JSON
Link copied to clipboard
open class Processor(val executor: ExecutorService, defaultTimeOut: Long = 6, val printErrors: Boolean = true, val lineReader: (String) -> Any? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun gatherNodeSpecs(executor: ExecutorService, name: String? = null, description: String? = null, units: List<String> = listOf(), interfaceAddresses: List<String> = interfaceAddresses(), cpuInfo: InputStream = try { Path.of("/proc/cpuinfo").inputStream() } catch (e: Exception) { IO.printError("Failed to parse system specs: ${e.message}") InputStream.nullInputStream() }, memInfo: InputStream = try { Path.of("/proc/meminfo").inputStream() } catch (e: Exception) { IO.printError("Failed to parse system specs: ${e.message}") InputStream.nullInputStream() }, specsData: String = try { Processor(executor).run( listOf( "/usr/bin/hostnamectl", "--json=pretty" ) ).decodeToString() } catch (e: Exception) { "Error, unsupported operating system: ${e.message}" }, image: String? = null, imageFormat: String? = null, includeEnvironment: Boolean = false): NodeSpecs
Link copied to clipboard
fun procInfoFile(inputStream: InputStream): <Error class: unknown class>