Back to godoc.org

Package reporter

v0.0.0-...-e0434a4
Latest Go to latest

The latest major version is .

Published: Jun 30, 2019 | License: Apache-2.0 | Module: github.com/atlassian/voyager

Index

Constants

const (
	ByServiceNameLabelIndexName = "serviceLabelIndex"
)

func ByServiceNameLabelIndex

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

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
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier