softwareversionservice

package
v0.0.0-...-9f43f84 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AVAILABILITY                          = " availability"
	ENSURE                                = "Ensure "
	OSFILEPATH                            = "/etc/os-release"
	KERNELFILEPATH                        = "/proc/sys/kernel/osrelease"
	LINUX_VERSION_CHECK                   = "Linux Version Check"
	KERNEL_VERSION_CHECK                  = "Kernel Version Check"
	UBUNTU                                = "Ubuntu"
	RED_HAT                               = "Red Hat"
	AMAZON_LINUX                          = "Amazon Linux"
	SUSE_LINUX                            = "SUSE Linux"
	RED_HAT_SUPPORTED_VERSION             = 7
	KERNEL_SUPPORTED_VERSION              = "3.2"
	KERNEL_SUPPORTED_VERSION_AMAZON_LINUX = 5.10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ISoftwareVersionService

type ISoftwareVersionService interface {
	GetSoftwareVersionDetails(string) (*models.SoftwareVersionDetails, error)
}

type MockSoftwareVersionService

type MockSoftwareVersionService struct {
	GetSoftwareDetailsFunc func(string) (*models.SoftwareVersionDetails, error)
}

func (*MockSoftwareVersionService) GetSoftwareVersionDetails

func (msv *MockSoftwareVersionService) GetSoftwareVersionDetails(string) (*models.SoftwareVersionDetails, error)

type SoftwareVersionService

type SoftwareVersionService struct {
	CheckPath func(cmd string) (string, error)
	// contains filtered or unexported fields
}

func NewSoftwareVersionService

func NewSoftwareVersionService(logger logger.Logger, CheckPath func(cmd string) (string, error)) *SoftwareVersionService

func (*SoftwareVersionService) GetSoftwareVersionDetails

func (sv *SoftwareVersionService) GetSoftwareVersionDetails(query string) (*models.SoftwareVersionDetails, error)

Jump to

Keyboard shortcuts

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