list

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyStats

type ApplyStats struct {
	ServersideApplied int
	Created           int
	Unchanged         int
	Configured        int
}

func (*ApplyStats) Sum

func (a *ApplyStats) Sum() int

type BaseListPrinter

type BaseListPrinter struct {
	FormatterFactory FormatterFactory
	IOStreams        genericclioptions.IOStreams
}

func (*BaseListPrinter) Print

func (b *BaseListPrinter) Print(ch <-chan event.Event, previewStrategy common.DryRunStrategy) error

Print outputs the events from the provided channel in a simple format on StdOut. As we support other printer implementations this should probably be an interface. This function will block until the channel is closed.

type Collector

type Collector interface {
	LatestStatus() map[object.ObjMetadata]pollevent.Event
}

type DeleteStats

type DeleteStats struct {
	Deleted int
	Skipped int
}

type Formatter

type Formatter interface {
	FormatApplyEvent(ae event.ApplyEvent, as *ApplyStats, c Collector) error
	FormatStatusEvent(se pollevent.Event, sc Collector) error
	FormatPruneEvent(pe event.PruneEvent, ps *PruneStats) error
	FormatDeleteEvent(de event.DeleteEvent, ds *DeleteStats) error
	FormatErrorEvent(ee event.ErrorEvent) error
}

type FormatterFactory

type FormatterFactory func(ioStreams genericclioptions.IOStreams,
	previewStrategy common.DryRunStrategy) Formatter

type PruneStats

type PruneStats struct {
	Pruned  int
	Skipped int
}

type StatusCollector

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

func (*StatusCollector) LatestStatus

func (sc *StatusCollector) LatestStatus() map[object.ObjMetadata]pollevent.Event

Jump to

Keyboard shortcuts

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