util

package
v0.0.0-...-6005cdf Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPrefixPath

func AddPrefixPath(prefix string, path string) string

AddPrefixPath gets path that adds the provided the prefix.

func CopyFile

func CopyFile(dstName, srcName string) (written int64, err error)

CopyFile copies a file to other

func CreateFolder

func CreateFolder(path string) error

CreateFolder creates a fold

func GetUniqueIdentifier

func GetUniqueIdentifier(namespace string, name string, kind string) string

GetUniqueIdentifier get unique identifier

func IsDir

func IsDir(path string) bool

IsDir checks whether the given path is a folder

func IsExists

func IsExists(path string) bool

IsExists checks whether the file or folder exists

func IsFile

func IsFile(path string) bool

IsFile checks whether the specified path is a file

func TrimPrefixPath

func TrimPrefixPath(prefix string, path string) string

TrimPrefixPath gets path without the provided leading prefix path. If path doesn't start with prefix, path is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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