Documentation ¶
Index ¶
Constants ¶
View Source
const (
PendingTime = 15 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory(targetRegistryClient nspAPI.TargetRegistryClient, conduit Conduit) *streamFactory
Types ¶
type Stream ¶
type Stream struct { Stream *ambassadorAPI.Stream TargetRegistry TargetRegistry // Contains Function to get the IPs of the conduit Conduit Conduit // contains filtered or unexported fields }
Stream implements types.Stream (/pkg/ambassador/tap/types) has
func New ¶
func New(stream *ambassadorAPI.Stream, targetRegistryClient nspAPI.TargetRegistryClient, conduit Conduit) (*Stream, error)
New is the constructor of Stream. Can return an error if the stream is invalid.
func (*Stream) Close ¶
Close the stream in the conduit by unregistering target from the NSP service.
func (*Stream) Equals ¶
func (s *Stream) Equals(stream *ambassadorAPI.Stream) bool
Equals checks if the stream is equal to the one in parameter
func (*Stream) GetStream ¶
func (s *Stream) GetStream() *ambassadorAPI.Stream
GetStream returns the current Stream (NSP API struct)
Click to show internal directories.
Click to hide internal directories.