Documentation ¶
Overview ¶
Package config/config.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MinimumPatchedVersions = map[string][]MinimumPatchedVersion{
"8.1": {
{Maintenance: 21, Hotfix: 3},
{Maintenance: 25, Hotfix: 3},
{Maintenance: 26, Hotfix: 0},
},
"9.0": {
{Maintenance: 16, Hotfix: 7},
{Maintenance: 17, Hotfix: 5},
},
"9.1": {
{Maintenance: 11, Hotfix: 5},
{Maintenance: 12, Hotfix: 7},
{Maintenance: 13, Hotfix: 5},
{Maintenance: 14, Hotfix: 8},
{Maintenance: 16, Hotfix: 5},
{Maintenance: 17, Hotfix: 0},
},
"10.0": {
{Maintenance: 8, Hotfix: 8},
{Maintenance: 11, Hotfix: 4},
{Maintenance: 12, Hotfix: 5},
},
"10.1": {
{Maintenance: 3, Hotfix: 3},
{Maintenance: 4, Hotfix: 6},
{Maintenance: 5, Hotfix: 4},
{Maintenance: 6, Hotfix: 8},
{Maintenance: 7, Hotfix: 1},
{Maintenance: 8, Hotfix: 7},
{Maintenance: 9, Hotfix: 8},
{Maintenance: 10, Hotfix: 5},
{Maintenance: 11, Hotfix: 5},
{Maintenance: 12, Hotfix: 0},
},
"10.2": {
{Maintenance: 0, Hotfix: 2},
{Maintenance: 1, Hotfix: 1},
{Maintenance: 2, Hotfix: 4},
{Maintenance: 3, Hotfix: 12},
{Maintenance: 4, Hotfix: 10},
{Maintenance: 6, Hotfix: 1},
{Maintenance: 7, Hotfix: 3},
{Maintenance: 8, Hotfix: 0},
},
"10.2-gp": {
{Maintenance: 0, Hotfix: 3},
{Maintenance: 1, Hotfix: 2},
{Maintenance: 2, Hotfix: 5},
{Maintenance: 3, Hotfix: 13},
{Maintenance: 4, Hotfix: 16},
{Maintenance: 5, Hotfix: 6},
{Maintenance: 6, Hotfix: 3},
{Maintenance: 7, Hotfix: 8},
{Maintenance: 8, Hotfix: 3},
{Maintenance: 9, Hotfix: 1},
},
"11.0": {
{Maintenance: 0, Hotfix: 2},
{Maintenance: 1, Hotfix: 3},
{Maintenance: 2, Hotfix: 3},
{Maintenance: 3, Hotfix: 3},
{Maintenance: 4, Hotfix: 0},
},
"11.0-gp": {
{Maintenance: 0, Hotfix: 3},
{Maintenance: 1, Hotfix: 4},
{Maintenance: 2, Hotfix: 4},
{Maintenance: 3, Hotfix: 10},
{Maintenance: 4, Hotfix: 1},
},
"11.1": {
{Maintenance: 0, Hotfix: 2},
{Maintenance: 1, Hotfix: 0},
},
"11.1-gp": {
{Maintenance: 0, Hotfix: 3},
{Maintenance: 1, Hotfix: 1},
{Maintenance: 2, Hotfix: 3},
},
}
MinimumPatchedVersions represents the minimum patched versions for each PAN-OS feature release
Functions ¶
func ParseFlags ¶
ParseFlags parses command-line flags and returns a configuration object.
Types ¶
type AuthConfig ¶
type AuthConfig struct { Credentials struct { Panorama struct { Username string `yaml:"username"` Password string `yaml:"password"` } `yaml:"panorama"` Firewall struct { Username string `yaml:"username"` Password string `yaml:"password"` } `yaml:"firewall"` } `yaml:"auth"` }
AuthConfig represents the authentication configuration.
type Config ¶
type Config struct { Panorama []struct { Hostname string `yaml:"hostname"` } `yaml:"panorama"` Auth AuthConfig HostnameFilter string }
type DeviceEntry ¶
type DeviceEntry struct { Name string `xml:"name,attr"` Serial string `xml:"serial"` Hostname string `xml:"hostname"` IPAddress string `xml:"ip-address"` IPv6Address string `xml:"ipv6-address"` Model string `xml:"model"` SWVersion string `xml:"sw-version"` AppVersion string `xml:"app-version"` AVVersion string `xml:"av-version"` WildfireVersion string `xml:"wildfire-version"` ThreatVersion string `xml:"threat-version"` Result string `json:"result,omitempty"` }
DeviceEntry represents a single device entry from the Panorama response.
type DevicesResponse ¶
type DevicesResponse struct { XMLName xml.Name `xml:"response"` Status string `xml:"status,attr"` Result struct { Devices struct { Entries []DeviceEntry `xml:"entry"` } `xml:"devices"` } `xml:"result"` }
DevicesResponse represents the structure of the XML response from Panorama.
type Flags ¶
type Flags struct { DebugLevel int Concurrency int ConfigFile string SecretsFile string HostnameFilter string Verbose bool NoPanorama bool }
Flags represents the command-line flags
type Inventory ¶
type Inventory struct {
Inventory []InventoryDevice `yaml:"inventory"`
}
Inventory represents the structure of the inventory.yaml file
type InventoryDevice ¶ added in v1.0.1
type InventoryDevice struct { Hostname string `yaml:"hostname"` IPAddress string `yaml:"ip_address"` }
InventoryDevice represents a single device in the inventory
type MinimumPatchedVersion ¶
MinimumPatchedVersion represents the minimum patched version for a specific release
Click to show internal directories.
Click to hide internal directories.