Documentation
¶
Overview ¶
Package app represent cdnscli application for work with providers API's.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface {
// Provider returns the default provider for interacting with DNS providers.
Provider() providers.Provider
// GetProvider returns a provider by name. Returns an error if the provider is not found.
// If name is empty, returns the default provider.
GetProvider(name string) (providers.Provider, error)
// ProviderNames returns a list of all available provider names.
ProviderNames() []string
// DefaultProviderName returns the name of the default provider.
DefaultProviderName() string
// Printer returns a specialized API for pretty printing.
Printer() prettyprint.PrettyPrinter
}
App its main application interface.
type Option ¶
type Option func(c *app) error
Option options for app
func WithConfig ¶
WithConfig sets the application configuration
func WithOutputFormat ¶
func WithOutputFormat(output prettyprint.OutputFormat) Option
WithOutputFormat sets an app's output format
func WithProvider ¶
WithProvider sets the provider name to use
Click to show internal directories.
Click to hide internal directories.