cli

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, logger *zap.Logger, buildInfo *BuildInfo) error

Types

type ACMEConfig

type ACMEConfig struct {
	Email      string               `json:"email"`
	TOSAgreed  bool                 `json:"tos_agreed"`
	Resolvers  []string             `json:"resolvers,omitempty"`
	Storage    string               `json:"storage,omitempty"`
	ACMEDNS    *acmedns.Provider    `json:"acme-dns,omitempty"`
	Cloudflare *cloudflare.Provider `json:"cloudflare,omitempty"`
}

func (*ACMEConfig) DNSProvider added in v0.3.0

func (ac *ACMEConfig) DNSProvider() (certmagic.DNSProvider, error)

type BuildInfo

type BuildInfo struct {
	Version   string
	Commit    string
	Date      string
	GoVersion string
}

func (*BuildInfo) String

func (b *BuildInfo) String() string

type Config

type Config struct {
	Domain string      `json:"domain"`
	Scale  ScaleConfig `json:"scale"`
	ACME   ACMEConfig  `json:"acme"`
}

func (*Config) Merge

func (c *Config) Merge(r io.Reader) error

func (*Config) Valid

func (c *Config) Valid() error

func (*Config) Write

func (c *Config) Write(w io.Writer) error

type ScaleConfig

type ScaleConfig struct {
	APIKey     string `json:"api_key"`
	URL        string `json:"url"`
	SkipVerify bool   `json:"skip_verify"`
}

Jump to

Keyboard shortcuts

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