api

package
v0.0.0-...-0bb1707 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateUpdate            = "create/update"
	Remove                  = "remove"
	DefaultMaxFileSizeBytes = 10 * 1000
	PlaceholderExtension    = ".placeholder"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeMessage

type ChangeMessage struct {
	Name      string
	Path      string
	Arguments map[string]string
	Contents  string
	Type      string
	LastChunk bool
}

type MyWriter

type MyWriter struct{}

func (MyWriter) Write

func (MyWriter) Write(p []byte) (n int, err error)

type SyncHandle

type SyncHandle struct {
	Cmd *exec.Cmd
}

func Sync

func Sync(opt SyncOptions) (*SyncHandle, error)

func (SyncHandle) Close

func (s SyncHandle) Close() error

type SyncOptions

type SyncOptions struct {
	Integration        string
	Targets            []string
	Arguments          map[string]string
	RemoveDeletedFiles bool
	MaxFileSizeBytes   int
	UsePlaceholders    bool
}

Jump to

Keyboard shortcuts

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