modmaninterface

package
v0.2.37 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: AGPL-3.0 Imports: 3 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, cfg 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)

	Provides(cfg resource.Config) bool

	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