Documentation ¶
Index ¶
- func AddNewStringsToStringArray(list []string, elmsToAdd ...string) []string
- func BufferedPipedWriterProcess(f func(w io.WriteCloser)) io.ReadCloser
- func CopyFileIntoTar(tw *tar.Writer, tarEntryName string, filePath string) error
- func CopyGitIndexEntryIntoTar(tw *tar.Writer, tarEntryName string, entry *index.Entry, ...) error
- func CopyTar(ctx context.Context, in io.Reader, tw *tar.Writer, opts CopyTarOptions) 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 ExtractTar(tarFileReader io.Reader, dstDir string) error
- func FileExists(path string) (bool, error)
- func FindDuplicatedStrings(elems []string) []string
- 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 IsInContainer() bool
- func IsNotADirectoryError(err error) bool
- func IsStringsContainValue(arr []string, value string) bool
- func IsSubpathOfBasePath(basePath, path string) bool
- func MapLoadOrCreateMutex(m *sync.Map, key string) *sync.Mutex
- func MapMustLoad(m *sync.Map, key string) interface{}
- func MapStringInterfaceToMapStringString(value map[string]interface{}) map[string]string
- func MurmurHash(args ...string) string
- func NumerateLines(text string, firstLineNumber int) 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 SplitLines(s string) []string
- func ToLinuxContainerPath(path string) string
- func UniqAppendString(arr []string, value string) []string
- func UniqStrings(arr []string) []string
- func WriteDirAsTar(dir string, w io.Writer) error
- type CopyTarOptions
- type CreateArchiveOptions
- type GoroutineSafeBuffer
- func (b *GoroutineSafeBuffer) Bytes() []byte
- func (b *GoroutineSafeBuffer) Cap() int
- func (b *GoroutineSafeBuffer) Grow(n int)
- func (b *GoroutineSafeBuffer) Len() int
- func (b *GoroutineSafeBuffer) Next(n int) []byte
- func (b *GoroutineSafeBuffer) Read(p []byte) (n int, err error)
- func (b *GoroutineSafeBuffer) ReadByte() (c byte, err error)
- func (b *GoroutineSafeBuffer) ReadBytes(delim byte) (line []byte, err error)
- func (b *GoroutineSafeBuffer) ReadFrom(r io.Reader) (n int64, err error)
- func (b *GoroutineSafeBuffer) ReadRune() (r rune, size int, err error)
- func (b *GoroutineSafeBuffer) ReadString(delim byte) (line string, err error)
- func (b *GoroutineSafeBuffer) Reset()
- func (b *GoroutineSafeBuffer) String() string
- func (b *GoroutineSafeBuffer) Truncate(n int)
- func (b *GoroutineSafeBuffer) UnreadByte() error
- func (b *GoroutineSafeBuffer) UnreadRune() error
- func (b *GoroutineSafeBuffer) Write(p []byte) (n int, err error)
- func (b *GoroutineSafeBuffer) WriteByte(c byte) error
- func (b *GoroutineSafeBuffer) WriteRune(r rune) (n int, err error)
- func (b *GoroutineSafeBuffer) WriteString(s string) (n int, err error)
- func (b *GoroutineSafeBuffer) WriteTo(w io.Writer) (n int64, err error)
- type SerializableError
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNewStringsToStringArray ¶ added in v1.2.0
func BufferedPipedWriterProcess ¶ added in v1.2.38
func BufferedPipedWriterProcess(f func(w io.WriteCloser)) io.ReadCloser
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 CreateArchiveBasedOnAnotherOne(ctx context.Context, sourceArchivePath, destinationArchivePath string, opts CreateArchiveOptions) error
func ExcludeFromStringArray ¶ added in v1.2.0
func ExpandPath ¶
func FindDuplicatedStrings ¶ added in v1.2.60
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 IsInContainer ¶ added in v1.2.48
func IsInContainer() bool
func IsNotADirectoryError ¶
func IsStringsContainValue ¶
func IsSubpathOfBasePath ¶ added in v1.1.30
func MapLoadOrCreateMutex ¶ added in v1.2.11
func MapMustLoad ¶ added in v1.2.11
func MapStringInterfaceToMapStringString ¶ added in v1.1.23
func MurmurHash ¶
func NumerateLines ¶
func RegularFileExists ¶ added in v1.2.2
func RejectEmptyStrings ¶
func Sha256Hash ¶
func Sha3_224Hash ¶
func SplitFilepath ¶
func SplitLines ¶ added in v1.1.30
func ToLinuxContainerPath ¶
func UniqAppendString ¶
func UniqStrings ¶
Types ¶
type CopyTarOptions ¶ added in v1.2.88
type CreateArchiveOptions ¶ added in v1.2.88
type CreateArchiveOptions struct { CopyTarOptions AfterCopyFunc func(tw *tar.Writer) error }
type GoroutineSafeBuffer ¶ added in v1.2.11
func (*GoroutineSafeBuffer) Bytes ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) Bytes() []byte
func (*GoroutineSafeBuffer) Cap ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) Cap() int
func (*GoroutineSafeBuffer) Grow ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) Grow(n int)
func (*GoroutineSafeBuffer) Len ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) Len() int
func (*GoroutineSafeBuffer) Next ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) Next(n int) []byte
func (*GoroutineSafeBuffer) Read ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) Read(p []byte) (n int, err error)
func (*GoroutineSafeBuffer) ReadByte ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) ReadByte() (c byte, err error)
func (*GoroutineSafeBuffer) ReadBytes ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) ReadBytes(delim byte) (line []byte, err error)
func (*GoroutineSafeBuffer) ReadFrom ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) ReadFrom(r io.Reader) (n int64, err error)
func (*GoroutineSafeBuffer) ReadRune ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) ReadRune() (r rune, size int, err error)
func (*GoroutineSafeBuffer) ReadString ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) ReadString(delim byte) (line string, err error)
func (*GoroutineSafeBuffer) Reset ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) Reset()
func (*GoroutineSafeBuffer) String ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) String() string
func (*GoroutineSafeBuffer) Truncate ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) Truncate(n int)
func (*GoroutineSafeBuffer) UnreadByte ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) UnreadByte() error
func (*GoroutineSafeBuffer) UnreadRune ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) UnreadRune() error
func (*GoroutineSafeBuffer) Write ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) Write(p []byte) (n int, err error)
func (*GoroutineSafeBuffer) WriteByte ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) WriteByte(c byte) error
func (*GoroutineSafeBuffer) WriteRune ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) WriteRune(r rune) (n int, err error)
func (*GoroutineSafeBuffer) WriteString ¶ added in v1.2.11
func (b *GoroutineSafeBuffer) WriteString(s string) (n int, err error)
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.