inutils

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DistGen = "gen"
	ArchAll = "noarch"
)

Variables

This section is empty.

Functions

func ArrayUint32Has

func ArrayUint32Has(ar []uint32, v uint32) bool

func BytesCopy

func BytesCopy(src []byte) []byte

func BytesToUint16

func BytesToUint16(bs []byte) uint16

func BytesToUint32

func BytesToUint32(bs []byte) uint32

func BytesToUint64

func BytesToUint64(bs []byte) uint64

func FsMakeDir

func FsMakeDir(path string, uid, gid int, mode os.FileMode) error

func FsMakeFileDir

func FsMakeFileDir(path string, uid, gid int, mode os.FileMode) error

func FsWrite

func FsWrite(file string, bs []byte) error

func ResSysHostEnvDistArch

func ResSysHostEnvDistArch() (string, string, error)

func ResSysHostKernel

func ResSysHostKernel() string

func TimePrefixRandHexString

func TimePrefixRandHexString(tlen, rlen int) string

func Uint16ToHexString

func Uint16ToHexString(v uint16) string

func Uint32ToBytes

func Uint32ToBytes(v uint32) []byte

func Uint32ToHexString

func Uint32ToHexString(v uint32) string

func Uint64ToBytes

func Uint64ToBytes(v uint64) []byte

Types

type EnvDocker

type EnvDocker struct {
	ServerVersion string
}

func ResSyncHostEnvDockerInfo

func ResSyncHostEnvDockerInfo() EnvDocker

type EnvOs

type EnvOs struct {
	Kernel string
}

func ResSysHostEnvOsInfo

func ResSysHostEnvOsInfo() EnvOs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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