cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfiguration added in v1.1.0

func DefaultConfiguration(builders ...ConfigurationBuilder) *configuration

Returns the default cmd configuration and apply optional builders to it.

func Root

func Root() *cobra.Command

// Build the root command where everything start!

Types

type ConfigurationBuilder added in v1.1.0

type ConfigurationBuilder func(*configuration)

Configuration builder function used to initialize the configuration object (mostly used in tests).

func WithBalancer added in v1.1.0

func WithBalancer(domain, acmeEmail string) ConfigurationBuilder

Configure the balancer for the given domain and acme email.

func WithTestDefaults added in v1.1.0

func WithTestDefaults() ConfigurationBuilder

Configuration builder used to set some tests sensible defaults.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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