state

package
v0.0.0-...-aa7a887 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store knows how to keep internal state as part of a WorkloadEntry resource.

func NewStore

func NewStore(store model.ConfigStoreController, cb StoreCallbacks) *Store

NewStore returns a new Store instance.

func (*Store) DeleteHealthCondition

func (s *Store) DeleteHealthCondition(wle config.Config) error

DeleteHealthCondition updates WorkloadEntry of a workload that is not using auto-registration to remove information about the health status (since we can no longer be certain about it).

func (*Store) UpdateHealth

func (s *Store) UpdateHealth(proxyID, entryName, entryNs string, condition *v1alpha1.IstioCondition) error

UpdateHealth updates the associated WorkloadEntries health status based on the corresponding health check performed by istio-agent.

type StoreCallbacks

type StoreCallbacks interface {
	// IsControllerOf returns true if a given WorkloadEntry is connected
	// to this istiod instance.
	IsControllerOf(wle *config.Config) bool
}

StoreCallbacks represents a contract between a Store and a autoregistration.Controller.

Jump to

Keyboard shortcuts

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