patchitup

package
v0.0.0-...-5c1e2d0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DataFolder string
View Source
var ServerDataFolder string

Functions

func Run

func Run(port string) (err error)

Run will run the main program

func SetLogLevel

func SetLogLevel(level string) (err error)

SetLogLevel determines the log level

Types

type Configuration

type Configuration struct {
	PublicKey     string
	PrivateKey    string
	Signature     string
	PathToFile    string // required
	ServerAddress string
}

Configuraiton specifies the configuration for generating a New patchitup

type Patchitup

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

Patchitup is the main structure to generate and save patches

func New

func New(c Configuration) (p *Patchitup, err error)

New returns a new patchitup configuration

func (*Patchitup) Identity

func (p *Patchitup) Identity() string

Identity returns the current keypair

func (*Patchitup) PatchUp

func (p *Patchitup) PatchUp() (err error)

PatchUp will take a filename and upload it to the server via a patch using the specified user.

func (*Patchitup) Rebuild

func (p *Patchitup) Rebuild() (latest string, err error)

Rebuild will rebuild the specified file and return the latest

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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