shared

package
v0.0.0-...-593c148 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

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

Args - simple args struct

type BackerConfig

type BackerConfig struct {
	SyncOnStartup    bool               `json:"syncOnStartup"`
	DeleteOnRemove   bool               `json:"deleteOnRemove"`
	DeleteOnShutdown bool               `json:"deleteOnShutdown"`
	Watchers         []Watcher          `json:"watchers"`
	S3               backends.S3Options `json:"s3"`
	Backends         []backends.Uploader
}

BackerConfig - Main configuration struct

func (*BackerConfig) ValidateWatcherPaths

func (c *BackerConfig) ValidateWatcherPaths() error

ValidateWatcherPaths - Ensure that each path in the config file is valid and exists

type BucketObjects

type BucketObjects struct {
	Key     string
	Version []string
}

BucketObjects - An object and its given versions

type CLICommunication

type CLICommunication interface {
	ListWatchers(args int, watchers *FileWatchers) error
	ListObjects(objects *[]BucketObjects) error
	ListObjectVersions(args *Args, object *BucketObjects) error
}

CLICommunication - basic interface for communicating between the cli and the backend

type FileWatchers

type FileWatchers struct {
	Paths []string
}

FileWatchers - List of current file paths

type Watcher

type Watcher struct {
	BucketPath string `json:"bucketPath"`
	Path       string `json:"path"`
}

Watcher - Configuration struct for watching a specific file path

func (*Watcher) GetPath

func (w *Watcher) GetPath() (string, error)

GetPath - Returns the absolute Path of the Watcher

Jump to

Keyboard shortcuts

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