Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatADGString ¶
Types ¶
type DirectoryPlugin ¶
type DirectoryPlugin struct { AllowList []string // contains filtered or unexported fields }
func (*DirectoryPlugin) Add ¶
func (plug *DirectoryPlugin) Add(path string) error
func (*DirectoryPlugin) SetAllowList ¶
func (plug *DirectoryPlugin) SetAllowList(allowList []string)
func (*DirectoryPlugin) Sha1ADG ¶
func (plug *DirectoryPlugin) Sha1ADG(m map[string]string)
func (*DirectoryPlugin) Sha256ADG ¶
func (plug *DirectoryPlugin) Sha256ADG(m map[string]string)
func (*DirectoryPlugin) Store ¶
func (plug *DirectoryPlugin) Store(envelope *Envelope) error
type Factory ¶
type FilePlugin ¶
type FilePlugin struct { AllowList []string // contains filtered or unexported fields }
func (*FilePlugin) Add ¶
func (plug *FilePlugin) Add(filePath string) error
func (*FilePlugin) SetAllowList ¶
func (plug *FilePlugin) SetAllowList(allowList []string)
func (*FilePlugin) Sha1ADG ¶
func (plug *FilePlugin) Sha1ADG(m map[string]string)
func (*FilePlugin) Sha256ADG ¶
func (plug *FilePlugin) Sha256ADG(m map[string]string)
func (*FilePlugin) Store ¶
func (plug *FilePlugin) Store(envelope *Envelope) error
type Plugin ¶
type Plugin interface { Add(path string) error Store(envelope *Envelope) error Sha1ADG(map[string]string) Sha256ADG(map[string]string) SetAllowList([]string) }
func NewDirectoryPlugin ¶
func NewDirectoryPlugin() Plugin
func NewFilePlugin ¶
func NewFilePlugin() Plugin
func NewPosixPlugin ¶
func NewPosixPlugin() Plugin
type Posix ¶
type Posix struct { ATime string `json:"atime,omitempty"` CTime string `json:"ctime,omitempty"` CreationTime string `json:"creation_time,omitempty"` ExtendedAttributes string `json:"extended_attributes,omitempty"` FileDeviceID string `json:"file_device_id,omitempty"` FileFlags string `json:"file_flags,omitempty"` FileInode string `json:"file_inode,omitempty"` FileSystemID string `json:"file_system_id,omitempty"` FileType string `json:"file_type,omitempty"` HardLinkCount string `json:"hard_link_count,omitempty"` MTime string `json:"mtime,omitempty"` MetadataCTime string `json:"metadata_ctime,omitempty"` OwnerGID string `json:"owner_gid,omitempty"` OwnerUID string `json:"owner_uid,omitempty"` Permissions string `json:"permissions,omitempty"` Size string `json:"size,omitempty"` }
type PosixPlugin ¶
type PosixPlugin struct { AllowList []string // contains filtered or unexported fields }
func (*PosixPlugin) Add ¶
func (p *PosixPlugin) Add(path string) error
func (*PosixPlugin) SetAllowList ¶
func (plug *PosixPlugin) SetAllowList(allowList []string)
func (*PosixPlugin) Sha1ADG ¶
func (p *PosixPlugin) Sha1ADG(_ map[string]string)
func (*PosixPlugin) Sha256ADG ¶
func (p *PosixPlugin) Sha256ADG(_ map[string]string)
func (*PosixPlugin) Store ¶
func (p *PosixPlugin) Store(envelope *Envelope) error
Click to show internal directories.
Click to hide internal directories.