tmpltools

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(cloudHome, app, path string) (string, error)

func KubeSeal

func KubeSeal(ns, name, secret string) (string, error)

KubeSeal runs the kubeseal command to output a raw sealed secret.

func SSHKey

func SSHKey(name string) (string, error)

SSHKey looks up one of the current user's SSH keys.

func SSHKnownHost

func SSHKnownHost(name string) (string, error)

SSHKnownHost looks up a known host entry for the given host.

func Tomlize

func Tomlize(o any) (string, error)

Tomlize will convert the given object to a TOML string.

Types

type AWS

type AWS struct {
	Region string
}

func (AWS) DDBLookup

func (a AWS) DDBLookup(table, field string, key map[string]any) (string, error)

DDBLookup returns a function that performs a simple map lookup function in DynamoDB.

func (AWS) DescribeEfsFileSystemId

func (a AWS) DescribeEfsFileSystemId(token string) (string, error)

DescribeEfsFileSystemId returns a function that lookups up an EFS file systems description.

func (AWS) DescribeEfsMountTargets

func (a AWS) DescribeEfsMountTargets(id string) (*efs.DescribeMountTargetsOutput, error)

DescribeEfsMountTargets Lookup EFS mount targets.

type Ghost

type Ghost struct {
	Config     string
	KeeperName string
	Context    context.Context
	// contains filtered or unexported fields
}

func (*Ghost) Secret

func (g *Ghost) Secret(name string) (string, error)

func (*Ghost) SecretDict

func (g *Ghost) SecretDict(sd ...string) (map[string]any, error)

SecretDict will generate a map of key => secret pairs, where the secret is looked up.

Jump to

Keyboard shortcuts

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