Documentation ¶
Index ¶
- Constants
- Variables
- func GetStartupActions(config config.IConfig) []apis.Command
- func HandleKubescapeResponse(ctx context.Context, config config.IConfig, sendReport bool, ...) (bool, *time.Duration)
- func NewRegistryScan(config config.IConfig, k8sAPI *k8sinterface.KubernetesApi) registryScan
- func NewRegistryScanConfig(registryName string) *registryScanConfig
- type ActionHandler
- type AuthMethods
- type CommandResponseData
- type HandleCommandResponseCallBack
- type ImageScanConfig
- type MainHandler
- func (mainHandler *MainHandler) EventWorkerPool() *ants.PoolWithFunc
- func (mainHandler *MainHandler) HandleCommandResponse(ctx context.Context)
- func (mainHandler *MainHandler) HandleImageScanningScopedRequest(ctx context.Context, sessionObj *utils.SessionObj)
- func (mainHandler *MainHandler) HandleScopedRequest(ctx context.Context, sessionObj *utils.SessionObj)
- func (mainHandler *MainHandler) HandleSingleRequest(ctx context.Context, sessionObj *utils.SessionObj) error
- func (mainHandler *MainHandler) HandleWatchers(ctx context.Context)
- func (mainHandler *MainHandler) SendReports(ctx context.Context, period time.Duration)
- func (mainHandler *MainHandler) SetupContinuousScanning(ctx context.Context) error
- func (h *MainHandler) StartContinuousScanning(_ context.Context) error
- func (mainHandler *MainHandler) StartupTriggerActions(ctx context.Context, actions []apis.Command)
- type RepositoriesAndTagsParams
Constants ¶
View Source
const ( WaitTimeForKubescapeScanResponse = 40 KubescapeCronJobTemplateName = "kubescape-cronjob-template" )
View Source
const (
KubescapeResponse string = "KubescapeResponse"
)
View Source
const (
MaxLimitationInsertToCommandResponseChannelGoRoutine = 10
)
View Source
const VulnScanCronjobTemplateName = "kubevuln-cronjob-template"
Variables ¶
View Source
var KubescapeHttpClient httputils.IHttpClient
View Source
var VulnScanHttpClient httputils.IHttpClient
Functions ¶
func HandleKubescapeResponse ¶
func NewRegistryScan ¶
func NewRegistryScan(config config.IConfig, k8sAPI *k8sinterface.KubernetesApi) registryScan
func NewRegistryScanConfig ¶
func NewRegistryScanConfig(registryName string) *registryScanConfig
Types ¶
type ActionHandler ¶
type ActionHandler struct {
// contains filtered or unexported fields
}
func NewActionHandler ¶
func NewActionHandler(config config.IConfig, k8sAPI *k8sinterface.KubernetesApi, sessionObj *utils.SessionObj, commandResponseChannel *commandResponseChannelData) *ActionHandler
CreateWebSocketHandler Create ws-handler obj
type AuthMethods ¶
type AuthMethods string
type CommandResponseData ¶
type CommandResponseData struct {
// contains filtered or unexported fields
}
type ImageScanConfig ¶ added in v0.2.6
type ImageScanConfig struct {
// contains filtered or unexported fields
}
type MainHandler ¶
type MainHandler struct {
// contains filtered or unexported fields
}
func NewMainHandler ¶
func NewMainHandler(config config.IConfig, k8sAPI *k8sinterface.KubernetesApi) *MainHandler
CreateWebSocketHandler Create ws-handler obj
func (*MainHandler) EventWorkerPool ¶ added in v0.1.39
func (mainHandler *MainHandler) EventWorkerPool() *ants.PoolWithFunc
func (*MainHandler) HandleCommandResponse ¶ added in v0.1.39
func (mainHandler *MainHandler) HandleCommandResponse(ctx context.Context)
func (*MainHandler) HandleImageScanningScopedRequest ¶ added in v0.2.4
func (mainHandler *MainHandler) HandleImageScanningScopedRequest(ctx context.Context, sessionObj *utils.SessionObj)
HandleScopedRequest handle a request of a scope e.g. all workloads in a namespace
func (*MainHandler) HandleScopedRequest ¶
func (mainHandler *MainHandler) HandleScopedRequest(ctx context.Context, sessionObj *utils.SessionObj)
HandleScopedRequest handle a request of a scope e.g. all workloads in a namespace
func (*MainHandler) HandleSingleRequest ¶
func (mainHandler *MainHandler) HandleSingleRequest(ctx context.Context, sessionObj *utils.SessionObj) error
func (*MainHandler) HandleWatchers ¶ added in v0.1.21
func (mainHandler *MainHandler) HandleWatchers(ctx context.Context)
func (*MainHandler) SendReports ¶ added in v0.2.31
func (mainHandler *MainHandler) SendReports(ctx context.Context, period time.Duration)
func (*MainHandler) SetupContinuousScanning ¶ added in v0.1.70
func (mainHandler *MainHandler) SetupContinuousScanning(ctx context.Context) error
SetupContinuousScanning sets up the continuous cluster scanning function
func (*MainHandler) StartContinuousScanning ¶ added in v0.1.70
func (h *MainHandler) StartContinuousScanning(_ context.Context) error
func (*MainHandler) StartupTriggerActions ¶
func (mainHandler *MainHandler) StartupTriggerActions(ctx context.Context, actions []apis.Command)
HandlePostmanRequest Parse received commands and run the command
type RepositoriesAndTagsParams ¶ added in v0.0.66
type RepositoriesAndTagsParams struct { CustomerGUID string `json:"customerGUID"` RegistryName string `json:"registryName"` JobID string `json:"jobID"` Repositories []armotypes.Repository `json:"repositories"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.