Skip to content

Commit c80013e

Browse files
committed
Fix missing comments
1 parent fe27862 commit c80013e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/client/fake/intercept.go

+4
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ func (c interceptor) Watch(ctx context.Context, obj client.ObjectList, opts ...c
124124
return c.client.Watch(ctx, obj, opts...)
125125
}
126126

127+
// SubResourceInterceptorFns is a set of functions that can be used to intercept
128+
// calls to a SubResourceClient.
127129
type SubResourceInterceptorFns struct {
128130
Get func(ctx context.Context, client client.SubResourceClient, obj client.Object, subResource client.Object, opts ...client.SubResourceGetOption) error
129131
Create func(ctx context.Context, client client.SubResourceClient, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error
@@ -138,6 +140,8 @@ type subResourceInterceptor struct {
138140

139141
var _ client.SubResourceClient = &subResourceInterceptor{}
140142

143+
// SubResourceInterceptor returns a SubResourceClient that intercepts calls to
144+
// the provided client with the provided functions.
141145
func SubResourceInterceptor(client client.SubResourceClient, fns SubResourceInterceptorFns) client.SubResourceClient {
142146
return subResourceInterceptor{client: client, fns: fns}
143147
}

0 commit comments

Comments
 (0)