Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Latest commit

 

History

History

streaming_api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Streaming API

Prerequisites

Build

git clone https://github.com/deepfence/deepfence_runtime_api
cd deepfence_runtime_api/scripts/streaming_api
go build -o streaming-api .

Run

./streaming-api --help
  • Streaming hosts
./streaming-api \
  --management-console-url=deepfence.customer.com \
  --node-type=hosts \
  --deepfence-key=xxxxxx
  • Stream hosts, run vulnerability scan on every new host
./streaming-api \
  --management-console-url=deepfence.customer.com \
  --node-type=hosts \
  --deepfence-key=xxxxxx \
  --vulnerability-scan=true
  • Stream container images, run vulnerability scan on every new container image
./streaming-api \
  --management-console-url=deepfence.customer.com \
  --node-type=containers-by-image \
  --deepfence-key=xxxxxx \
  --vulnerability-scan=true