resourcewatcher

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Pods       sw.ResourceKind = "pods"
	Nodes      sw.ResourceKind = "nodes"
	Pvs        sw.ResourceKind = "persistentvolumes"
	Pvcs       sw.ResourceKind = "persistentvolumeclaims"
	Scs        sw.ResourceKind = "storageclasses"
	Pcs        sw.ResourceKind = "priorityclasses"
	Namespaces sw.ResourceKind = "namespaces"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LastResourceVersions

type LastResourceVersions struct {
	Pods       string
	Nodes      string
	Pvs        string
	Pvcs       string
	Scs        string
	Pcs        string
	Namespaces string
}

LastResourceVersions includes each resource's LastResourceVersions.

type Service

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

Service watches simulator's resources.

func NewService

func NewService(client clientset.Interface) *Service

NewService initializes Service.

func (*Service) ListWatch

func (s *Service) ListWatch(ctx context.Context, stream sw.ResponseStream, lrVersions *LastResourceVersions) error

ListWatch watches each simulator's resources and send notified events to the frontend continuously.

type StreamWriter

type StreamWriter interface {
	Write(we *sw.WatchEvent) error
}

StreamWriter is an interface that allows send a received WatchEvent to the frontend.

Directories

Path Synopsis
Package mock_resourcewatcher is a generated GoMock package.
Package mock_resourcewatcher is a generated GoMock package.
mock_streamwriter
Package mock_streamwriter is a generated GoMock package.
Package mock_streamwriter is a generated GoMock package.

Jump to

Keyboard shortcuts

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