Documentation
¶
Index ¶
- func ValidateServiceName(name string) error
- func WriteBootstrapFile(filename string, content []byte) (string, error)
- func WriteDummyNetplanFile(ifaceName, downstreamAddress string, port uint32) (string, error)
- func WriteSystemdServiceFile(filename, name, version string, port uint32) (string, error)
- type DeleteFilesResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateServiceName ¶ added in v1.6.1
ValidateServiceName rejects names that could escape the intended directories when joined into file paths (path traversal via "/" or "..") or are otherwise malformed. The allowed set mirrors the deploy-time validation: letters, digits, '-' and '_'. Undeploy did not validate the control-plane-supplied name before filepath.Join'ing it into os.Remove targets, so a name like "../../etc/foo" could delete files outside the managed directories.
func WriteDummyNetplanFile ¶
Types ¶
type DeleteFilesResult ¶
func DeleteFiles ¶
func DeleteFiles(filePaths []string, log *logger.Logger) DeleteFilesResult
func DeleteServiceFiles ¶
Click to show internal directories.
Click to hide internal directories.