Documentation
¶
Index ¶
- Variables
- func CloseAndJoin(name string, closer io.Closer, prior error) error
- func CloseWithLog(name string, closer io.Closer)
- func DecodeCLIAPIResponse(body io.Reader, destination any) error
- func ExitError(code int, format string, args ...any) error
- func GenTaskID() string
- func NewRuntimeID() string
- func RemoveFiles(paths ...string) error
- func RemoveIfExists(path string) error
- func RemoveWithLog(path string)
- func ShortLogValue(value string) string
- func Truncate(s string, n int) string
- func Writef(writer io.Writer, format string, args ...any) error
- func Writeln(writer io.Writer, args ...any) error
- type CommandExitError
Constants ¶
This section is empty.
Variables ¶
View Source
var CLIHTTPClient = &http.Client{Timeout: 15 * time.Second}
Functions ¶
func CloseWithLog ¶
func NewRuntimeID ¶
func NewRuntimeID() string
NewRuntimeID returns a compact 64-bit identifier for new local routing and filesystem records. Older eight-character IDs remain valid and attachable; only newly-created records use the larger collision space.
func RemoveFiles ¶
func RemoveIfExists ¶
func RemoveWithLog ¶
func RemoveWithLog(path string)
func ShortLogValue ¶
Types ¶
type CommandExitError ¶
func (*CommandExitError) Error ¶
func (e *CommandExitError) Error() string
Click to show internal directories.
Click to hide internal directories.