Documentation
¶
Index ¶
- func ListUsers(authToken string) ([]entity.User, error)
- func ListUsersWithIndex(authToken string, page, perPage int) ([]entity.User, error)
- type Pages
- type Service
- func (s Service) Delete(sha256, authToken string) error
- func (s Service) Download(sha256, authToken string) (*bytes.Buffer, error)
- func (s Service) FileExists(sha256 string) (bool, error)
- func (s Service) GetFile(sha256 string, file *entity.File) error
- func (s Service) GetFileStatus(sha256 string) (int, error)
- func (s Service) ListFiles(authToken string, page int) (*Pages, error)
- func (s Service) Rescan(sha256, authToken, preferredOS string, enableDetonation bool, timeout int) error
- func (s Service) Scan(filepath string, authToken, preferredOS string, enableDetonation bool, ...) (*entity.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pages ¶
type Pages struct {
Page int `json:"page"`
PerPage int `json:"per_page"`
PageCount int `json:"page_count"`
TotalCount int `json:"total_count"`
Items any `json:"items"`
}
Pages represents a paginated list of data items.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (Service) FileExists ¶
FileExists determines file existence. TODO: use HEAD instead.
func (Service) GetFileStatus ¶
GetFileStatus retrieves only the status field of a file.
Click to show internal directories.
Click to hide internal directories.