Documentation ¶
Index ¶
- type EventingV1beta2Recorder
- func (sr *EventingV1beta2Recorder) CreateEventtype(eventtype interface{}, err error)
- func (sr *EventingV1beta2Recorder) DeleteEventtype(name interface{}, err error)
- func (sr *EventingV1beta2Recorder) GetEventtype(name string, eventtype *eventingv1beta2.EventType, err error)
- func (sr *EventingV1beta2Recorder) ListEventtypes(eventtypeList *eventingv1beta2.EventTypeList, err error)
- func (sr *EventingV1beta2Recorder) Validate()
- type EventtypeBuilder
- func (e *EventtypeBuilder) Broker(broker string) *EventtypeBuilder
- func (e *EventtypeBuilder) Build() *eventingv1beta2.EventType
- func (e *EventtypeBuilder) Namespace(ns string) *EventtypeBuilder
- func (e *EventtypeBuilder) Reference(ref *v1.KReference) *EventtypeBuilder
- func (e *EventtypeBuilder) Source(source *apis.URL) *EventtypeBuilder
- func (e *EventtypeBuilder) Type(ceType string) *EventtypeBuilder
- func (e *EventtypeBuilder) WithGvk() *EventtypeBuilder
- type KnEventingV1Beta2Client
- type MockKnEventingV1beta2Client
- func (c *MockKnEventingV1beta2Client) CreateEventtype(ctx context.Context, eventtype *eventingv1beta2.EventType) error
- func (c *MockKnEventingV1beta2Client) DeleteEventtype(ctx context.Context, name string) error
- func (c *MockKnEventingV1beta2Client) GetEventtype(ctx context.Context, name string) (*eventingv1beta2.EventType, error)
- func (c *MockKnEventingV1beta2Client) ListEventtypes(ctx context.Context) (*eventingv1beta2.EventTypeList, error)
- func (c *MockKnEventingV1beta2Client) Namespace() string
- func (c *MockKnEventingV1beta2Client) Recorder() *EventingV1beta2Recorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventingV1beta2Recorder ¶
type EventingV1beta2Recorder struct {
// contains filtered or unexported fields
}
EventingV1beta2Recorder is recorder for eventingv1beta2 objects
func (*EventingV1beta2Recorder) CreateEventtype ¶
func (sr *EventingV1beta2Recorder) CreateEventtype(eventtype interface{}, err error)
CreateEventtype records a call for CreateEventtype with the expected error
func (*EventingV1beta2Recorder) DeleteEventtype ¶
func (sr *EventingV1beta2Recorder) DeleteEventtype(name interface{}, err error)
DeleteEventtype records a call for DeleteEventtype with the expected error
func (*EventingV1beta2Recorder) GetEventtype ¶
func (sr *EventingV1beta2Recorder) GetEventtype(name string, eventtype *eventingv1beta2.EventType, err error)
GetEventtype records a call for GetEventtype with the expected result and error (nil if none)
func (*EventingV1beta2Recorder) ListEventtypes ¶
func (sr *EventingV1beta2Recorder) ListEventtypes(eventtypeList *eventingv1beta2.EventTypeList, err error)
ListEventtypes records a call for ListEventtypes with the expected result and error (nil if none)
func (*EventingV1beta2Recorder) Validate ¶
func (sr *EventingV1beta2Recorder) Validate()
Validate validates whether every recorded action has been called
type EventtypeBuilder ¶
type EventtypeBuilder struct {
// contains filtered or unexported fields
}
EventtypeBuilder is for building the eventtype
func NewEventtypeBuilder ¶
func NewEventtypeBuilder(name string) *EventtypeBuilder
NewEventtypeBuilder for building eventtype object
func (*EventtypeBuilder) Broker ¶
func (e *EventtypeBuilder) Broker(broker string) *EventtypeBuilder
Broker for eventtype builder
func (*EventtypeBuilder) Build ¶
func (e *EventtypeBuilder) Build() *eventingv1beta2.EventType
Build to return an instance of eventtype object
func (*EventtypeBuilder) Namespace ¶
func (e *EventtypeBuilder) Namespace(ns string) *EventtypeBuilder
Namespace for eventtype builder
func (*EventtypeBuilder) Reference ¶
func (e *EventtypeBuilder) Reference(ref *v1.KReference) *EventtypeBuilder
Reference for eventtype builder
func (*EventtypeBuilder) Source ¶
func (e *EventtypeBuilder) Source(source *apis.URL) *EventtypeBuilder
Source for eventtype builder
func (*EventtypeBuilder) Type ¶
func (e *EventtypeBuilder) Type(ceType string) *EventtypeBuilder
Type for eventtype builder
func (*EventtypeBuilder) WithGvk ¶
func (e *EventtypeBuilder) WithGvk() *EventtypeBuilder
WithGvk add the GVK coordinates for read tests
type KnEventingV1Beta2Client ¶
type KnEventingV1Beta2Client interface { // Namespace in which this client is operating for Namespace() string // ListEventtypes is used to list eventtypes ListEventtypes(ctx context.Context) (*eventingv1beta2.EventTypeList, error) // GetEventtype is used to describe an eventtype GetEventtype(ctx context.Context, name string) (*eventingv1beta2.EventType, error) // CreateEventtype is used to create an eventtype CreateEventtype(ctx context.Context, eventtype *eventingv1beta2.EventType) error // DeleteEventtype is used to delete an eventtype DeleteEventtype(ctx context.Context, name string) error }
KnEventingV1Beta2Client to Eventing Sources. All methods are relative to the namespace specified during construction
func NewKnEventingV1Beta2Client ¶
func NewKnEventingV1Beta2Client(client beta1.EventingV1beta2Interface, namespace string) KnEventingV1Beta2Client
NewKnEventingV1Beta2Client is to invoke Eventing Types Client API to create object
type MockKnEventingV1beta2Client ¶
type MockKnEventingV1beta2Client struct {
// contains filtered or unexported fields
}
MockKnEventingV1beta2Client is a combine of test object and recorder
func NewMockKnEventingV1beta2Client ¶
func NewMockKnEventingV1beta2Client(t *testing.T, ns ...string) *MockKnEventingV1beta2Client
NewMockKnEventingV1beta2Client returns a new mock instance which you need to record for
func (*MockKnEventingV1beta2Client) CreateEventtype ¶
func (c *MockKnEventingV1beta2Client) CreateEventtype(ctx context.Context, eventtype *eventingv1beta2.EventType) error
func (*MockKnEventingV1beta2Client) DeleteEventtype ¶
func (c *MockKnEventingV1beta2Client) DeleteEventtype(ctx context.Context, name string) error
func (*MockKnEventingV1beta2Client) GetEventtype ¶
func (c *MockKnEventingV1beta2Client) GetEventtype(ctx context.Context, name string) (*eventingv1beta2.EventType, error)
GetEventtypes records a call for GetEventtype with the expected object or error. Either eventtype or err should be nil
func (*MockKnEventingV1beta2Client) ListEventtypes ¶
func (c *MockKnEventingV1beta2Client) ListEventtypes(ctx context.Context) (*eventingv1beta2.EventTypeList, error)
func (*MockKnEventingV1beta2Client) Namespace ¶
func (c *MockKnEventingV1beta2Client) Namespace() string
Namespace of this client
func (*MockKnEventingV1beta2Client) Recorder ¶
func (c *MockKnEventingV1beta2Client) Recorder() *EventingV1beta2Recorder
Recorder returns the recorder for registering API calls