plugin

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package plugin for caching directories using given backends

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ArchiveFormat string
	Backend       string
	CacheKey      string

	Debug   bool
	Rebuild bool
	Restore bool

	Mount []string

	S3         backend.S3Config
	FileSystem backend.FileSystemConfig
}

Config plugin-specific parameters and secrets

type Error added in v1.0.0

type Error string

Error recognized error from plugin

func (Error) Error added in v1.0.0

func (e Error) Error() string

type Plugin

type Plugin struct {
	Metadata metadata.Metadata
	Config   Config
}

Plugin stores metadata about current plugin

func (*Plugin) Exec

func (p *Plugin) Exec() error

Exec entry point of Plugin, where the magic happens

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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