Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IpToNumber ¶
IpToNumber converts an IPv4 address string to its integer representation.
func NumberToIp ¶
NumberToIp converts an integer representation of an IPv4 address back to its string form.
Types ¶
type Encryption ¶
type Encryption struct {
// contains filtered or unexported fields
}
func NewEncryption ¶
func NewEncryption(encoder string, secret string) (*Encryption, error)
NewEncryption creates a new Encryption instance with the given encoder and secret.
func (*Encryption) Decode ¶
func (encryption *Encryption) Decode(input string) (string, error)
Decode decodes the given input string using the encoder.
func (*Encryption) Decrypt ¶
func (encryption *Encryption) Decrypt(input string) (string, error)
Decrypt decrypts the given input string using the secret.
type YamlTemplate ¶ added in v0.2.0
type YamlTemplate struct {
Content string `json:"content"`
Metadata map[string]YamlTemplateMetadata `json:"metadata"`
}
func ParseYamlTemplate ¶ added in v0.2.0
func ParseYamlTemplate(input string) (*YamlTemplate, error)
ParseYamlTemplate parses a YAML template string into a YamlTemplate struct.
func RenderYamlTemplate ¶ added in v0.2.0
func RenderYamlTemplate(input string, variables map[string]string) (*YamlTemplate, error)
RenderYamlTemplate renders a YAML template with the provided variables.
type YamlTemplateMetadata ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.