Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "unknown"
Version variable is set at build time.
Functions ¶
func ExecuteDecrypt ¶
func ExecuteDecrypt() error
ExecuteDecrypt runs decrypt cmd.
Example ¶
tp := struct { URI string testContent string }{ "/decrypt", "test", } ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, tp.testContent) })) defer ts.Close() dp.source = ts.URL dp.value = tp.testContent ExecuteDecrypt()
Output: test
func ExecuteDiffFiles ¶ added in v0.0.5
func ExecuteDiffFiles() error
ExecuteDiffFiles runs diff files cmd.
func ExecuteDiffValues ¶ added in v0.0.5
func ExecuteDiffValues() error
ExecuteDiffValues runs diff values cmd.
func ExecuteEncrypt ¶
func ExecuteEncrypt() error
ExecuteEncrypt runs encrypt cmd.
Example ¶
tp := struct { URI string testContent string }{ "/encrypt", "test", } ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, tp.testContent) })) defer ts.Close() ep.source = ts.URL ep.value = tp.testContent ExecuteEncrypt()
Output: test
Types ¶
type FileMapping ¶
type FileMapping struct {
// contains filtered or unexported fields
}
FileMapping single file mapping source:dest.
type FileMappings ¶
type FileMappings struct {
// contains filtered or unexported fields
}
FileMappings file mappings source:dest,source:dest...
func (*FileMappings) Destinations ¶
func (m *FileMappings) Destinations() []string
Destinations all destinations.
func (*FileMappings) Mappings ¶
func (m *FileMappings) Mappings() []FileMapping
Mappings all mappings.
func (*FileMappings) Set ¶
func (m *FileMappings) Set(value string) error
Set parse mappings from string.
func (*FileMappings) String ¶
func (m *FileMappings) String() string
Click to show internal directories.
Click to hide internal directories.