statistic

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryStatistic

type EntryStatistic struct {
	Providers ProviderTypeStatistic
}

func NewEntryStatistic

func NewEntryStatistic() *EntryStatistic

type OwnerWalker

type OwnerWalker func(state WalkingState, owner, ptype string, pname resources.ObjectName, count int) WalkingState

type ProviderStatistic

type ProviderStatistic map[resources.ObjectName]int

func (ProviderStatistic) Count

func (this ProviderStatistic) Count() int

func (ProviderStatistic) Inc

func (this ProviderStatistic) Inc(name resources.ObjectName)

func (ProviderStatistic) Walk

func (this ProviderStatistic) Walk(state WalkingState, walker OwnerWalker, owner, ptype string) WalkingState

type ProviderTypeStatistic

type ProviderTypeStatistic map[string]ProviderStatistic

func (ProviderTypeStatistic) Assure

func (this ProviderTypeStatistic) Assure(ptype string) ProviderStatistic

func (ProviderTypeStatistic) Count

func (this ProviderTypeStatistic) Count() int

func (ProviderTypeStatistic) Get

func (ProviderTypeStatistic) Inc

func (this ProviderTypeStatistic) Inc(ptype string, pname resources.ObjectName)

func (ProviderTypeStatistic) Walk

func (this ProviderTypeStatistic) Walk(state WalkingState, walker OwnerWalker, owner string) WalkingState

type WalkingState

type WalkingState interface{}

Jump to

Keyboard shortcuts

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