Documentation ¶
Index ¶
Constants ¶
View Source
const (
VendorEquinix = "equinix"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶ added in v0.0.16
type App struct { // firmware-syncer configuration. Config *config.Configuration // Logger is the app logger Logger *logrus.Logger // contains filtered or unexported fields }
App holds attributes for the firmware-syncer application
func New ¶
func New(ctx context.Context, inventoryKind types.InventoryKind, cfgFile, logLevel string) (*App, error)
nolint:gocyclo // Instantiating new app is cyclomatic New returns a new instance of the firmware-syncer app
func (*App) LoadConfiguration ¶ added in v0.0.16
func (a *App) LoadConfiguration(cfgFile string, inventoryKind types.InventoryKind) error
nolint:gocyclo // config load is cyclomatic LoadConfiguration loads application configuration
Reads in the cfgFile when available and overrides from environment variables.
Click to show internal directories.
Click to hide internal directories.