secrets

package
v0.0.0-...-864e703 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeystore

func GenerateKeystore(
	storepass,
	keypass,
	alias,
	cname string,

	validity time.Duration,
	bits uint32,

	writer io.Writer,
) error

func GeneratePGPKey

func GeneratePGPKey(
	fullName,
	email,
	password string,
) (string, string, error)

func GeneratePassword

func GeneratePassword(length int) (string, error)

Types

type JavaSecrets

type JavaSecrets struct {
	Keystore            []byte `yaml:"keystore"`
	KeystorePassword    string `yaml:"keystorePassword"`
	CertificatePassword string `yaml:"certificatePassword"`
}

type PGPSecrets

type PGPSecrets struct {
	Key         string `yaml:"key"`
	KeyID       string `yaml:"keyID"`
	KeyPassword string `yaml:"keyPassword"`
}

type Root

type Root struct {
	JavaSecrets JavaSecrets `yaml:"java"`
	PGPSecrets  PGPSecrets  `yaml:"pgp"`
}

func Parse

func Parse(r io.Reader) (*Root, error)

Jump to

Keyboard shortcuts

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