Documentation ¶
Index ¶
- Constants
- func ExecCommand(name string) error
- func ExecCommandQuietly(name string, args ...string) error
- func ExecCommandWithReturn(name string) (string, error)
- func LoadBlueprint(path string) (types.Blueprint, error)
- func PrintDaemonsetStatus(ds v1.DaemonSet)
- func PrintDeploymentStatus(deployment v1.Deployment)
- func PrintStatefulsetStatus(ss v1.StatefulSet)
- func ReadFile(path string) ([]byte, error)
- func ReadURI(uri string) ([]byte, error)
- func RemoteCommand(user string, addr string, privateKey string, cmd string) (string, string, error)
- func WriteTempFile(data []byte, pattern string) (string, error)
Constants ¶
View Source
const DefaultBlueprintPath = "blueprint.yaml"
Variables ¶
This section is empty.
Functions ¶
func ExecCommand ¶
ExecCommand executes a command and returns an error if it fails.
func ExecCommandQuietly ¶
ExecCommandQuietly executes a command and returns an error if it fails without any stdout
func ExecCommandWithReturn ¶
ExecCommandWithReturn executes a command and returns the output as a string.
func PrintDaemonsetStatus ¶
func PrintDeploymentStatus ¶
func PrintDeploymentStatus(deployment v1.Deployment)
func PrintStatefulsetStatus ¶
func PrintStatefulsetStatus(ss v1.StatefulSet)
func ReadURI ¶
ReadURI reads the content of a URI. The URI argument can be a file path or a URL. @TODO: Make this function testable by injecting a reader for file and http requests.
func RemoteCommand ¶
RemoteCommand takes user, addr and privateKey and initiates an SSH session. It then runs the provided cmd and returns stdout, stderr output and error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.