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 ¶
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. |
Click to show internal directories.
Click to hide internal directories.