reporter

package
v0.0.0-...-e0434a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ByServiceNameLabelIndexName = "serviceLabelIndex"
)

Variables

This section is empty.

Functions

func ByServiceNameLabelIndex

func ByServiceNameLabelIndex(object interface{}) ([]string, error)

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewReportingAPI

func NewReportingAPI(logger *zap.Logger, router *chi.Mux, informers map[schema.GroupVersionKind]cache.SharedIndexInformer,
	asapConfig pkiutil.ASAP, location voyager.Location, apiFile string, registry prometheus.Registerer) (*API, error)

func (*API) AddOrUpdateProvider

func (r *API) AddOrUpdateProvider(p ops.ProviderInterface)

func (*API) Instrumentation

func (r *API) Instrumentation(next http.Handler) http.Handler

func (*API) OnAdd

func (r *API) OnAdd(obj interface{})

route object event handler func's

func (*API) OnDelete

func (r *API) OnDelete(obj interface{})

func (*API) OnUpdate

func (r *API) OnUpdate(oldObj, newObj interface{})

type NamespaceReportHandler

type NamespaceReportHandler struct {
	*reporter_v1.NamespaceReport
	// contains filtered or unexported fields
}

func NewNamespaceReportHandler

func NewNamespaceReportHandler(name string, service voyager.ServiceName, objs []runtime.Object, filter RequestFilter, location voyager.Location) (*NamespaceReportHandler, error)

func (*NamespaceReportHandler) AddObject

func (n *NamespaceReportHandler) AddObject(obj runtime.Object, events map[types.UID][]*core_v1.Event) error

func (*NamespaceReportHandler) FormatReport

func (n *NamespaceReportHandler) FormatReport() reporter_v1.Report

func (*NamespaceReportHandler) GenerateReport

func (n *NamespaceReportHandler) GenerateReport(ctx context.Context,
	providers map[string]ops.ProviderInterface, asapConfig pkiutil.ASAP) reporter_v1.Report

func (*NamespaceReportHandler) GenerateSummary

func (n *NamespaceReportHandler) GenerateSummary(expand string) reporter_v1.Report

func (*NamespaceReportHandler) HandleComposition

func (n *NamespaceReportHandler) HandleComposition(obj *comp_v1.ServiceDescriptor) error

func (*NamespaceReportHandler) HandleExecution

func (n *NamespaceReportHandler) HandleExecution(obj *smith_v1.Bundle, events map[types.UID][]*core_v1.Event) error

func (*NamespaceReportHandler) HandleFormation

func (n *NamespaceReportHandler) HandleFormation(obj *form_v1.LocationDescriptor) error

func (*NamespaceReportHandler) HandleOrchestration

func (n *NamespaceReportHandler) HandleOrchestration(state *orch_v1.State) error

type ProviderOpsResponse

type ProviderOpsResponse struct {
	Result *ProviderResponse `json:"result,omitempty"`
}

type ProviderResponse

type ProviderResponse struct {
	Name       string                 `json:"name,omitempty"`
	Status     reporter_v1.Status     `json:"status,omitempty"`
	Properties map[string]interface{} `json:"properties,omitempty"`
	Spec       map[string]interface{} `json:"spec,omitempty"`
	Version    string                 `json:"version,omitempty"`
}

type RequestFilter

type RequestFilter struct {
	Namespace       string
	Service         string
	Layer           string
	Type            string
	Status          string
	Account         string
	Region          string
	EnvironmentType string
}

Directories

Path Synopsis
This package has the automatically generated clientset.
This package has the automatically generated clientset.
fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
typed/reporter/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
typed/reporter/v1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL