Documentation ¶
Overview ¶
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2023, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FollowLogs ¶ added in v0.7.2
func FollowLogs(ctx context.Context, machine *machineapi.Machine, controller machineapi.MachineService, consumer logConsumer) error
FollowLogs tracks the logs generated by a machine and prints them to the context out stream.
Types ¶
type LogOptions ¶
type LogOptions struct { Follow bool `long:"follow" short:"f" usage:"Follow log output"` NoColor bool `long:"no-color" usage:"Disable color output for prefix"` Prefix string `long:"prefix" usage:"Prefix each log line with the given string"` PrefixName bool `long:"prefix-name" usage:"Prefix each log line with the machine name"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.