github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/helper/subproc/doc.go (about)

     1  // Package subproc provides helper utilities for executing the Nomad binary as
     2  // a child process of the Nomad agent.
     3  //
     4  // The main entrypoint is the Do function, in which the given MainFunc will be
     5  // executed as a sub-process if the first argument matches the subcommand.
     6  //
     7  // Context can be used to create a context.Context object with a given timeout,
     8  // and is expected to be used in conjunction with SetExpiration which uses the
     9  // context's termination to forcefully terminate the child process if it has not
    10  // exited by itself.
    11  package subproc