apitypes

package
v0.0.0-...-bfb5a2a Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package apitypes provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Code    int32  `json:"code"`
	Message string `json:"message"`
}

Error defines model for Error.

type File

type File struct {
	Ctime    *int64  `json:"ctime,omitempty"`
	FileMode uint32  `json:"fileMode"`
	Group    *uint32 `json:"group,omitempty"`
	Md5      *string `json:"md5,omitempty"`
	Mtime    int64   `json:"mtime"`
	Owner    *uint32 `json:"owner,omitempty"`
	Path     string  `json:"path"`
	Sha1     *string `json:"sha1,omitempty"`
	Sha256   *string `json:"sha256,omitempty"`
	Size     int64   `json:"size"`
}

File defines model for File.

type HashQuery

type HashQuery struct {
	Hash string `json:"hash"`
	Path string `json:"path"`
}

HashQuery defines model for HashQuery.

type KnownFile

type KnownFile struct {
	KnownPath *string              `json:"knownPath,omitempty"`
	Md5       *string              `json:"md5,omitempty"`
	Path      string               `json:"path"`
	Sha1      *string              `json:"sha1,omitempty"`
	Sha256    *string              `json:"sha256,omitempty"`
	Size      *int64               `json:"size,omitempty"`
	Status    datastore.FileStatus `json:"status"`
}

KnownFile defines model for KnownFile.

type NewReportRequest

type NewReportRequest struct {
	Files       []File     `json:"files"`
	Hostname    string     `json:"hostname"`
	MachineId   string     `json:"machineId"`
	ReportRunId *uuid.UUID `json:"reportRunId,omitempty"`
}

NewReportRequest defines model for NewReportRequest.

type NewReportResponse

type NewReportResponse struct {
	Files []ReportFile `json:"files"`
	Id    uuid.UUID    `json:"id"`
}

NewReportResponse defines model for NewReportResponse.

type QueryByHashBatchJSONBody

type QueryByHashBatchJSONBody = []HashQuery

QueryByHashBatchJSONBody defines parameters for QueryByHashBatch.

type QueryByHashBatchJSONRequestBody

type QueryByHashBatchJSONRequestBody = QueryByHashBatchJSONBody

QueryByHashBatchJSONRequestBody defines body for QueryByHashBatch for application/json ContentType.

type ReportFile

type ReportFile struct {
	Error  *string              `json:"error,omitempty"`
	Path   string               `json:"path"`
	Status datastore.FileStatus `json:"status"`
}

ReportFile defines model for ReportFile.

type SubmitReportJSONRequestBody

type SubmitReportJSONRequestBody = NewReportRequest

SubmitReportJSONRequestBody defines body for SubmitReport for application/json ContentType.

Jump to

Keyboard shortcuts

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