Documentation ¶
Index ¶
- func AddNewStringsToStringArray(list []string, elmsToAdd ...string) []string
- func CopyFileIntoTar(tw *tar.Writer, tarEntryName string, filePath string) error
- func CopyGitIndexEntryIntoTar(tw *tar.Writer, tarEntryName string, entry *index.Entry, ...) error
- func CreateArchive(archivePath string, f func(tw *tar.Writer) error) error
- func CreateArchiveBasedOnAnotherOne(ctx context.Context, sourceArchivePath, destinationArchivePath string, ...) error
- func DirExists(path string) (bool, error)
- func DumpYaml(v interface{}) string
- func ExcludeFromStringArray(list []string, elmsToRemove ...string) []string
- func ExpandPath(path string) string
- func FileExists(path string) (bool, error)
- func GenerateConsistentRandomString(n int) string
- func GetAbsoluteFilepath(absOrRelPath string) string
- func GetRelativeToBaseFilepath(base, path string) string
- func GlobPrefixWithoutPatterns(glob string) (string, string)
- func InterfaceArrayToStringArray(array []interface{}) ([]string, error)
- func InterfaceToMapStringInterface(value interface{}) (map[string]interface{}, error)
- func InterfaceToStringArray(value interface{}) ([]string, error)
- func IsNotADirectoryError(err error) bool
- func IsStringsContainValue(arr []string, value string) bool
- func IsSubpathOfBasePath(basePath, path string) bool
- func MapStringInterfaceToMapStringString(value map[string]interface{}) map[string]string
- func MurmurHash(args ...string) string
- func NumerateLines(text string, firstLineNumber int) string
- func ObjectToHashKey(obj interface{}) string
- func RegularFileExists(path string) (bool, error)
- func RejectEmptyStrings(arr []string) []string
- func RemoveHostDirsWithLinuxContainer(ctx context.Context, mountDir string, dirs []string) error
- func Reverse(s string) string
- func Sha256Hash(args ...string) string
- func Sha3_224Hash(args ...string) string
- func SplitFilepath(path string) (result []string)
- func ToLinuxContainerPath(path string) string
- func UniqAppendString(arr []string, value string) []string
- func UniqStrings(arr []string) []string
- type SerializableError
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNewStringsToStringArray ¶ added in v1.2.0
func CopyFileIntoTar ¶ added in v1.2.2
func CopyGitIndexEntryIntoTar ¶ added in v1.2.2
func CreateArchive ¶ added in v1.2.2
func CreateArchiveBasedOnAnotherOne ¶ added in v1.2.2
func ExcludeFromStringArray ¶ added in v1.2.0
func ExpandPath ¶
func GetAbsoluteFilepath ¶ added in v1.2.5
func GetRelativeToBaseFilepath ¶ added in v1.2.1
func GlobPrefixWithoutPatterns ¶ added in v1.2.7
GlobPrefixWithoutPatterns figures out how many components we don't need to glob because they're just names without patterns
func InterfaceToStringArray ¶
func IsNotADirectoryError ¶
func IsStringsContainValue ¶
func IsSubpathOfBasePath ¶ added in v1.1.30
func MapStringInterfaceToMapStringString ¶ added in v1.1.23
func MurmurHash ¶
func NumerateLines ¶
func ObjectToHashKey ¶ added in v1.2.2
func ObjectToHashKey(obj interface{}) string
func RegularFileExists ¶ added in v1.2.2
func RejectEmptyStrings ¶
func Sha256Hash ¶
func Sha3_224Hash ¶
func SplitFilepath ¶
func ToLinuxContainerPath ¶
func UniqAppendString ¶
func UniqStrings ¶
Types ¶
type SerializableError ¶ added in v1.1.21
type SerializableError struct {
Error error
}
func (SerializableError) MarshalJSON ¶ added in v1.1.21
func (obj SerializableError) MarshalJSON() ([]byte, error)
func (*SerializableError) UnmarshalJSON ¶ added in v1.1.21
func (obj *SerializableError) UnmarshalJSON(data []byte) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.