Documentation
¶
Index ¶
- Variables
- func ListIssues(ctx context.Context, teamSlug slug.Slug, page *pagination.Pagination, ...) (*pagination.Connection[Issue], error)
- func NewContext(ctx context.Context, dbConn *pgxpool.Pool) context.Context
- type AivenIssueDetails
- type ApplicationRestartLoopIssue
- type ApplicationRestartLoopIssueDetails
- type Base
- type DeprecatedIngressIssue
- type DeprecatedIngressIssueDetails
- type DeprecatedRegistryIssue
- type ExternalIngressCriticalVulnerabilityIssue
- type ExternalIngressCriticalVulnerabilityIssueDetails
- type FailedSynchronizationIssue
- type InvalidSpecIssue
- type Issue
- type IssueConnection
- type IssueEdge
- type IssueFilter
- type IssueOrder
- type IssueOrderField
- type IssueType
- type LastRunFailedIssue
- type MissingSbomIssue
- type NoRunningInstancesIssue
- type OpenSearchIssue
- type ResourceIssueFilter
- type ResourceType
- type SQLInstanceIssueDetails
- type Severity
- type SqlInstanceStateIssue
- type SqlInstanceVersionIssue
- type UnleashReleaseChannelIssue
- type UnleashReleaseChannelIssueDetails
- type ValkeyIssue
- type VulnerableImageIssue
- type VulnerableImageIssueDetails
Constants ¶
This section is empty.
Variables ¶
View Source
var AllIssueOrderField = []IssueOrderField{ IssueOrderFieldResourceName, IssueOrderFieldSeverity, IssueOrderFieldEnvironment, IssueOrderFieldResourceType, IssueOrderFieldIssueType, }
View Source
var AllIssueType = []IssueType{ IssueTypeOpenSearch, IssueTypeValkey, IssueTypeSqlInstanceState, IssueTypeSqlInstanceVersion, IssueTypeDeprecatedIngress, IssueTypeDeprecatedRegistry, IssueTypeNoRunningInstances, IssueTypeLastRunFailed, IssueTypeInvalidSpec, IssueTypeFailedSynchronization, IssueTypeVulnerableImage, IssueTypeMissingSBOM, IssueTypeExternalIngressCriticalVulnerability, IssueTypeUnleashReleaseChannel, IssueTypeApplicationRestartLoop, }
View Source
var AllResourceType = []ResourceType{ ResourceTypeOpensearch, ResourceTypeValkey, ResourceTypeSQLInstance, ResourceTypeApplication, ResourceTypeJob, ResourceTypeUnleash, }
View Source
var AllSeverity = []Severity{ SeverityCritical, SeverityWarning, SeverityTodo, }
Functions ¶
func ListIssues ¶
func ListIssues(ctx context.Context, teamSlug slug.Slug, page *pagination.Pagination, orderBy *IssueOrder, filter *IssueFilter) (*pagination.Connection[Issue], error)
Types ¶
type AivenIssueDetails ¶
type AivenIssueDetails struct {
Event string `json:"event"`
}
type ApplicationRestartLoopIssue ¶
type ApplicationRestartLoopIssue struct {
Base
ApplicationRestartLoopIssueDetails
}
ApplicationRestartLoopIssue is an issue raised when an application is stuck in a restart loop.
func (ApplicationRestartLoopIssue) IsIssue ¶
func (ApplicationRestartLoopIssue) IsIssue()
func (ApplicationRestartLoopIssue) IsNode ¶
func (ApplicationRestartLoopIssue) IsNode()
type ApplicationRestartLoopIssueDetails ¶
type ApplicationRestartLoopIssueDetails struct {
RestartCount int `json:"restartCount"`
LastExitReason string `json:"lastExitReason"`
LastExitTimestamp time.Time `json:"lastExitTimestamp"`
}
ApplicationRestartLoopIssueDetails holds details about a restart loop issue.
type DeprecatedIngressIssue ¶
func (DeprecatedIngressIssue) IsIssue ¶
func (DeprecatedIngressIssue) IsIssue()
func (DeprecatedIngressIssue) IsNode ¶
func (DeprecatedIngressIssue) IsNode()
type DeprecatedIngressIssueDetails ¶
type DeprecatedIngressIssueDetails struct {
Ingresses []string `json:"ingresses"`
}
type DeprecatedRegistryIssue ¶
type DeprecatedRegistryIssue struct {
Base
}
func (DeprecatedRegistryIssue) IsIssue ¶
func (DeprecatedRegistryIssue) IsIssue()
func (DeprecatedRegistryIssue) IsNode ¶
func (DeprecatedRegistryIssue) IsNode()
type ExternalIngressCriticalVulnerabilityIssue ¶
type ExternalIngressCriticalVulnerabilityIssue struct {
Base
ExternalIngressCriticalVulnerabilityIssueDetails
}
func (ExternalIngressCriticalVulnerabilityIssue) IsIssue ¶
func (ExternalIngressCriticalVulnerabilityIssue) IsIssue()
func (ExternalIngressCriticalVulnerabilityIssue) IsNode ¶
func (ExternalIngressCriticalVulnerabilityIssue) IsNode()
type FailedSynchronizationIssue ¶
type FailedSynchronizationIssue struct {
Base
}
func (FailedSynchronizationIssue) IsIssue ¶
func (FailedSynchronizationIssue) IsIssue()
func (FailedSynchronizationIssue) IsNode ¶
func (FailedSynchronizationIssue) IsNode()
type InvalidSpecIssue ¶
type InvalidSpecIssue struct {
Base
}
func (InvalidSpecIssue) IsIssue ¶
func (InvalidSpecIssue) IsIssue()
func (InvalidSpecIssue) IsNode ¶
func (InvalidSpecIssue) IsNode()
type IssueConnection ¶
type IssueConnection = pagination.Connection[Issue]
type IssueEdge ¶
type IssueEdge = pagination.Edge[Issue]
type IssueFilter ¶
type IssueFilter struct {
// Filter by resource name.
ResourceName *string `json:"resourceName,omitempty"`
// Filter by resource type.
ResourceType *ResourceType `json:"resourceType,omitempty"`
// Filter by environment.
Environments []string `json:"environments,omitempty"`
ResourceIssueFilter
}
type IssueOrder ¶
type IssueOrder struct {
// Order by this field.
Field IssueOrderField `json:"field"`
// Order direction.
Direction model.OrderDirection `json:"direction"`
}
func (*IssueOrder) String ¶
func (o *IssueOrder) String() string
type IssueOrderField ¶
type IssueOrderField string
const ( // Order by resource name. IssueOrderFieldResourceName IssueOrderField = "RESOURCE_NAME" // Order by severity. IssueOrderFieldSeverity IssueOrderField = "SEVERITY" // Order by environment. IssueOrderFieldEnvironment IssueOrderField = "ENVIRONMENT" // Order by resource type. IssueOrderFieldResourceType IssueOrderField = "RESOURCE_TYPE" // Order by issue type. IssueOrderFieldIssueType IssueOrderField = "ISSUE_TYPE" )
func (IssueOrderField) IsValid ¶
func (e IssueOrderField) IsValid() bool
func (IssueOrderField) MarshalGQL ¶
func (e IssueOrderField) MarshalGQL(w io.Writer)
func (IssueOrderField) String ¶
func (e IssueOrderField) String() string
func (*IssueOrderField) UnmarshalGQL ¶
func (e *IssueOrderField) UnmarshalGQL(v any) error
type IssueType ¶
type IssueType string
const ( IssueTypeOpenSearch IssueType = "OPENSEARCH" IssueTypeValkey IssueType = "VALKEY" IssueTypeSqlInstanceState IssueType = "SQLINSTANCE_STATE" IssueTypeSqlInstanceVersion IssueType = "SQLINSTANCE_VERSION" IssueTypeDeprecatedIngress IssueType = "DEPRECATED_INGRESS" IssueTypeDeprecatedRegistry IssueType = "DEPRECATED_REGISTRY" IssueTypeNoRunningInstances IssueType = "NO_RUNNING_INSTANCES" IssueTypeLastRunFailed IssueType = "LAST_RUN_FAILED" IssueTypeFailedSynchronization IssueType = "FAILED_SYNCHRONIZATION" IssueTypeInvalidSpec IssueType = "INVALID_SPEC" IssueTypeVulnerableImage IssueType = "VULNERABLE_IMAGE" IssueTypeMissingSBOM IssueType = "MISSING_SBOM" IssueTypeExternalIngressCriticalVulnerability IssueType = "EXTERNAL_INGRESS_CRITICAL_VULNERABILITY" IssueTypeUnleashReleaseChannel IssueType = "UNLEASH_RELEASE_CHANNEL" IssueTypeApplicationRestartLoop IssueType = "APPLICATION_RESTART_LOOP" )
func (IssueType) MarshalGQL ¶
func (*IssueType) UnmarshalGQL ¶
type LastRunFailedIssue ¶
type LastRunFailedIssue struct {
Base
}
func (LastRunFailedIssue) IsIssue ¶
func (LastRunFailedIssue) IsIssue()
func (LastRunFailedIssue) IsNode ¶
func (LastRunFailedIssue) IsNode()
type MissingSbomIssue ¶
type MissingSbomIssue struct {
Base
}
func (MissingSbomIssue) IsIssue ¶
func (MissingSbomIssue) IsIssue()
func (MissingSbomIssue) IsNode ¶
func (MissingSbomIssue) IsNode()
type NoRunningInstancesIssue ¶
type NoRunningInstancesIssue struct {
Base
}
func (NoRunningInstancesIssue) IsIssue ¶
func (NoRunningInstancesIssue) IsIssue()
func (NoRunningInstancesIssue) IsNode ¶
func (NoRunningInstancesIssue) IsNode()
type OpenSearchIssue ¶
func (OpenSearchIssue) IsIssue ¶
func (OpenSearchIssue) IsIssue()
func (OpenSearchIssue) IsNode ¶
func (OpenSearchIssue) IsNode()
type ResourceIssueFilter ¶
type ResourceType ¶
type ResourceType string
const ( ResourceTypeOpensearch ResourceType = "OPENSEARCH" ResourceTypeValkey ResourceType = "VALKEY" ResourceTypeSQLInstance ResourceType = "SQLINSTANCE" ResourceTypeApplication ResourceType = "APPLICATION" ResourceTypeJob ResourceType = "JOB" ResourceTypeUnleash ResourceType = "UNLEASH" )
func (ResourceType) IsValid ¶
func (e ResourceType) IsValid() bool
func (ResourceType) MarshalGQL ¶
func (e ResourceType) MarshalGQL(w io.Writer)
func (ResourceType) String ¶
func (e ResourceType) String() string
func (*ResourceType) UnmarshalGQL ¶
func (e *ResourceType) UnmarshalGQL(v any) error
type SQLInstanceIssueDetails ¶
type SqlInstanceStateIssue ¶
type SqlInstanceStateIssue struct {
Base
State sqlinstance.SQLInstanceState `json:"state"`
}
func (SqlInstanceStateIssue) IsIssue ¶
func (SqlInstanceStateIssue) IsIssue()
func (SqlInstanceStateIssue) IsNode ¶
func (SqlInstanceStateIssue) IsNode()
type SqlInstanceVersionIssue ¶
type SqlInstanceVersionIssue struct {
Base
}
func (SqlInstanceVersionIssue) IsIssue ¶
func (SqlInstanceVersionIssue) IsIssue()
func (SqlInstanceVersionIssue) IsNode ¶
func (SqlInstanceVersionIssue) IsNode()
type UnleashReleaseChannelIssue ¶
type UnleashReleaseChannelIssue struct {
Base
UnleashReleaseChannelIssueDetails
}
func (UnleashReleaseChannelIssue) IsIssue ¶
func (UnleashReleaseChannelIssue) IsIssue()
func (UnleashReleaseChannelIssue) IsNode ¶
func (UnleashReleaseChannelIssue) IsNode()
type ValkeyIssue ¶
func (ValkeyIssue) IsIssue ¶
func (ValkeyIssue) IsIssue()
func (ValkeyIssue) IsNode ¶
func (ValkeyIssue) IsNode()
type VulnerableImageIssue ¶
type VulnerableImageIssue struct {
Base
VulnerableImageIssueDetails
}
func (VulnerableImageIssue) IsIssue ¶
func (VulnerableImageIssue) IsIssue()
func (VulnerableImageIssue) IsNode ¶
func (VulnerableImageIssue) IsNode()
Click to show internal directories.
Click to hide internal directories.