mutagen: github.com/mutagen-io/mutagen/cmd/mutagen/sync Index | Files

package sync

import "github.com/mutagen-io/mutagen/cmd/mutagen/sync"

Index

Package Files

create.go flush.go legacy.go list.go list_monitor_common.go main.go monitor.go pause.go reset.go resume.go terminate.go

Variables

var Commands = []*cobra.Command{
    createCommand,
    listCommand,
    monitorCommand,
    flushCommand,
    pauseCommand,
    resumeCommand,
    resetCommand,
    terminateCommand,
}

Commands are the synchronization session commands that used to exist at the root of the Mutagen command structure. For backward compatibility, we still register them at the root of the command structure (and hide them in help output). In order to avoid the need to export the commands, we create a list of them.

var RootCommand = &cobra.Command{
    Use:          "sync",
    Short:        "Create and manage synchronization sessions",
    RunE:         rootMain,
    SilenceUsage: true,
}

func CreateWithSpecification Uses

func CreateWithSpecification(
    service synchronizationsvc.SynchronizationClient,
    specification *synchronizationsvc.CreationSpecification,
) (string, error)

CreateWithSpecification is an orchestration convenience method invokes the creation using the provided session specification. Unlike other orchestration methods, it requires provision of a client to avoid creating one for each request.

func FlushWithLabelSelector Uses

func FlushWithLabelSelector(labelSelector string, skipWait bool) error

FlushWithLabelSelector is an orchestration convenience method that invokes the flush command using the specified label selector.

func FlushWithSessionIdentifiers Uses

func FlushWithSessionIdentifiers(sessions []string, skipWait bool) error

FlushWithSessionIdentifiers is an orchestration convenience method that invokes the flush command with the specified session identifiers.

func ListWithLabelSelector Uses

func ListWithLabelSelector(labelSelector string, long bool) error

ListWithLabelSelector is an orchestration convenience method that invokes the list command using the specified label selector.

func PauseWithLabelSelector Uses

func PauseWithLabelSelector(labelSelector string) error

PauseWithLabelSelector is an orchestration convenience method invokes the pause command using the specified label selector.

func ResetWithLabelSelector Uses

func ResetWithLabelSelector(labelSelector string) error

ResetWithLabelSelector is an orchestration convenience method invokes the reset command using the specified label selector.

func ResumeWithLabelSelector Uses

func ResumeWithLabelSelector(labelSelector string) error

ResumeWithLabelSelector is an orchestration convenience method invokes the resume command using the specified label selector.

func TerminateWithLabelSelector Uses

func TerminateWithLabelSelector(labelSelector string) error

TerminateWithLabelSelector is an orchestration convenience method invokes the terminate command using the specified label selector.

Package sync imports 23 packages (graph) and is imported by 4 packages. Updated 2020-05-29. Refresh now. Tools for package owners.