Documentation
¶
Index ¶
- Constants
- Variables
- func Marshal[T any](data T) (io.Reader, error)
- func Unmarshal[T any](data io.ReadCloser) (T, error)
- type Action
- type AdvancedQueries
- func (q *AdvancedQueries) Enable(val bool) *AdvancedQueries
- func (q *AdvancedQueries) WithDataFormat(f *Format) *AdvancedQueries
- func (q *AdvancedQueries) WithDataRateFormat(f *Format) *AdvancedQueries
- func (q *AdvancedQueries) WithNumberFormat(f *Format) *AdvancedQueries
- func (q *AdvancedQueries) WithNumberRateFormat(f *Format) *AdvancedQueries
- func (q *AdvancedQueries) WithPercentFormat(f *Format) *AdvancedQueries
- func (q *AdvancedQueries) WithTimeFormat(f *Format) *AdvancedQueries
- type Alert
- type AlertInterface
- type AlertLabelDescriptorV2
- type AlertLinkV2
- type AlertLinkV2Type
- type AlertMetricDescriptorV2
- type AlertScopeV2
- type AlertV2Common
- type AlertV2ConfigDowntime
- type AlertV2ConfigEvent
- type AlertV2ConfigMetric
- type AlertV2ConfigPrometheus
- type AlertV2Downtime
- type AlertV2DowntimeInterface
- type AlertV2Event
- type AlertV2EventInterface
- type AlertV2Interface
- type AlertV2Metric
- type AlertV2MetricInterface
- type AlertV2Prometheus
- type AlertV2PrometheusInterface
- type AlertV2Severity
- type AlertV2Type
- type AxesConfiguration
- type Base
- type Bottom
- type CaptureConfigV2
- type Client
- func (client *Client) CreateAlert(ctx context.Context, alert Alert) (Alert, error)
- func (client *Client) CreateAlertURL() string
- func (client *Client) CreateAlertV2Downtime(ctx context.Context, alert AlertV2Downtime) (AlertV2Downtime, error)
- func (client *Client) CreateAlertV2Event(ctx context.Context, alert AlertV2Event) (AlertV2Event, error)
- func (client *Client) CreateAlertV2Metric(ctx context.Context, alert AlertV2Metric) (AlertV2Metric, error)
- func (client *Client) CreateAlertV2Prometheus(ctx context.Context, alert AlertV2Prometheus) (AlertV2Prometheus, error)
- func (client *Client) CreateCloudAccountMonitor(ctx context.Context, provider *CloudAccountMonitor) (*CloudAccountMonitor, error)
- func (client *Client) CreateCloudAccountSecure(ctx context.Context, cloudAccount *CloudAccountSecure) (*CloudAccountSecure, error)
- func (client *Client) CreateCustomRole(ctx context.Context, cr *CustomRole) (*CustomRole, error)
- func (client *Client) CreateCustomRoleURL() string
- func (client *Client) CreateDashboard(ctx context.Context, dashboard *Dashboard) (*Dashboard, error)
- func (client *Client) CreateGroupMapping(ctx context.Context, gm *GroupMapping) (*GroupMapping, error)
- func (client *Client) CreateGroupMappingURL() string
- func (client *Client) CreateList(ctx context.Context, list List) (List, error)
- func (client *Client) CreateListURL() string
- func (client *Client) CreateMacro(ctx context.Context, macro Macro) (Macro, error)
- func (client *Client) CreateMacroURL() string
- func (client *Client) CreateNotificationChannel(ctx context.Context, channel NotificationChannel) (NotificationChannel, error)
- func (client *Client) CreateOrUpdatePostureZone(ctx context.Context, r *PostureZoneRequest) (*PostureZone, error)
- func (client *Client) CreatePolicy(ctx context.Context, policy Policy) (Policy, error)
- func (client *Client) CreatePolicyURL() string
- func (client *Client) CreateRule(ctx context.Context, rule Rule) (Rule, error)
- func (client *Client) CreateRuleURL() string
- func (client *Client) CreateScanningPolicy(ctx context.Context, scanningPolicy ScanningPolicy) (ScanningPolicy, error)
- func (client *Client) CreateScanningPolicyAssignmentList(ctx context.Context, scanningPolicyAssignmentList ScanningPolicyAssignmentList) (ScanningPolicyAssignmentList, error)
- func (client *Client) CreateTeam(ctx context.Context, team Team) (Team, error)
- func (client *Client) CreateTeamServiceAccount(ctx context.Context, account *TeamServiceAccount) (*TeamServiceAccount, error)
- func (client *Client) CreateTeamServiceAccountURL() string
- func (client *Client) CreateUser(ctx context.Context, user *User) (*User, error)
- func (client *Client) CreateUsersURL() string
- func (client *Client) CreateVulnerabilityException(ctx context.Context, listID string, exception *VulnerabilityException) (*VulnerabilityException, error)
- func (client *Client) CreateVulnerabilityExceptionList(ctx context.Context, list *VulnerabilityExceptionList) (*VulnerabilityExceptionList, error)
- func (client *Client) CreateVulnerabilityExceptionListURL() string
- func (client *Client) CreateVulnerabilityExceptionURL(listID string) string
- func (client *Client) CurrentTeamID(ctx context.Context) (int, error)
- func (client *Client) DeleteAlert(ctx context.Context, alertID int) error
- func (client *Client) DeleteAlertURL(alertID int) string
- func (client *Client) DeleteAlertV2Downtime(ctx context.Context, alertID int) error
- func (client *Client) DeleteAlertV2Event(ctx context.Context, alertID int) error
- func (client *Client) DeleteAlertV2Metric(ctx context.Context, alertID int) error
- func (client *Client) DeleteAlertV2Prometheus(ctx context.Context, alertID int) error
- func (client *Client) DeleteCloudAccountMonitor(ctx context.Context, id int) error
- func (client *Client) DeleteCloudAccountSecure(ctx context.Context, accountID string) error
- func (client *Client) DeleteCustomRole(ctx context.Context, id int) error
- func (client *Client) DeleteCustomRoleURL(id int) string
- func (client *Client) DeleteDashboard(ctx context.Context, ID int) error
- func (client *Client) DeleteGroupMapping(ctx context.Context, id int) error
- func (client *Client) DeleteGroupMappingURL(id int) string
- func (client *Client) DeleteList(ctx context.Context, id int) error
- func (client *Client) DeleteListURL(id int) string
- func (client *Client) DeleteMacro(ctx context.Context, id int) error
- func (client *Client) DeleteMacroURL(id int) string
- func (client *Client) DeleteNotificationChannel(ctx context.Context, id int) error
- func (client *Client) DeletePolicy(ctx context.Context, policyID int) error
- func (client *Client) DeletePolicyURL(policyID int) string
- func (client *Client) DeletePostureZone(ctx context.Context, id int) error
- func (client *Client) DeleteRule(ctx context.Context, ruleID int) error
- func (client *Client) DeleteRuleURL(ruleID int) string
- func (client *Client) DeleteScanningPolicyAssignmentList(ctx context.Context, scanningPolicyAssignmentList ScanningPolicyAssignmentList) error
- func (client *Client) DeleteScanningPolicyByID(ctx context.Context, scanningPolicyID string) error
- func (client *Client) DeleteTeam(ctx context.Context, id int) error
- func (client *Client) DeleteTeamServiceAccount(ctx context.Context, id int) error
- func (client *Client) DeleteTeamServiceAccountURL(id int) string
- func (client *Client) DeleteUser(ctx context.Context, id int) error
- func (client *Client) DeleteUserURL(id int) string
- func (client *Client) DeleteVulnerabilityException(ctx context.Context, listID string, exceptionID string) error
- func (client *Client) DeleteVulnerabilityExceptionList(ctx context.Context, id string) error
- func (client *Client) DeleteVulnerabilityExceptionListURL(id string) string
- func (client *Client) DeleteVulnerabilityExceptionURL(listID, ID string) string
- func (client *Client) ErrorFromResponse(response *http.Response) error
- func (client *Client) GetAlertByID(ctx context.Context, alertID int) (Alert, error)
- func (client *Client) GetAlertByIDURL(alertID int) string
- func (client *Client) GetAlertV2Downtime(ctx context.Context, alertID int) (AlertV2Downtime, error)
- func (client *Client) GetAlertV2Event(ctx context.Context, alertID int) (AlertV2Event, error)
- func (client *Client) GetAlertV2Metric(ctx context.Context, alertID int) (AlertV2Metric, error)
- func (client *Client) GetAlertV2Prometheus(ctx context.Context, alertID int) (AlertV2Prometheus, error)
- func (client *Client) GetCloudAccountMonitor(ctx context.Context, id int) (*CloudAccountMonitor, error)
- func (client *Client) GetCloudAccountSecure(ctx context.Context, accountID string) (*CloudAccountSecure, error)
- func (client *Client) GetCurrentUser(ctx context.Context) (u *User, err error)
- func (client *Client) GetCurrentUserURL() string
- func (client *Client) GetCustomRole(ctx context.Context, id int) (*CustomRole, error)
- func (client *Client) GetCustomRoleByName(ctx context.Context, name string) (*CustomRole, error)
- func (client *Client) GetCustomRoleURL(id int) string
- func (client *Client) GetCustomRolesURL() string
- func (client *Client) GetDashboard(ctx context.Context, ID int) (*Dashboard, error)
- func (client *Client) GetGroupMapping(ctx context.Context, id int) (*GroupMapping, error)
- func (client *Client) GetGroupMappingConfig(ctx context.Context) (*GroupMappingConfig, error)
- func (client *Client) GetGroupMappingConfigURL() string
- func (client *Client) GetGroupMappingURL(id int) string
- func (client *Client) GetIdentityContext(ctx context.Context) (*IdentityContext, error)
- func (client *Client) GetIdentityContextURL() string
- func (client *Client) GetListByID(ctx context.Context, id int) (List, error)
- func (client *Client) GetListURL(id int) string
- func (client *Client) GetMacroByID(ctx context.Context, id int) (Macro, error)
- func (client *Client) GetMacroByIDURL(id int) string
- func (client *Client) GetNotificationChannelById(ctx context.Context, id int) (NotificationChannel, error)
- func (client *Client) GetNotificationChannelByName(ctx context.Context, name string) (NotificationChannel, error)
- func (client *Client) GetNotificationChannelUrl(id int) string
- func (client *Client) GetNotificationChannelsUrl() string
- func (client *Client) GetPermissionsDependencies(ctx context.Context, product Product, permissions []string) ([]Dependency, error)
- func (client *Client) GetPolicies(ctx context.Context) ([]Policy, int, error)
- func (client *Client) GetPoliciesURL() string
- func (client *Client) GetPolicyByID(ctx context.Context, policyID int) (Policy, int, error)
- func (client *Client) GetPolicyURL(policyID int) string
- func (client *Client) GetPostureZone(ctx context.Context, id int) (*PostureZone, error)
- func (client *Client) GetRuleByID(ctx context.Context, ruleID int) (Rule, error)
- func (client *Client) GetRuleByIDURL(ruleID int) string
- func (client *Client) GetRuleGroup(ctx context.Context, ruleName string, ruleType string) ([]Rule, error)
- func (client *Client) GetRuleGroupURL(ruleName string, ruleType string) string
- func (client *Client) GetScanningPolicyAssignmentList(ctx context.Context) (ScanningPolicyAssignmentList, error)
- func (client *Client) GetScanningPolicyByID(ctx context.Context, scanningPolicyID string) (ScanningPolicy, error)
- func (client *Client) GetTeamById(ctx context.Context, id int) (Team, error)
- func (client *Client) GetTeamServiceAccountByID(ctx context.Context, id int) (*TeamServiceAccount, error)
- func (client *Client) GetTeamServiceAccountURL(id int) string
- func (client *Client) GetTeamURL(id int) string
- func (client *Client) GetTeamsURL() string
- func (client *Client) GetTrustedCloudIdentitySecure(ctx context.Context, provider string) (string, error)
- func (client *Client) GetUserByEmail(ctx context.Context, email string) (*User, error)
- func (client *Client) GetUserById(ctx context.Context, id int) (*User, error)
- func (client *Client) GetUserByUsername(ctx context.Context, username string) (*User, error)
- func (client *Client) GetUserByUsernameURL(username string) string
- func (client *Client) GetUserIDByEmail(ctx context.Context, userRoles []UserRoles) ([]UserRoles, error)
- func (client *Client) GetUserUrl(id int) string
- func (client *Client) GetUsersLightURL() string
- func (client *Client) GetUsersUrl() string
- func (client *Client) GetVulnerabilityExceptionByID(ctx context.Context, listID string, exceptionID string) (*VulnerabilityException, error)
- func (client *Client) GetVulnerabilityExceptionListByID(ctx context.Context, id string) (*VulnerabilityExceptionList, error)
- func (client *Client) GetVulnerabilityExceptionListURL(id string) string
- func (client *Client) GetVulnerabilityExceptionURL(listID, ID string) string
- func (client *Client) ListPosturePolicies(ctx context.Context) ([]PosturePolicy, error)
- func (client *Client) UpdateAlert(ctx context.Context, alert Alert) (Alert, error)
- func (client *Client) UpdateAlertURL(alertID int) string
- func (client *Client) UpdateAlertV2Downtime(ctx context.Context, alert AlertV2Downtime) (AlertV2Downtime, error)
- func (client *Client) UpdateAlertV2Event(ctx context.Context, alert AlertV2Event) (AlertV2Event, error)
- func (client *Client) UpdateAlertV2Metric(ctx context.Context, alert AlertV2Metric) (AlertV2Metric, error)
- func (client *Client) UpdateAlertV2Prometheus(ctx context.Context, alert AlertV2Prometheus) (AlertV2Prometheus, error)
- func (client *Client) UpdateCloudAccountMonitor(ctx context.Context, id int, provider *CloudAccountMonitor) (*CloudAccountMonitor, error)
- func (client *Client) UpdateCloudAccountSecure(ctx context.Context, accountID string, cloudAccount *CloudAccountSecure) (*CloudAccountSecure, error)
- func (client *Client) UpdateCustomRole(ctx context.Context, cr *CustomRole, id int) (*CustomRole, error)
- func (client *Client) UpdateCustomRoleURL(id int) string
- func (client *Client) UpdateDashboard(ctx context.Context, dashboard *Dashboard) (*Dashboard, error)
- func (client *Client) UpdateGroupMapping(ctx context.Context, gm *GroupMapping, id int) (*GroupMapping, error)
- func (client *Client) UpdateGroupMappingConfig(ctx context.Context, gmc *GroupMappingConfig) (*GroupMappingConfig, error)
- func (client *Client) UpdateGroupMappingConfigURL() string
- func (client *Client) UpdateGroupMappingURL(id int) string
- func (client *Client) UpdateList(ctx context.Context, list List) (List, error)
- func (client *Client) UpdateListURL(id int) string
- func (client *Client) UpdateMacro(ctx context.Context, macro Macro) (Macro, error)
- func (client *Client) UpdateMacroURL(id int) string
- func (client *Client) UpdateNotificationChannel(ctx context.Context, channel NotificationChannel) (NotificationChannel, error)
- func (client *Client) UpdatePolicy(ctx context.Context, policy Policy) (Policy, error)
- func (client *Client) UpdatePolicyURL(policyID int) string
- func (client *Client) UpdateRule(ctx context.Context, rule Rule) (Rule, error)
- func (client *Client) UpdateRuleURL(ruleID int) string
- func (client *Client) UpdateScanningPolicyByID(ctx context.Context, scanningPolicy ScanningPolicy) (ScanningPolicy, error)
- func (client *Client) UpdateTeam(ctx context.Context, team Team) (Team, error)
- func (client *Client) UpdateTeamServiceAccount(ctx context.Context, account *TeamServiceAccount, id int) (*TeamServiceAccount, error)
- func (client *Client) UpdateTeamServiceAccountURL(id int) string
- func (client *Client) UpdateUser(ctx context.Context, user *User) (*User, error)
- func (client *Client) UpdateUserURL(id int) string
- func (client *Client) UpdateVulnerabilityException(ctx context.Context, listID string, exception *VulnerabilityException) (*VulnerabilityException, error)
- func (client *Client) UpdateVulnerabilityExceptionList(ctx context.Context, list *VulnerabilityExceptionList) (*VulnerabilityExceptionList, error)
- func (client *Client) UpdateVulnerabilityExceptionListURL(id string) string
- func (client *Client) UpdateVulnerabilityExceptionURL(listID, ID string) string
- type ClientOption
- func WithExtraHeaders(headers map[string]string) ClientOption
- func WithIBMAPIKey(key string) ClientOption
- func WithIBMIamURL(url string) ClientOption
- func WithIBMInstanceID(instanceID string) ClientOption
- func WithInsecure(insecure bool) ClientOption
- func WithMonitorProduct() ClientOption
- func WithSecureProduct() ClientOption
- func WithSysdigTeamID(teamID *int) ClientOption
- func WithSysdigTeamName(teamName string) ClientOption
- func WithToken(token string) ClientOption
- func WithURL(url string) ClientOption
- type CloudAccountCredentialsMonitor
- type CloudAccountMonitor
- type CloudAccountMonitorInterface
- type CloudAccountSecure
- type CloudAccountSecureInterface
- type Common
- type Condition
- type Containers
- type Criteria
- type CustomNotification
- type CustomNotificationTemplateV2
- type CustomRole
- type CustomRoleInterface
- type CustomRolePermissionInterface
- type Dashboard
- type DashboardInterface
- type Dependencies
- type Dependency
- type Details
- type DisplayInfo
- type EntryPoint
- type EventDisplaySettings
- type Exception
- type Format
- type FormatUnit
- type GroupMapping
- type GroupMappingConfig
- type GroupMappingConfigInterface
- type GroupMappingInterface
- type IAMTokenResponse
- type IBMAccessToken
- type IBMCommon
- type IBMMonitor
- type IBMRequest
- type IBMSecure
- type IdentityContext
- type IdentityContextInterface
- type Items
- type LabelDescriptorV3
- type Layout
- type Left
- type LegendConfiguration
- type List
- type ListInterface
- type Macro
- type MacroCondition
- type MacroInterface
- type Monitor
- type MonitorCommon
- type NamespaceFilters
- type NotificationChannel
- type NotificationChannelConfigV2
- type NotificationChannelInterface
- type NotificationChannelOptions
- type NotificationChannelOptionsV2
- type NotificationChannelTemplateConfiguration
- type NotificationChannelTemplateConfigurationSection
- type NumberThresholdBase
- type NumberThresholds
- type PanelType
- type Panels
- type Policy
- type PolicyInterface
- type PolicyRule
- type PosturePolicy
- type PosturePolicyInterface
- type PosturePolicyZoneMeta
- type PostureZone
- type PostureZoneInterface
- type PostureZonePolicyListResponse
- type PostureZonePolicySlim
- type PostureZoneRequest
- type PostureZoneResponse
- type PostureZoneScope
- type Processes
- type Product
- type QueryParams
- type ReadPaths
- type ReadWritePaths
- type Requester
- type Right
- type Rule
- type RuleInterface
- type ScanningGate
- type ScanningGateParam
- type ScanningPolicy
- type ScanningPolicyAssignment
- type ScanningPolicyAssignmentImage
- type ScanningPolicyAssignmentInterface
- type ScanningPolicyAssignmentList
- type ScanningPolicyInterface
- type ScopeExpressionList
- type ScopeExpressionV2
- type ScopedSegmentedConfig
- type SecureCommon
- type SegmentCondition
- type SharingMember
- type SharingOptions
- type Syscalls
- type SysdigCapture
- type SysdigCommon
- type SysdigMonitor
- type SysdigRequest
- type SysdigSecure
- type TCPListenPorts
- type Team
- type TeamInterface
- type TeamMap
- type TeamServiceAccount
- type TeamServiceAccountInterface
- type TeamSharingOptions
- type UDPListenPorts
- type UnixTimestamp
- type User
- type UserInterface
- type UserRoles
- type VulnerabilityException
- type VulnerabilityExceptionInterface
- type VulnerabilityExceptionList
- type VulnerabilityExceptionListInterface
Constants ¶
View Source
const ( CreateAlertPath = "%s/api/alerts" DeleteAlertPath = "%s/api/alerts/%d" UpdateAlertPath = "%s/api/alerts/%d" GetAlertPath = "%s/api/alerts/%d" )
View Source
const ( AlertV2TypePrometheus AlertV2Type = "PROMETHEUS" AlertV2TypeManual AlertV2Type = "MANUAL" AlertV2TypeEvent AlertV2Type = "EVENT" AlertV2SeverityHigh AlertV2Severity = "high" AlertV2SeverityMedium AlertV2Severity = "medium" AlertV2SeverityLow AlertV2Severity = "low" AlertV2SeverityInfo AlertV2Severity = "info" AlertLinkV2TypeDashboard AlertLinkV2Type = "dashboard" AlertLinkV2TypeRunbook AlertLinkV2Type = "runbook" )
View Source
const ( GetMePath = "/api/users/me" UserAgentHeader = "User-Agent" AuthorizationHeader = "Authorization" ContentTypeHeader = "Content-Type" SysdigProviderHeader = "Sysdig-Provider" SysdigProviderHeaderValue = "Terraform" SysdigUserAgentHeaderValue = "SysdigTerraform" ContentTypeJSON = "application/json" ContentTypeFormURLEncoded = "x-www-form-urlencoded" SysdigProductHeader = "X-Sysdig-Product" )
View Source
const ( CustomRolesPath = "%s/api/roles" CustomRolePath = "%s/api/roles/%d" )
View Source
const ( CreateGroupMappingPath = "%s/api/groupmappings" UpdateGroupMappingPath = "%s/api/groupmappings/%d" DeleteGroupMappingPath = "%s/api/groupmappings/%d" GetGroupMappingPath = "%s/api/groupmappings/%d" )
View Source
const ( IBMInstanceIDHeader = "IBMInstanceID" IBMIAMPath = "/identity/token" IBMGrantTypeFormValue = "grant_type" IBMApiKeyFormValue = "apikey" IBMAPIKeyGrantType = "urn:ibm:params:oauth:grant-type:apikey" SysdigTeamIDHeader = "SysdigTeamID" GetTeamByNamePath = "/api/v2/teams/light/name/" IBMProductHeader = "SysdigProduct" )
View Source
const ( CreateListPath = "%s/api/secure/falco/lists" GetListPath = "%s/api/secure/falco/lists/%d" UpdateListPath = "%s/api/secure/falco/lists/%d" DeleteListPath = "%s/api/secure/falco/lists/%d" )
View Source
const ( CreateMacroPath = "%s/api/secure/falco/macros" GetMacroByIDPath = "%s/api/secure/falco/macros/%d" UpdateMacroPath = "%s/api/secure/falco/macros/%d" DeleteMacroPath = "%s/api/secure/falco/macros/%d" )
View Source
const ( RuleTypeContainer = "CONTAINER" RuleTypeFalco = "FALCO" RuleTypeFilesystem = "FILESYSTEM" RuleTypeNetwork = "NETWORK" RuleTypeProcess = "PROCESS" RuleTypeSyscall = "SYSCALL" )
View Source
const ( GetNotificationChannels = "%s/api/notificationChannels" GetNotificationChannel = "%s/api/notificationChannels/%d" )
View Source
const ( CreatePolicyPath = "%s/api/v2/policies" DeletePolicyPath = "%s/api/v2/policies/%d" UpdatePolicyPath = "%s/api/v2/policies/%d" GetPolicyPath = "%s/api/v2/policies/%d" GetPoliciesPath = "%s/api/v2/policies" )
View Source
const ( ZonesPath = "%s/api/cspm/v1/policy/zones" ZonePath = "%s/api/cspm/v1/policy/zones/%d" )
View Source
const ( CreateRulePath = "%s/api/secure/rules" GetRuleByIDPath = "%s/api/secure/rules/%d" UpdateRulePath = "%s/api/secure/rules/%d" DeleteURLPath = "%s/api/secure/rules/%d" GetRuleGroupPath = "%s/api/secure/rules/groups?name=%s&type=%s" )
View Source
const ( ServiceAccountsPath = "%s/api/serviceaccounts/team" ServiceAccountPath = "%s/api/serviceaccounts/team/%d" ServiceAccountDeletePath = "%s/api/serviceaccounts/team/%d/delete" )
View Source
const ( GetUsersLightPath = "%s/api/users/light" GetTeamsPath = "%s/api/teams" GetTeamPath = "%s/api/teams/%d" )
View Source
const ( GetUserByUsernamePath = "%s/api/users/%s" GetUserPath = "%s/api/users/%d" GetUsersPath = "%s/api/users" CreateUserPath = "%s/api/user/provisioning/" UpdateUserPath = "%s/api/users/%d" DeleteUserPath = "%s/api/users/%d" GetCurrentUserPath = "%s/api/users/me" )
View Source
const ( CreateVulnerabilityExceptionListPath = "%s/api/scanning/v1/vulnexceptions" GetVulnerabilityExceptionListPath = "%s/api/scanning/v1/vulnexceptions/%s" DeleteVulnerabilityExceptionListPath = "%s/api/scanning/v1/vulnexceptions/%s" UpdateVulnerabilityExceptionListPath = "%s/api/scanning/v1/vulnexceptions/%s" CreateVulnerabilityExceptionPath = "%s/api/scanning/v1/vulnexceptions/%s/vulnerabilities" GetVulnerabilityExceptionPath = "%s/api/scanning/v1/vulnexceptions/%s/vulnerabilities/%s/" DeleteVulnerabilityExceptionPath = "%s/api/scanning/v1/vulnexceptions/%s/vulnerabilities/%s/" UpdateVulnerabilityExceptionPath = "%s/api/scanning/v1/vulnexceptions/%s/vulnerabilities/%s/" )
View Source
const GetIdentityContextPath = "%s/api/identity/context"
View Source
const (
GroupMappingConfigPath = "%s/api/groupmappings/settings"
)
View Source
const PermissionsURL = "%s/api/permissions/%s/dependencies?requestedPermissions=%s"
View Source
const PosturePolicyListPath = "%s/api/cspm/v1/policy/policies/list"
Variables ¶
View Source
var CustomRoleNotFound = errors.New("custom role not found")
View Source
var GroupMappingConfigNotFound = errors.New("group mapping configuration not found")
View Source
var GroupMappingNotFound = errors.New("group mapping not found")
View Source
var TeamServiceAccountNotFound = errors.New("team service account not found")
Functions ¶
Types ¶
type AdvancedQueries ¶ added in v1.5.0
type AdvancedQueries struct {
Enabled bool `json:"enabled"`
DisplayInfo DisplayInfo `json:"displayInfo"`
Format Format `json:"format"`
Query string `json:"query"`
ID int `json:"id"`
ParentPanel *Panels `json:"-"`
}
func NewPromqlQuery ¶ added in v1.5.0
func NewPromqlQuery(query string, parentPanel *Panels, displayInfo DisplayInfo) *AdvancedQueries
func (*AdvancedQueries) Enable ¶ added in v1.5.0
func (q *AdvancedQueries) Enable(val bool) *AdvancedQueries
func (*AdvancedQueries) WithDataFormat ¶ added in v1.5.0
func (q *AdvancedQueries) WithDataFormat(f *Format) *AdvancedQueries
func (*AdvancedQueries) WithDataRateFormat ¶ added in v1.5.0
func (q *AdvancedQueries) WithDataRateFormat(f *Format) *AdvancedQueries
func (*AdvancedQueries) WithNumberFormat ¶ added in v1.5.0
func (q *AdvancedQueries) WithNumberFormat(f *Format) *AdvancedQueries
func (*AdvancedQueries) WithNumberRateFormat ¶ added in v1.5.0
func (q *AdvancedQueries) WithNumberRateFormat(f *Format) *AdvancedQueries
func (*AdvancedQueries) WithPercentFormat ¶ added in v1.5.0
func (q *AdvancedQueries) WithPercentFormat(f *Format) *AdvancedQueries
func (*AdvancedQueries) WithTimeFormat ¶ added in v1.5.0
func (q *AdvancedQueries) WithTimeFormat(f *Format) *AdvancedQueries
type Alert ¶ added in v1.4.0
type Alert struct {
ID int `json:"id,omitempty"`
Version int `json:"version,omitempty"`
Type string `json:"type"`
Name string `json:"name"`
Description string `json:"description"`
Enabled bool `json:"enabled"`
GroupName string `json:"groupName,omitempty"`
NotificationChannelIds []int `json:"notificationChannelIds"`
Filter string `json:"filter"`
Severity int `json:"severity"`
Timespan int `json:"timespan"`
CustomNotification *CustomNotification `json:"customNotification"`
TeamID int `json:"teamId,omitempty"`
AutoCreated bool `json:"autoCreated"`
SysdigCapture *SysdigCapture `json:"sysdigCapture"`
RateOfChange bool `json:"rateOfChange,omitempty"`
ReNotifyMinutes int `json:"reNotifyMinutes"`
ReNotify bool `json:"reNotify"`
Valid bool `json:"valid"`
SeverityLabel string `json:"severityLabel,omitempty"`
SegmentBy []string `json:"segmentBy"`
SegmentCondition *SegmentCondition `json:"segmentCondition"`
Criteria *Criteria `json:"criteria,omitempty"`
Monitor []*Monitor `json:"monitor,omitempty"`
Condition string `json:"condition"`
SeverityLevel int `json:"severityLevel,omitempty"`
}
type AlertInterface ¶ added in v1.4.0
type AlertLabelDescriptorV2 ¶ added in v1.6.0
type AlertLinkV2 ¶ added in v1.6.0
type AlertLinkV2Type ¶ added in v1.6.0
type AlertLinkV2Type string
type AlertMetricDescriptorV2 ¶ added in v1.6.0
type AlertMetricDescriptorV2 struct {
ID string `json:"id"`
}
type AlertScopeV2 ¶ added in v1.6.0
type AlertScopeV2 struct {
Expressions []ScopeExpressionV2 `json:"expressions,omitempty"`
}
type AlertV2Common ¶ added in v1.6.0
type AlertV2Common struct {
ID int `json:"id,omitempty"`
Version int `json:"version,omitempty"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
DurationSec int `json:"durationSec"`
Type string `json:"type"`
Group string `json:"group,omitempty"`
Severity string `json:"severity"`
TeamID int `json:"teamId,omitempty"`
Enabled bool `json:"enabled"`
NotificationChannelConfigList []NotificationChannelConfigV2 `json:"notificationChannelConfigList"`
CustomNotificationTemplate *CustomNotificationTemplateV2 `json:"customNotificationTemplate,omitempty"`
CaptureConfig *CaptureConfigV2 `json:"captureConfig,omitempty"`
Links []AlertLinkV2 `json:"links"`
}
type AlertV2ConfigDowntime ¶ added in v1.6.0
type AlertV2ConfigDowntime struct {
ScopedSegmentedConfig
ConditionOperator string `json:"conditionOperator"`
Threshold float64 `json:"threshold"`
GroupAggregation string `json:"groupAggregation"`
TimeAggregation string `json:"timeAggregation"`
Metric AlertMetricDescriptorV2 `json:"metric"`
NoDataBehaviour string `json:"noDataBehaviour"`
}
type AlertV2ConfigEvent ¶ added in v1.6.0
type AlertV2ConfigEvent struct {
ScopedSegmentedConfig
ConditionOperator string `json:"conditionOperator"`
Threshold float64 `json:"threshold"`
WarningConditionOperator string `json:"warningConditionOperator,omitempty"`
WarningThreshold *float64 `json:"warningThreshold,omitempty"`
Filter string `json:"filter"`
Tags []string `json:"tags"`
}
type AlertV2ConfigMetric ¶ added in v1.6.0
type AlertV2ConfigMetric struct {
ScopedSegmentedConfig
ConditionOperator string `json:"conditionOperator"`
Threshold float64 `json:"threshold"`
WarningConditionOperator string `json:"warningConditionOperator,omitempty"`
WarningThreshold *float64 `json:"warningThreshold,omitempty"`
GroupAggregation string `json:"groupAggregation"`
TimeAggregation string `json:"timeAggregation"`
Metric AlertMetricDescriptorV2 `json:"metric"`
NoDataBehaviour string `json:"noDataBehaviour"`
}
type AlertV2ConfigPrometheus ¶ added in v1.6.0
type AlertV2Downtime ¶ added in v1.6.0
type AlertV2Downtime struct {
AlertV2Common
Config AlertV2ConfigDowntime `json:"config"`
}
type AlertV2DowntimeInterface ¶ added in v1.6.0
type AlertV2DowntimeInterface interface {
Base
CreateAlertV2Downtime(ctx context.Context, alert AlertV2Downtime) (AlertV2Downtime, error)
UpdateAlertV2Downtime(ctx context.Context, alert AlertV2Downtime) (AlertV2Downtime, error)
GetAlertV2Downtime(ctx context.Context, alertID int) (AlertV2Downtime, error)
DeleteAlertV2Downtime(ctx context.Context, alertID int) error
}
type AlertV2Event ¶ added in v1.6.0
type AlertV2Event struct {
AlertV2Common
Config AlertV2ConfigEvent `json:"config"`
}
type AlertV2EventInterface ¶ added in v1.6.0
type AlertV2EventInterface interface {
Base
CreateAlertV2Event(ctx context.Context, alert AlertV2Event) (AlertV2Event, error)
UpdateAlertV2Event(ctx context.Context, alert AlertV2Event) (AlertV2Event, error)
GetAlertV2Event(ctx context.Context, alertID int) (AlertV2Event, error)
DeleteAlertV2Event(ctx context.Context, alertID int) error
}
type AlertV2Interface ¶ added in v1.6.0
type AlertV2Interface interface {
AlertV2PrometheusInterface
AlertV2EventInterface
AlertV2MetricInterface
AlertV2DowntimeInterface
}
type AlertV2Metric ¶ added in v1.6.0
type AlertV2Metric struct {
AlertV2Common
Config AlertV2ConfigMetric `json:"config"`
}
type AlertV2MetricInterface ¶ added in v1.6.0
type AlertV2MetricInterface interface {
Base
CreateAlertV2Metric(ctx context.Context, alert AlertV2Metric) (AlertV2Metric, error)
UpdateAlertV2Metric(ctx context.Context, alert AlertV2Metric) (AlertV2Metric, error)
GetAlertV2Metric(ctx context.Context, alertID int) (AlertV2Metric, error)
DeleteAlertV2Metric(ctx context.Context, alertID int) error
}
type AlertV2Prometheus ¶ added in v1.6.0
type AlertV2Prometheus struct {
AlertV2Common
Config AlertV2ConfigPrometheus `json:"config"`
}
type AlertV2PrometheusInterface ¶ added in v1.6.0
type AlertV2PrometheusInterface interface {
Base
CreateAlertV2Prometheus(ctx context.Context, alert AlertV2Prometheus) (AlertV2Prometheus, error)
UpdateAlertV2Prometheus(ctx context.Context, alert AlertV2Prometheus) (AlertV2Prometheus, error)
GetAlertV2Prometheus(ctx context.Context, alertID int) (AlertV2Prometheus, error)
DeleteAlertV2Prometheus(ctx context.Context, alertID int) error
}
type AlertV2Severity ¶ added in v1.6.0
type AlertV2Severity string
type AlertV2Type ¶ added in v1.6.0
type AlertV2Type string
type AxesConfiguration ¶ added in v1.5.0
type CaptureConfigV2 ¶ added in v1.6.0
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateAlert ¶ added in v1.4.0
func (*Client) CreateAlertURL ¶ added in v1.4.0
func (*Client) CreateAlertV2Downtime ¶ added in v1.6.0
func (client *Client) CreateAlertV2Downtime(ctx context.Context, alert AlertV2Downtime) (AlertV2Downtime, error)
func (*Client) CreateAlertV2Event ¶ added in v1.6.0
func (client *Client) CreateAlertV2Event(ctx context.Context, alert AlertV2Event) (AlertV2Event, error)
func (*Client) CreateAlertV2Metric ¶ added in v1.6.0
func (client *Client) CreateAlertV2Metric(ctx context.Context, alert AlertV2Metric) (AlertV2Metric, error)
func (*Client) CreateAlertV2Prometheus ¶ added in v1.6.0
func (client *Client) CreateAlertV2Prometheus(ctx context.Context, alert AlertV2Prometheus) (AlertV2Prometheus, error)
func (*Client) CreateCloudAccountMonitor ¶ added in v1.4.2
func (client *Client) CreateCloudAccountMonitor(ctx context.Context, provider *CloudAccountMonitor) (*CloudAccountMonitor, error)
func (*Client) CreateCloudAccountSecure ¶ added in v1.4.2
func (client *Client) CreateCloudAccountSecure(ctx context.Context, cloudAccount *CloudAccountSecure) (*CloudAccountSecure, error)
func (*Client) CreateCustomRole ¶ added in v1.11.0
func (client *Client) CreateCustomRole(ctx context.Context, cr *CustomRole) (*CustomRole, error)
func (*Client) CreateCustomRoleURL ¶ added in v1.11.0
func (*Client) CreateDashboard ¶ added in v1.5.0
func (*Client) CreateGroupMapping ¶ added in v1.4.0
func (client *Client) CreateGroupMapping(ctx context.Context, gm *GroupMapping) (*GroupMapping, error)
func (*Client) CreateGroupMappingURL ¶ added in v1.4.0
func (*Client) CreateList ¶ added in v1.4.1
func (*Client) CreateListURL ¶ added in v1.4.1
func (*Client) CreateMacro ¶ added in v1.4.1
func (*Client) CreateMacroURL ¶ added in v1.4.1
func (*Client) CreateNotificationChannel ¶ added in v1.2.0
func (client *Client) CreateNotificationChannel(ctx context.Context, channel NotificationChannel) (NotificationChannel, error)
func (*Client) CreateOrUpdatePostureZone ¶ added in v1.10.0
func (client *Client) CreateOrUpdatePostureZone(ctx context.Context, r *PostureZoneRequest) (*PostureZone, error)
func (*Client) CreatePolicy ¶ added in v1.4.1
func (*Client) CreatePolicyURL ¶ added in v1.4.1
func (*Client) CreateRule ¶ added in v1.4.2
func (*Client) CreateRuleURL ¶ added in v1.4.2
func (*Client) CreateScanningPolicy ¶ added in v1.4.2
func (client *Client) CreateScanningPolicy(ctx context.Context, scanningPolicy ScanningPolicy) (ScanningPolicy, error)
func (*Client) CreateScanningPolicyAssignmentList ¶ added in v1.4.2
func (client *Client) CreateScanningPolicyAssignmentList(ctx context.Context, scanningPolicyAssignmentList ScanningPolicyAssignmentList) (ScanningPolicyAssignmentList, error)
func (*Client) CreateTeam ¶
func (*Client) CreateTeamServiceAccount ¶ added in v1.11.0
func (client *Client) CreateTeamServiceAccount(ctx context.Context, account *TeamServiceAccount) (*TeamServiceAccount, error)
func (*Client) CreateTeamServiceAccountURL ¶ added in v1.11.0
func (*Client) CreateUser ¶ added in v1.4.0
func (*Client) CreateUsersURL ¶ added in v1.4.0
func (*Client) CreateVulnerabilityException ¶ added in v1.4.2
func (client *Client) CreateVulnerabilityException(ctx context.Context, listID string, exception *VulnerabilityException) (*VulnerabilityException, error)
func (*Client) CreateVulnerabilityExceptionList ¶ added in v1.4.2
func (client *Client) CreateVulnerabilityExceptionList(ctx context.Context, list *VulnerabilityExceptionList) (*VulnerabilityExceptionList, error)
func (*Client) CreateVulnerabilityExceptionListURL ¶ added in v1.4.2
func (*Client) CreateVulnerabilityExceptionURL ¶ added in v1.4.2
func (*Client) CurrentTeamID ¶ added in v1.3.0
func (*Client) DeleteAlert ¶ added in v1.4.0
func (*Client) DeleteAlertURL ¶ added in v1.4.0
func (*Client) DeleteAlertV2Downtime ¶ added in v1.6.0
func (*Client) DeleteAlertV2Event ¶ added in v1.6.0
func (*Client) DeleteAlertV2Metric ¶ added in v1.6.0
func (*Client) DeleteAlertV2Prometheus ¶ added in v1.6.0
func (*Client) DeleteCloudAccountMonitor ¶ added in v1.4.2
func (*Client) DeleteCloudAccountSecure ¶ added in v1.4.2
func (*Client) DeleteCustomRole ¶ added in v1.11.0
func (*Client) DeleteCustomRoleURL ¶ added in v1.11.0
func (*Client) DeleteDashboard ¶ added in v1.5.0
func (*Client) DeleteGroupMapping ¶ added in v1.4.0
func (*Client) DeleteGroupMappingURL ¶ added in v1.4.0
func (*Client) DeleteList ¶ added in v1.4.1
func (*Client) DeleteListURL ¶ added in v1.4.1
func (*Client) DeleteMacro ¶ added in v1.4.1
func (*Client) DeleteMacroURL ¶ added in v1.4.1
func (*Client) DeleteNotificationChannel ¶ added in v1.2.0
func (*Client) DeletePolicy ¶ added in v1.4.1
func (*Client) DeletePolicyURL ¶ added in v1.4.1
func (*Client) DeletePostureZone ¶ added in v1.10.0
func (*Client) DeleteRule ¶ added in v1.4.2
func (*Client) DeleteRuleURL ¶ added in v1.4.2
func (*Client) DeleteScanningPolicyAssignmentList ¶ added in v1.4.2
func (client *Client) DeleteScanningPolicyAssignmentList(ctx context.Context, scanningPolicyAssignmentList ScanningPolicyAssignmentList) error
func (*Client) DeleteScanningPolicyByID ¶ added in v1.4.2
func (*Client) DeleteTeamServiceAccount ¶ added in v1.11.0
func (*Client) DeleteTeamServiceAccountURL ¶ added in v1.11.0
func (*Client) DeleteUser ¶ added in v1.4.0
func (*Client) DeleteUserURL ¶ added in v1.4.0
func (*Client) DeleteVulnerabilityException ¶ added in v1.4.2
func (*Client) DeleteVulnerabilityExceptionList ¶ added in v1.4.2
func (*Client) DeleteVulnerabilityExceptionListURL ¶ added in v1.4.2
func (*Client) DeleteVulnerabilityExceptionURL ¶ added in v1.4.2
func (*Client) ErrorFromResponse ¶
func (*Client) GetAlertByID ¶ added in v1.4.0
func (*Client) GetAlertByIDURL ¶ added in v1.4.0
func (*Client) GetAlertV2Downtime ¶ added in v1.6.0
func (*Client) GetAlertV2Event ¶ added in v1.6.0
func (*Client) GetAlertV2Metric ¶ added in v1.6.0
func (*Client) GetAlertV2Prometheus ¶ added in v1.6.0
func (*Client) GetCloudAccountMonitor ¶ added in v1.4.2
func (*Client) GetCloudAccountSecure ¶ added in v1.4.2
func (*Client) GetCurrentUser ¶ added in v1.4.0
func (*Client) GetCurrentUserURL ¶ added in v1.4.0
func (*Client) GetCustomRole ¶ added in v1.11.0
func (*Client) GetCustomRoleByName ¶ added in v1.11.0
func (*Client) GetCustomRoleURL ¶ added in v1.11.0
func (*Client) GetCustomRolesURL ¶ added in v1.11.0
func (*Client) GetDashboard ¶ added in v1.5.0
func (*Client) GetGroupMapping ¶ added in v1.4.0
func (*Client) GetGroupMappingConfig ¶ added in v1.8.0
func (client *Client) GetGroupMappingConfig(ctx context.Context) (*GroupMappingConfig, error)
func (*Client) GetGroupMappingConfigURL ¶ added in v1.8.0
func (*Client) GetGroupMappingURL ¶ added in v1.4.0
func (*Client) GetIdentityContext ¶ added in v1.10.0
func (client *Client) GetIdentityContext(ctx context.Context) (*IdentityContext, error)
func (*Client) GetIdentityContextURL ¶ added in v1.10.0
func (*Client) GetListByID ¶ added in v1.4.1
func (*Client) GetListURL ¶ added in v1.4.1
func (*Client) GetMacroByID ¶ added in v1.4.1
func (*Client) GetMacroByIDURL ¶ added in v1.4.1
func (*Client) GetNotificationChannelById ¶ added in v1.2.0
func (*Client) GetNotificationChannelByName ¶ added in v1.2.0
func (*Client) GetNotificationChannelUrl ¶ added in v1.2.0
func (*Client) GetNotificationChannelsUrl ¶ added in v1.2.0
func (*Client) GetPermissionsDependencies ¶ added in v1.11.0
func (*Client) GetPolicies ¶ added in v1.5.0
func (*Client) GetPoliciesURL ¶ added in v1.5.0
func (*Client) GetPolicyByID ¶ added in v1.4.1
func (*Client) GetPolicyURL ¶ added in v1.4.1
func (*Client) GetPostureZone ¶ added in v1.10.0
func (*Client) GetRuleByID ¶ added in v1.4.2
func (*Client) GetRuleByIDURL ¶ added in v1.4.2
func (*Client) GetRuleGroup ¶ added in v1.7.0
func (*Client) GetRuleGroupURL ¶ added in v1.7.0
func (*Client) GetScanningPolicyAssignmentList ¶ added in v1.4.2
func (client *Client) GetScanningPolicyAssignmentList(ctx context.Context) (ScanningPolicyAssignmentList, error)
func (*Client) GetScanningPolicyByID ¶ added in v1.4.2
func (*Client) GetTeamById ¶
func (*Client) GetTeamServiceAccountByID ¶ added in v1.11.0
func (*Client) GetTeamServiceAccountURL ¶ added in v1.11.0
func (*Client) GetTeamURL ¶
func (*Client) GetTeamsURL ¶
func (*Client) GetTrustedCloudIdentitySecure ¶ added in v1.4.2
func (*Client) GetUserByEmail ¶ added in v1.4.0
func (*Client) GetUserById ¶ added in v1.4.0
func (*Client) GetUserByUsername ¶ added in v1.4.0
func (*Client) GetUserByUsernameURL ¶ added in v1.4.0
func (*Client) GetUserIDByEmail ¶
func (*Client) GetUserUrl ¶ added in v1.4.0
func (*Client) GetUsersLightURL ¶
func (*Client) GetUsersUrl ¶ added in v1.4.0
func (*Client) GetVulnerabilityExceptionByID ¶ added in v1.4.2
func (*Client) GetVulnerabilityExceptionListByID ¶ added in v1.4.2
func (*Client) GetVulnerabilityExceptionListURL ¶ added in v1.4.2
func (*Client) GetVulnerabilityExceptionURL ¶ added in v1.4.2
func (*Client) ListPosturePolicies ¶ added in v1.10.0
func (client *Client) ListPosturePolicies(ctx context.Context) ([]PosturePolicy, error)
func (*Client) UpdateAlert ¶ added in v1.4.0
func (*Client) UpdateAlertURL ¶ added in v1.4.0
func (*Client) UpdateAlertV2Downtime ¶ added in v1.6.0
func (client *Client) UpdateAlertV2Downtime(ctx context.Context, alert AlertV2Downtime) (AlertV2Downtime, error)
func (*Client) UpdateAlertV2Event ¶ added in v1.6.0
func (client *Client) UpdateAlertV2Event(ctx context.Context, alert AlertV2Event) (AlertV2Event, error)
func (*Client) UpdateAlertV2Metric ¶ added in v1.6.0
func (client *Client) UpdateAlertV2Metric(ctx context.Context, alert AlertV2Metric) (AlertV2Metric, error)
func (*Client) UpdateAlertV2Prometheus ¶ added in v1.6.0
func (client *Client) UpdateAlertV2Prometheus(ctx context.Context, alert AlertV2Prometheus) (AlertV2Prometheus, error)
func (*Client) UpdateCloudAccountMonitor ¶ added in v1.4.2
func (client *Client) UpdateCloudAccountMonitor(ctx context.Context, id int, provider *CloudAccountMonitor) (*CloudAccountMonitor, error)
func (*Client) UpdateCloudAccountSecure ¶ added in v1.4.2
func (client *Client) UpdateCloudAccountSecure(ctx context.Context, accountID string, cloudAccount *CloudAccountSecure) (*CloudAccountSecure, error)
func (*Client) UpdateCustomRole ¶ added in v1.11.0
func (client *Client) UpdateCustomRole(ctx context.Context, cr *CustomRole, id int) (*CustomRole, error)
func (*Client) UpdateCustomRoleURL ¶ added in v1.11.0
func (*Client) UpdateDashboard ¶ added in v1.5.0
func (*Client) UpdateGroupMapping ¶ added in v1.4.0
func (client *Client) UpdateGroupMapping(ctx context.Context, gm *GroupMapping, id int) (*GroupMapping, error)
func (*Client) UpdateGroupMappingConfig ¶ added in v1.8.0
func (client *Client) UpdateGroupMappingConfig(ctx context.Context, gmc *GroupMappingConfig) (*GroupMappingConfig, error)
func (*Client) UpdateGroupMappingConfigURL ¶ added in v1.8.0
func (*Client) UpdateGroupMappingURL ¶ added in v1.4.0
func (*Client) UpdateList ¶ added in v1.4.1
func (*Client) UpdateListURL ¶ added in v1.4.1
func (*Client) UpdateMacro ¶ added in v1.4.1
func (*Client) UpdateMacroURL ¶ added in v1.4.1
func (*Client) UpdateNotificationChannel ¶ added in v1.2.0
func (client *Client) UpdateNotificationChannel(ctx context.Context, channel NotificationChannel) (NotificationChannel, error)
func (*Client) UpdatePolicy ¶ added in v1.4.1
func (*Client) UpdatePolicyURL ¶ added in v1.4.1
func (*Client) UpdateRule ¶ added in v1.4.2
func (*Client) UpdateRuleURL ¶ added in v1.4.2
func (*Client) UpdateScanningPolicyByID ¶ added in v1.4.2
func (client *Client) UpdateScanningPolicyByID(ctx context.Context, scanningPolicy ScanningPolicy) (ScanningPolicy, error)
func (*Client) UpdateTeam ¶
func (*Client) UpdateTeamServiceAccount ¶ added in v1.11.0
func (client *Client) UpdateTeamServiceAccount(ctx context.Context, account *TeamServiceAccount, id int) (*TeamServiceAccount, error)
func (*Client) UpdateTeamServiceAccountURL ¶ added in v1.11.0
func (*Client) UpdateUser ¶ added in v1.4.0
func (*Client) UpdateUserURL ¶ added in v1.4.0
func (*Client) UpdateVulnerabilityException ¶ added in v1.4.2
func (client *Client) UpdateVulnerabilityException(ctx context.Context, listID string, exception *VulnerabilityException) (*VulnerabilityException, error)
func (*Client) UpdateVulnerabilityExceptionList ¶ added in v1.4.2
func (client *Client) UpdateVulnerabilityExceptionList(ctx context.Context, list *VulnerabilityExceptionList) (*VulnerabilityExceptionList, error)
func (*Client) UpdateVulnerabilityExceptionListURL ¶ added in v1.4.2
func (*Client) UpdateVulnerabilityExceptionURL ¶ added in v1.4.2
type ClientOption ¶
type ClientOption func(c *config)
func WithExtraHeaders ¶
func WithExtraHeaders(headers map[string]string) ClientOption
func WithIBMAPIKey ¶ added in v1.1.0
func WithIBMAPIKey(key string) ClientOption
func WithIBMIamURL ¶ added in v1.1.0
func WithIBMIamURL(url string) ClientOption
func WithIBMInstanceID ¶ added in v1.1.0
func WithIBMInstanceID(instanceID string) ClientOption
func WithInsecure ¶
func WithInsecure(insecure bool) ClientOption
func WithMonitorProduct ¶ added in v1.8.0
func WithMonitorProduct() ClientOption
func WithSecureProduct ¶ added in v1.8.0
func WithSecureProduct() ClientOption
func WithSysdigTeamID ¶ added in v1.3.0
func WithSysdigTeamID(teamID *int) ClientOption
func WithSysdigTeamName ¶ added in v1.3.0
func WithSysdigTeamName(teamName string) ClientOption
func WithToken ¶
func WithToken(token string) ClientOption
func WithURL ¶
func WithURL(url string) ClientOption
type CloudAccountCredentialsMonitor ¶ added in v1.4.2
type CloudAccountCredentialsMonitor struct {
AccountId string `json:"accountId"`
}
type CloudAccountMonitor ¶ added in v1.4.2
type CloudAccountMonitor struct {
Id int `json:"id"`
Platform string `json:"platform"`
IntegrationType string `json:"integrationType"`
Credentials CloudAccountCredentialsMonitor `json:"credentials"`
AdditionalOptions string `json:"additionalOptions"`
}
type CloudAccountMonitorInterface ¶ added in v1.4.2
type CloudAccountMonitorInterface interface {
Base
CreateCloudAccountMonitor(ctx context.Context, provider *CloudAccountMonitor) (*CloudAccountMonitor, error)
UpdateCloudAccountMonitor(ctx context.Context, id int, provider *CloudAccountMonitor) (*CloudAccountMonitor, error)
GetCloudAccountMonitor(ctx context.Context, id int) (*CloudAccountMonitor, error)
DeleteCloudAccountMonitor(ctx context.Context, id int) error
}
type CloudAccountSecure ¶ added in v1.4.2
type CloudAccountSecure struct {
AccountID string `json:"accountId"`
Provider string `json:"provider"`
Alias string `json:"alias"`
RoleAvailable bool `json:"roleAvailable"`
RoleName string `json:"roleName"`
ExternalID string `json:"externalId,omitempty"`
WorkLoadIdentityAccountID string `json:"workloadIdentityAccountId,omitempty"`
WorkLoadIdentityAccountAlias string `json:"workLoadIdentityAccountAlias,omitempty"`
}
type CloudAccountSecureInterface ¶ added in v1.4.2
type CloudAccountSecureInterface interface {
Base
CreateCloudAccountSecure(ctx context.Context, cloudAccount *CloudAccountSecure) (*CloudAccountSecure, error)
GetCloudAccountSecure(ctx context.Context, accountID string) (*CloudAccountSecure, error)
DeleteCloudAccountSecure(ctx context.Context, accountID string) error
UpdateCloudAccountSecure(ctx context.Context, accountID string, cloudAccount *CloudAccountSecure) (*CloudAccountSecure, error)
GetTrustedCloudIdentitySecure(ctx context.Context, provider string) (string, error)
}
type Common ¶
type Common interface {
UserInterface
TeamInterface
NotificationChannelInterface
IdentityContextInterface
}
type Condition ¶ added in v1.4.2
type Condition struct {
Condition string `json:"condition"`
Components []interface{} `json:"components"`
}
type Containers ¶ added in v1.4.2
type CustomNotification ¶ added in v1.4.0
type CustomNotificationTemplateV2 ¶ added in v1.6.0
type CustomRole ¶ added in v1.11.0
type CustomRoleInterface ¶ added in v1.11.0
type CustomRoleInterface interface {
Base
CreateCustomRole(ctx context.Context, cr *CustomRole) (*CustomRole, error)
UpdateCustomRole(ctx context.Context, cr *CustomRole, id int) (*CustomRole, error)
DeleteCustomRole(ctx context.Context, id int) error
GetCustomRole(ctx context.Context, id int) (*CustomRole, error)
GetCustomRoleByName(ctx context.Context, name string) (*CustomRole, error)
}
type CustomRolePermissionInterface ¶ added in v1.11.0
type Dashboard ¶ added in v1.5.0
type Dashboard struct {
Version int `json:"version,omitempty"`
CustomerID interface{} `json:"customerId"`
TeamID int `json:"teamId"`
Schema int `json:"schema"`
AutoCreated bool `json:"autoCreated"`
PublicToken string `json:"publicToken"`
ScopeExpressionList []*ScopeExpressionList `json:"scopeExpressionList"`
Layout []*Layout `json:"layout"`
TeamScope interface{} `json:"teamScope"`
EventDisplaySettings EventDisplaySettings `json:"eventDisplaySettings"`
ID int `json:"id,omitempty"`
Name string `json:"name"`
Description string `json:"description"`
Username string `json:"username"`
SharingSettings []*SharingOptions `json:"sharingSettings"`
Public bool `json:"public"`
Favorite bool `json:"favorite"`
CreatedOn int64 `json:"createdOn"`
ModifiedOn int64 `json:"modifiedOn"`
Panels []*Panels `json:"panels"`
TeamScopeExpressionList []interface{} `json:"teamScopeExpressionList"`
CreatedOnDate string `json:"createdOnDate"`
ModifiedOnDate string `json:"modifiedOnDate"`
TeamSharingOptions TeamSharingOptions `json:"teamSharingOptions"`
}
func NewDashboard ¶ added in v1.5.0
type DashboardInterface ¶ added in v1.5.0
type DashboardInterface interface {
GetDashboard(ctx context.Context, ID int) (*Dashboard, error)
CreateDashboard(ctx context.Context, dashboard *Dashboard) (*Dashboard, error)
UpdateDashboard(ctx context.Context, dashboard *Dashboard) (*Dashboard, error)
DeleteDashboard(ctx context.Context, ID int) error
}
type Dependencies ¶ added in v1.11.0
type Dependencies []Dependency
type Dependency ¶ added in v1.11.0
type Details ¶ added in v1.4.2
type Details struct {
// Containers
Containers *Containers `json:"containers,omitempty"`
// Filesystems
ReadWritePaths *ReadWritePaths `json:"readWritePaths,omitempty"`
ReadPaths *ReadPaths `json:"readPaths,omitempty"`
// Network
AllOutbound bool `json:"allOutbound"`
AllInbound bool `json:"allInbound"`
TCPListenPorts *TCPListenPorts `json:"tcpListenPorts,omitempty"`
UDPListenPorts *UDPListenPorts `json:"udpListenPorts,omitempty"`
// Processes
Processes *Processes `json:"processes,omitempty"`
// Syscalls
Syscalls *Syscalls `json:"syscalls,omitempty"`
// Falco
Append *bool `json:"append,omitempty"`
Source string `json:"source,omitempty"`
Output string `json:"output,omitempty"`
Condition *Condition `json:"condition,omitempty"`
Priority string `json:"priority,omitempty"`
Exceptions []*Exception `json:"exceptions,omitempty"`
MinimumEngineVersion *int `json:"minimumEngineVersion,omitempty"`
RuleType string `json:"ruleType"`
}
type DisplayInfo ¶ added in v1.5.0
type EntryPoint ¶
type EventDisplaySettings ¶ added in v1.5.0
type EventDisplaySettings struct {
Enabled bool `json:"enabled"`
QueryParams QueryParams `json:"queryParams"`
}
type Exception ¶ added in v1.4.2
type Exception struct {
Name string `json:"name"`
Fields interface{} `json:"fields,omitempty"`
Comps interface{} `json:"comps,omitempty"`
Values interface{} `json:"values,omitempty"`
}
type Format ¶ added in v1.5.0
type FormatUnit ¶ added in v1.5.0
type FormatUnit string
const ( FormatUnitPercentage FormatUnit = "%" FormatUnitData FormatUnit = "byte" FormatUnitDataRate FormatUnit = "byteRate" FormatUnitNumber FormatUnit = "number" FormatUnitNumberRate FormatUnit = "numberRate" FormatUnitTime FormatUnit = "relativeTime" )
type GroupMapping ¶ added in v1.4.0
type GroupMappingConfig ¶ added in v1.8.0
type GroupMappingConfigInterface ¶ added in v1.8.0
type GroupMappingConfigInterface interface {
Base
UpdateGroupMappingConfig(ctx context.Context, gmc *GroupMappingConfig) (*GroupMappingConfig, error)
GetGroupMappingConfig(ctx context.Context) (*GroupMappingConfig, error)
}
type GroupMappingInterface ¶ added in v1.4.0
type GroupMappingInterface interface {
Base
CreateGroupMapping(ctx context.Context, gm *GroupMapping) (*GroupMapping, error)
UpdateGroupMapping(ctx context.Context, gm *GroupMapping, id int) (*GroupMapping, error)
DeleteGroupMapping(ctx context.Context, id int) error
GetGroupMapping(ctx context.Context, id int) (*GroupMapping, error)
}
type IAMTokenResponse ¶ added in v1.1.0
type IBMAccessToken ¶ added in v1.1.0
type IBMAccessToken string
type IBMMonitor ¶ added in v1.1.0
type IBMMonitor interface {
IBMCommon
MonitorCommon
}
func NewIBMMonitor ¶ added in v1.1.0
func NewIBMMonitor(opts ...ClientOption) IBMMonitor
type IBMRequest ¶ added in v1.1.0
type IBMRequest struct {
// contains filtered or unexported fields
}
func (*IBMRequest) CurrentTeamID ¶ added in v1.3.0
func (ir *IBMRequest) CurrentTeamID(ctx context.Context) (int, error)
type IBMSecure ¶ added in v1.8.0
type IBMSecure interface {
IBMCommon
SecureCommon
}
func NewIBMSecure ¶ added in v1.8.0
func NewIBMSecure(opts ...ClientOption) IBMSecure
type IdentityContext ¶ added in v1.10.0
type IdentityContext struct {
IdentityType string `json:"identityType"`
CustomerID int `json:"customerId"`
TeamID int `json:"teamId"`
TeamName string `json:"teamName"`
UserID int `json:"userId"`
Username string `json:"username"`
ServiceAccountID int `json:"serviceAccountId"`
ServiceAccountName string `json:"serviceAccountName"`
}
type IdentityContextInterface ¶ added in v1.10.0
type IdentityContextInterface interface {
GetIdentityContext(ctx context.Context) (*IdentityContext, error)
}
type LabelDescriptorV3 ¶ added in v1.6.0
type Left ¶ added in v1.5.0
type Left struct {
Enabled bool `json:"enabled"`
DisplayName interface{} `json:"displayName"`
Unit string `json:"unit"`
DisplayFormat string `json:"displayFormat"`
Decimals interface{} `json:"decimals"`
MinValue float64 `json:"minValue"`
MaxValue interface{} `json:"maxValue"`
MinInputFormat string `json:"minInputFormat"`
MaxInputFormat string `json:"maxInputFormat"`
Scale string `json:"scale"`
}
type LegendConfiguration ¶ added in v1.5.0
type ListInterface ¶ added in v1.4.1
type MacroCondition ¶ added in v1.4.1
type MacroCondition struct {
Condition string `json:"condition"`
}
type MacroInterface ¶ added in v1.4.1
type MonitorCommon ¶ added in v1.4.0
type MonitorCommon interface {
AlertInterface
AlertV2Interface
DashboardInterface
}
type NamespaceFilters ¶ added in v1.1.0
type NamespaceFilters struct {
IBMPlatformMetrics *string `json:"ibmPlatformMetrics"`
}
type NotificationChannel ¶ added in v1.2.0
type NotificationChannelConfigV2 ¶ added in v1.6.0
type NotificationChannelConfigV2 struct {
ChannelID int `json:"channelId,omitempty"`
Type string `json:"type,omitempty"`
Name string `json:"nam,omitempty"`
Enabled bool `json:"enabled,omitempty"`
OverrideOptions NotificationChannelOptionsV2 `json:"overrideOptions"`
}
type NotificationChannelInterface ¶ added in v1.2.0
type NotificationChannelInterface interface {
Base
GetNotificationChannelById(ctx context.Context, id int) (NotificationChannel, error)
GetNotificationChannelByName(ctx context.Context, name string) (NotificationChannel, error)
CreateNotificationChannel(ctx context.Context, channel NotificationChannel) (NotificationChannel, error)
UpdateNotificationChannel(ctx context.Context, channel NotificationChannel) (NotificationChannel, error)
DeleteNotificationChannel(ctx context.Context, id int) error
}
type NotificationChannelOptions ¶ added in v1.2.0
type NotificationChannelOptions struct {
EmailRecipients []string `json:"emailRecipients,omitempty"` // Type: email
SnsTopicARNs []string `json:"snsTopicARNs,omitempty"` // Type: SNS
APIKey string `json:"apiKey,omitempty"` // Type: VictorOps
RoutingKey string `json:"routingKey,omitempty"` // Type: VictorOps
Url string `json:"url,omitempty"` // Type: OpsGenie, Webhook and Slack
Channel string `json:"channel,omitempty"` // Type: Slack
Account string `json:"account,omitempty"` // Type: PagerDuty
ServiceKey string `json:"serviceKey,omitempty"` // Type: PagerDuty
ServiceName string `json:"serviceName,omitempty"` // Type: PagerDuty
AdditionalHeaders map[string]interface{} `json:"additionalHeaders,omitempty"` // Type: Webhook
Region string `json:"region,omitempty"` // Type: OpsGenie
TemplateConfiguration []NotificationChannelTemplateConfiguration `json:"templateConfiguration,omitempty"`
NotifyOnOk bool `json:"notifyOnOk"`
NotifyOnResolve bool `json:"notifyOnResolve"`
SendTestNotification bool `json:"sendTestNotification"`
}
type NotificationChannelOptionsV2 ¶ added in v1.6.0
type NotificationChannelOptionsV2 struct {
NotifyOnAcknowledge bool `json:"notifyOnAcknowledge,omitempty"`
NotifyOnResolve bool `json:"notifyOnResolve"`
ReNotifyEverySec *int `json:"reNotifyEverySec"`
CustomNotificationTemplate *CustomNotificationTemplateV2 `json:"customNotificationTemplate,omitempty"`
Thresholds []string `json:"thresholds"`
}
type NotificationChannelTemplateConfiguration ¶ added in v1.9.0
type NotificationChannelTemplateConfiguration struct {
TemplateKey string `json:"templateKey,omitempty"`
TemplateConfigurationSections []NotificationChannelTemplateConfigurationSection `json:"templateConfigurationSections,omitempty"`
}
type NotificationChannelTemplateConfigurationSection ¶ added in v1.9.0
type NumberThresholdBase ¶ added in v1.5.0
type NumberThresholds ¶ added in v1.5.0
type NumberThresholds struct {
Base NumberThresholdBase `json:"base"`
Values []interface{} `json:"values"`
}
type Panels ¶ added in v1.5.0
type Panels struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
AxesConfiguration *AxesConfiguration `json:"axesConfiguration,omitempty"`
LegendConfiguration *LegendConfiguration `json:"legendConfiguration,omitempty"`
ApplyScopeToAll bool `json:"applyScopeToAll,omitempty"`
ApplySegmentationToAll bool `json:"applySegmentationToAll,omitempty"`
AdvancedQueries []*AdvancedQueries `json:"advancedQueries,omitempty"`
NumberThresholds *NumberThresholds `json:"numberThresholds,omitempty"`
MarkdownSource *string `json:"markdownSource,omitempty"`
PanelTitleVisible bool `json:"panelTitleVisible"`
TextAutosized bool `json:"textAutosized"`
TransparentBackground bool `json:"transparentBackground"`
Type PanelType `json:"type"`
// Just a helper to the client, the actual field is in Dashboard
Layout *Layout `json:"-"`
}
func (*Panels) AddQueries ¶ added in v1.5.0
func (p *Panels) AddQueries(queries ...*AdvancedQueries) (*Panels, error)
type Policy ¶ added in v1.4.1
type Policy struct {
ID int `json:"id,omitempty"`
IsDefault bool `json:"isDefault"`
Name string `json:"name"`
Description string `json:"description"`
Severity int `json:"severity"`
Enabled bool `json:"enabled"`
RuleNames []string `json:"ruleNames"`
Rules []*PolicyRule `json:"rules,omitempty"`
Actions []Action `json:"actions"`
Scope string `json:"scope,omitempty"`
Version int `json:"version,omitempty"`
NotificationChannelIds []int `json:"notificationChannelIds"`
Type string `json:"type"`
Runbook string `json:"runbook"`
TemplateId int `json:"templateId"`
TemplateVersion string `json:"templateVersion"`
}
type PolicyInterface ¶ added in v1.4.1
type PolicyInterface interface {
Base
CreatePolicy(ctx context.Context, policy Policy) (Policy, error)
DeletePolicy(ctx context.Context, policyID int) error
UpdatePolicy(ctx context.Context, policy Policy) (Policy, error)
GetPolicyByID(ctx context.Context, policyID int) (Policy, int, error)
GetPolicies(ctx context.Context) ([]Policy, int, error)
}
type PolicyRule ¶ added in v1.5.0
type PosturePolicy ¶ added in v1.10.0
type PosturePolicy struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
Type int `json:"type"`
Kind int `json:"kind"`
Description string `json:"description"`
Version string `json:"version"`
Link string `json:"link"`
Authors string `json:"authors"`
PublishedData string `json:"publishedDate"`
MinKubeVersion float64 `json:"minKubeVersion"`
MaxKubeVersion float64 `json:"maxKubeVersion"`
IsCustom bool `json:"isCustom"`
IsActive bool `json:"isActive"`
Platform string `json:"platform"`
Zones []PosturePolicyZoneMeta `json:"zones"`
}
type PosturePolicyInterface ¶ added in v1.10.0
type PosturePolicyInterface interface {
Base
ListPosturePolicies(ctx context.Context) ([]PosturePolicy, error)
}
type PosturePolicyZoneMeta ¶ added in v1.10.0
type PostureZone ¶ added in v1.10.0
type PostureZone struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Author string `json:"author"`
LastModifiedBy string `json:"lastModifiedBy"`
LastUpdated string `json:"lastUpdated"`
IsSystem bool `json:"isSystem"`
Scopes []PostureZoneScope `json:"scopes"`
Policies []PostureZonePolicySlim `json:"policies"`
}
type PostureZoneInterface ¶ added in v1.10.0
type PostureZoneInterface interface {
Base
CreateOrUpdatePostureZone(ctx context.Context, z *PostureZoneRequest) (*PostureZone, error)
GetPostureZone(ctx context.Context, id int) (*PostureZone, error)
DeletePostureZone(ctx context.Context, id int) error
}
type PostureZonePolicyListResponse ¶ added in v1.10.0
type PostureZonePolicyListResponse struct {
Data []PosturePolicy `json:"data"`
}
type PostureZonePolicySlim ¶ added in v1.10.0
type PostureZoneRequest ¶ added in v1.10.0
type PostureZoneRequest struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
PolicyIDs []string `json:"policyIds"`
Scopes []PostureZoneScope `json:"scopes"`
}
type PostureZoneResponse ¶ added in v1.10.0
type PostureZoneResponse struct {
Data PostureZone `json:"data"`
}
type PostureZoneScope ¶ added in v1.10.0
type QueryParams ¶ added in v1.5.0
type ReadWritePaths ¶ added in v1.4.2
type Right ¶ added in v1.5.0
type Right struct {
Enabled bool `json:"enabled"`
DisplayName interface{} `json:"displayName"`
Unit string `json:"unit"`
DisplayFormat string `json:"displayFormat"`
Decimals interface{} `json:"decimals"`
MinValue float64 `json:"minValue"`
MaxValue interface{} `json:"maxValue"`
MinInputFormat string `json:"minInputFormat"`
MaxInputFormat string `json:"maxInputFormat"`
Scale string `json:"scale"`
}
type RuleInterface ¶ added in v1.4.2
type RuleInterface interface {
Base
CreateRule(ctx context.Context, rule Rule) (Rule, error)
GetRuleByID(ctx context.Context, ruleID int) (Rule, error)
UpdateRule(ctx context.Context, rule Rule) (Rule, error)
DeleteRule(ctx context.Context, ruleID int) error
GetRuleGroup(ctx context.Context, ruleName string, ruleType string) ([]Rule, error)
}
type ScanningGate ¶ added in v1.4.2
type ScanningGate struct {
ID string `json:"id,omitempty"`
Gate string `json:"gate"`
Trigger string `json:"trigger"`
Action string `json:"action"`
Params []ScanningGateParam `json:"params"`
}
type ScanningGateParam ¶ added in v1.4.2
type ScanningPolicy ¶ added in v1.4.2
type ScanningPolicyAssignment ¶ added in v1.4.2
type ScanningPolicyAssignment struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
Registry string `json:"registry"`
Repository string `json:"repository"`
Image ScanningPolicyAssignmentImage `json:"image"`
PolicyIDs []string `json:"policy_ids"`
WhitelistIDs []string `json:"whitelist_ids"`
}
type ScanningPolicyAssignmentImage ¶ added in v1.4.2
type ScanningPolicyAssignmentInterface ¶ added in v1.4.2
type ScanningPolicyAssignmentInterface interface {
Base
CreateScanningPolicyAssignmentList(ctx context.Context, scanningPolicyAssignmentRequest ScanningPolicyAssignmentList) (ScanningPolicyAssignmentList, error)
DeleteScanningPolicyAssignmentList(ctx context.Context, scanningPolicyAssignmentList ScanningPolicyAssignmentList) error
GetScanningPolicyAssignmentList(ctx context.Context) (ScanningPolicyAssignmentList, error)
}
type ScanningPolicyAssignmentList ¶ added in v1.4.2
type ScanningPolicyAssignmentList struct {
Items []ScanningPolicyAssignment `json:"items"`
PolicyBundleId string `json:"policyBundleId"`
}
type ScanningPolicyInterface ¶ added in v1.4.2
type ScanningPolicyInterface interface {
Base
CreateScanningPolicy(ctx context.Context, scanningPolicy ScanningPolicy) (ScanningPolicy, error)
GetScanningPolicyByID(ctx context.Context, scanningPolicyID string) (ScanningPolicy, error)
UpdateScanningPolicyByID(ctx context.Context, scanningPolicy ScanningPolicy) (ScanningPolicy, error)
DeleteScanningPolicyByID(ctx context.Context, scanningPolicyID string) error
}
type ScopeExpressionList ¶ added in v1.5.0
type ScopeExpressionV2 ¶ added in v1.6.0
type ScopeExpressionV2 struct {
Operand string `json:"operand"`
Descriptor *AlertLabelDescriptorV2 `json:"descriptor,omitempty"`
Operator string `json:"operator"`
Value []string `json:"value"`
}
type ScopedSegmentedConfig ¶ added in v1.6.0
type ScopedSegmentedConfig struct {
Scope *AlertScopeV2 `json:"scope,omitempty"`
SegmentBy []AlertLabelDescriptorV2 `json:"segmentBy"`
}
type SecureCommon ¶ added in v1.10.0
type SecureCommon interface {
PosturePolicyInterface
PostureZoneInterface
}
type SegmentCondition ¶ added in v1.4.0
type SegmentCondition struct {
Type string `json:"type"`
}
type SharingMember ¶ added in v1.5.0
type SharingOptions ¶ added in v1.5.0
type SharingOptions struct {
Member SharingMember `json:"member"`
Role string `json:"role"`
}
type SysdigCapture ¶ added in v1.4.0
type SysdigCapture struct {
Name string `json:"name"`
Filters string `json:"filters,omitempty"`
Duration int `json:"duration"`
Type string `json:"type,omitempty"`
BucketName string `json:"bucketName"`
Folder string `json:"folder,omitempty"`
Enabled bool `json:"enabled"`
StorageID interface{} `json:"storageId,omitempty"`
}
type SysdigCommon ¶ added in v1.1.0
type SysdigCommon interface {
Common
GroupMappingInterface
GroupMappingConfigInterface
CustomRoleInterface
CustomRolePermissionInterface
TeamServiceAccountInterface
}
type SysdigMonitor ¶ added in v1.1.0
type SysdigMonitor interface {
SysdigCommon
MonitorCommon
CloudAccountMonitorInterface
}
func NewSysdigMonitor ¶ added in v1.1.0
func NewSysdigMonitor(opts ...ClientOption) SysdigMonitor
type SysdigRequest ¶ added in v0.7.3
type SysdigRequest struct {
// contains filtered or unexported fields
}
func (*SysdigRequest) CurrentTeamID ¶ added in v1.3.0
func (sr *SysdigRequest) CurrentTeamID(ctx context.Context) (int, error)
type SysdigSecure ¶ added in v1.1.0
type SysdigSecure interface {
SysdigCommon
SecureCommon
PolicyInterface
RuleInterface
ListInterface
MacroInterface
ScanningPolicyInterface
ScanningPolicyAssignmentInterface
VulnerabilityExceptionListInterface
VulnerabilityExceptionInterface
CloudAccountSecureInterface
}
func NewSysdigSecure ¶ added in v1.1.0
func NewSysdigSecure(opts ...ClientOption) SysdigSecure
type TCPListenPorts ¶ added in v1.4.2
type Team ¶
type Team struct {
UserRoles []UserRoles `json:"userRoles,omitempty"`
Description string `json:"description"`
Name string `json:"name"`
ID int `json:"id,omitempty"`
Version int `json:"version,omitempty"`
Origin string `json:"origin,omitempty"`
LastUpdated int64 `json:"lastUpdated,omitempty"`
EntryPoint *EntryPoint `json:"entryPoint,omitempty"`
Theme string `json:"theme"`
CustomerID int `json:"customerId,omitempty"`
DateCreated int64 `json:"dateCreated,omitempty"`
Products []string `json:"products,omitempty"`
Show string `json:"show,omitempty"`
Immutable bool `json:"immutable,omitempty"`
CanUseSysdigCapture *bool `json:"canUseSysdigCapture,omitempty"`
CanUseCustomEvents *bool `json:"canUseCustomEvents,omitempty"`
CanUseAwsMetrics *bool `json:"canUseAwsMetrics,omitempty"`
CanUseBeaconMetrics *bool `json:"canUseBeaconMetrics,omitempty"`
UserCount int `json:"userCount,omitempty"`
Filter string `json:"filter,omitempty"`
NamespaceFilters *NamespaceFilters `json:"namespaceFilters,omitempty"`
DefaultTeam bool `json:"default,omitempty"`
ZoneIDs []int `json:"zoneIds,omitempty"`
AllZones bool `json:"allZones"`
}
type TeamInterface ¶
type TeamInterface interface {
Base
GetUserIDByEmail(ctx context.Context, userRoles []UserRoles) ([]UserRoles, error)
GetTeamById(ctx context.Context, id int) (t Team, err error)
CreateTeam(ctx context.Context, tRequest Team) (t Team, err error)
UpdateTeam(ctx context.Context, tRequest Team) (t Team, err error)
DeleteTeam(ctx context.Context, id int) error
}
type TeamServiceAccount ¶ added in v1.11.0
type TeamServiceAccount struct {
ID int `json:"id,omitempty"`
Name string `json:"name"`
SystemRole string `json:"systemRole"`
TeamId int `json:"teamId"`
TeamRole string `json:"teamRole"`
DateCreated int64 `json:"dateCreated,omitempty"`
ExpirationDate int64 `json:"expirationDate"`
ApiKey string `json:"apiKey,omitempty"`
}
type TeamServiceAccountInterface ¶ added in v1.11.0
type TeamServiceAccountInterface interface {
Base
GetTeamServiceAccountByID(ctx context.Context, id int) (*TeamServiceAccount, error)
CreateTeamServiceAccount(ctx context.Context, account *TeamServiceAccount) (*TeamServiceAccount, error)
UpdateTeamServiceAccount(ctx context.Context, account *TeamServiceAccount, id int) (*TeamServiceAccount, error)
DeleteTeamServiceAccount(ctx context.Context, id int) error
}
type TeamSharingOptions ¶ added in v1.5.0
type UDPListenPorts ¶ added in v1.4.2
type UnixTimestamp ¶ added in v1.1.0
type UnixTimestamp int64
type UserInterface ¶ added in v1.4.0
type UserInterface interface {
Base
GetUserById(ctx context.Context, id int) (*User, error)
GetUserByUsername(ctx context.Context, username string) (*User, error)
GetUserByEmail(ctx context.Context, email string) (*User, error)
CreateUser(ctx context.Context, user *User) (*User, error)
UpdateUser(ctx context.Context, user *User) (*User, error)
DeleteUser(ctx context.Context, id int) error
GetCurrentUser(ctx context.Context) (u *User, err error)
}
type VulnerabilityException ¶ added in v1.4.2
type VulnerabilityExceptionInterface ¶ added in v1.4.2
type VulnerabilityExceptionInterface interface {
Base
CreateVulnerabilityException(ctx context.Context, listID string, exception *VulnerabilityException) (*VulnerabilityException, error)
GetVulnerabilityExceptionByID(ctx context.Context, listID string, exceptionID string) (*VulnerabilityException, error)
DeleteVulnerabilityException(ctx context.Context, listID string, exceptionID string) error
UpdateVulnerabilityException(ctx context.Context, listID string, exception *VulnerabilityException) (*VulnerabilityException, error)
}
type VulnerabilityExceptionList ¶ added in v1.4.2
type VulnerabilityExceptionListInterface ¶ added in v1.4.2
type VulnerabilityExceptionListInterface interface {
Base
CreateVulnerabilityExceptionList(ctx context.Context, list *VulnerabilityExceptionList) (*VulnerabilityExceptionList, error)
GetVulnerabilityExceptionListByID(ctx context.Context, id string) (*VulnerabilityExceptionList, error)
DeleteVulnerabilityExceptionList(ctx context.Context, id string) error
UpdateVulnerabilityExceptionList(ctx context.Context, list *VulnerabilityExceptionList) (*VulnerabilityExceptionList, error)
}
Source Files
¶
- alerts.go
- alerts_v2.go
- client.go
- cloud_account.go
- config.go
- custom_role.go
- dashboard.go
- group_mapping.go
- group_mapping_config.go
- ibm.go
- identity_context.go
- list.go
- macros.go
- model.go
- model_dashboard.go
- notification_channels.go
- permission.go
- policies.go
- posture_policies.go
- posture_zones.go
- rules.go
- scanning_policies.go
- sysdig.go
- team_service_account.go
- teams.go
- users.go
- vulnerability_exception.go
Click to show internal directories.
Click to hide internal directories.