statistic

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 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
	Owners    OwnerStatistic
}

func NewEntryStatistic

func NewEntryStatistic() *EntryStatistic

type OwnerStatistic

type OwnerStatistic map[string]ProviderTypeStatistic

func (OwnerStatistic) Assure

func (this OwnerStatistic) Assure(owner string) ProviderTypeStatistic

func (OwnerStatistic) Count

func (this OwnerStatistic) Count() int

func (OwnerStatistic) Get

func (OwnerStatistic) Inc

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

func (OwnerStatistic) Walk

func (this OwnerStatistic) Walk(state WalkingState, walker OwnerWalker) WalkingState

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