fake

package
v0.0.0-...-e561cac Latest Latest
Warning

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

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

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestMgr

func NewTestMgr(existingServices map[string]*FakeService) *testMgr

Types

type FakeService

type FakeService struct {
	// contains filtered or unexported fields
}

func NewFakeService

func NewFakeService(name string, config mgr.Config, status svc.Status) *FakeService

func (*FakeService) Close

func (f *FakeService) Close() error

func (*FakeService) Config

func (f *FakeService) Config() (mgr.Config, error)

func (*FakeService) Control

func (f *FakeService) Control(cmd svc.Cmd) (svc.Status, error)

func (*FakeService) Query

func (f *FakeService) Query() (svc.Status, error)

func (*FakeService) Start

func (f *FakeService) Start(_ ...string) error

func (*FakeService) UpdateConfig

func (f *FakeService) UpdateConfig(config mgr.Config) error

Jump to

Keyboard shortcuts

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