statussync

package
v0.0.0-...-1c87088 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not Found")
)

Functions

This section is empty.

Types

type StatusInformer

type StatusInformer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

StatusInformer 状态同步通知器,当Pod状态处于Running时,通知对端

func NewManager

func NewManager() *StatusInformer

func (*StatusInformer) Add

func (m *StatusInformer) Add(name string) <-chan struct{}

func (*StatusInformer) Delete

func (m *StatusInformer) Delete(name string)

func (*StatusInformer) Sync

func (m *StatusInformer) Sync(name string) error

Jump to

Keyboard shortcuts

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