Documentation
¶
Index ¶
- Constants
- Variables
- func GenericStructScan[T any](t *T, val any) error
- func GenericStructValue[T any](t T, defaultNull bool) (driver.Value, error)
- func GormValue(t any) clause.Expr
- func IsMatchItem(q string) bool
- func JSONGormDBDataType(dialect string) string
- func MatchSelectables[T ResourceSelectable](selectables []T, selectors ...ResourceSelector) []T
- func ParseFilteringQuery(query string, decodeURL bool) (in []interface{}, notIN []interface{}, prefix, suffix []string, err error)
- type AgentProvider
- type AggregateRow
- type AggregatedResourceSelector
- type AggregationField
- type Approval
- type ApprovalStage
- type ApprovalStatus
- type Authentication
- type Backup
- type BackupType
- type CelExpression
- type Change
- type ClientOption
- type ClientOptions
- type ComponentCheck
- type ComponentChecks
- func (ComponentChecks) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (cs ComponentChecks) GormDataType() string
- func (cs ComponentChecks) GormValue(ctx context.Context, db *gorm.DB) clause.Expr
- func (cs *ComponentChecks) Scan(val interface{}) error
- func (cs ComponentChecks) Value() (driver.Value, error)
- type ComponentConfigTraversalArgs
- type ComponentStatus
- type ConfigChange
- type ConfigChangeDetail
- type ConfigMapKeySelector
- type ConfigQueries
- type ConfigQuery
- type DatabaseSource
- type DeploymentType
- type DescriptionProvider
- type Dimension
- type Duration
- type DutyContext
- type EnvVar
- func (in *EnvVar) DeepCopy() *EnvVar
- func (in *EnvVar) DeepCopyInto(out *EnvVar)
- func (EnvVar) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (EnvVar) GormDataType() string
- func (e EnvVar) IsEmpty() bool
- func (e *EnvVar) Scan(value any) error
- func (e EnvVar) String() string
- func (e EnvVar) Value() (driver.Value, error)
- type EnvVarResourceSelector
- type EnvVarSource
- type Environment
- type EnvironmentStage
- type EnvironmentType
- type Event
- type Functions
- type GenericFieldMatcher
- type GenericLabelsMatcher
- type GenericLabelsMatcherAny
- type GetEnvVarFromCache
- type GitSource
- type GoTemplate
- type GroupMembership
- type GroupMembershipAction
- type HTTPBasicAuth
- type HelmRefKeySelector
- type HelmSource
- type Identity
- type IdentityType
- type ImageSource
- type Incident
- type Items
- type JSON
- func (JSON) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (JSON) GormDataType() string
- func (js JSON) GormValue(ctx context.Context, db *gorm.DB) clause.Expr
- func (j JSON) MarshalJSON() ([]byte, error)
- func (j *JSON) Scan(value any) error
- func (j JSON) String() string
- func (j *JSON) UnmarshalJSON(b []byte) error
- func (j JSON) Value() (driver.Value, error)
- type JSONMap
- func (JSONMap) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (m JSONMap) GormDataType() string
- func (jm JSONMap) GormValue(ctx context.Context, db *gorm.DB) clause.Expr
- func (m JSONMap) MarshalJSON() ([]byte, error)
- func (m *JSONMap) Scan(val any) error
- func (m *JSONMap) UnmarshalJSON(b []byte) error
- func (m JSONMap) Value() (driver.Value, error)
- type JSONQueryExpression
- type JSONStringMap
- func (JSONStringMap) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (m JSONStringMap) GormDataType() string
- func (jm JSONStringMap) GormValue(ctx context.Context, db *gorm.DB) clause.Expr
- func (m JSONStringMap) MarshalJSON() ([]byte, error)
- func (m *JSONStringMap) Scan(val any) error
- func (jm JSONStringMap) ToMapStringAny() map[string]any
- func (m *JSONStringMap) UnmarshalJSON(b []byte) error
- func (m JSONStringMap) Value() (driver.Value, error)
- type Latency
- type Link
- type LocalObjectReference
- type LogSelector
- type LogSelectors
- type MatchExpression
- type MatchExpressions
- type NoOpResourceSelectable
- type NullString
- type OAuth
- type PermissionChangeDetails
- type PipelineRun
- type Promotion
- type Properties
- func (p Properties) AsJSON() []byte
- func (p Properties) AsMap() map[string]interface{}
- func (p Properties) Find(name string) *Property
- func (Properties) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Properties) GormDataType() string
- func (p Properties) GormValue(ctx context.Context, db *gorm.DB) clause.Expr
- func (m Properties) MarshalJSON() ([]byte, error)
- func (p *Properties) Scan(val interface{}) error
- func (m *Properties) UnmarshalJSON(b []byte) error
- func (p Properties) Value() (driver.Value, error)
- type Property
- type ResourceSelectable
- type ResourceSelectableMap
- func (t ResourceSelectableMap) GetFieldsMatcher() fields.Fields
- func (t ResourceSelectableMap) GetHealth() (string, error)
- func (t ResourceSelectableMap) GetHealthDescription() string
- func (t ResourceSelectableMap) GetID() string
- func (r ResourceSelectableMap) GetLabelsMatcher() labels.Labels
- func (t ResourceSelectableMap) GetName() string
- func (t ResourceSelectableMap) GetNamespace() string
- func (t ResourceSelectableMap) GetStatus() (string, error)
- func (r ResourceSelectableMap) GetTagsMatcher() labels.Labels
- func (t ResourceSelectableMap) GetType() string
- type ResourceSelector
- func (rs ResourceSelector) Canonical() ResourceSelector
- func (in *ResourceSelector) DeepCopy() *ResourceSelector
- func (in *ResourceSelector) DeepCopyInto(out *ResourceSelector)
- func (rs ResourceSelector) Expand() []ResourceSelector
- func (c ResourceSelector) Hash() string
- func (c ResourceSelector) Immutable() bool
- func (c ResourceSelector) IsEmpty() bool
- func (rs ResourceSelector) IsMetadataOnly() bool
- func (rs ResourceSelector) Matches(s ResourceSelectable) bool
- func (rs ResourceSelector) MetadataOnly() ResourceSelector
- func (rs ResourceSelector) Pretty() api.Text
- func (rs ResourceSelector) String() string
- func (c ResourceSelector) ToGetOptions() (string, bool)
- func (c ResourceSelector) ToListOptions() (metav1.ListOptions, bool)
- func (rs ResourceSelector) ToPeg(convertSelectors bool) string
- func (rs ResourceSelector) Type(t string) ResourceSelector
- func (c ResourceSelector) Wildcard() bool
- type ResourceSelectors
- func (ResourceSelectors) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (rs ResourceSelectors) GormDataType() string
- func (rs ResourceSelectors) GormValue(ctx context.Context, db *gorm.DB) clause.Expr
- func (rs ResourceSelectors) Hash() string
- func (rs ResourceSelectors) Matches(s ResourceSelectable) bool
- func (rs *ResourceSelectors) Scan(val any) error
- func (rs ResourceSelectors) Value() (driver.Value, error)
- type Restore
- type RestoreType
- type Scale
- type ScalingDimension
- type ScreenshotDetails
- type SecretKeySelector
- type Source
- type Status
- type Summary
- func (s Summary) Add(b Summary) Summary
- func (t *Summary) AsEnv() map[string]any
- func (in *Summary) DeepCopy() *Summary
- func (in *Summary) DeepCopyInto(out *Summary)
- func (s Summary) GetStatus() ComponentStatus
- func (Summary) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Summary) GormDataType() string
- func (s Summary) GormValue(ctx context.Context, db *gorm.DB) clause.Expr
- func (s Summary) IsProcessed() bool
- func (s *Summary) Scan(val any) error
- func (s *Summary) SetProcessed(val bool)
- func (s Summary) String() string
- func (s Summary) Value() (driver.Value, error)
- type TagsMatchable
- type Test
- type TestingResult
- type TestingStatus
- type TestingType
- type Text
- type UnstructuredResource
- func (u *UnstructuredResource) GetFieldsMatcher() fields.Fields
- func (u UnstructuredResource) GetHealth() (string, error)
- func (u *UnstructuredResource) GetID() string
- func (u *UnstructuredResource) GetLabelsMatcher() labels.Labels
- func (u *UnstructuredResource) GetName() string
- func (u *UnstructuredResource) GetNamespace() string
- func (u *UnstructuredResource) GetStatus() (string, error)
- func (u *UnstructuredResource) GetType() string
- type Uptime
- type UserChangeDetails
- type ValueExpression
- type WithCertificate
- type WithProperties
- type WithURL
- type WithUsernamePassword
Constants ¶
const ( ChangeTypeCreate = "CREATE" ChangeTypeUpdate = "UPDATE" ChangeTypeDelete = "DELETE" ChangeTypeDiff = "diff" ChangeTypeUserCreated = "UserCreated" ChangeTypeUserDeleted = "UserDeleted" ChangeTypeGroupMemberAdded = "GroupMemberAdded" ChangeTypeGroupMemberRemoved = "GroupMemberRemoved" ChangeTypeScreenshot = "Screenshot" ChangeTypePermissionAdded = "PermissionAdded" ChangeTypePermissionRemoved = "PermissionRemoved" ChangeTypeDeployment = "Deployment" ChangeTypePromotion = "Promotion" ChangeTypeApproved = "Approved" ChangeTypeRejected = "Rejected" ChangeTypeRollback = "Rollback" ChangeTypeBackupCompleted = "BackupCompleted" ChangeTypeBackupRestored = "BackupRestored" ChangeTypeBackupFailed = "BackupFailed" ChangeTypePipelineRunStarted = "PipelineRunStarted" ChangeTypePipelineRunCompleted = "PipelineRunCompleted" ChangeTypePipelineRunFailed = "PipelineRunFailed" ChangeTypeScaling = "Scaling" ChangeTypeCertificateRenewed = "CertificateRenewed" ChangeTypeCertificateExpired = "CertificateExpired" ChangeTypeCostChange = "CostChange" ChangeTypePlaybookStarted = "PlaybookStarted" ChangeTypePlaybookCompleted = "PlaybookCompleted" ChangeTypePlaybookFailed = "PlaybookFailed" ChangeTypeRunInstances = "RunInstances" ChangeTypeRegisterNode = "RegisterNode" ChangeTypePulled = "Pulled" )
Change type constants.
const ( EnvironmentStageDevelopment EnvironmentStage = "Development" EnvironmentStageStaging EnvironmentStage = "Staging" EnvironmentStageProduction EnvironmentStage = "Production" EnvironmentStageUAT EnvironmentStage = "UAT" EnvironmentStageQA EnvironmentStage = "QA" EnvironmentTypeKubernetes EnvironmentType = "Kubernetes" EnvironmentTypeCloud EnvironmentType = "Cloud" EnvironmentTypeOnPrem EnvironmentType = "On-Premises" EnvironmentTypeOther EnvironmentType = "Other" )
const ( TestingTypeUnit TestingType = "Unit" TestingTypeIntegration TestingType = "Integration" TestingTypeE2E TestingType = "End-to-End" TestingTypePerformance TestingType = "Performance" TestingTypeSecurity TestingType = "Security" TestingStatusPending TestingStatus = "Pending" TestingStatusRunning TestingStatus = "Running" TestingStatusPassed TestingStatus = "Passed" TestingStatusFailed TestingStatus = "Failed" TestingStatusSkipped TestingStatus = "Skipped" TestingStatusError TestingStatus = "Error" StatusPending Status = "Pending" StatusRunning Status = "Running" StatusTimeout Status = "Timeout" StatusCompleted Status = "Completed" StatusFailed Status = "Failed" StatusApproved Status = "Approved" StatusRejected Status = "Rejected" TestingResultFlaky TestingResult = "Flaky" TestingResultFailed TestingResult = "Failed" TestingResultPassed TestingResult = "Passed" )
const ( SQLServerType = "sqlserver" PostgresType = "postgres" SqliteType = "sqlite" MysqlType = "mysql" TextType = "TEXT" JSONType = "JSON" JSONBType = "JSONB" NVarcharType = "NVARCHAR(MAX)" )
const EnvVarType = "env_var"
const PostgresTimestampFormat = "2006-01-02T15:04:05.999999"
Variables ¶
var ComponentStatusOrder = map[ComponentStatus]int{ ComponentStatusInfo: 0, ComponentStatusHealthy: 1, ComponentStatusUnhealthy: 2, ComponentStatusWarning: 3, ComponentStatusError: 4, }
Functions ¶
func GenericStructScan ¶ added in v1.0.20
GenericStructScan can be set as the Scan(val) func for any json struct
func GenericStructValue ¶ added in v1.0.20
GenericStructValue can be set as the Value() func for any json struct
func IsMatchItem ¶ added in v1.0.901
func JSONGormDBDataType ¶ added in v1.0.83
func MatchSelectables ¶ added in v1.0.798
func MatchSelectables[T ResourceSelectable](selectables []T, selectors ...ResourceSelector) []T
MatchSelectables returns only those selectables that have at matches with at least one of the given selectors.
Types ¶
type AgentProvider ¶ added in v1.0.1064
type AgentProvider interface {
GetAgentID() string
}
type AggregateRow ¶ added in v1.0.963
AggregateRow represents a single row in the aggregation result
type AggregatedResourceSelector ¶ added in v1.0.963
type AggregatedResourceSelector struct {
ResourceSelector `json:",inline"` // WHERE clause (reuses existing logic)
// +kubebuilder:validation:Optional
GroupBy []string `json:"groupBy,omitempty"` // GROUP BY fields
// +kubebuilder:validation:Optional
Aggregates []AggregationField `json:"aggregates,omitempty"` // SELECT aggregations
}
+kubebuilder:object:generate=true AggregatedResourceSelector combines filtering and aggregation requirements
func (*AggregatedResourceSelector) DeepCopy ¶ added in v1.0.963
func (in *AggregatedResourceSelector) DeepCopy() *AggregatedResourceSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AggregatedResourceSelector.
func (*AggregatedResourceSelector) DeepCopyInto ¶ added in v1.0.963
func (in *AggregatedResourceSelector) DeepCopyInto(out *AggregatedResourceSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AggregationField ¶ added in v1.0.963
type AggregationField struct {
Function string `json:"function"` // COUNT, SUM, AVG, MAX, MIN
Field string `json:"field"` // Column name or "*" for COUNT(*)
Alias string `json:"alias"` // Resulting field name in output
}
AggregationField defines a single aggregation operation
type Approval ¶ added in v1.0.1260
type Approval struct {
Event `json:",inline"`
// Optional identity of the person or system that submitted the approval request. May be empty for automated approvals or when the submitter is unknown.
SubmittedBy *Identity `json:"submitted_by,omitempty"`
// Optional identity of the person or system that approved or rejected the change. May be empty if the approval is still pending or if the approver is unknown.
Approver *Identity `json:"approver,omitempty"`
Stage ApprovalStage `json:"stage,omitempty"`
Status ApprovalStatus `json:"status,omitempty"`
}
func (Approval) MarshalJSON ¶ added in v1.0.1260
type ApprovalStage ¶ added in v1.0.1260
type ApprovalStage string
const ( ApprovalStagePreDeployment ApprovalStage = "PreDeployment" ApprovalStagePostDeployment ApprovalStage = "PostDeployment" ApprovalStagePrePromotion ApprovalStage = "PrePromotion" ApprovalStagePostPromotion ApprovalStage = "PostPromotion" ApprovalStageManual ApprovalStage = "Manual" ApprovalStageAutomated ApprovalStage = "Automated" )
type ApprovalStatus ¶ added in v1.0.1260
type ApprovalStatus string
const ( ApprovalStatusApproved ApprovalStatus = "Approved" ApprovalStatusRejected ApprovalStatus = "Rejected" ApprovalStatusPending ApprovalStatus = "Pending" ApprovalStatusExpired ApprovalStatus = "Expired" )
type Authentication ¶ added in v1.0.495
type Authentication struct {
Username EnvVar `yaml:"username,omitempty" json:"username,omitempty"`
Password EnvVar `yaml:"password,omitempty" json:"password,omitempty"`
}
+kubebuilder:object:generate=true
func (*Authentication) DeepCopy ¶ added in v1.0.495
func (in *Authentication) DeepCopy() *Authentication
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Authentication.
func (*Authentication) DeepCopyInto ¶ added in v1.0.495
func (in *Authentication) DeepCopyInto(out *Authentication)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Authentication) GetDomain ¶ added in v1.0.495
func (auth Authentication) GetDomain() string
func (Authentication) GetPassword ¶ added in v1.0.495
func (auth Authentication) GetPassword() string
func (Authentication) GetUsername ¶ added in v1.0.495
func (auth Authentication) GetUsername() string
func (Authentication) IsEmpty ¶ added in v1.0.495
func (auth Authentication) IsEmpty() bool
type Backup ¶ added in v1.0.1260
type Backup struct {
BackupType BackupType `json:"backup_type,omitempty"`
CreatedBy Identity `json:"created_by,omitempty"`
Environment Environment `json:"environment,omitempty"`
Event `json:",inline"`
EndTimestamp string `json:"end,omitempty"`
Status Status `json:"status,omitempty"`
Size string `json:"size,omitempty"`
Delta string `json:"delta,omitempty"`
}
func (Backup) MarshalJSON ¶ added in v1.0.1260
type BackupType ¶ added in v1.0.1260
type BackupType string
const ( BackupTypeDump BackupType = "Dump" BackupTypeSnapshot BackupType = "Snapshot" BackupTypeStorageBackup BackupType = "StorageBackup" BackupTypeOffsite BackupType = "Offsite" BackupTypeOffAccount BackupType = "OffAccount" BackupTypeOffRegion BackupType = "OffRegion" )
type CelExpression ¶ added in v1.0.552
type CelExpression string
type Change ¶ added in v1.0.1260
type Change struct {
Path string `json:"path,omitempty"`
From map[string]any `json:"from,omitempty"`
To map[string]any `json:"to,omitempty"`
Type string `json:"type,omitempty"`
}
func (Change) MarshalJSON ¶ added in v1.0.1260
type ClientOption ¶ added in v1.0.1215
type ClientOption func(*ClientOptions)
func WithHARCollector ¶ added in v1.0.1215
func WithHARCollector(c *har.Collector) ClientOption
type ClientOptions ¶ added in v1.0.1215
func NewClientOptions ¶ added in v1.0.1215
func NewClientOptions(opts ...ClientOption) ClientOptions
type ComponentCheck ¶ added in v1.0.83
type ComponentCheck struct {
Selector ResourceSelector `json:"selector,omitempty"`
// +kubebuilder:validation:Schemaless
// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:validation:Type=object
Inline json.RawMessage `json:"inline" gorm:"type:JSON"`
}
+kubebuilder:object:generate=true
func (*ComponentCheck) DeepCopy ¶ added in v1.0.254
func (in *ComponentCheck) DeepCopy() *ComponentCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentCheck.
func (*ComponentCheck) DeepCopyInto ¶ added in v1.0.254
func (in *ComponentCheck) DeepCopyInto(out *ComponentCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ComponentCheck) Hash ¶ added in v1.0.253
func (cs ComponentCheck) Hash() string
type ComponentChecks ¶ added in v1.0.83
type ComponentChecks []ComponentCheck
func (ComponentChecks) GormDBDataType ¶ added in v1.0.83
GormDBDataType gorm db data type
func (ComponentChecks) GormDataType ¶ added in v1.0.83
func (cs ComponentChecks) GormDataType() string
GormDataType gorm common data type
func (*ComponentChecks) Scan ¶ added in v1.0.83
func (cs *ComponentChecks) Scan(val interface{}) error
type ComponentConfigTraversalArgs ¶ added in v1.0.681
type ComponentStatus ¶ added in v1.0.83
type ComponentStatus string
const ( ComponentStatusHealthy ComponentStatus = "healthy" ComponentStatusUnhealthy ComponentStatus = "unhealthy" ComponentStatusWarning ComponentStatus = "warning" ComponentStatusError ComponentStatus = "error" ComponentStatusInfo ComponentStatus = "info" )
func (ComponentStatus) Compare ¶ added in v1.0.253
func (status ComponentStatus) Compare(other ComponentStatus) int
type ConfigChange ¶ added in v1.0.1260
type ConfigChange struct {
Event `json:",inline"`
Author Identity `json:"author,omitempty"`
Changes []Change `json:"changes,omitempty"`
Environment Environment `json:"environment,omitempty"`
Source Source `json:"source,omitempty"`
}
func (ConfigChange) Kind ¶ added in v1.0.1260
func (c ConfigChange) Kind() string
func (ConfigChange) MarshalJSON ¶ added in v1.0.1260
func (c ConfigChange) MarshalJSON() ([]byte, error)
type ConfigChangeDetail ¶ added in v1.0.1260
type ConfigChangeDetail interface {
Kind() string
}
ConfigChangeDetail is implemented by all typed detail structs for the ConfigChange.Details field.
func UnmarshalChangeDetails ¶ added in v1.0.1260
func UnmarshalChangeDetails(data []byte) (ConfigChangeDetail, error)
UnmarshalChangeDetails unmarshals the details field of a ConfigChange into the appropriate typed struct based on the "kind" field.
type ConfigMapKeySelector ¶ added in v1.0.45
type ConfigMapKeySelector struct {
LocalObjectReference `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=localObjectReference"`
Key string `json:"key" yaml:"key" protobuf:"bytes,2,opt,name=key"`
}
+kubebuilder:object:generate=true
func (*ConfigMapKeySelector) DeepCopy ¶ added in v1.0.47
func (in *ConfigMapKeySelector) DeepCopy() *ConfigMapKeySelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapKeySelector.
func (*ConfigMapKeySelector) DeepCopyInto ¶ added in v1.0.47
func (in *ConfigMapKeySelector) DeepCopyInto(out *ConfigMapKeySelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ConfigMapKeySelector) IsEmpty ¶ added in v1.0.474
func (c ConfigMapKeySelector) IsEmpty() bool
func (ConfigMapKeySelector) String ¶ added in v1.0.45
func (c ConfigMapKeySelector) String() string
type ConfigQueries ¶ added in v1.0.83
type ConfigQueries []*ConfigQuery
func (ConfigQueries) GormDBDataType ¶ added in v1.0.83
func (ConfigQueries) GormDataType ¶ added in v1.0.87
func (t ConfigQueries) GormDataType() string
func (*ConfigQueries) Scan ¶ added in v1.0.83
func (t *ConfigQueries) Scan(val any) error
type ConfigQuery ¶ added in v1.0.83
type ConfigQuery struct {
ResourceSelector `json:",inline"`
// Deprecated. Use `fieldSelector (config_class=)`
Class string `json:"class,omitempty"`
// Deprecated. Use `fieldSelector (external_id=)`
ExternalID string `json:"external_id,omitempty"`
// Deprecated. Use `labelSelector`
Tags map[string]string `json:"tags,omitempty"`
// Deprecated. Use `types`
Type string `json:"type,omitempty"`
}
+kubebuilder:object:generate=true ConfigQuery is used to look up and associate config items with a component.
func (*ConfigQuery) DeepCopy ¶ added in v1.0.83
func (in *ConfigQuery) DeepCopy() *ConfigQuery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigQuery.
func (*ConfigQuery) DeepCopyInto ¶ added in v1.0.83
func (in *ConfigQuery) DeepCopyInto(out *ConfigQuery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ConfigQuery) String ¶ added in v1.0.83
func (c ConfigQuery) String() string
func (ConfigQuery) ToJSONMap ¶ added in v1.0.253
func (c ConfigQuery) ToJSONMap() map[string]interface{}
ToJSONMap converts the struct to map[string]interface{}
func (ConfigQuery) ToResourceSelector ¶ added in v1.0.324
func (c ConfigQuery) ToResourceSelector() ResourceSelector
type DatabaseSource ¶ added in v1.0.1260
type DatabaseSource struct {
// Database type, e.g. "PostgreSQL", "MySQL", "MongoDB"
Type string `json:"type,omitempty"`
// Database name, e.g. "mydb"
Name string `json:"name,omitempty"`
// Schema name, e.g. "public"
SchemaName string `json:"schema,omitempty"`
// Database version, e.g. "12.3"
Version string `json:"version,omitempty"`
// Server or cluster endpoint, e.g. "mydb.cluster-123.us-east-1.rds.amazonaws.com:5432"
Endpoint string `json:"endpoint,omitempty"`
}
func (DatabaseSource) Kind ¶ added in v1.0.1260
func (s DatabaseSource) Kind() string
func (DatabaseSource) MarshalJSON ¶ added in v1.0.1260
func (s DatabaseSource) MarshalJSON() ([]byte, error)
type DeploymentType ¶ added in v1.0.1260
type DeploymentType string
const ( ImageUpgrade DeploymentType = "ImageUpgrade" ImageDowngrade DeploymentType = "ImageDowngrade" Rollout DeploymentType = "Rollout" Restart DeploymentType = "Restart" Rollback DeploymentType = "Rollback" ConfigurationChange DeploymentType = "ConfigurationChange" ScaleUp DeploymentType = "ScaleUp" ScaleDown DeploymentType = "ScaleDown" ScaleIn DeploymentType = "ScaleIn" ScaleOut DeploymentType = "ScaleOut" PolicyChange DeploymentType = "PolicyChange" SchemaChange DeploymentType = "SchemaChange" DataMigration DeploymentType = "DataMigration" DataFix DeploymentType = "DataFix" OtherDeploymentChange DeploymentType = "Other" )
type DescriptionProvider ¶ added in v1.0.930
type DescriptionProvider interface {
GetHealthDescription() string
}
type Dimension ¶ added in v1.0.1260
type Dimension struct {
Min string `json:"min,omitempty"`
Max string `json:"max,omitempty"`
Desired string `json:"desired,omitempty"`
}
func (Dimension) MarshalJSON ¶ added in v1.0.1260
type Duration ¶ added in v1.0.254
func (Duration) MarshalJSON ¶ added in v1.0.254
func (*Duration) UnmarshalJSON ¶ added in v1.0.254
type DutyContext ¶ added in v1.0.788
type DutyContext interface {
Oops(tags ...string) oops.OopsErrorBuilder
String() string
WithTimeout(timeout time.Duration) (context.Context, context.CancelFunc)
WithDeadline(deadline time.Time) (context.Context, context.CancelFunc)
WithValue(key, val any) DutyContext
WithAnyValue(key, val any) DutyContext
WithAppendObject(object any) DutyContext
WithObject(object ...any) DutyContext
Verbose() logger.Logger
Objects() []any
WithTopology(topology any) DutyContext
WithoutName() DutyContext
WithName(name string) DutyContext
WithTrace() DutyContext
WithDebug() DutyContext
WithNamespace(namespace string) DutyContext
WithDB(db *gorm.DB, pool *pgxpool.Pool) DutyContext
WithDBLogger(name string, baseLevel any) DutyContext
WithDBLogLevel(level any) DutyContext
FastDB(name ...string) *gorm.DB
Fast(name ...string) DutyContext
IsTracing() bool
WithoutTracing() DutyContext
Transaction(fn func(ctx DutyContext, span trace.Span) error, opts ...any) error
DB() *gorm.DB
Pool() *pgxpool.Pool
Kubernetes() kubernetes.Interface
KubernetesRestConfig() *rest.Config
StartSpan(name string) (DutyContext, trace.Span)
GetLoggingDutyContext() map[string]any
WithLoggingValues(args ...interface{}) DutyContext
GetNamespace() string
GetName() string
GetLabels() map[string]string
GetAnnotations() map[string]string
GetEnvStringFromCache(env string, namespace string) (string, error)
GetSecretFromCache(namespace, name, key string) (string, error)
GetConfigMapFromCache(namespace, name, key string) (string, error)
Wrap(ctx context.Context) DutyContext
}
type EnvVar ¶ added in v1.0.45
type EnvVar struct {
Name string `json:"name,omitempty" yaml:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
ValueStatic string `json:"value,omitempty" yaml:"value,omitempty" protobuf:"bytes,2,opt,name=value" template:"true"`
ValueFrom *EnvVarSource `json:"valueFrom,omitempty" yaml:"valueFrom,omitempty" protobuf:"bytes,3,opt,name=valueFrom"`
}
+kubebuilder:object:generate=true
func (*EnvVar) DeepCopy ¶ added in v1.0.47
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVar.
func (*EnvVar) DeepCopyInto ¶ added in v1.0.47
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EnvVar) GormDBDataType ¶ added in v1.0.45
GormDBDataType gorm db data type
func (EnvVar) GormDataType ¶ added in v1.0.45
GormDataType gorm common data type
type EnvVarResourceSelector ¶ added in v1.0.552
type EnvVarResourceSelector struct {
Agent ValueExpression `yaml:"agent,omitempty" json:"agent,omitempty"`
Scope string `yaml:"scope,omitempty" json:"scope,omitempty"`
Cache string `yaml:"cache,omitempty" json:"cache,omitempty"`
ID ValueExpression `yaml:"id,omitempty" json:"id,omitempty"`
Name ValueExpression `yaml:"name,omitempty" json:"name,omitempty"`
Namespace ValueExpression `yaml:"namespace,omitempty" json:"namespace,omitempty"`
Types []ValueExpression `yaml:"types,omitempty" json:"types,omitempty"`
Statuses []ValueExpression `yaml:"statuses,omitempty" json:"statuses,omitempty"`
Healths []ValueExpression `yaml:"healths,omitempty" json:"healths,omitempty"`
TagSelector ValueExpression `yaml:"tagSelector,omitempty" json:"tagSelector,omitempty"`
LabelSelector ValueExpression `yaml:"labelSelector,omitempty" json:"labelSelector,omitempty"`
FieldSelector ValueExpression `json:"fieldSelector,omitempty" yaml:"fieldSelector,omitempty"`
}
EnvVarResourceSelector is used to select a resource. At least one of the fields must be specified. +kubebuilder:object:generate=true
func (*EnvVarResourceSelector) DeepCopy ¶ added in v1.0.552
func (in *EnvVarResourceSelector) DeepCopy() *EnvVarResourceSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVarResourceSelector.
func (*EnvVarResourceSelector) DeepCopyInto ¶ added in v1.0.552
func (in *EnvVarResourceSelector) DeepCopyInto(out *EnvVarResourceSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EnvVarResourceSelector) Empty ¶ added in v1.0.552
func (t EnvVarResourceSelector) Empty() bool
func (EnvVarResourceSelector) Hydrate ¶ added in v1.0.552
func (t EnvVarResourceSelector) Hydrate(env map[string]any) (*ResourceSelector, error)
type EnvVarSource ¶ added in v1.0.45
type EnvVarSource struct {
// ServiceAccount specifies the service account whose token should be fetched
ServiceAccount *string `json:"serviceAccount,omitempty" yaml:"serviceAccount,omitempty" protobuf:"bytes,1,opt,name=serviceAccount"`
HelmRef *HelmRefKeySelector `json:"helmRef,omitempty" yaml:"helmRef,omitempty" protobuf:"bytes,2,opt,name=helmRef"`
ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty" yaml:"configMapKeyRef,omitempty" protobuf:"bytes,3,opt,name=configMapKeyRef"`
SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty" yaml:"secretKeyRef,omitempty" protobuf:"bytes,4,opt,name=secretKeyRef"`
}
+kubebuilder:object:generate=true
func (*EnvVarSource) DeepCopy ¶ added in v1.0.47
func (in *EnvVarSource) DeepCopy() *EnvVarSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVarSource.
func (*EnvVarSource) DeepCopyInto ¶ added in v1.0.47
func (in *EnvVarSource) DeepCopyInto(out *EnvVarSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EnvVarSource) IsEmpty ¶ added in v1.0.474
func (e EnvVarSource) IsEmpty() bool
func (EnvVarSource) String ¶ added in v1.0.45
func (e EnvVarSource) String() string
type Environment ¶ added in v1.0.1260
type Environment struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
// Optional type of environment, e.g. Kubernetes, Cloud, On-Premises, etc.
EnvironmentType EnvironmentType `json:"type,omitempty"`
// Optional stage or lifecycle phase of the environment, e.g. Development, Staging, Production, UAT, QA, etc.
Stage EnvironmentStage `json:"stage,omitempty"`
Identifier string `json:"identifier,omitempty"`
// Optional tags for additional metadata, e.g. team, cost center, owner, cluster/namespace
Tags map[string]string `json:"tags,omitempty"`
}
func (Environment) Kind ¶ added in v1.0.1260
func (e Environment) Kind() string
func (Environment) MarshalJSON ¶ added in v1.0.1260
func (e Environment) MarshalJSON() ([]byte, error)
type EnvironmentStage ¶ added in v1.0.1260
type EnvironmentStage string
type EnvironmentType ¶ added in v1.0.1260
type EnvironmentType string
type Event ¶ added in v1.0.1260
type Event struct {
ID string `json:"id,omitempty"`
URL string `json:"url,omitempty"`
Tags map[string]string `json:"tags,omitempty"`
Properties map[string]string `json:"properties,omitempty"`
Timestamp string `json:"timestamp,omitempty"`
}
func (Event) MarshalJSON ¶ added in v1.0.1260
type Functions ¶ added in v1.0.681
type Functions struct {
// It uses the config_id linked to the componentID to lookup up all the config relations and returns
// a list of componentIDs that are linked to the found configIDs
ComponentConfigTraversal *ComponentConfigTraversalArgs `yaml:"component_config_traversal,omitempty" json:"component_config_traversal,omitempty"`
}
+kubebuilder:object:generate=true
func (*Functions) DeepCopy ¶ added in v1.0.745
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Functions.
func (*Functions) DeepCopyInto ¶ added in v1.0.745
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GenericFieldMatcher ¶ added in v1.0.843
func (GenericFieldMatcher) Get ¶ added in v1.0.843
func (c GenericFieldMatcher) Get(key string) string
func (GenericFieldMatcher) Has ¶ added in v1.0.843
func (c GenericFieldMatcher) Has(key string) bool
type GenericLabelsMatcher ¶ added in v1.0.843
func (GenericLabelsMatcher) Get ¶ added in v1.0.843
func (c GenericLabelsMatcher) Get(key string) string
func (GenericLabelsMatcher) Has ¶ added in v1.0.843
func (c GenericLabelsMatcher) Has(key string) bool
type GenericLabelsMatcherAny ¶ added in v1.0.957
func (GenericLabelsMatcherAny) Get ¶ added in v1.0.957
func (c GenericLabelsMatcherAny) Get(key string) string
func (GenericLabelsMatcherAny) Has ¶ added in v1.0.957
func (c GenericLabelsMatcherAny) Has(key string) bool
type GetEnvVarFromCache ¶ added in v1.0.213
type GitSource ¶ added in v1.0.1260
type GitSource struct {
URL string `json:"url,omitempty"`
Branch string `json:"branch,omitempty"`
CommitSHA string `json:"commit_sha,omitempty"`
Version string `json:"version,omitempty"`
Tags string `json:"tags,omitempty"`
}
func (GitSource) MarshalJSON ¶ added in v1.0.1260
type GoTemplate ¶ added in v1.0.552
type GoTemplate string
type GroupMembership ¶ added in v1.0.1260
type GroupMembership struct {
Group Identity `json:"group,omitempty"`
Member Identity `json:"member,omitempty"`
Action GroupMembershipAction `json:"action,omitempty"`
Tenant string `json:"tenant,omitempty"`
}
func (GroupMembership) Kind ¶ added in v1.0.1260
func (d GroupMembership) Kind() string
func (GroupMembership) MarshalJSON ¶ added in v1.0.1260
func (d GroupMembership) MarshalJSON() ([]byte, error)
type GroupMembershipAction ¶ added in v1.0.1260
type GroupMembershipAction string
const ( GroupMembershipActionAdded GroupMembershipAction = "Added" GroupMembershipActionRemoved GroupMembershipAction = "Removed" )
type HTTPBasicAuth ¶ added in v1.0.557
type HTTPBasicAuth struct {
Authentication `yaml:",inline" json:",inline"`
NTLM bool `yaml:"ntlm,omitempty" json:"ntlm,omitempty"`
NTLMV2 bool `yaml:"ntlmv2,omitempty" json:"ntlmv2,omitempty"`
Digest bool `yaml:"digest,omitempty" json:"digest,omitempty"`
}
+kubebuilder:object:generate=true
func (*HTTPBasicAuth) DeepCopy ¶ added in v1.0.557
func (in *HTTPBasicAuth) DeepCopy() *HTTPBasicAuth
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPBasicAuth.
func (*HTTPBasicAuth) DeepCopyInto ¶ added in v1.0.557
func (in *HTTPBasicAuth) DeepCopyInto(out *HTTPBasicAuth)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HelmRefKeySelector ¶ added in v1.0.239
type HelmRefKeySelector struct {
LocalObjectReference `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=localObjectReference"`
// Key is a JSONPath expression used to fetch the key from the merged JSON.
Key string `json:"key" yaml:"key" protobuf:"bytes,2,opt,name=key"`
}
+kubebuilder:object:generate=true
func (*HelmRefKeySelector) DeepCopy ¶ added in v1.0.239
func (in *HelmRefKeySelector) DeepCopy() *HelmRefKeySelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmRefKeySelector.
func (*HelmRefKeySelector) DeepCopyInto ¶ added in v1.0.239
func (in *HelmRefKeySelector) DeepCopyInto(out *HelmRefKeySelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (HelmRefKeySelector) IsEmpty ¶ added in v1.0.474
func (e HelmRefKeySelector) IsEmpty() bool
func (HelmRefKeySelector) String ¶ added in v1.0.239
func (c HelmRefKeySelector) String() string
type HelmSource ¶ added in v1.0.1260
type HelmSource struct {
ChartName string `json:"chart_name,omitempty"`
ChartVersion string `json:"chart_version,omitempty"`
RepoURL string `json:"repo_url,omitempty"`
}
func (HelmSource) Kind ¶ added in v1.0.1260
func (s HelmSource) Kind() string
func (HelmSource) MarshalJSON ¶ added in v1.0.1260
func (s HelmSource) MarshalJSON() ([]byte, error)
type Identity ¶ added in v1.0.1260
type Identity struct {
ID string `json:"id,omitempty"`
Type IdentityType `json:"type,omitempty"`
// Optional human-readable name for the identity, e.g. user name or group name. Not required if ID is present and meaningful on its own.
Name string `json:"name,omitempty"`
// Optional comment about the identity, e.g. reason for approval/rejection, or details about the change.
Comment string `json:"comment,omitempty"`
}
func (Identity) MarshalJSON ¶ added in v1.0.1260
type IdentityType ¶ added in v1.0.1260
type IdentityType string
const ( IdentityTypeUser IdentityType = "User" IdentityTypeGroup IdentityType = "Group" IdentityTypeRole IdentityType = "Role" IdentityTypeCI IdentityType = "System:CI" IdentityTypeAuto IdentityType = "System:Auto" IdentityTypeScan IdentityType = "System:Scan" IdentityTypeTest IdentityType = "System:Test" IdentityTypeCanary IdentityType = "System:Canary" )
type ImageSource ¶ added in v1.0.1260
type ImageSource struct {
Registry string `json:"registry,omitempty"`
ImageName string `json:"image,omitempty"`
Version string `json:"version,omitempty"`
SHA string `json:"sha,omitempty"`
}
func (ImageSource) Kind ¶ added in v1.0.1260
func (s ImageSource) Kind() string
func (ImageSource) MarshalJSON ¶ added in v1.0.1260
func (s ImageSource) MarshalJSON() ([]byte, error)
type Items ¶ added in v1.0.320
type Items pq.StringArray
func (Items) Contains ¶ added in v1.0.320
contains returns true if any of the items in the list match the item negative matches are supported by prefixing the item with a ! * matches everything
func (Items) WithNegation ¶ added in v1.0.320
func (Items) WithoutNegation ¶ added in v1.0.320
type JSON ¶
type JSON json.RawMessage
JSON defined JSON data type, need to implements driver.Valuer, sql.Scanner interface
func (JSON) GormDBDataType ¶
GormDBDataType gorm db data type
func (JSON) MarshalJSON ¶
MarshalJSON to output non base64 encoded []byte
func (*JSON) UnmarshalJSON ¶
UnmarshalJSON to deserialize []byte
type JSONMap ¶
JSONMap defiend JSON data type, need to implements driver.Valuer, sql.Scanner interface
func (JSONMap) GormDBDataType ¶
GormDBDataType gorm db data type
func (JSONMap) GormDataType ¶
GormDataType gorm common data type
func (JSONMap) MarshalJSON ¶
MarshalJSON to output non base64 encoded []byte
func (*JSONMap) UnmarshalJSON ¶
UnmarshalJSON to deserialize []byte
type JSONQueryExpression ¶
type JSONQueryExpression struct {
// contains filtered or unexported fields
}
JSONQueryExpression json query expression, implements clause.Expression interface to use as querier
func (*JSONQueryExpression) Build ¶
func (jsonQuery *JSONQueryExpression) Build(builder clause.Builder)
Build implements clause.Expression
func (*JSONQueryExpression) Equals ¶
func (jsonQuery *JSONQueryExpression) Equals(value any, keys ...string) *JSONQueryExpression
Keys returns clause.Expression
func (*JSONQueryExpression) HasKey ¶
func (jsonQuery *JSONQueryExpression) HasKey(keys ...string) *JSONQueryExpression
HasKey returns clause.Expression
type JSONStringMap ¶
JSONStringMap defiend JSON data type, need to implements driver.Valuer, sql.Scanner interface
func (JSONStringMap) GormDBDataType ¶
GormDBDataType gorm db data type
func (JSONStringMap) GormDataType ¶
func (m JSONStringMap) GormDataType() string
GormDataType gorm common data type
func (JSONStringMap) MarshalJSON ¶
func (m JSONStringMap) MarshalJSON() ([]byte, error)
MarshalJSON to output non base64 encoded []byte
func (*JSONStringMap) Scan ¶
func (m *JSONStringMap) Scan(val any) error
Scan scan value into Jsonb, implements sql.Scanner interface
func (JSONStringMap) ToMapStringAny ¶ added in v1.0.83
func (jm JSONStringMap) ToMapStringAny() map[string]any
func (*JSONStringMap) UnmarshalJSON ¶
func (m *JSONStringMap) UnmarshalJSON(b []byte) error
UnmarshalJSON to deserialize []byte
type Latency ¶ added in v1.0.164
type Latency struct {
Percentile99 float64 `json:"p99,omitempty" db:"p99"`
Percentile97 float64 `json:"p97,omitempty" db:"p97"`
Percentile95 float64 `json:"p95,omitempty" db:"p95"`
Rolling1H float64 `json:"rolling1h"`
}
func (Latency) GormDBDataType ¶ added in v1.0.164
type Link ¶ added in v1.0.254
type Link struct {
// e.g. documentation, support, playbook
Type string `json:"type,omitempty"`
URL string `json:"url,omitempty"`
Text `json:",inline"`
}
+kubebuilder:object:generate=true
func (*Link) DeepCopy ¶ added in v1.0.254
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Link.
func (*Link) DeepCopyInto ¶ added in v1.0.254
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalObjectReference ¶ added in v1.0.45
type LocalObjectReference struct {
Name string `json:"name,omitempty" yaml:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
}
+kubebuilder:object:generate=true
func (*LocalObjectReference) DeepCopy ¶ added in v1.0.47
func (in *LocalObjectReference) DeepCopy() *LocalObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalObjectReference.
func (*LocalObjectReference) DeepCopyInto ¶ added in v1.0.47
func (in *LocalObjectReference) DeepCopyInto(out *LocalObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LogSelector ¶ added in v1.0.54
type LogSelector struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Type string `json:"type,omitempty" yaml:"type,omitempty" template:"true"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty" template:"true"`
}
+kubebuilder:object:generate=true
func (*LogSelector) DeepCopy ¶ added in v1.0.54
func (in *LogSelector) DeepCopy() *LogSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogSelector.
func (*LogSelector) DeepCopyInto ¶ added in v1.0.54
func (in *LogSelector) DeepCopyInto(out *LogSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LogSelectors ¶ added in v1.0.54
type LogSelectors []LogSelector
func (LogSelectors) GormDBDataType ¶ added in v1.0.54
func (LogSelectors) GormDataType ¶ added in v1.0.87
func (t LogSelectors) GormDataType() string
func (*LogSelectors) Scan ¶ added in v1.0.54
func (t *LogSelectors) Scan(val any) error
type MatchExpression ¶ added in v1.0.552
type MatchExpression string
MatchExpression uses MatchItems
func (*MatchExpression) Add ¶ added in v1.0.796
func (t *MatchExpression) Add(item string)
func (MatchExpression) Match ¶ added in v1.0.552
func (t MatchExpression) Match(item string) bool
type MatchExpressions ¶ added in v1.0.552
type MatchExpressions []MatchExpression
func (MatchExpressions) Match ¶ added in v1.0.552
func (t MatchExpressions) Match(item string) bool
func (MatchExpressions) SQLClause ¶ added in v1.0.962
func (t MatchExpressions) SQLClause(columnName string) (string, []any, error)
SQLClause converts MatchExpressions to SQL WHERE conditions with (?) placeholders
Example: expr="!Get*,!List*" -> "WHERE (column_name NOT LIKE ? AND column_name NOT LIKE ?)" (GET%, LIST%)
type NoOpResourceSelectable ¶ added in v1.0.946
type NoOpResourceSelectable struct{}
NoOpResourceSelectable provides default implementations for ResourceSelectable methods that don't apply to access control entities
func (NoOpResourceSelectable) GetHealth ¶ added in v1.0.946
func (NoOpResourceSelectable) GetHealth() (string, error)
func (NoOpResourceSelectable) GetLabelsMatcher ¶ added in v1.0.946
func (NoOpResourceSelectable) GetLabelsMatcher() labels.Labels
func (NoOpResourceSelectable) GetNamespace ¶ added in v1.0.946
func (NoOpResourceSelectable) GetNamespace() string
func (NoOpResourceSelectable) GetStatus ¶ added in v1.0.946
func (NoOpResourceSelectable) GetStatus() (string, error)
type NullString ¶ added in v1.0.223
type NullString sql.NullString
NullString sets null in database on save for empty strings
func (NullString) MarshalJSON ¶ added in v1.0.223
func (s NullString) MarshalJSON() ([]byte, error)
MarshalJSON to output non base64 encoded []byte
func (*NullString) Scan ¶ added in v1.0.223
func (s *NullString) Scan(value any) error
Scan implements the Scanner interface.
func (*NullString) UnmarshalJSON ¶ added in v1.0.223
func (s *NullString) UnmarshalJSON(b []byte) error
UnmarshalJSON to deserialize []byte
type OAuth ¶ added in v1.0.495
type OAuth struct {
ClientID EnvVar `json:"clientID,omitempty"`
ClientSecret EnvVar `json:"clientSecret,omitempty"`
Scopes []string `json:"scope,omitempty" yaml:"scope,omitempty"`
TokenURL string `json:"tokenURL,omitempty" yaml:"tokenURL,omitempty"`
Params map[string]string `json:"params,omitempty" yaml:"params,omitempty"`
}
+kubebuilder:object:generate=true
func (OAuth) AsProperties ¶ added in v1.0.495
func (o OAuth) AsProperties() JSONStringMap
func (*OAuth) DeepCopy ¶ added in v1.0.495
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OAuth.
func (*OAuth) DeepCopyInto ¶ added in v1.0.495
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PermissionChangeDetails ¶ added in v1.0.1260
type PermissionChangeDetails struct {
UserID string `json:"user_id,omitempty"`
UserName string `json:"user_name,omitempty"`
GroupID string `json:"group_id,omitempty"`
GroupName string `json:"group_name,omitempty"`
RoleID string `json:"role_id,omitempty"`
RoleName string `json:"role_name,omitempty"`
RoleType string `json:"role_type,omitempty"`
Scope string `json:"scope,omitempty"`
}
func (PermissionChangeDetails) Kind ¶ added in v1.0.1260
func (d PermissionChangeDetails) Kind() string
func (PermissionChangeDetails) MarshalJSON ¶ added in v1.0.1260
func (d PermissionChangeDetails) MarshalJSON() ([]byte, error)
type PipelineRun ¶ added in v1.0.1260
type PipelineRun struct {
Event `json:",inline"`
Environment Environment `json:"environment,omitempty"`
Status Status `json:"status,omitempty"`
}
func (PipelineRun) Kind ¶ added in v1.0.1260
func (p PipelineRun) Kind() string
func (PipelineRun) MarshalJSON ¶ added in v1.0.1260
func (p PipelineRun) MarshalJSON() ([]byte, error)
type Promotion ¶ added in v1.0.1260
type Promotion struct {
Event `json:",inline"`
// Optional source and target environments for the promotion. If not specified, the promotion is assumed to be within the same environment.
From Environment `json:"from,omitempty"`
To Environment `json:"to,omitempty"`
// Optional source for the promotion, e.g. Git repo, Helm chart, container image, database schema, etc.
Source Source `json:"source,omitempty"`
// Optional version or identifier for the promoted artifact, e.g. image tag, chart version, git commit, database schema version, etc.
Version string `json:"version,omitempty"`
// Optional list of identities who approved the promotion, e.g. users or groups who approved the change, or CI systems that ran tests and checks.
Approvals []Approval `json:"approvals,omitempty"`
//
Artifact string `json:"artifact,omitempty"`
}
func (Promotion) MarshalJSON ¶ added in v1.0.1260
type Properties ¶ added in v1.0.254
type Properties []*Property
func (Properties) AsJSON ¶ added in v1.0.254
func (p Properties) AsJSON() []byte
func (Properties) AsMap ¶ added in v1.0.254
func (p Properties) AsMap() map[string]interface{}
func (Properties) Find ¶ added in v1.0.254
func (p Properties) Find(name string) *Property
func (Properties) GormDBDataType ¶ added in v1.0.254
func (Properties) GormDataType ¶ added in v1.0.254
func (Properties) GormDataType() string
GormDataType gorm common data type
func (Properties) MarshalJSON ¶ added in v1.0.282
func (m Properties) MarshalJSON() ([]byte, error)
func (*Properties) Scan ¶ added in v1.0.254
func (p *Properties) Scan(val interface{}) error
Scan scan value into Jsonb, implements sql.Scanner interface
func (*Properties) UnmarshalJSON ¶ added in v1.0.282
func (m *Properties) UnmarshalJSON(b []byte) error
type Property ¶ added in v1.0.254
type Property struct {
// Type controls how the UI renders the property value: url, badge, currency, text, age, hidden.
Type string `json:"type,omitempty"`
Label string `json:"label,omitempty"`
Name string `json:"name,omitempty"`
Tooltip string `json:"tooltip,omitempty"`
Icon string `json:"icon,omitempty"`
Color string `json:"color,omitempty"`
Order int `json:"order,omitempty"`
Headline bool `json:"headline,omitempty"`
Hidden bool `json:"hidden,omitempty"`
// Either text or value is required, but not both.
Text string `json:"text,omitempty"`
Value *int64 `json:"value,omitempty"`
// e.g. milliseconds, bytes, millicores, epoch etc.
Unit string `json:"unit,omitempty"`
Max *int64 `json:"max,omitempty"`
Min *int64 `json:"min,omitempty"`
Status string `json:"status,omitempty"`
LastTransition string `json:"lastTransition,omitempty"`
Links []Link `json:"links,omitempty"`
}
+kubebuilder:object:generate=true Property is a key-value metadata field that holds either a text or a numeric value.
func (*Property) DeepCopy ¶ added in v1.0.282
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Property.
func (*Property) DeepCopyInto ¶ added in v1.0.282
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSelectable ¶ added in v1.0.374
type ResourceSelectableMap ¶ added in v1.0.843
func (ResourceSelectableMap) GetFieldsMatcher ¶ added in v1.0.843
func (t ResourceSelectableMap) GetFieldsMatcher() fields.Fields
func (ResourceSelectableMap) GetHealth ¶ added in v1.0.843
func (t ResourceSelectableMap) GetHealth() (string, error)
func (ResourceSelectableMap) GetHealthDescription ¶ added in v1.0.930
func (t ResourceSelectableMap) GetHealthDescription() string
func (ResourceSelectableMap) GetID ¶ added in v1.0.843
func (t ResourceSelectableMap) GetID() string
func (ResourceSelectableMap) GetLabelsMatcher ¶ added in v1.0.843
func (r ResourceSelectableMap) GetLabelsMatcher() labels.Labels
func (ResourceSelectableMap) GetName ¶ added in v1.0.843
func (t ResourceSelectableMap) GetName() string
func (ResourceSelectableMap) GetNamespace ¶ added in v1.0.843
func (t ResourceSelectableMap) GetNamespace() string
func (ResourceSelectableMap) GetStatus ¶ added in v1.0.843
func (t ResourceSelectableMap) GetStatus() (string, error)
func (ResourceSelectableMap) GetTagsMatcher ¶ added in v1.0.957
func (r ResourceSelectableMap) GetTagsMatcher() labels.Labels
func (ResourceSelectableMap) GetType ¶ added in v1.0.843
func (t ResourceSelectableMap) GetType() string
type ResourceSelector ¶ added in v1.0.83
type ResourceSelector struct {
// Agent can be the agent id or the name of the agent.
// Additionally, the special "self" value can be used to select resources without an agent.
Agent string `yaml:"agent,omitempty" json:"agent,omitempty"`
// Scope is the reference for parent of the resource to select.
// For config items, the scope is the scraper id
// For checks, it's canaries and
// For components, it's topology.
// It can either be a uuid or namespace/name
Scope string `yaml:"scope,omitempty" json:"scope,omitempty"`
// Cache directives
// 'no-cache' (should not fetch from cache but can be cached)
// 'no-store' (should not cache)
// 'max-age=X' (cache for X duration)
Cache string `yaml:"cache,omitempty" json:"cache,omitempty"`
// Search query that applies to the resource name, tag & labels.
Search string `yaml:"search,omitempty" json:"search,omitempty" template:"true"`
// Use custom functions for specific selections
Functions Functions `yaml:"-" json:"-"`
Limit int `yaml:"limit,omitempty" json:"limit,omitempty"`
IncludeDeleted bool `yaml:"includeDeleted,omitempty" json:"includeDeleted,omitempty"`
ID string `yaml:"id,omitempty" json:"id,omitempty"`
Name string `yaml:"name,omitempty" json:"name,omitempty"`
Namespace string `yaml:"namespace,omitempty" json:"namespace,omitempty"`
TagSelector string `yaml:"tagSelector,omitempty" json:"tagSelector,omitempty"`
LabelSelector string `json:"labelSelector,omitempty" yaml:"labelSelector,omitempty"`
FieldSelector string `json:"fieldSelector,omitempty" yaml:"fieldSelector,omitempty"`
// Health filters resources by the health.
// Multiple healths can be provided separated by comma.
Health MatchExpression `json:"health,omitempty"`
// Types filter resources by the type
Types Items `yaml:"types,omitempty" json:"types,omitempty"`
// Statuses filter resources by the status
Statuses Items `yaml:"statuses,omitempty" json:"statuses,omitempty"`
}
+kubebuilder:object:generate=true
func (ResourceSelector) Canonical ¶ added in v1.0.1161
func (rs ResourceSelector) Canonical() ResourceSelector
Canonical normalizes a resource selector by handling wildcard values.
func (*ResourceSelector) DeepCopy ¶ added in v1.0.254
func (in *ResourceSelector) DeepCopy() *ResourceSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSelector.
func (*ResourceSelector) DeepCopyInto ¶ added in v1.0.254
func (in *ResourceSelector) DeepCopyInto(out *ResourceSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ResourceSelector) Expand ¶ added in v1.0.1260
func (rs ResourceSelector) Expand() []ResourceSelector
Expand splits a semicolon-delimited Search into multiple ResourceSelectors, each representing an independent query whose results are unioned.
func (ResourceSelector) Hash ¶ added in v1.0.320
func (c ResourceSelector) Hash() string
func (ResourceSelector) Immutable ¶ added in v1.0.320
func (c ResourceSelector) Immutable() bool
Immutable returns true if the selector can be cached indefinitely
func (ResourceSelector) IsEmpty ¶ added in v1.0.324
func (c ResourceSelector) IsEmpty() bool
func (ResourceSelector) IsMetadataOnly ¶ added in v1.0.920
func (rs ResourceSelector) IsMetadataOnly() bool
func (ResourceSelector) Matches ¶ added in v1.0.374
func (rs ResourceSelector) Matches(s ResourceSelectable) bool
func (ResourceSelector) MetadataOnly ¶ added in v1.0.920
func (rs ResourceSelector) MetadataOnly() ResourceSelector
func (ResourceSelector) Pretty ¶ added in v1.0.1230
func (rs ResourceSelector) Pretty() api.Text
func (ResourceSelector) String ¶ added in v1.0.900
func (rs ResourceSelector) String() string
func (ResourceSelector) ToGetOptions ¶ added in v1.0.898
func (c ResourceSelector) ToGetOptions() (string, bool)
func (ResourceSelector) ToListOptions ¶ added in v1.0.898
func (c ResourceSelector) ToListOptions() (metav1.ListOptions, bool)
ToListOptions converts the resource selector to a ListOptions, using the supported optiions by Kubernetes List, it returns true if the query can be executed entirely by Kubernetes
func (ResourceSelector) ToPeg ¶ added in v1.0.835
func (rs ResourceSelector) ToPeg(convertSelectors bool) string
func (ResourceSelector) Type ¶ added in v1.0.900
func (rs ResourceSelector) Type(t string) ResourceSelector
func (ResourceSelector) Wildcard ¶ added in v1.0.793
func (c ResourceSelector) Wildcard() bool
A wildcard resource selector is one where it just has the name field set to '*'
type ResourceSelectors ¶ added in v1.0.83
type ResourceSelectors []ResourceSelector
func (ResourceSelectors) GormDBDataType ¶ added in v1.0.83
GormDBDataType gorm db data type
func (ResourceSelectors) GormDataType ¶ added in v1.0.83
func (rs ResourceSelectors) GormDataType() string
GormDataType gorm common data type
func (ResourceSelectors) Hash ¶ added in v1.0.253
func (rs ResourceSelectors) Hash() string
func (ResourceSelectors) Matches ¶ added in v1.0.946
func (rs ResourceSelectors) Matches(s ResourceSelectable) bool
func (*ResourceSelectors) Scan ¶ added in v1.0.83
func (rs *ResourceSelectors) Scan(val any) error
type Restore ¶ added in v1.0.1260
type Restore struct {
Event `json:",inline"`
// Optional source and target environments for the restore. If not specified, the restore is assumed to be within the same environment.
From Environment `json:"from,omitempty"`
To Environment `json:"to,omitempty"`
// Optional source for the restore, e.g. Git repo, Helm chart, container image, database schema, etc.
Source Source `json:"source,omitempty"`
// Optional version or identifier for the restored artifact, e.g. image tag, chart version, git commit, database schema version, etc.
Status Status `json:"status,omitempty"`
}
func (Restore) MarshalJSON ¶ added in v1.0.1260
type RestoreType ¶ added in v1.0.1260
type RestoreType string
const ( RestoreTypeClone RestoreType = "Clone" RestoreTypeSnapshotReset RestoreType = "SnapshotReset" RestoreTypePointInTime RestoreType = "PointInTime" RestoreTypeDisasterRecovery RestoreType = "DisasterRecovery" RestoreTypeTest RestoreType = "RestoreTest" RestoreTypeData RestoreType = "Data" )
type Scale ¶ added in v1.0.1260
type Scale struct {
Dimension ScalingDimension `json:"dimension,omitempty"`
PreviousValue Dimension `json:"previous_value,omitempty"`
Value Dimension `json:"value,omitempty"`
}
func (Scale) MarshalJSON ¶ added in v1.0.1260
type ScalingDimension ¶ added in v1.0.1260
type ScalingDimension string
const ( ScalingDimensionCPU ScalingDimension = "CPU" ScalingDimensionMemory ScalingDimension = "Memory" ScalingDimensionReplicas ScalingDimension = "Replicas" ScalingDimensionCustom ScalingDimension = "Custom" )
type ScreenshotDetails ¶ added in v1.0.1260
type ScreenshotDetails struct {
ArtifactID string `json:"artifact_id,omitempty"`
URL string `json:"url,omitempty"`
ContentType string `json:"content_type,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
}
func (ScreenshotDetails) Kind ¶ added in v1.0.1260
func (d ScreenshotDetails) Kind() string
func (ScreenshotDetails) MarshalJSON ¶ added in v1.0.1260
func (d ScreenshotDetails) MarshalJSON() ([]byte, error)
type SecretKeySelector ¶ added in v1.0.45
type SecretKeySelector struct {
LocalObjectReference `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=localObjectReference"`
Key string `json:"key" yaml:"key" protobuf:"bytes,2,opt,name=key"`
}
+kubebuilder:object:generate=true
func (*SecretKeySelector) DeepCopy ¶ added in v1.0.47
func (in *SecretKeySelector) DeepCopy() *SecretKeySelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretKeySelector.
func (*SecretKeySelector) DeepCopyInto ¶ added in v1.0.47
func (in *SecretKeySelector) DeepCopyInto(out *SecretKeySelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (SecretKeySelector) IsEmpty ¶ added in v1.0.474
func (s SecretKeySelector) IsEmpty() bool
func (SecretKeySelector) String ¶ added in v1.0.45
func (s SecretKeySelector) String() string
type Source ¶ added in v1.0.1260
type Source struct {
Git *GitSource `json:"git,omitempty"`
Helm *HelmSource `json:"helm,omitempty"`
Image *ImageSource `json:"image,omitempty"`
Database *DatabaseSource `json:"database,omitempty"`
KustomizationSource *GitSource `json:"kustomization,omitempty"`
ArgocdSource *GitSource `json:"argocd,omitempty"`
OtherSource *string `json:"other,omitempty"`
Path string `json:"path,omitempty"` // Optional path within the source, e.g. file path in git repo or chart path in Helm repo
}
func (Source) MarshalJSON ¶ added in v1.0.1260
type Summary ¶ added in v1.0.83
type Summary struct {
Healthy int `json:"healthy,omitempty"`
Unhealthy int `json:"unhealthy,omitempty"`
Warning int `json:"warning,omitempty"`
Info int `json:"info,omitempty"`
Incidents map[string]map[string]int `json:"incidents,omitempty"`
Insights map[string]map[string]int `json:"insights,omitempty"`
Checks map[string]int `json:"checks,omitempty"`
// contains filtered or unexported fields
}
+kubebuilder:object:generate=true
func (*Summary) DeepCopy ¶ added in v1.0.83
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Summary.
func (*Summary) DeepCopyInto ¶ added in v1.0.83
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Summary) GetStatus ¶ added in v1.0.83
func (s Summary) GetStatus() ComponentStatus
func (Summary) GormDBDataType ¶ added in v1.0.83
func (Summary) GormDataType ¶ added in v1.0.83
GormDataType gorm common data type
func (Summary) IsProcessed ¶ added in v1.0.83
func (*Summary) Scan ¶ added in v1.0.83
Scan scan value into Jsonb, implements sql.Scanner interface
func (*Summary) SetProcessed ¶ added in v1.0.83
type TagsMatchable ¶ added in v1.0.412
type Test ¶ added in v1.0.1260
type Test struct {
Event `json:",inline"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Type TestingType `json:"type,omitempty"`
Status TestingStatus `json:"status,omitempty"`
Result TestingResult `json:"result,omitempty"`
}
func (Test) MarshalJSON ¶ added in v1.0.1260
type TestingResult ¶ added in v1.0.1260
type TestingResult string
type TestingStatus ¶ added in v1.0.1260
type TestingStatus string
type TestingType ¶ added in v1.0.1260
type TestingType string
type Text ¶ added in v1.0.15
type Text struct {
Tooltip string `json:"tooltip,omitempty"`
Icon string `json:"icon,omitempty"`
Text string `json:"text,omitempty"`
Label string `json:"label,omitempty"`
}
+kubebuilder:object:generate=true
func (*Text) DeepCopy ¶ added in v1.0.254
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Text.
func (*Text) DeepCopyInto ¶ added in v1.0.254
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnstructuredResource ¶ added in v1.0.898
type UnstructuredResource struct {
*unstructured.Unstructured
}
func (*UnstructuredResource) GetFieldsMatcher ¶ added in v1.0.898
func (u *UnstructuredResource) GetFieldsMatcher() fields.Fields
func (UnstructuredResource) GetHealth ¶ added in v1.0.898
func (u UnstructuredResource) GetHealth() (string, error)
func (*UnstructuredResource) GetID ¶ added in v1.0.898
func (u *UnstructuredResource) GetID() string
func (*UnstructuredResource) GetLabelsMatcher ¶ added in v1.0.898
func (u *UnstructuredResource) GetLabelsMatcher() labels.Labels
func (*UnstructuredResource) GetName ¶ added in v1.0.898
func (u *UnstructuredResource) GetName() string
func (*UnstructuredResource) GetNamespace ¶ added in v1.0.898
func (u *UnstructuredResource) GetNamespace() string
func (*UnstructuredResource) GetStatus ¶ added in v1.0.898
func (u *UnstructuredResource) GetStatus() (string, error)
func (*UnstructuredResource) GetType ¶ added in v1.0.898
func (u *UnstructuredResource) GetType() string
type Uptime ¶ added in v1.0.164
type Uptime struct {
Passed int `json:"passed"`
Failed int `json:"failed"`
P100 *float64 `json:"p100,omitempty"`
LastPass *time.Time `json:"last_pass,omitempty"`
LastFail *time.Time `json:"last_fail,omitempty"`
}
func (Uptime) GormDBDataType ¶ added in v1.0.164
type UserChangeDetails ¶ added in v1.0.1260
type UserChangeDetails struct {
UserID string `json:"user_id,omitempty"`
UserName string `json:"user_name,omitempty"`
UserEmail string `json:"user_email,omitempty"`
UserType string `json:"user_type,omitempty"`
GroupID string `json:"group_id,omitempty"`
GroupName string `json:"group_name,omitempty"`
Tenant string `json:"tenant,omitempty"`
}
func (UserChangeDetails) Kind ¶ added in v1.0.1260
func (d UserChangeDetails) Kind() string
func (UserChangeDetails) MarshalJSON ¶ added in v1.0.1260
func (d UserChangeDetails) MarshalJSON() ([]byte, error)
type ValueExpression ¶ added in v1.0.552
type ValueExpression struct {
Expr CelExpression `yaml:"expr,omitempty" json:"expr,omitempty"`
// Value is a static value
Value string `yaml:"value,omitempty" json:"value,omitempty"`
}
+kubebuilder:object:generate=true
func (*ValueExpression) DeepCopy ¶ added in v1.0.552
func (in *ValueExpression) DeepCopy() *ValueExpression
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueExpression.
func (*ValueExpression) DeepCopyInto ¶ added in v1.0.552
func (in *ValueExpression) DeepCopyInto(out *ValueExpression)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ValueExpression) Empty ¶ added in v1.0.552
func (t ValueExpression) Empty() bool
type WithCertificate ¶ added in v1.0.213
type WithCertificate interface {
GetCertificate() EnvVar
}