ossec

package
v1.67.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenOperation

type OpenOperation struct {
	dyngo.Operation
	// contains filtered or unexported fields
}

OpenOperation type embodies any kind of function calls that will result in a call to an open(2) syscall

type OpenOperationArgs

type OpenOperationArgs struct {
	// Path is the path to the file to be opened
	Path string
	// Flags are the flags passed to the open(2) syscall
	Flags int
	// Perms are the permissions passed to the open(2) syscall if the creation of a file is required
	Perms fs.FileMode
}

OpenOperationArgs is the arguments for an open operation

func (OpenOperationArgs) IsArgOf

func (OpenOperationArgs) IsArgOf(*OpenOperation)

type OpenOperationRes

type OpenOperationRes[File any] struct {
	// File is the file descriptor returned by the open(2) syscall
	File *File
	// Err is the error returned by the function
	Err *error
}

OpenOperationRes is the result of an open operation

func (OpenOperationRes[File]) IsResultOf

func (OpenOperationRes[File]) IsResultOf(*OpenOperation)

Jump to

Keyboard shortcuts

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