zedmanager

package
v0.0.0-...-a2e9de6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "No version specified"

Version can be set from Makefile

Functions

func DeleteSnapshotFiles

func DeleteSnapshotFiles(snapshotID string) error

DeleteSnapshotFiles deletes the snapshot directory

func MaybeAddAppNetworkConfig

func MaybeAddAppNetworkConfig(ctx *zedmanagerContext,
	aiConfig types.AppInstanceConfig, aiStatus *types.AppInstanceStatus)

MaybeAddAppNetworkConfig ensures we have an AppNetworkConfig

func MaybeAddDomainConfig

func MaybeAddDomainConfig(ctx *zedmanagerContext,
	aiConfig types.AppInstanceConfig,
	aiStatus types.AppInstanceStatus,
	ns *types.AppNetworkStatus) (*types.DomainConfig, error)

MaybeAddDomainConfig makes sure we have a DomainConfig Note that it does not publish it since caller often tweaks it; caller must call publishDomainConfig() when done with tweaks.

func MaybeAddVolumeRefConfig

func MaybeAddVolumeRefConfig(ctx *zedmanagerContext, appInstID uuid.UUID,
	volumeID uuid.UUID, generationCounter, localGenerationCounter int64,
	mountDir string, verifyOnly bool)

MaybeAddVolumeRefConfig publishes volume ref config with refcount to the volumemgr

func MaybeRemoveVolumeRefConfig

func MaybeRemoveVolumeRefConfig(ctx *zedmanagerContext, appInstID uuid.UUID,
	volumeID uuid.UUID, generationCounter, localGenerationCounter int64)

MaybeRemoveVolumeRefConfig decreases the RefCount and deletes the VolumeRefConfig when the RefCount reaches zero

func Run

func Run(ps *pubsub.PubSub, loggerArg *logrus.Logger, logArg *base.LogObject, arguments []string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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