Documentation ¶
Index ¶
- func NewAppNamespace(name string) *corev1.Namespace
- func NewEventActivation(ns, name string) *v1alpha1.EventActivation
- func NewFakeClients(objs ...runtime.Object) (*istiofake.Clientset, *eaFake.Clientset)
- func NewScheme() *runtime.Scheme
- type ActionRecorder
- type ActionRecorderList
- type Actions
- type ActionsAsserter
- type Listers
- type ObjectSorter
- func (o *ObjectSorter) AddObjects(objs ...runtime.Object)
- func (o *ObjectSorter) IndexerForObjectType(obj runtime.Object) cache.Indexer
- func (o *ObjectSorter) ObjectsForScheme(scheme *runtime.Scheme) []runtime.Object
- func (o *ObjectSorter) ObjectsForSchemeFunc(funcs ...func(scheme *runtime.Scheme) error) []runtime.Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppNamespace ¶
func NewEventActivation ¶
func NewEventActivation(ns, name string) *v1alpha1.EventActivation
func NewFakeClients ¶
NewFakeClients initializes fake Clientsets with an optional list of API objects.
Types ¶
type ActionRecorder ¶
type ActionRecorder interface {
Actions() []clientgotesting.Action
}
ActionRecorder contains list of K8s request actions.
type ActionRecorderList ¶
type ActionRecorderList []ActionRecorder
ActionRecorderList is a list of ActionRecorder objects.
func (ActionRecorderList) ActionsByVerb ¶
func (l ActionRecorderList) ActionsByVerb() (Actions, error)
ActionsByVerb fills in Actions objects, sorting the actions by verb.
type Actions ¶
type Actions struct { Gets []clientgotesting.GetAction Creates []clientgotesting.CreateAction Updates []clientgotesting.UpdateAction Deletes []clientgotesting.DeleteAction DeleteCollections []clientgotesting.DeleteCollectionAction Patches []clientgotesting.PatchAction }
Actions stores list of Actions recorded by the reactors.
type ActionsAsserter ¶
type ActionsAsserter struct {
Actions
}
func NewActionsAsserter ¶
func NewActionsAsserter(t *testing.T, clis ...ActionRecorder) *ActionsAsserter
func (*ActionsAsserter) AssertCreates ¶
func (a *ActionsAsserter) AssertCreates(t *testing.T, expect []runtime.Object)
func (*ActionsAsserter) AssertDeletes ¶
func (a *ActionsAsserter) AssertDeletes(t *testing.T, expect []string)
func (*ActionsAsserter) AssertUpdates ¶
func (a *ActionsAsserter) AssertUpdates(t *testing.T, expect []runtime.Object)
type Listers ¶
type Listers struct {
// contains filtered or unexported fields
}
func NewListers ¶
func (*Listers) GetEAObjects ¶
func (*Listers) GetIstioObjects ¶
func (*Listers) GetKubeObjects ¶
type ObjectSorter ¶
type ObjectSorter struct {
// contains filtered or unexported fields
}
func NewObjectSorter ¶
func NewObjectSorter(scheme *runtime.Scheme) ObjectSorter
func (*ObjectSorter) AddObjects ¶
func (o *ObjectSorter) AddObjects(objs ...runtime.Object)
func (*ObjectSorter) IndexerForObjectType ¶
func (o *ObjectSorter) IndexerForObjectType(obj runtime.Object) cache.Indexer
func (*ObjectSorter) ObjectsForScheme ¶
func (o *ObjectSorter) ObjectsForScheme(scheme *runtime.Scheme) []runtime.Object
func (*ObjectSorter) ObjectsForSchemeFunc ¶
Click to show internal directories.
Click to hide internal directories.