Documentation ¶
Index ¶
- func AppendToFile(file string, text string, args ...any) error
- func BackupFile(file string) string
- func CopyEmbedderFolderToTempDir(embedFolder embed.FS, folderName string) (string, error)
- func FileContains(file string, text string) bool
- func GetLogger(debug bool) *logrus.Logger
- func PrettyPrint(logger *logrus.Logger, message string, obj any)
- func ReplaceInFile(file string, original string, replacement string)
- func RunCommand(logger *logrus.Logger, name string, options ...string) error
- func RunCommandAndLog(logger *logrus.Logger, name string, options ...string) error
- func SystemNameForSA(namespace string, serviceAccount string) string
- type ResponseStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupFile ¶
func FileContains ¶
func ReplaceInFile ¶
func RunCommandAndLog ¶
func SystemNameForSA ¶
Types ¶
type ResponseStatus ¶
type ResponseStatus int64
const ( Ok ResponseStatus = iota Failed )
func (ResponseStatus) String ¶
func (s ResponseStatus) String() string
Click to show internal directories.
Click to hide internal directories.