Documentation
¶
Index ¶
- func CompareFiles(fileone string, filetwo string) (bool, error)
- func CreateTempFile(dirname string, filename string) (*os.File, error)
- func DetectContainerPortProtocol(protocol string) (v1.Protocol, error)
- func DiffCommand(fileone string, filetwo string) ([]byte, error)
- func DownloadFile(url string) (string, error)
- func GenerateRandomString(numberOfChars int, modeString string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareFiles ¶
CompareFiles will compare two files, byte by byte to see if they are equal
Args:
fileone - first file to compare filetwo - second file to compare Returns: bool and error
func CreateTempFile ¶
CreateTempFile will create temporary file
Args:
dirname - dir name filename - file name Returns: filename as string or error
func DetectContainerPortProtocol ¶
DetectContainerPortProtocol is a helper for users use only TCP or UDP string instead of require them to manage k8s.io/api/core/v1. This will convert TCP or UDP to v1.ProtocolTCP or v1.ProtocolUDP
Args:
protocol - TCP or UDP as string
Returns:
v1.ProtocolUDP, v1.ProtocolTCP or error
func DiffCommand ¶
DiffCommand will diff two files
Args:
fileone filtwo Returns: bytes from the file or error
func DownloadFile ¶
DownloadFile will download a file specified as temporary file
Args:
url - url to be download Returns: path as string or error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.