Documentation ¶
Index ¶
- Constants
- Variables
- func GetDefaultPath(name string) string
- func HttpGetter(httpClient *http.Client, fullURL string) (string, error)
- func JSONDecoder(origin string) *json.Decoder
- func SaveFrameworkInFile(framework *reporthandling.Framework, path string) error
- type ArmoAPI
- type DownloadReleasedPolicy
- type IBackend
- type IExceptionsGetter
- type IPolicyGetter
- type LoadPolicy
- type TenantResponse
Constants ¶
View Source
const DefaultLocalStore = ".kubescape"
======================================================================================================================= ============================================== LoadPolicy ============================================================= =======================================================================================================================
Variables ¶
View Source
var ( // ATTENTION!!! // Changes in this URLs variable names, or in the usage is affecting the build process! BE CAREFULL ArmoBEURL = "eggdashbe.eudev3.cyberarmorsoft.com" ArmoERURL = "report.eudev3.cyberarmorsoft.com" ArmoFEURL = "armoui.eudev3.cyberarmorsoft.com" )
Functions ¶
func GetDefaultPath ¶
func JSONDecoder ¶
JSONDecoder returns JSON decoder for given string
func SaveFrameworkInFile ¶
func SaveFrameworkInFile(framework *reporthandling.Framework, path string) error
Types ¶
type ArmoAPI ¶
type ArmoAPI struct {
// contains filtered or unexported fields
}
Armo API for downloading policies
func NewArmoAPI ¶
func NewArmoAPI() *ArmoAPI
func (*ArmoAPI) GetCustomerGUID ¶ added in v1.0.42
func (armoAPI *ArmoAPI) GetCustomerGUID(customerGUID string) (*TenantResponse, error)
func (*ArmoAPI) GetExceptions ¶ added in v1.0.36
func (armoAPI *ArmoAPI) GetExceptions(customerGUID, clusterName string) ([]armotypes.PostureExceptionPolicy, error)
func (*ArmoAPI) GetFramework ¶
func (armoAPI *ArmoAPI) GetFramework(name string) (*reporthandling.Framework, error)
type DownloadReleasedPolicy ¶
type DownloadReleasedPolicy struct {
// contains filtered or unexported fields
}
Download released version
func NewDownloadReleasedPolicy ¶
func NewDownloadReleasedPolicy() *DownloadReleasedPolicy
func (*DownloadReleasedPolicy) GetFramework ¶
func (drp *DownloadReleasedPolicy) GetFramework(name string) (*reporthandling.Framework, error)
type IBackend ¶ added in v1.0.65
type IBackend interface {
GetCustomerGUID(customerGUID string) (*TenantResponse, error)
}
type IExceptionsGetter ¶ added in v1.0.44
type IExceptionsGetter interface {
GetExceptions(customerGUID, clusterName string) ([]armotypes.PostureExceptionPolicy, error)
}
type IPolicyGetter ¶
type IPolicyGetter interface {
GetFramework(name string) (*reporthandling.Framework, error)
}
type LoadPolicy ¶
type LoadPolicy struct {
// contains filtered or unexported fields
}
Load policies from a local repository
func NewLoadPolicy ¶
func NewLoadPolicy(filePath string) *LoadPolicy
func (*LoadPolicy) GetExceptions ¶ added in v1.0.36
func (lp *LoadPolicy) GetExceptions(customerGUID, clusterName string) ([]armotypes.PostureExceptionPolicy, error)
func (*LoadPolicy) GetFramework ¶
func (lp *LoadPolicy) GetFramework(frameworkName string) (*reporthandling.Framework, error)
Click to show internal directories.
Click to hide internal directories.