package
1.65.4
Repository: https://github.com/untangle/golang-shared.git
Documentation: pkg.go.dev

# Functions

GetLicenseFileDoesNotExistStr returns the error string for license file does not exist for comparison reasons @return string of the license file does not exist error.
LoadServiceStates retrieves the previously saved service state @param fileLocation - the location of the service states file @return []ServiceState - an array of service states, loaded from the file @return error - associated errors.
Returns a new LicenseManager instance pointer.
ReadCommandFileAndGetStatus reads a given command file and gets the status @param name - service to look for command file for @return bool - if service is enabled or not @return error - any associated error, nil if none.
RefreshLicenses restart the client licence service.

# Constants

LicenseFileDoesNotExistStr is the string to check if licenses should be reloaded when status is returned.
Types of commands that we accept.
Types of commands that we accept.

# Variables

ServicesAllowedStatesLocation is the location where we put where services are enabled/disabled Keep it as a var to be used for monkey patching in unit tests.

# Structs

Config contains config options used in the license manager.
License is the struct representing each individual license.
LicenseInfo represents the json returned from license server.
No description provided by the author
Service struct is used to store state/hook of each service.
ServiceHook struct is used to indicate start/stop/enabled hooks for services.
ServiceState is used for setting the service state.

# Type aliases

State is an enum used for indicating service state.