Documentation ¶
Overview ¶
Code generated by go generate; DO NOT EDIT. Amend via commonGVToKinds in ./common/generator.go
Index ¶
Constants ¶
View Source
const TypeKubernetes = "kubernetes"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kubernetes ¶
type Kubernetes struct { Group string `mapstructure:"group" default:"apps"` Version string `mapstructure:"version" default:"v1"` Kind string `mapstructure:"kind" default:"deployment"` Namespace string `mapstructure:"namespace" default:"default"` Name string `mapstructure:"name"` Condition *Condition `mapstructure:"condition"` Timeout time.Duration `mapstructure:"timeout" default:"10s"` }
func (*Kubernetes) GetHealth ¶
func (i *Kubernetes) GetHealth(ctx context.Context) *ph.HealthCheckResponse
func (*Kubernetes) GetName ¶
func (i *Kubernetes) GetName() string
func (*Kubernetes) GetType ¶
func (i *Kubernetes) GetType() string
func (*Kubernetes) LogValue ¶
func (i *Kubernetes) LogValue() slog.Value
func (*Kubernetes) SetDefaults ¶
func (i *Kubernetes) SetDefaults()
type Resource ¶
type Resource struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata struct { Name string `json:"name"` Namespace string `json:"namespace"` } `json:"metadata"` Status struct { Conditions []struct { Type string `json:"type"` Status v1.ConditionStatus `json:"status"` Message string `json:"message,omitempty"` } `json:"conditions"` } `json:"status"` }
func NewResource ¶
Click to show internal directories.
Click to hide internal directories.