stub

package
v0.0.0-...-6248505 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StubService deprecated

type StubService struct {
	*domain.StateBase
}

StubService is a special service that collects temporary methods required for wiring together domains which not completely implemented or wired up.

Given the temporary nature of this service, we have not implemented the full service/state layer indirection. Instead, the service directly uses a transaction runner.

Deprecated: All methods here should be thrown away as soon as we're done with then.

func NewStubService

func NewStubService(
	factory database.TxnRunnerFactory,
) *StubService

NewStubService returns a new StubService.

func (*StubService) AssignUnitsToMachines deprecated

func (s *StubService) AssignUnitsToMachines(ctx context.Context, groupedUnitsByMachine map[string][]unit.Name) error

AssignUnitsToMachines assigns the given units to the given machines but setting unit net node to the machine net node.

Deprecated: AssignUnitsToMachines will become redundant once the machine and application domains have become fully implemented.

Jump to

Keyboard shortcuts

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