modmaninterface

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package modmaninterface abstracts the manager interface to avoid an import cycle/loop.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleManager

type ModuleManager interface {
	Add(ctx context.Context, confs ...config.Module) error
	Reconfigure(ctx context.Context, cfg config.Module) ([]resource.Name, error)
	Remove(modName string) ([]resource.Name, error)

	AddResource(ctx context.Context, conf resource.Config, deps []string) (resource.Resource, error)
	ReconfigureResource(ctx context.Context, conf resource.Config, deps []string) error
	RemoveResource(ctx context.Context, name resource.Name) error
	IsModularResource(name resource.Name) bool
	ValidateConfig(ctx context.Context, cfg resource.Config) ([]string, error)
	ResolveImplicitDependenciesInConfig(ctx context.Context, conf *config.Diff) error
	CleanModuleDataDirectory() error

	Configs() []config.Module
	Provides(cfg resource.Config) bool
	Handles() map[string]module.HandlerMap

	Close(ctx context.Context) error
}

ModuleManager abstracts the module manager interface.

Jump to

Keyboard shortcuts

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