firmware

package
v0.0.0-...-b56da86 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Firmware

func Firmware(target string, insecureTLS bool, fw FW, apply bool, force bool) error

Firmware checks target Calnex firmware version and upgrades if apply is specified

func InProgress

func InProgress(target string, api *calnexAPI.API) (bool, error)

InProgress checks if Calnex firmware upgrade is in progress

func ShouldUpgrade

func ShouldUpgrade(target string, api *calnexAPI.API, fw FW, force bool) (bool, error)

ShouldUpgrade checks if Calnex firmware needs an upgrade

Types

type FW

type FW interface {
	// Version returns latest fw version available
	Version() (*version.Version, error)
	// Path returns local FW path
	Path() (string, error)
}

FW is an interface of the Firmware Version

type OSSFW

type OSSFW struct {
	Filepath string
}

OSSFW is an open source implementation of the FW interface

func (*OSSFW) Path

func (f *OSSFW) Path() (string, error)

Path downloads latest firmware version

func (*OSSFW) Version

func (f *OSSFW) Version() (*version.Version, error)

Version downloads latest firmware version sentinel_fw_v2.13.1.0.5583D-20210924.tar

Jump to

Keyboard shortcuts

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