Affected by GO-2022-0390
and 5 other vulnerabilities
GO-2022-0390 : Moby (Docker Engine) started with non-empty inheritable Linux process capabilities in github.com/docker/docker
GO-2024-2914 : Moby (Docker Engine) is vulnerable to Ambiguous OCI manifest parsing in github.com/docker/docker
GO-2024-3304 : Moby Race Condition vulnerability in github.com/moby/moby
GO-2024-3305 : Moby Race Condition vulnerability in github.com/moby/moby
GO-2026-4883 : Moby has an Off-by-one error in its plugin privilege validation in github.com/docker/docker
GO-2026-4887 : Moby has AuthZ plugin bypass when provided oversized request bodies in github.com/docker/docker
Discover Packages
github.com/moby/moby
pkg
pubsub
package
Version:
v1.7.1-rc1
Opens a new window with list of versions in this module.
Published: Jul 2, 2015
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Publisher struct {
}
NewPublisher creates a new pub/sub publisher to broadcast messages.
The duration is used as the send timeout as to not block the publisher publishing
messages to other clients if one client is slow or unresponsive.
The buffer is used when creating new channels for subscribers.
Close closes the channels to all subscribers registered with the publisher.
func (p *Publisher ) Evict(sub chan interface{})
Evict removes the specified subscriber from receiving any more messages.
Len returns the number of subscribers for the publisher
Publish sends the data in v to all subscribers currently registered with the publisher.
func (p *Publisher ) Subscribe() chan interface{}
Subscribe adds a new subscriber to the publisher returning the channel.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.