tkInfra

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 15 Imported by: 3

Documentation

Index

Constants

View Source
const (
	SerializationFormatJson = "json"
	SerializationFormatYaml = "yaml"
)
View Source
const (
	CharsetLowercaseLetters string = "abcdefghijklmnopqrstuvwxyz"
	CharsetUppercaseLetters string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	CharsetNumbers          string = "0123456789"
	CharsetSymbols          string = "!@#$%^&*()_+"
)

Variables

This section is empty.

Functions

func FileDeserializer added in v0.0.2

func FileDeserializer(
	filePath string,
) (outputMap map[string]any, err error)

func ReadServerPrivateIpAddress added in v0.0.6

func ReadServerPrivateIpAddress() (ipAddress tkValueObject.IpAddress, err error)

func ReadServerPublicIpAddress added in v0.0.6

func ReadServerPublicIpAddress() (ipAddress tkValueObject.IpAddress, err error)

func StringDeserializer added in v0.0.2

func StringDeserializer(
	serializedString string,
	serializationFormat string,
) (outputMap map[string]any, err error)

Types

type Shell added in v0.0.6

type Shell struct {
	// contains filtered or unexported fields
}

func NewShell added in v0.0.6

func NewShell(settings ShellSettings) Shell

func (Shell) Run added in v0.0.6

func (shell Shell) Run() (string, error)

type ShellError added in v0.0.6

type ShellError struct {
	StdErr   string `json:"stdErr"`
	ExitCode int    `json:"exitCode"`
}

func (*ShellError) Error added in v0.0.6

func (e *ShellError) Error() string

type ShellSettings added in v0.0.6

type ShellSettings struct {
	Command                         string
	Args                            []string
	ShouldUseSubShell               bool
	ShouldDisableTimeoutHardLimit   bool
	ShouldIgnoreUsernameLookupError bool
	Username                        string
	WorkingDirectory                string
	ExecutionTimeoutSecs            uint64
	Envs                            []string
}

type Synthesizer

type Synthesizer struct {
}

func (*Synthesizer) CharsetPresenceGuarantor

func (synth *Synthesizer) CharsetPresenceGuarantor(
	originalString []byte,
	charset string,
) []byte

func (*Synthesizer) MailAddressFactory

func (synth *Synthesizer) MailAddressFactory(username *string) string

func (*Synthesizer) PasswordFactory

func (synth *Synthesizer) PasswordFactory(
	desiredLength int,
	shouldIncludeSymbols bool,
) string

func (*Synthesizer) UsernameFactory

func (synth *Synthesizer) UsernameFactory() string

Jump to

Keyboard shortcuts

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