fvuls

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package fvuls ...

Package fvuls ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCpeInput

type AddCpeInput struct {
	ServerID int64  `json:"serverID"`
	CpeName  string `json:"cpeName"`
	IsURI    bool   `json:"isURI"`
}

AddCpeInput ...

type AddCpeOutput

type AddCpeOutput struct {
	Server ServerChild `json:"server"`
}

AddCpeOutput ...

type Client

type Client struct {
	Token             string
	Proxy             string
	FvulsScanEndpoint string
	FvulsRestEndpoint string
}

Client ...

func NewClient

func NewClient(token string, proxy string) *Client

NewClient ...

func (Client) CreatePseudoServer

func (f Client) CreatePseudoServer(ctx context.Context, name string) (serverDetail ServerDetailOutput, err error)

CreatePseudoServer ...

func (Client) GetServerByUUID

func (f Client) GetServerByUUID(ctx context.Context, uuid string) (server ServerDetailOutput, err error)

GetServerByUUID ...

func (Client) ListUploadedCPE

func (f Client) ListUploadedCPE(ctx context.Context, serverID int64) (uploadedCPEs []string, err error)

ListUploadedCPE ...

func (Client) UploadCPE

func (f Client) UploadCPE(ctx context.Context, cpeURI string, serverID int64) (err error)

UploadCPE ...

func (Client) UploadToFvuls

func (f Client) UploadToFvuls(serverUUID string, groupID int64, tags []string, scanResultJSON []byte) error

UploadToFvuls ...

type CreatePseudoServerInput

type CreatePseudoServerInput struct {
	ServerName string `json:"serverName"`
}

CreatePseudoServerInput ...

type ListCpesInput

type ListCpesInput struct {
	Page     int   `json:"page"`
	Limit    int   `json:"limit"`
	ServerID int64 `json:"filterServerID"`
}

ListCpesInput ...

type ListCpesOutput

type ListCpesOutput struct {
	Paging  Paging    `json:"paging"`
	PkgCpes []PkgCpes `json:"pkgCpes"`
}

ListCpesOutput ...

type Paging

type Paging struct {
	Page      int `json:"page"`
	Limit     int `json:"limit"`
	TotalPage int `json:"totalPage"`
}

Paging ...

type PkgCpes

type PkgCpes struct {
	CpeFS string `json:"cpeFS"`
}

PkgCpes ...

type ServerChild

type ServerChild struct {
	ServerName string `json:"serverName"`
}

ServerChild ...

type ServerDetailOutput

type ServerDetailOutput struct {
	ServerID   int64  `json:"id"`
	ServerName string `json:"serverName"`
	ServerUUID string `json:"serverUuid"`
}

ServerDetailOutput ...

Jump to

Keyboard shortcuts

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