 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
	ScannedEntities map[string]map[string]string `json:"scanned_entities"`
	Allowlist       map[string][]string          `json:"allowlist"`
	Denylist        map[string][]string          `json:"denylist"`
	// TODO: add denylist functionality in cli
	HostUUID string `json:"host_uuid,omitempty" validate:"omitempty,uuid_rfc4122"`
	OrgUUID  string `json:"org_uuid,omitempty" validate:"omitempty,uuid_rfc4122"`
}
    Data represents the structure of the storage file.
type Storage ¶
Storage handles the loading and saving of the storage file.
func NewOrExistingStorage ¶
NewOrExistingStorage returns existing storage if the file exists, or creates a new one otherwise. When creating a new storage, it writes the initial structure to disk immediately. Additionally, this ensures a HostUUID is present; if missing, it is generated and saved.
func NewStorage ¶
NewStorage creates a new Storage instance.
 Click to show internal directories. 
   Click to hide internal directories.