plugin

package
v0.0.0-...-963d5dd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Types

type Input

type Input struct {
	Debug          bool    `env:"PLUGIN_DEBUG" envDefault:false`
	ApiToken       string  `env:"PLUGIN_API_TOKEN,required"`
	ZoneIdentifier string  `env:"PLUGIN_ZONE_IDENTIFIER,required"`
	Action         string  `env:"PLUGIN_ACTION,required"`
	RecordType     string  `env:"PLUGIN_RECORD_TYPE,required"`
	RecordName     string  `env:"PLUGIN_RECORD_NAME,required"`
	RecordContent  string  `env:"PLUGIN_RECORD_CONTENT"`
	RecordProxied  *bool   `env:"PLUGIN_RECORD_PROXIED" envDefault:true`
	RecordTTL      int     `env:"PLUGIN_RECORD_TTL" envDefault:1`
	RecordPriority *uint16 `env:"PLUGIN_RECORD_PRIORITY" envDefault:1`
}

Jump to

Keyboard shortcuts

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