Documentation
¶
Overview ¶
Package fvuls ...
Package fvuls ...
Index ¶
- type AddCpeInput
- type AddCpeOutput
- type Client
- func (f Client) CreatePseudoServer(ctx context.Context, name string) (serverDetail ServerDetailOutput, err error)
- func (f Client) GetServerByUUID(ctx context.Context, uuid string) (server ServerDetailOutput, err error)
- func (f Client) ListUploadedCPE(ctx context.Context, serverID int64) (uploadedCPEs []string, err error)
- func (f Client) UploadCPE(ctx context.Context, cpeURI string, serverID int64) (err error)
- func (f Client) UploadToFvuls(serverUUID string, groupID int64, tags []string, scanResultJSON []byte) error
- type CreatePseudoServerInput
- type ListCpesInput
- type ListCpesOutput
- type Paging
- type PkgCpes
- type ServerChild
- type ServerDetailOutput
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 ¶
Client ...
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 ...
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 ¶
ListCpesOutput ...
type Paging ¶
type Paging struct { Page int `json:"page"` Limit int `json:"limit"` TotalPage int `json:"totalPage"` }
Paging ...
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 ...
Click to show internal directories.
Click to hide internal directories.