mutagen

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 35 Imported by: 0

Documentation

Overview

Package mutagen provides infrastructure for interfacing wth Mutagen.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Liaison

type Liaison struct {
	// contains filtered or unexported fields
}

Liaison is the interface point between Compose and Mutagen. Its zero value is initialized and ready to use. It implements the Compose service API. It is a single-use type, is not safe for concurrent usage, and its Shutdown method should be invoked when usage is complete.

func (*Liaison) ComposeService

func (l *Liaison) ComposeService() api.Service

ComposeService returns a Mutagen-aware version of the Compose Service API. This function must only be called after a Compose service has been registered with RegisterComposeService.

func (*Liaison) DockerCLI added in v0.14.0

func (l *Liaison) DockerCLI() command.Cli

DockerCLI returns a Mutagen-aware version of the Docker CLI. This method must only be calld after the underlying CLI is registered via RegisterDockerCLI.

func (*Liaison) RegisterComposeService

func (l *Liaison) RegisterComposeService(service api.Service)

RegisterComposeService registers the underlying Compose service. The Compose service must be initialized using the Docker API client returned by the liaison's DockerClient method.

func (*Liaison) RegisterDockerCLI

func (l *Liaison) RegisterDockerCLI(cli command.Cli)

RegisterDockerCLI registers the associated Docker CLI instance.

func (*Liaison) RegisterDockerFlags

func (l *Liaison) RegisterDockerFlags(flags *pflag.FlagSet)

RegisterDockerFlags registers the associated Docker command line flags.

Jump to

Keyboard shortcuts

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