minirepo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package minirepo (internal) provides all types needed for implementing the command line interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server contains the functionality of minirepo's commandline interface This is supposed to be internal use only ;) A Server abstracts the metadata file creation of a repository, including cryptographic operations. The normal usage of this class would be:

obj := NewServer(...)
obj.LoadKeypair()
obj.UpdateMetadata()

func NewServer

func NewServer(root, repo, name string) *Server

NewServer creates a new minirepo server utility class

func (*Server) GenerateKeypair

func (s *Server) GenerateKeypair()

GenerateKeypair generates a new keypair for signing

func (*Server) LoadKeypair

func (s *Server) LoadKeypair()

LoadKeypair loads a keypair from files

func (*Server) UpdateMetadata

func (s *Server) UpdateMetadata()

UpdateMetadata updates metadata, that is, loads all files, calculates checksums, outputs the YAML file and signs it

Jump to

Keyboard shortcuts

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