common

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseURL          string
	Decommission     Decommissioner
	Destroy          Destroyer
	Email            Emailer
	Filter           map[string]string
	Interval         string
	Listen           string
	LogLevel         string
	Notify           Notifier
	SearchEngine     map[string]string
	UserDatasource   map[string]string
	Tagging          Tagging
	EncryptionSecret string
	RedirectURL      string
	SpinupURL        string
	SpinupSiteURL    string
	Token            string
	EventReporters   map[string]map[string]string
	Webhooks         []Webhook
}

Config is representation of the configuration data

func ReadConfig

func ReadConfig(r io.Reader) (Config, error)

ReadConfig decodes the configuration from an io Reader

type Decommissioner

type Decommissioner struct {
	Age          string
	Endpoint     string
	Token        string
	EncryptToken bool
}

Decommissioner configures the decom process

type Destroyer

type Destroyer struct {
	Age          string
	Endpoint     string
	Token        string
	EncryptToken bool
}

Destroyer configures the deletion process

type Emailer

type Emailer struct {
	From       string
	Mailserver string
	Password   string
	Username   string
}

Emailer configures the email sending process

type Notifier

type Notifier struct {
	Age          []string
	Endpoint     string
	Token        string
	EncryptToken bool
}

Notifier configures the notification process

type Tagging

type Tagging struct {
	Endpoint     string
	Token        string
	EncryptToken bool
}

Tagging configures the tag update process

type Webhook

type Webhook struct {
	Endpoint string
	Token    string
	Method   string
	Actions  []string
}

Webhook configures the webhook endpoints

Jump to

Keyboard shortcuts

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