Documentation
¶
Index ¶
- Constants
- Variables
- func InitKubescapeHttpClient() httputils.IHttpClient
- func InitReporterHttpClient() httputils.IHttpClient
- func InitVulnScanHttpClient() httputils.IHttpClient
- func LoadEnvironmentVariables() (err error)
- func MapToString(m map[string]interface{}) []string
- func NewJobTracking(reporter reporterlib.IReporter) *apis.JobTracking
- type ClientMock
- type CredStruct
- type SessionObj
Constants ¶
View Source
const ( ReleaseBuildTagEnvironmentVariable = "RELEASE" NamespaceEnvironmentVariable = "NAMESPACE" ConfigEnvironmentVariable = "CONFIG" PortEnvironmentVariable = "PORT" )
View Source
const KubescapeRequestPathV1 = "v1/scan"
View Source
const KubescapeRequestStatusV1 = "v1/status"
View Source
const KubescapeScanV1 = "scanV1"
Variables ¶
View Source
var ( Namespace string = "default" // default namespace RestAPIPort string = "4002" // default port )
View Source
var ClusterConfig = &utilsmetadata.ClusterConfig{}
View Source
var ReporterHttpClient httputils.IHttpClient
Functions ¶
func InitKubescapeHttpClient ¶
func InitKubescapeHttpClient() httputils.IHttpClient
func InitReporterHttpClient ¶
func InitReporterHttpClient() httputils.IHttpClient
func InitVulnScanHttpClient ¶
func InitVulnScanHttpClient() httputils.IHttpClient
func LoadEnvironmentVariables ¶
func LoadEnvironmentVariables() (err error)
func MapToString ¶
func NewJobTracking ¶
func NewJobTracking(reporter reporterlib.IReporter) *apis.JobTracking
Types ¶
type ClientMock ¶
type ClientMock struct { }
type CredStruct ¶
type CredStruct struct { User string `json:"user"` Password string `json:"password"` Customer string `json:"customer"` }
CredStruct holds the various credentials needed to do login into CA BE
type SessionObj ¶
type SessionObj struct { Command apis.Command `json:"command"` Reporter reporterlib.IReporter `json:"reporter"` ErrChan chan error `json:"-"` }
Commands list of commands received from websocket
func NewSessionObj ¶
func NewSessionObj(command *apis.Command, message, parentID, jobID string, actionNumber int) *SessionObj
func (*SessionObj) WatchErrors ¶
func (sessionObj *SessionObj) WatchErrors()
Click to show internal directories.
Click to hide internal directories.