Documentation
¶
Index ¶
- type HealthService
- type IstioConfigCriteria
- type IstioConfigService
- type IstioValidationsService
- func (in *IstioValidationsService) GetIstioObjectValidations(namespace string, objectType string, object string) (models.IstioValidations, error)
- func (in *IstioValidationsService) GetNamespaceValidations(namespace string) (models.NamespaceValidations, error)
- func (in *IstioValidationsService) GetServiceValidations(namespace, service string) (models.IstioValidations, error)
- type Layer
- type NamespaceHealth
- type ObjectChecker
- type SvcService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthService ¶
type HealthService struct {
// contains filtered or unexported fields
}
HealthService deals with fetching health from various sources and convert to kiali model
func (*HealthService) GetNamespaceHealth ¶
func (in *HealthService) GetNamespaceHealth(namespace, rateInterval string) (NamespaceHealth, error)
GetNamespaceHealth returns a health for all services in given Namespace (thus, it fetches data from K8S and Prometheus)
func (*HealthService) GetServiceHealth ¶
func (in *HealthService) GetServiceHealth(namespace, service, rateInterval string) models.Health
GetServiceHealth returns a service health from just Namespace and service (thus, it fetches data from K8S and Prometheus)
type IstioConfigCriteria ¶
type IstioConfigService ¶
type IstioConfigService struct {
// contains filtered or unexported fields
}
func (*IstioConfigService) GetIstioConfig ¶
func (in *IstioConfigService) GetIstioConfig(criteria IstioConfigCriteria) (models.IstioConfigList, error)
GetIstioConfig returns a list of Istio routing objects and Mixer Rules per a given Namespace.
func (*IstioConfigService) GetIstioConfigDetails ¶
func (in *IstioConfigService) GetIstioConfigDetails(namespace string, objectType string, object string) (models.IstioConfigDetails, error)
type IstioValidationsService ¶
type IstioValidationsService struct {
// contains filtered or unexported fields
}
func (*IstioValidationsService) GetIstioObjectValidations ¶
func (in *IstioValidationsService) GetIstioObjectValidations(namespace string, objectType string, object string) (models.IstioValidations, error)
func (*IstioValidationsService) GetNamespaceValidations ¶
func (in *IstioValidationsService) GetNamespaceValidations(namespace string) (models.NamespaceValidations, error)
func (*IstioValidationsService) GetServiceValidations ¶
func (in *IstioValidationsService) GetServiceValidations(namespace, service string) (models.IstioValidations, error)
GetServiceValidations returns an IstioValidations object with all the checks found when running all the enabled checkers.
type Layer ¶
type Layer struct { Svc SvcService Health HealthService Validations IstioValidationsService IstioConfig IstioConfigService }
Layer is a container for fast access to inner services
func SetWithBackends ¶
func SetWithBackends(k8s kubernetes.IstioClientInterface, prom prometheus.ClientInterface) *Layer
SetWithBackends creates all services with injected clients to external APIs
type NamespaceHealth ¶
NamespaceHealth is an alias of map of service name x health
type ObjectChecker ¶
type ObjectChecker interface {
Check() models.IstioValidations
}
type SvcService ¶
type SvcService struct {
// contains filtered or unexported fields
}
SvcService deals with fetching istio/kubernetes services related content and convert to kiali model
func (*SvcService) GetService ¶
func (in *SvcService) GetService(namespace, service, interval string) (*models.Service, error)
GetService returns a single service
func (*SvcService) GetServiceList ¶
func (in *SvcService) GetServiceList(namespace string) (*models.ServiceList, error)
GetServiceList returns a list of all services for a given Namespace