sidecar

package
v0.13.0-beta4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package sidecar provides supporting infrastructure for Mutagen sidecar images and containers.

Index

Constants

View Source
const (
	// BaseTag is the base tag name for the sidecar image.
	BaseTag = "mutagenio/sidecar"
)

Variables

This section is empty.

Functions

func EnvironmentIsSidecar added in v0.13.0

func EnvironmentIsSidecar() bool

EnvironmentIsSidecar returns true if the current operating environment is a Mutagen sidecar container.

func PathIsVolumeMountPoint added in v0.13.0

func PathIsVolumeMountPoint(path string) (bool, string)

PathIsVolumeMountPoint returns whether or not a path is expected to be a volume mount point within a Mutagen sidecar container. If the path is a volume mount point, then the volume name is also returned. This function is only valid in the context of a Mutagen sidecar container.

func SetVolumeOwnershipAndPermissionsIfEmpty added in v0.13.0

func SetVolumeOwnershipAndPermissionsIfEmpty(name string, ownership *filesystem.OwnershipSpecification, mode filesystem.Mode) error

SetVolumeOwnershipAndPermissionsIfEmpty will set the ownership and permissions on a sidecar volume if (and only if) the volume is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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