Documentation ¶
Index ¶
- Constants
- func AddModeFlags(mode *Mode, command *cobra.Command)
- func ExtractFileFromTarGz(filename string, r io.ReadCloser) ([]byte, error)
- func ExtractTarGz(localPath string, r io.ReadCloser) error
- func FailIfMultiNodes(ctx context.Context, command string) error
- func ForEachResource(ctx context.Context, c *client.Client, ...) error
- func PrintApplyResults(resp *machine.ApplyConfigurationResponse)
- type Mode
Constants ¶
View Source
const InteractiveMode machine.ApplyConfigurationRequest_Mode = -1
InteractiveMode fake mode value for the interactive config mode. Should be never passed to the API.
Variables ¶
This section is empty.
Functions ¶
func AddModeFlags ¶ added in v1.0.0
AddModeFlags adds deprecated flags to the command and registers mode flag with it's parser.
func ExtractFileFromTarGz ¶ added in v0.6.0
func ExtractFileFromTarGz(filename string, r io.ReadCloser) ([]byte, error)
ExtractFileFromTarGz reads a single file data from an archive.
func ExtractTarGz ¶
func ExtractTarGz(localPath string, r io.ReadCloser) error
ExtractTarGz extracts .tar.gz archive from r into filesystem under localPath.
func FailIfMultiNodes ¶
FailIfMultiNodes checks if ctx contains multi-node request metadata.
func ForEachResource ¶ added in v0.9.0
func ForEachResource(ctx context.Context, c *client.Client, callback func(ctx context.Context, msg client.ResourceResponse) error, namespace string, args ...string) error
ForEachResource get resources from the controller runtime and run callback using each element.
func PrintApplyResults ¶ added in v1.0.0
func PrintApplyResults(resp *machine.ApplyConfigurationResponse)
PrintApplyResults prints out all warnings and auto apply results.
Types ¶
Click to show internal directories.
Click to hide internal directories.