eab5c2b86b
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
24 lines
654 B
Go
24 lines
654 B
Go
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package testutil
|
|
|
|
import "github.com/suzerain-io/pinniped/internal/controllerlib"
|
|
|
|
type ObservableWithInitialEventOption struct {
|
|
key controllerlib.Key
|
|
}
|
|
|
|
func NewObservableWithInitialEventOption() *ObservableWithInitialEventOption {
|
|
return &ObservableWithInitialEventOption{}
|
|
}
|
|
|
|
func (i *ObservableWithInitialEventOption) WithInitialEvent(key controllerlib.Key) controllerlib.Option {
|
|
i.key = key
|
|
return controllerlib.WithInitialEvent(key)
|
|
}
|
|
|
|
func (i *ObservableWithInitialEventOption) GetInitialEventKey() controllerlib.Key {
|
|
return i.key
|
|
}
|