repository

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigReadWriter

type ConfigReadWriter interface {
	ConfigReader
	ConfigWriter
}

ConfigReadWriter config reader & writer

type ConfigReader

type ConfigReader interface {
	GetConfig(key string) (string, error)
}

ConfigReader config reader

type ConfigWriter

type ConfigWriter interface {
	SetConfig(key, value string) error
}

ConfigWriter config writer

type Files

type Files interface {
	ListAllFiles() (sha1 string, uploads []string, err error)
	ListChangedFiles(baseSha1 string) (sha1 string, uploads []string, deletes []string, err error)
}

type HeadReadWriter

type HeadReadWriter interface {
	HeadReader
	HeadWriter
}

type HeadReader

type HeadReader interface {
	GetHead() (string, error)
	GetHeadSHA1() (string, error)
}

type HeadWriter

type HeadWriter interface {
	PushHead(head string) (string, error)
	PopHead(head string) error
}

type Repository

type Repository interface {
	ConfigReadWriter
	HeadReadWriter
	Files
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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