util

package
v5.6.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(source string, destination string) error

CopyFile makes a copy of the given source to the given destination using Go's native copy function io.Copy

func ExecuteScript

func ExecuteScript(afterAction string) (string, error)

ExecuteScript takes the afterAction input and passes it to a Cmd struct to be executed.

No validation is done over the afterAction string, so caution is advised.

func FileExists

func FileExists(certPath string) (bool, error)

FileExists returns true if a file exists and is accessible on the given certPath

func WriteFile

func WriteFile(location string, content []byte) error

WriteFile saves the content in the given location. Creates any folders necessary for this action

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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