report

package
v0.15.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package report provides primitives for generating HTML reports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrderedBy added in v0.10.0

func OrderedBy(less ...LessFunc) *multiSorter

OrderedBy returns a Sorter that sorts using the LessFunc functions, in order. Call its Sort method to sort the data.

Types

type LessFunc added in v0.10.0

type LessFunc func(p1, p2 *templates.CheckWithCount) bool

type NamespaceReporter added in v0.10.0

type NamespaceReporter interface {
	RetrieveData(namespace kube.ObjectRef) (templates.NamespaceReport, error)
	Generate(namespace kube.ObjectRef, out io.Writer) error
}

func NewNamespaceReporter added in v0.10.0

func NewNamespaceReporter(clock ext.Clock, client client.Client) NamespaceReporter

type NodeReporter added in v0.10.0

type NodeReporter interface {
	RetrieveData(node kube.ObjectRef) (templates.NodeReport, error)
	Generate(node kube.ObjectRef, out io.Writer) error
}

func NewNodeReporter added in v0.10.0

func NewNodeReporter(clock ext.Clock, client client.Client) NodeReporter

NewNodeReporter generate the html reporter

type WorkloadReporter added in v0.10.0

type WorkloadReporter interface {
	RetrieveData(workload kube.ObjectRef) (templates.WorkloadReport, error)
	Generate(workload kube.ObjectRef, out io.Writer) error
}

func NewWorkloadReporter added in v0.10.0

func NewWorkloadReporter(clock ext.Clock, client client.Client) WorkloadReporter

Directories

Path Synopsis
Package templates provides code generated from *.qtpl templates.
Package templates provides code generated from *.qtpl templates.

Jump to

Keyboard shortcuts

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