app

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

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.

func (*App) SyncFirmwares added in v0.0.16

func (a *App) SyncFirmwares(ctx context.Context) error

SyncFirmwares syncs all firmware files from the configured providers

Jump to

Keyboard shortcuts

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