data

package
v0.0.0-...-bcbf025 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGenericScriptEngine

func NewGenericScriptEngine(command string) *genericScriptEngine

func NewGitRemoteStorage

func NewGitRemoteStorage(localStorage LocalStorage) *gitRemoteStorage

func NewGolangTemplateEngine

func NewGolangTemplateEngine() *golangTemplateEngine

Types

type ConfigKeys

type ConfigKeys string
const (
	GitUsername   ConfigKeys = "GIT_USERNAME"
	GitPassword   ConfigKeys = "GIT_PASSWORD"
	DefaultScript ConfigKeys = "DEFAULT_SCRIPT"
)

type LocalStorage

type LocalStorage interface {
	Put(key, value string) error
	Get(key string) (string, error)
}

func NewFileLocalStorage

func NewFileLocalStorage(filePath string) (LocalStorage, error)

type RemoteStorage

type RemoteStorage interface {
	Pull(remotePath string, localPath string) error
	Push(localPath string, remotePath string) error
}

type ScriptEngine

type ScriptEngine interface {
	Run(scriptPath string, flags map[string]string) (map[string]interface{}, error)
}

type TemplateEngine

type TemplateEngine interface {
	Run(filePath string, data map[string]interface{}) error
}

Jump to

Keyboard shortcuts

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