Documentation
¶
Index ¶
- type AlertRuleFilterParams
- type AlertRuleWithNestedFolder
- type ConnectionPermissionItem
- type ContextHandler
- type DashboardAndPermissions
- type FilterReader
- type FilterType
- type InputValidation
- type NestedHit
- type OrgsDTOWithPreferences
- type Processor
- type ProcessorEntity
- type ResourceType
- type ServiceAccountDTOWithTokens
- type UserProfileWithAuth
- type WithNested
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertRuleFilterParams ¶
type AlertRuleFilterParams struct {
Folder string
UID string
Label []string
IgnoreWatchedFolders bool
}
AlertRuleFilterParams defines the filtering criteria used to narrow down alert rules during import or export operations. It allows filtering by folder name, a set of labels, and provides an option to ignore folder-based rules.
type AlertRuleWithNestedFolder ¶
type AlertRuleWithNestedFolder struct {
*models.ProvisionedAlertRule
NestedPath string
}
type ConnectionPermissionItem ¶
type ConnectionPermissionItem struct {
Connection *models.DataSourceListItemDTO
Permissions []*models.ResourcePermissionDTO
}
ConnectionPermissionItem holds a connection and its associated permissions.
type ContextHandler ¶
type ContextHandler struct {
// contains filtered or unexported fields
}
func NewContextHandler ¶
type DashboardAndPermissions ¶
type DashboardAndPermissions struct {
Dashboard *NestedHit
Permissions []*models.DashboardACLInfoDTO
}
DashboardAndPermissions holds a dashboard reference and its permission list.
type FilterReader ¶
type FilterType ¶
type FilterType string
FilterType Currently supported filters
const ( TagsFilter FilterType = "TagsFilter" DashFilter FilterType = "DashFilter" FolderFilter FilterType = "FolderFilter" AlertRuleFilterType = "AlertRuleFilter" Name FilterType = "Name" UID FilterType = "UID" ConnectionName FilterType = "ConnectionName" // used for Connection name AuthLabel FilterType = "AuthLabel" OrgFilter FilterType = "OrgFilter" )
func (FilterType) String ¶
func (s FilterType) String() string
type InputValidation ¶
type NestedHit ¶
NestedHit represents a Dashboard or Folder with an associated nested path in dashboard filtering.
type OrgsDTOWithPreferences ¶
type OrgsDTOWithPreferences struct {
Organization *models.OrgDTO `json:"organization"`
Preferences *models.PreferencesSpec `json:"preferences"` // Preferences are preferences associated with a given org. theme, dashboard, timezone, etc
}
OrgsDTOWithPreferences represents an organization and its preferences.
type ProcessorEntity ¶
type ProcessorEntity struct {
Name string
// priority int8
// postProcess bool
Processor Processor
}
func (ProcessorEntity) Validate ¶
func (p ProcessorEntity) Validate() error
type ResourceType ¶
type ResourceType string
const ( ConnectionPermissionResource ResourceType = "connections-permissions" ConnectionResource ResourceType = "connections" DashboardPermissionsResource ResourceType = "dashboards-permissions" DashboardResource ResourceType = "dashboards" FolderPermissionResource ResourceType = "folders-permissions" FolderResource ResourceType = "folders" LibraryElementResource ResourceType = "libraryelements" OrganizationResource ResourceType = "organizations" OrganizationMetaResource ResourceType = "org" TeamResource ResourceType = "teams" UserResource ResourceType = "users" TemplatesResource ResourceType = "templates" SecureSecretsResource ResourceType = "secure" AlertingResource ResourceType = "alerting" AlertingRulesResource ResourceType = "alerting-rules" )
func (*ResourceType) GetPath ¶
func (s *ResourceType) GetPath(basePath string, orgName string) string
GetPath returns the path of the resource type, if Namespaced, will delimit the path by org Id
func (*ResourceType) String ¶
func (s *ResourceType) String() string
String returns the string representation of the resource type
type ServiceAccountDTOWithTokens ¶
type ServiceAccountDTOWithTokens struct {
ServiceAccount *models.ServiceAccountDTO
Tokens []*models.TokenDTO
}
ServiceAccountDTOWithTokens represents a service account and its associated tokens.
type UserProfileWithAuth ¶
type UserProfileWithAuth struct {
models.UserProfileDTO
Password string // #nosec G117 is the user's temporary generated password
}
UserProfileWithAuth embeds UserProfileDTO and adds a Password field for authentication.
type WithNested ¶
WithNested represents an entity with a nested path for filtering purposes.