factory

package
v1.52.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 2 Imported by: 13 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SaveableOption

type SaveableOption interface {
	// AddSaveable is an option that adds a given saveable as one that should be saved
	// under the given name
	AddSaveable(name string, saveable statemanager.Saveable) statemanager.Option
}

SaveableOption factory wraps the global statemanager.AddSaveable method, which creates a new saveable state manager option

func NewSaveableOption

func NewSaveableOption() SaveableOption

NewSaveableOption creates a new SaveableOption factory

type StateManager

type StateManager interface {
	// NewStateManager creates a new state manager
	NewStateManager(cfg *config.Config, options ...statemanager.Option) (statemanager.StateManager, error)
}

StateManager factory wraps the global statemenager.NewStateManager method, which creates a new state manager object

func NewStateManager

func NewStateManager() StateManager

NewStateManager creates a new StateManager factory

Directories

Path Synopsis
Package mock_factory is a generated GoMock package.
Package mock_factory is a generated GoMock package.

Jump to

Keyboard shortcuts

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