commands

package
v3.1.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Overview

Package commands deals with various machine initialization methods viz. cloud-init, Ignition, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Cmd   string
	Args  []string
	Stdin string
}

Cmd defines a shell command.

func (*Cmd) String

func (c *Cmd) String() string

String returns the command as a string.

func (*Cmd) UnmarshalJSON

func (c *Cmd) UnmarshalJSON(data []byte) error

UnmarshalJSON a runcmd command It can be either a list or a string. If the item is a list, the head of the list is the command and the tail are the args. If the item is a string, the whole command will be wrapped in `/bin/sh -c`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL