Documentation ¶
Index ¶
- type AppService
- type HealthService
- func (in *HealthService) GetAppHealth(namespace, app, rateInterval string) (*models.AppHealth, error)
- func (in *HealthService) GetNamespaceAppHealth(namespace, rateInterval string) (models.NamespaceAppHealth, error)
- func (in *HealthService) GetNamespaceWorkloadHealth(namespace, rateInterval string) (models.NamespaceWorkloadHealth, error)
- func (in *HealthService) GetServiceHealth(namespace, service, rateInterval string) (*models.ServiceHealth, error)
- func (in *HealthService) GetWorkloadHealth(namespace, workload, rateInterval string) (*models.WorkloadHealth, error)
- 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)
- func (in *IstioValidationsService) GetWorkloadValidations(namespace string, workload string) (models.IstioValidations, error)
- type Layer
- type NamespaceService
- type ObjectChecker
- type SvcService
- type WorkloadService
- func (in *WorkloadService) GetPods(namespace string, labelSelector string) (models.Pods, error)
- func (in *WorkloadService) GetWorkload(namespace string, workloadName string, includeServices bool) (*models.Workload, error)
- func (in *WorkloadService) GetWorkloadList(namespace string) (models.WorkloadList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppService ¶ added in v0.7.0
type AppService struct {
// contains filtered or unexported fields
}
AppService deals with fetching Workloads group by "app" label, which will be identified as an "application"
func (*AppService) GetApp ¶ added in v0.7.0
GetApp is the API handler to fetch the details for a given namespace and app name
func (*AppService) GetAppList ¶ added in v0.7.0
func (in *AppService) GetAppList(namespace string) (models.AppList, error)
GetAppList is the API handler to fetch the list of applications in a given namespace
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) GetAppHealth ¶ added in v0.6.0
func (in *HealthService) GetAppHealth(namespace, app, rateInterval string) (*models.AppHealth, error)
GetAppHealth returns an app health from just Namespace and app name (thus, it fetches data from K8S and Prometheus)
func (*HealthService) GetNamespaceAppHealth ¶ added in v0.6.0
func (in *HealthService) GetNamespaceAppHealth(namespace, rateInterval string) (models.NamespaceAppHealth, error)
GetNamespaceAppHealth returns a health for all apps in given Namespace (thus, it fetches data from K8S and Prometheus)
func (*HealthService) GetNamespaceWorkloadHealth ¶ added in v0.6.0
func (in *HealthService) GetNamespaceWorkloadHealth(namespace, rateInterval string) (models.NamespaceWorkloadHealth, error)
GetNamespaceWorkloadHealth returns a health for all workloads in given Namespace (thus, it fetches data from K8S and Prometheus)
func (*HealthService) GetServiceHealth ¶
func (in *HealthService) GetServiceHealth(namespace, service, rateInterval string) (*models.ServiceHealth, error)
GetServiceHealth returns a service health from just Namespace and service (thus, it fetches data from K8S and Prometheus)
func (*HealthService) GetWorkloadHealth ¶ added in v0.6.0
func (in *HealthService) GetWorkloadHealth(namespace, workload, rateInterval string) (*models.WorkloadHealth, error)
GetWorkloadHealth returns a workload health from just Namespace and workload (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.
func (*IstioValidationsService) GetWorkloadValidations ¶ added in v0.7.0
func (in *IstioValidationsService) GetWorkloadValidations(namespace string, workload string) (models.IstioValidations, error)
type Layer ¶
type Layer struct { Svc SvcService Health HealthService Validations IstioValidationsService IstioConfig IstioConfigService Workload WorkloadService App AppService Namespace NamespaceService }
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 NamespaceService ¶ added in v0.8.0
type NamespaceService struct {
// contains filtered or unexported fields
}
Namespace deals with fetching k8s namespaces / OpenShift projects and convert to kiali model
func NewNamespaceService ¶ added in v0.8.0
func NewNamespaceService(k8s kubernetes.IstioClientInterface) NamespaceService
func (*NamespaceService) GetNamespaces ¶ added in v0.8.0
func (in *NamespaceService) GetNamespaces() ([]models.Namespace, error)
Returns a list of the given namespaces / projects
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.ServiceDetails, 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
type WorkloadService ¶ added in v0.6.0
type WorkloadService struct {
// contains filtered or unexported fields
}
Workload deals with fetching istio/kubernetes workloads related content and convert to kiali model
func (*WorkloadService) GetWorkload ¶ added in v0.6.0
func (in *WorkloadService) GetWorkload(namespace string, workloadName string, includeServices bool) (*models.Workload, error)
GetWorkload is the API handler to fetch details of a specific workload. If includeServices is set true, the Workload will fetch all services related
func (*WorkloadService) GetWorkloadList ¶ added in v0.6.0
func (in *WorkloadService) GetWorkloadList(namespace string) (models.WorkloadList, error)
GetWorkloadList is the API handler to fetch the list of workloads in a given namespace