summarycache

package
v0.0.0-...-43fc03f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 3

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