froxlor

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 12 Imported by: 0

README

Froxlor Processor

The Froxlor processor takes a given list of domains retrieved from the traefik API and registers them at a configured Froxlor instance using its API. It is individually configurable via environment variables.

The domain list is processed by utilizing bobesa/go-domain-util/domainutil which makes it easy to split up the top level domain and the actual sub domain for the DNS record.

Env Var Configuration

All the environment variables are empty by default, so they have to be set in order for the Froxlor processor to work.

ENV VAR DESCRIPTION
TRAEBELER_PROCESSOR_FROXLOR_URI base URI of the froxlor instance (without trailing slashes /, without path)
TRAEBELER_PROCESSOR_FROXLOR_KEY API key of the user which should be used
TRAEBELER_PROCESSOR_FROXLOR_SECRET API secret of the user which should be used

Open Features

  • Arbitrary cache eviction to be sure everything is still in sync with the actual froxlor API
  • Logging improvements, only log diffs

Documentation

Overview

Package froxlor provides functionality to interact with the Froxlor "REST" API. All functions provided work in the context of a customer. Therefore the configuration (key, secret) used to initialize this package can only be used with customer credentials.

Administrative interactions are not available at this point in time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

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

Processor which can process domains for Froxlor.

func (*Processor) ID

func (p *Processor) ID() string

ID returns the identifier for the froxlor processor

func (*Processor) Init

func (p *Processor) Init() error

func (*Processor) Process

func (p *Processor) Process(domains []string)

Jump to

Keyboard shortcuts

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