app

package
v0.0.0-...-9ce36fb Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProgramName       = "devconsul"
	DefaultConfigFile = "config.hcl"
)
View Source
const (
	NetworkShapeIslands = infra.NetworkShapeIslands
	NetworkShapeDual    = infra.NetworkShapeDual
	NetworkShapeFlat    = infra.NetworkShapeFlat
)
View Source
const (
	ClusterLinkModePeer     = infra.ClusterLinkModePeer
	ClusterLinkModeFederate = infra.ClusterLinkModeFederate
)
View Source
const VaultAddr = "http://10.0.100.111:8200"

Variables

This section is empty.

Functions

func GetServiceRegistrationHCL

func GetServiceRegistrationHCL(s infra.Service) (string, error)

func ResetRunOnceMemory

func ResetRunOnceMemory() error

Types

type App

type App struct {
	BootInfo // for boot
	// contains filtered or unexported fields
}

func New

func New(logger hclog.Logger) (*App, error)

func (*App) RunBringDown

func (a *App) RunBringDown() error

func (*App) RunBringUp

func (a *App) RunBringUp() error

func (*App) RunBringUpPrimary

func (a *App) RunBringUpPrimary() error

func (*App) RunDumpLogs

func (a *App) RunDumpLogs() error

func (*App) RunForceDocker

func (a *App) RunForceDocker() error

func (*App) RunRestart

func (a *App) RunRestart() error

func (*App) RunStopDC2

func (a *App) RunStopDC2() error

func (*App) SetTimeout

func (c *App) SetTimeout(v time.Duration)

type BootInfo

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

type ClusterLinkMode

type ClusterLinkMode = infra.ClusterLinkMode

type Core deprecated

type Core = App

Deprecated: ensure rename

func (*Core) RunCheckMesh

func (c *Core) RunCheckMesh() error

func (*Core) RunConfigDump

func (c *Core) RunConfigDump() error

func (*Core) RunDebugListConfigs

func (c *Core) RunDebugListConfigs() error

func (*Core) RunDebugSaveGrafana

func (c *Core) RunDebugSaveGrafana() error

func (*Core) RunGRPCCheck

func (c *Core) RunGRPCCheck() error

func (*Core) RunRestartDC2

func (c *Core) RunRestartDC2() error

type NetworkShape

type NetworkShape = infra.NetworkShape

type Ping

type Ping struct {
	Err   string     `json:",omitempty"`
	Recv  *time.Time `json:",omitempty"`
	Start *time.Time `json:",omitempty"`
	End   *time.Time `json:",omitempty"`
}

type PingPongResponse

type PingPongResponse struct {
	Name  string `json:"name"`
	Pings []Ping `json:"pings"`
	Pongs []Ping `json:"pongs"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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