simpledeb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Now is a package level time function so we can mock it out
	Now = func() time.Time {
		return time.Now()
	}
)

Functions

func CopyDeb

func CopyDeb(fpath string, config Conf, distro, section, arch string) string

func CreateMetadata

func CreateMetadata(name string, parsedconfig Conf)

func Main

func Main(parsedconfig Conf)

Types

type Conf

type Conf struct {
	RootRepoPath  string   `json:"rootRepoPath"`
	SupportArch   []string `json:"supportedArch"`
	Sections      []string `json:"sections"`
	DistroNames   []string `json:"distroNames"`
	EnableSigning bool     `json:"enableSigning"`
	PrivateKey    string   `json:"privateKey"`
}

func (Conf) ArchPath

func (c Conf) ArchPath(distro, section, arch string) string

type CreateKeyOutput

type CreateKeyOutput struct {
	PublicKey  []byte
	PrivateKey []byte
}

func CreateKey

func CreateKey(name, email string) CreateKeyOutput

CreateKey generates a new public and private key pair, and writes them out to workingDirectory.

Jump to

Keyboard shortcuts

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