types

package
v0.0.0-...-1e18dc2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ALBProxy

type ALBProxy struct {
	ALBARN      string `gorm:"primary_key;column:alb_arn"`
	ALBDNSName  string `gorm:"column:alb_dns_name"`
	ListenerARN string
}

type CdnPlanOptions

type CdnPlanOptions struct {
	Domain         string   `json:"domain"`
	Origin         string   `json:"origin"`
	Path           string   `json:"path"`
	InsecureOrigin bool     `json:"insecure_origin"`
	Cookies        bool     `json:"cookies"`
	Headers        []string `json:"headers"`
	Cdn            bool     `json:"cdn"`
}

type CloudfrontDistribution

type CloudfrontDistribution struct {
	Settings Settings
	Service  cloudfrontiface.CloudFrontAPI
}

type DomainPlanOptions

type DomainPlanOptions struct {
	Domains []models.Domain `json:"domains"`
}

type Headers

type Headers map[string]bool

type IAM

type IAM struct {
	Settings Settings
	Service  iamiface.IAMAPI
}

type Settings

type Settings struct {
	Port                 string `envconfig:"port" default:"3000"`
	BrokerUsername       string `envconfig:"broker_username" required:"true"`
	BrokerPassword       string `envconfig:"broker_password" required:"true"`
	DatabaseUrl          string `envconfig:"database_url" required:"true"`
	Email                string `envconfig:"email" required:"true"`
	AcmeUrl              string `envconfig:"acme_url" required:"true"`
	Bucket               string `envconfig:"bucket" required:"true"`
	IamPathPrefix        string `envconfig:"iam_path_prefix" default:"/domains-broker/"`
	CloudFrontPrefix     string `envconfig:"cloudfront_prefix" default:""`
	AwsAccessKeyId       string `envconfig:"aws_access_key_id" required:"true"`
	AwsSecretAccessKey   string `envconfig:"aws_secret_access_key" required:"true"`
	AwsDefaultRegion     string `envconfig:"aws_default_region" required:"true"`
	ServerSideEncryption string `envconfig:"server_side_encryption"`
	APIAddress           string `envconfig:"api_address" required:"true"`
	ClientID             string `envconfig:"client_id" required:"true"`
	ClientSecret         string `envconfig:"client_secret" required:"true"`
	DefaultOrigin        string `envconfig:"default_origin" required:"true"`
	Schedule             string `envconfig:"schedule" default:"0 0 * * * *"`
	MaxRoutes            int    `envconfig:"max_routes" default:"24"`
	ALBPrefix            string `envconfig:"alb_prefix" default:"domains-broker"`
	RenewDays            int    `envconfig:"renew_days" default:"30"`

	/*
		Sets the logging level of the program. The higher the number, the less this will log.

		1 = log.Debug("Useful debugging information.")
		2 = log.Info("Something noteworthy happened!")
		3 = log.Error("Something failed but I'm not quitting.")
		4 = log.Fatal("Bye.")
	*/
	LogLevel int `envconfig:"log_level" default:"2"`
}

Jump to

Keyboard shortcuts

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