node_manager

package
v0.0.0-...-d591811 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MonitClient

type MonitClient interface {
	Start(serviceName string) error
	Stop(serviceName string) error
	Status(serviceName string) (string, error)
}

type NodeManager

type NodeManager struct {
	ServiceName       string
	StateFilePath     string
	MonitClient       MonitClient
	GaleraInitAddress string
	Logger            lager.Logger
}

func (*NodeManager) GetStatus

func (m *NodeManager) GetStatus(_ *http.Request) (string, error)

func (*NodeManager) StartServiceBootstrap

func (m *NodeManager) StartServiceBootstrap(_ *http.Request) (string, error)

func (*NodeManager) StartServiceJoin

func (m *NodeManager) StartServiceJoin(_ *http.Request) (string, error)

func (*NodeManager) StartServiceSingleNode

func (m *NodeManager) StartServiceSingleNode(_ *http.Request) (string, error)

func (*NodeManager) StopService

func (m *NodeManager) StopService(_ *http.Request) (string, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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