summarycache

package
v0.8.16 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 16 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Relationship

type Relationship struct {
	ToID        string `json:"toId,omitempty"`
	ToType      string `json:"toType,omitempty"`
	ToNamespace string `json:"toNamespace,omitempty"`
	FromID      string `json:"fromId,omitempty"`
	FromType    string `json:"fromType,omitempty"`
	Rel         string `json:"rel,omitempty"`
	Selector    string `json:"selector,omitempty"`

	State         string `json:"state,omitempty"`
	Message       string `json:"message,omitempty"`
	Error         bool   `json:"error,omitempty"`
	Transitioning bool   `json:"transitioning,omitempty"`
}

type SummaryCache

type SummaryCache struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New(schemas *schema.Collection, clusterCache clustercache.ClusterCache) *SummaryCache

func (*SummaryCache) Add

func (s *SummaryCache) Add(obj runtime.Object)

func (*SummaryCache) Change

func (s *SummaryCache) Change(newObj, oldObj runtime.Object)

func (*SummaryCache) OnAdd

func (*SummaryCache) OnChange

func (s *SummaryCache) OnChange(_ runtimeschema.GroupVersionKind, key string, obj, oldObj runtime.Object) error

func (*SummaryCache) OnInboundRelationshipChange

func (s *SummaryCache) OnInboundRelationshipChange(ctx context.Context, schema *types.APISchema, namespace string) <-chan *summary.Relationship

func (*SummaryCache) OnRemove

func (*SummaryCache) Remove

func (s *SummaryCache) Remove(obj runtime.Object)

func (*SummaryCache) Start

func (s *SummaryCache) Start(ctx context.Context)

func (*SummaryCache) SummaryAndRelationship

func (s *SummaryCache) SummaryAndRelationship(obj runtime.Object) (*summary.SummarizedObject, []Relationship)

Jump to

Keyboard shortcuts

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