Documentation ¶
Index ¶
Constants ¶
View Source
const ( AddRequest requestType = "add" DeleteRequest requestType = "delete" )
Variables ¶
This section is empty.
Functions ¶
func HandleAuditConfig ¶
func HandleAuditConfig(ctx context.Context, kubeClient client.Client, scanApiStore ScanApiStore, auditConfig v1alpha2.MondooAuditConfig) error
HandleAuditConfig adds the scan API service URL, token and integration MRN to the scan API store if the provided MondooAuditConfig has k8s resources enabled.
Types ¶
type ClientConfiguration ¶
type ClientConfiguration struct { Client mondooclient.Client IntegrationMrn string }
type ScanApiStore ¶
type ScanApiStore interface { Start() // Add adds a scan api url to the store. The operatorion is idempotent. Add(url, token, integrationMrn string) // Delete deletes a scan api url from the store. The operatorion is idempotent. Delete(url string) // GetAll returns all scan api urls. GetAll() []ClientConfiguration }
func NewScanApiStore ¶
func NewScanApiStore(ctx context.Context) ScanApiStore
Click to show internal directories.
Click to hide internal directories.