Documentation
¶
Index ¶
- func GenerateCron(opts CronOptions) (string, error)
- func GenerateParagraphs(n int) string
- func GeneratePassword(opts PasswordOpts) (string, error)
- func GenerateSentences(n int) string
- func GenerateUUID(version int, namespace, name string) (string, error)
- func GenerateWords(n int) string
- type CertOptions
- type CertResult
- type CronOptions
- type PasswordOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCron ¶ added in v0.5.0
func GenerateCron(opts CronOptions) (string, error)
GenerateCron builds a cron expression from the given options.
func GenerateParagraphs ¶
func GeneratePassword ¶
func GeneratePassword(opts PasswordOpts) (string, error)
func GenerateSentences ¶
func GenerateWords ¶
Types ¶
type CertOptions ¶ added in v0.5.0
type CertOptions struct {
CN string
DNS []string
IPs []string
Days int
KeyType string // "ec" or "rsa"
}
CertOptions configures certificate generation.
type CertResult ¶ added in v0.5.0
CertResult holds the generated PEM-encoded certificate and key.
func GenerateCert ¶ added in v0.5.0
func GenerateCert(opts CertOptions) (*CertResult, error)
GenerateCert creates a self-signed TLS certificate and private key.
Click to show internal directories.
Click to hide internal directories.