internal

package
v0.0.0-...-57ed778 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TemplateFactories map[string]TemplateFactory = make(map[string]TemplateFactory)

Functions

func CmdCheck

func CmdCheck(ctx context.Context, name string, args ...string) (tryNext bool, err1 error)

func FindExe

func FindExe(options ...string) string

Types

type Action

type Action interface {
	Do(context.Context) error
}

type BlindNginxRestartAction

type BlindNginxRestartAction struct{}

func (*BlindNginxRestartAction) Do

type Doorman

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

Doorman is the data parsed from a ConfigFile

func (*Doorman) FromConfig

func (d *Doorman) FromConfig(cfg *public.ConfigFile) error

func (*Doorman) Run

func (d *Doorman) Run(ctx context.Context, stop <-chan struct{}) error

type GoTplFactory

type GoTplFactory struct{}

func (*GoTplFactory) Parse

func (g *GoTplFactory) Parse(template string, path string) (Templater, error)

type GoTplTemplater

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

func (*GoTplTemplater) Template

func (g *GoTplTemplater) Template(vars interface{}) error

type HealthEndpoint

type HealthEndpoint struct {
}

type MetricsEndpoint

type MetricsEndpoint struct {
}

type NodeEvent

type NodeEvent struct {
	Type    watch.EventType
	Port    Port
	Address string
}

type NodePoolDescription

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

func (*NodePoolDescription) FromConfig

func (n *NodePoolDescription) FromConfig(cfg *public.NodePoolConfigFile) error

type PoolWatcher

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

func (*PoolWatcher) Run

func (p *PoolWatcher) Run(ctx context.Context, events chan<- NodeEvent, stop <-chan struct{}) error

type Port

type Port struct {
	TCP *int
	UDP *int
}

type PortMapping

type PortMapping struct {
	Source int
	Dest   int
}

func (*PortMapping) FromConfig

func (p *PortMapping) FromConfig(cfg public.PortMapping)

type PortVars

type PortVars struct {
	SourcePort int      `json:"srcPort"`
	DestPort   int      `json:"destPort"`
	Addresses  []string `json:"addresses"`
}

type Selector

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

type TemplateFactory

type TemplateFactory interface {
	Parse(template string, path string) (Templater, error)
}

type TemplateVars

type TemplateVars struct {
	TCPPorts []PortVars `json:"tcp"`
	UDPPorts []PortVars `json:"udp"`
}

type Templater

type Templater interface {
	Template(in interface{}) error
}

Templater intantiates a template using variables

Jump to

Keyboard shortcuts

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