server

package
v5.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const ChainName = "DRAUPNIR-WHITELIST"
View Source
const ConfigFilePath = "/etc/draupnir/config.toml"

ConfigFilePath is the expected path of the server configuration file

Variables

This section is empty.

Functions

func Run

func Run(logger log.Logger) error

Run starts the draupnir server Any error returned is fatal

Types

type IPAddressWhitelister

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

func NewIPAddressWhitelister

func NewIPAddressWhitelister(logger log.Logger, sentryClient *raven.Client, addressStore store.WhitelistedAddressStore) *IPAddressWhitelister

func (*IPAddressWhitelister) Start

func (iw *IPAddressWhitelister) Start(ctx context.Context, interval time.Duration) error

func (*IPAddressWhitelister) TriggerReconcile

func (iw *IPAddressWhitelister) TriggerReconcile(source string)

TriggerReconcile allows external callers to request that a reconciliation occurs.

type InstanceCleaner

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

func NewInstanceCleaner

func NewInstanceCleaner(logger log.Logger, sentryClient *raven.Client, instanceStore store.InstanceStore, executor exec.Executor, authenticator auth.Authenticator) *InstanceCleaner

func (*InstanceCleaner) Start

func (ic *InstanceCleaner) Start(ctx context.Context, interval time.Duration) error

type RuleEntry

type RuleEntry struct {
	IPNet     string
	Port      uint16
	UserEmail string
}

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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