util

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToSet

func AddToSet(slice []string, value string) []string

func ConvertLDAPTimeToRFC3339

func ConvertLDAPTimeToRFC3339(adDate string) string

ConvertLDAPTimeToRFC3339 converts an Active Directory Generalized Time format (YYYYMMDDHHMMSS.0Z) string to RFC3339 format.

func ConvertMilliUnixTimestampToRFC3339

func ConvertMilliUnixTimestampToRFC3339(timestamp *int64) string

ConvertMilliUnixTimestampToRFC3339 takes a pointer to an int64 timestamp (in milliseconds) and returns a formatted RFC3339 date string.

func ExpandPlaceholders

func ExpandPlaceholders(command string, key string, value string) string

func GetHomeDir

func GetHomeDir() string

func GetTerminalCommand

func GetTerminalCommand(term string, startDirectory string, script string) (string, error)

func IsAlphanumeric

func IsAlphanumeric(s string) bool

func KillProcessByPID

func KillProcessByPID(pid int) error

KillProcessByPID kills a process with the given PID.

func ResolveCredentialValue added in v0.10.1

func ResolveCredentialValue(value string) string

func ResolvePath

func ResolvePath(input string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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