diff --git a/api/gloo/gateway/v1/external_options.proto b/api/gloo/gateway/v1/external_options.proto index e54c9c89a..500279d87 100644 --- a/api/gloo/gateway/v1/external_options.proto +++ b/api/gloo/gateway/v1/external_options.proto @@ -252,7 +252,7 @@ message RouteOptionSpec { repeated core.skv2.solo.io.PolicyTargetReference target_refs = 5; } -message ListenerOption { +message ListenerOptionSpec { // Listener options @@ -266,7 +266,7 @@ message ListenerOption { repeated core.skv2.solo.io.PolicyTargetReferenceWithSectionName target_refs = 3; } -message HttpListenerOption { +message HttpListenerOptionSpec { // HttpListener options @@ -281,7 +281,7 @@ message HttpListenerOption { } -message VirtualHostOptionStatus { +message HttpListenerOptionStatus { enum State { // Pending status indicates the resource has not yet been validated Pending = 0; @@ -301,7 +301,7 @@ message VirtualHostOptionStatus { // Reference to the reporter who wrote this status string reported_by = 3; // Reference to statuses (by resource-ref string: "Kind.Namespace.Name") of subresources of the parent resource - map subresource_statuses = 4; + map subresource_statuses = 4; // Opaque details about status results google.protobuf.Struct details = 5; @@ -309,8 +309,42 @@ message VirtualHostOptionStatus { -message VirtualHostOptionNamespacedStatuses { - map statuses = 1; +message HttpListenerOptionNamespacedStatuses { + map statuses = 1; +} + + + +message ListenerOptionStatus { + enum State { + // Pending status indicates the resource has not yet been validated + Pending = 0; + // Accepted indicates the resource has been validated + Accepted = 1; + // Rejected indicates an invalid configuration by the user + // Rejected resources may be propagated to the xDS server depending on their severity + Rejected = 2; + // Warning indicates a partially invalid configuration by the user + // Resources with Warnings may be partially accepted by a controller, depending on the implementation + Warning = 3; + } + // State is the enum indicating the state of the resource + State state = 1; + // Reason is a description of the error for Rejected resources. If the resource is pending or accepted, this field will be empty + string reason = 2; + // Reference to the reporter who wrote this status + string reported_by = 3; + // Reference to statuses (by resource-ref string: "Kind.Namespace.Name") of subresources of the parent resource + map subresource_statuses = 4; + + // Opaque details about status results + google.protobuf.Struct details = 5; +} + + + +message ListenerOptionNamespacedStatuses { + map statuses = 1; } @@ -346,3 +380,37 @@ message RouteOptionStatus { message RouteOptionNamespacedStatuses { map statuses = 1; } + + + +message VirtualHostOptionStatus { + enum State { + // Pending status indicates the resource has not yet been validated + Pending = 0; + // Accepted indicates the resource has been validated + Accepted = 1; + // Rejected indicates an invalid configuration by the user + // Rejected resources may be propagated to the xDS server depending on their severity + Rejected = 2; + // Warning indicates a partially invalid configuration by the user + // Resources with Warnings may be partially accepted by a controller, depending on the implementation + Warning = 3; + } + // State is the enum indicating the state of the resource + State state = 1; + // Reason is a description of the error for Rejected resources. If the resource is pending or accepted, this field will be empty + string reason = 2; + // Reference to the reporter who wrote this status + string reported_by = 3; + // Reference to statuses (by resource-ref string: "Kind.Namespace.Name") of subresources of the parent resource + map subresource_statuses = 4; + + // Opaque details about status results + google.protobuf.Struct details = 5; +} + + + +message VirtualHostOptionNamespacedStatuses { + map statuses = 1; +} diff --git a/codegen/gloo.go b/codegen/gloo.go index f9c7d5ac2..09311d8c3 100644 --- a/codegen/gloo.go +++ b/codegen/gloo.go @@ -22,12 +22,14 @@ func GlooGroups() []model.Group { }, GlooCustomTemplates), makeGroup("gateway", "v1", []resourceToGenerate{ {kind: "Gateway"}, + {kind: "HttpListenerOption"}, + {kind: "ListenerOption"}, {kind: "MatchableHttpGateway"}, {kind: "MatchableTcpGateway"}, + {kind: "RouteOption"}, {kind: "RouteTable"}, {kind: "VirtualService"}, {kind: "VirtualHostOption"}, - {kind: "RouteOption"}, }, GlooCustomTemplates), makeGroup("enterprise.gloo", "v1", []resourceToGenerate{ { diff --git a/crds/gateway.solo.io_crds.yaml b/crds/gateway.solo.io_crds.yaml index 8ace16756..5ef76c368 100644 --- a/crds/gateway.solo.io_crds.yaml +++ b/crds/gateway.solo.io_crds.yaml @@ -26,6 +26,60 @@ spec: subresources: status: {} +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + labels: + app: "" + app.kubernetes.io/name: "" + name: httplisteneroptions.gateway.solo.io +spec: + group: gateway.solo.io + names: + kind: HttpListenerOption + listKind: HttpListenerOptionList + plural: httplisteneroptions + singular: httplisteneroption + scope: Namespaced + versions: + - name: v1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} + +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + labels: + app: "" + app.kubernetes.io/name: "" + name: listeneroptions.gateway.solo.io +spec: + group: gateway.solo.io + names: + kind: ListenerOption + listKind: ListenerOptionList + plural: listeneroptions + singular: listeneroption + scope: Namespaced + versions: + - name: v1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/pkg/api/gateway.solo.io/v1/clients.go b/pkg/api/gateway.solo.io/v1/clients.go index 5032c8c59..cd93f9160 100644 --- a/pkg/api/gateway.solo.io/v1/clients.go +++ b/pkg/api/gateway.solo.io/v1/clients.go @@ -42,17 +42,21 @@ type Clientset interface { // clienset for the gateway.solo.io/v1/v1 APIs Gateways() GatewayClient // clienset for the gateway.solo.io/v1/v1 APIs + HttpListenerOptions() HttpListenerOptionClient + // clienset for the gateway.solo.io/v1/v1 APIs + ListenerOptions() ListenerOptionClient + // clienset for the gateway.solo.io/v1/v1 APIs MatchableHttpGateways() MatchableHttpGatewayClient // clienset for the gateway.solo.io/v1/v1 APIs MatchableTcpGateways() MatchableTcpGatewayClient // clienset for the gateway.solo.io/v1/v1 APIs + RouteOptions() RouteOptionClient + // clienset for the gateway.solo.io/v1/v1 APIs RouteTables() RouteTableClient // clienset for the gateway.solo.io/v1/v1 APIs VirtualServices() VirtualServiceClient // clienset for the gateway.solo.io/v1/v1 APIs VirtualHostOptions() VirtualHostOptionClient - // clienset for the gateway.solo.io/v1/v1 APIs - RouteOptions() RouteOptionClient } type clientSet struct { @@ -82,6 +86,16 @@ func (c *clientSet) Gateways() GatewayClient { return NewGatewayClient(c.client) } +// clienset for the gateway.solo.io/v1/v1 APIs +func (c *clientSet) HttpListenerOptions() HttpListenerOptionClient { + return NewHttpListenerOptionClient(c.client) +} + +// clienset for the gateway.solo.io/v1/v1 APIs +func (c *clientSet) ListenerOptions() ListenerOptionClient { + return NewListenerOptionClient(c.client) +} + // clienset for the gateway.solo.io/v1/v1 APIs func (c *clientSet) MatchableHttpGateways() MatchableHttpGatewayClient { return NewMatchableHttpGatewayClient(c.client) @@ -92,6 +106,11 @@ func (c *clientSet) MatchableTcpGateways() MatchableTcpGatewayClient { return NewMatchableTcpGatewayClient(c.client) } +// clienset for the gateway.solo.io/v1/v1 APIs +func (c *clientSet) RouteOptions() RouteOptionClient { + return NewRouteOptionClient(c.client) +} + // clienset for the gateway.solo.io/v1/v1 APIs func (c *clientSet) RouteTables() RouteTableClient { return NewRouteTableClient(c.client) @@ -107,11 +126,6 @@ func (c *clientSet) VirtualHostOptions() VirtualHostOptionClient { return NewVirtualHostOptionClient(c.client) } -// clienset for the gateway.solo.io/v1/v1 APIs -func (c *clientSet) RouteOptions() RouteOptionClient { - return NewRouteOptionClient(c.client) -} - // Reader knows how to read and list Gateways. type GatewayReader interface { // Get retrieves a Gateway for the given object key @@ -254,6 +268,290 @@ func (m *multiclusterGatewayClient) Cluster(cluster string) (GatewayClient, erro return NewGatewayClient(client), nil } +// Reader knows how to read and list HttpListenerOptions. +type HttpListenerOptionReader interface { + // Get retrieves a HttpListenerOption for the given object key + GetHttpListenerOption(ctx context.Context, key client.ObjectKey) (*HttpListenerOption, error) + + // List retrieves list of HttpListenerOptions for a given namespace and list options. + ListHttpListenerOption(ctx context.Context, opts ...client.ListOption) (*HttpListenerOptionList, error) +} + +// HttpListenerOptionTransitionFunction instructs the HttpListenerOptionWriter how to transition between an existing +// HttpListenerOption object and a desired on an Upsert +type HttpListenerOptionTransitionFunction func(existing, desired *HttpListenerOption) error + +// Writer knows how to create, delete, and update HttpListenerOptions. +type HttpListenerOptionWriter interface { + // Create saves the HttpListenerOption object. + CreateHttpListenerOption(ctx context.Context, obj *HttpListenerOption, opts ...client.CreateOption) error + + // Delete deletes the HttpListenerOption object. + DeleteHttpListenerOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error + + // Update updates the given HttpListenerOption object. + UpdateHttpListenerOption(ctx context.Context, obj *HttpListenerOption, opts ...client.UpdateOption) error + + // Patch patches the given HttpListenerOption object. + PatchHttpListenerOption(ctx context.Context, obj *HttpListenerOption, patch client.Patch, opts ...client.PatchOption) error + + // DeleteAllOf deletes all HttpListenerOption objects matching the given options. + DeleteAllOfHttpListenerOption(ctx context.Context, opts ...client.DeleteAllOfOption) error + + // Create or Update the HttpListenerOption object. + UpsertHttpListenerOption(ctx context.Context, obj *HttpListenerOption, transitionFuncs ...HttpListenerOptionTransitionFunction) error +} + +// StatusWriter knows how to update status subresource of a HttpListenerOption object. +type HttpListenerOptionStatusWriter interface { + // Update updates the fields corresponding to the status subresource for the + // given HttpListenerOption object. + UpdateHttpListenerOptionStatus(ctx context.Context, obj *HttpListenerOption, opts ...client.SubResourceUpdateOption) error + + // Patch patches the given HttpListenerOption object's subresource. + PatchHttpListenerOptionStatus(ctx context.Context, obj *HttpListenerOption, patch client.Patch, opts ...client.SubResourcePatchOption) error +} + +// Client knows how to perform CRUD operations on HttpListenerOptions. +type HttpListenerOptionClient interface { + HttpListenerOptionReader + HttpListenerOptionWriter + HttpListenerOptionStatusWriter +} + +type httpListenerOptionClient struct { + client client.Client +} + +func NewHttpListenerOptionClient(client client.Client) *httpListenerOptionClient { + return &httpListenerOptionClient{client: client} +} + +func (c *httpListenerOptionClient) GetHttpListenerOption(ctx context.Context, key client.ObjectKey) (*HttpListenerOption, error) { + obj := &HttpListenerOption{} + if err := c.client.Get(ctx, key, obj); err != nil { + return nil, err + } + return obj, nil +} + +func (c *httpListenerOptionClient) ListHttpListenerOption(ctx context.Context, opts ...client.ListOption) (*HttpListenerOptionList, error) { + list := &HttpListenerOptionList{} + if err := c.client.List(ctx, list, opts...); err != nil { + return nil, err + } + return list, nil +} + +func (c *httpListenerOptionClient) CreateHttpListenerOption(ctx context.Context, obj *HttpListenerOption, opts ...client.CreateOption) error { + return c.client.Create(ctx, obj, opts...) +} + +func (c *httpListenerOptionClient) DeleteHttpListenerOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { + obj := &HttpListenerOption{} + obj.SetName(key.Name) + obj.SetNamespace(key.Namespace) + return c.client.Delete(ctx, obj, opts...) +} + +func (c *httpListenerOptionClient) UpdateHttpListenerOption(ctx context.Context, obj *HttpListenerOption, opts ...client.UpdateOption) error { + return c.client.Update(ctx, obj, opts...) +} + +func (c *httpListenerOptionClient) PatchHttpListenerOption(ctx context.Context, obj *HttpListenerOption, patch client.Patch, opts ...client.PatchOption) error { + return c.client.Patch(ctx, obj, patch, opts...) +} + +func (c *httpListenerOptionClient) DeleteAllOfHttpListenerOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { + obj := &HttpListenerOption{} + return c.client.DeleteAllOf(ctx, obj, opts...) +} + +func (c *httpListenerOptionClient) UpsertHttpListenerOption(ctx context.Context, obj *HttpListenerOption, transitionFuncs ...HttpListenerOptionTransitionFunction) error { + genericTxFunc := func(existing, desired runtime.Object) error { + for _, txFunc := range transitionFuncs { + if err := txFunc(existing.(*HttpListenerOption), desired.(*HttpListenerOption)); err != nil { + return err + } + } + return nil + } + _, err := controllerutils.Upsert(ctx, c.client, obj, genericTxFunc) + return err +} + +func (c *httpListenerOptionClient) UpdateHttpListenerOptionStatus(ctx context.Context, obj *HttpListenerOption, opts ...client.SubResourceUpdateOption) error { + return c.client.Status().Update(ctx, obj, opts...) +} + +func (c *httpListenerOptionClient) PatchHttpListenerOptionStatus(ctx context.Context, obj *HttpListenerOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { + return c.client.Status().Patch(ctx, obj, patch, opts...) +} + +// Provides HttpListenerOptionClients for multiple clusters. +type MulticlusterHttpListenerOptionClient interface { + // Cluster returns a HttpListenerOptionClient for the given cluster + Cluster(cluster string) (HttpListenerOptionClient, error) +} + +type multiclusterHttpListenerOptionClient struct { + client multicluster.Client +} + +func NewMulticlusterHttpListenerOptionClient(client multicluster.Client) MulticlusterHttpListenerOptionClient { + return &multiclusterHttpListenerOptionClient{client: client} +} + +func (m *multiclusterHttpListenerOptionClient) Cluster(cluster string) (HttpListenerOptionClient, error) { + client, err := m.client.Cluster(cluster) + if err != nil { + return nil, err + } + return NewHttpListenerOptionClient(client), nil +} + +// Reader knows how to read and list ListenerOptions. +type ListenerOptionReader interface { + // Get retrieves a ListenerOption for the given object key + GetListenerOption(ctx context.Context, key client.ObjectKey) (*ListenerOption, error) + + // List retrieves list of ListenerOptions for a given namespace and list options. + ListListenerOption(ctx context.Context, opts ...client.ListOption) (*ListenerOptionList, error) +} + +// ListenerOptionTransitionFunction instructs the ListenerOptionWriter how to transition between an existing +// ListenerOption object and a desired on an Upsert +type ListenerOptionTransitionFunction func(existing, desired *ListenerOption) error + +// Writer knows how to create, delete, and update ListenerOptions. +type ListenerOptionWriter interface { + // Create saves the ListenerOption object. + CreateListenerOption(ctx context.Context, obj *ListenerOption, opts ...client.CreateOption) error + + // Delete deletes the ListenerOption object. + DeleteListenerOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error + + // Update updates the given ListenerOption object. + UpdateListenerOption(ctx context.Context, obj *ListenerOption, opts ...client.UpdateOption) error + + // Patch patches the given ListenerOption object. + PatchListenerOption(ctx context.Context, obj *ListenerOption, patch client.Patch, opts ...client.PatchOption) error + + // DeleteAllOf deletes all ListenerOption objects matching the given options. + DeleteAllOfListenerOption(ctx context.Context, opts ...client.DeleteAllOfOption) error + + // Create or Update the ListenerOption object. + UpsertListenerOption(ctx context.Context, obj *ListenerOption, transitionFuncs ...ListenerOptionTransitionFunction) error +} + +// StatusWriter knows how to update status subresource of a ListenerOption object. +type ListenerOptionStatusWriter interface { + // Update updates the fields corresponding to the status subresource for the + // given ListenerOption object. + UpdateListenerOptionStatus(ctx context.Context, obj *ListenerOption, opts ...client.SubResourceUpdateOption) error + + // Patch patches the given ListenerOption object's subresource. + PatchListenerOptionStatus(ctx context.Context, obj *ListenerOption, patch client.Patch, opts ...client.SubResourcePatchOption) error +} + +// Client knows how to perform CRUD operations on ListenerOptions. +type ListenerOptionClient interface { + ListenerOptionReader + ListenerOptionWriter + ListenerOptionStatusWriter +} + +type listenerOptionClient struct { + client client.Client +} + +func NewListenerOptionClient(client client.Client) *listenerOptionClient { + return &listenerOptionClient{client: client} +} + +func (c *listenerOptionClient) GetListenerOption(ctx context.Context, key client.ObjectKey) (*ListenerOption, error) { + obj := &ListenerOption{} + if err := c.client.Get(ctx, key, obj); err != nil { + return nil, err + } + return obj, nil +} + +func (c *listenerOptionClient) ListListenerOption(ctx context.Context, opts ...client.ListOption) (*ListenerOptionList, error) { + list := &ListenerOptionList{} + if err := c.client.List(ctx, list, opts...); err != nil { + return nil, err + } + return list, nil +} + +func (c *listenerOptionClient) CreateListenerOption(ctx context.Context, obj *ListenerOption, opts ...client.CreateOption) error { + return c.client.Create(ctx, obj, opts...) +} + +func (c *listenerOptionClient) DeleteListenerOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { + obj := &ListenerOption{} + obj.SetName(key.Name) + obj.SetNamespace(key.Namespace) + return c.client.Delete(ctx, obj, opts...) +} + +func (c *listenerOptionClient) UpdateListenerOption(ctx context.Context, obj *ListenerOption, opts ...client.UpdateOption) error { + return c.client.Update(ctx, obj, opts...) +} + +func (c *listenerOptionClient) PatchListenerOption(ctx context.Context, obj *ListenerOption, patch client.Patch, opts ...client.PatchOption) error { + return c.client.Patch(ctx, obj, patch, opts...) +} + +func (c *listenerOptionClient) DeleteAllOfListenerOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { + obj := &ListenerOption{} + return c.client.DeleteAllOf(ctx, obj, opts...) +} + +func (c *listenerOptionClient) UpsertListenerOption(ctx context.Context, obj *ListenerOption, transitionFuncs ...ListenerOptionTransitionFunction) error { + genericTxFunc := func(existing, desired runtime.Object) error { + for _, txFunc := range transitionFuncs { + if err := txFunc(existing.(*ListenerOption), desired.(*ListenerOption)); err != nil { + return err + } + } + return nil + } + _, err := controllerutils.Upsert(ctx, c.client, obj, genericTxFunc) + return err +} + +func (c *listenerOptionClient) UpdateListenerOptionStatus(ctx context.Context, obj *ListenerOption, opts ...client.SubResourceUpdateOption) error { + return c.client.Status().Update(ctx, obj, opts...) +} + +func (c *listenerOptionClient) PatchListenerOptionStatus(ctx context.Context, obj *ListenerOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { + return c.client.Status().Patch(ctx, obj, patch, opts...) +} + +// Provides ListenerOptionClients for multiple clusters. +type MulticlusterListenerOptionClient interface { + // Cluster returns a ListenerOptionClient for the given cluster + Cluster(cluster string) (ListenerOptionClient, error) +} + +type multiclusterListenerOptionClient struct { + client multicluster.Client +} + +func NewMulticlusterListenerOptionClient(client multicluster.Client) MulticlusterListenerOptionClient { + return &multiclusterListenerOptionClient{client: client} +} + +func (m *multiclusterListenerOptionClient) Cluster(cluster string) (ListenerOptionClient, error) { + client, err := m.client.Cluster(cluster) + if err != nil { + return nil, err + } + return NewListenerOptionClient(client), nil +} + // Reader knows how to read and list MatchableHttpGateways. type MatchableHttpGatewayReader interface { // Get retrieves a MatchableHttpGateway for the given object key @@ -538,6 +836,148 @@ func (m *multiclusterMatchableTcpGatewayClient) Cluster(cluster string) (Matchab return NewMatchableTcpGatewayClient(client), nil } +// Reader knows how to read and list RouteOptions. +type RouteOptionReader interface { + // Get retrieves a RouteOption for the given object key + GetRouteOption(ctx context.Context, key client.ObjectKey) (*RouteOption, error) + + // List retrieves list of RouteOptions for a given namespace and list options. + ListRouteOption(ctx context.Context, opts ...client.ListOption) (*RouteOptionList, error) +} + +// RouteOptionTransitionFunction instructs the RouteOptionWriter how to transition between an existing +// RouteOption object and a desired on an Upsert +type RouteOptionTransitionFunction func(existing, desired *RouteOption) error + +// Writer knows how to create, delete, and update RouteOptions. +type RouteOptionWriter interface { + // Create saves the RouteOption object. + CreateRouteOption(ctx context.Context, obj *RouteOption, opts ...client.CreateOption) error + + // Delete deletes the RouteOption object. + DeleteRouteOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error + + // Update updates the given RouteOption object. + UpdateRouteOption(ctx context.Context, obj *RouteOption, opts ...client.UpdateOption) error + + // Patch patches the given RouteOption object. + PatchRouteOption(ctx context.Context, obj *RouteOption, patch client.Patch, opts ...client.PatchOption) error + + // DeleteAllOf deletes all RouteOption objects matching the given options. + DeleteAllOfRouteOption(ctx context.Context, opts ...client.DeleteAllOfOption) error + + // Create or Update the RouteOption object. + UpsertRouteOption(ctx context.Context, obj *RouteOption, transitionFuncs ...RouteOptionTransitionFunction) error +} + +// StatusWriter knows how to update status subresource of a RouteOption object. +type RouteOptionStatusWriter interface { + // Update updates the fields corresponding to the status subresource for the + // given RouteOption object. + UpdateRouteOptionStatus(ctx context.Context, obj *RouteOption, opts ...client.SubResourceUpdateOption) error + + // Patch patches the given RouteOption object's subresource. + PatchRouteOptionStatus(ctx context.Context, obj *RouteOption, patch client.Patch, opts ...client.SubResourcePatchOption) error +} + +// Client knows how to perform CRUD operations on RouteOptions. +type RouteOptionClient interface { + RouteOptionReader + RouteOptionWriter + RouteOptionStatusWriter +} + +type routeOptionClient struct { + client client.Client +} + +func NewRouteOptionClient(client client.Client) *routeOptionClient { + return &routeOptionClient{client: client} +} + +func (c *routeOptionClient) GetRouteOption(ctx context.Context, key client.ObjectKey) (*RouteOption, error) { + obj := &RouteOption{} + if err := c.client.Get(ctx, key, obj); err != nil { + return nil, err + } + return obj, nil +} + +func (c *routeOptionClient) ListRouteOption(ctx context.Context, opts ...client.ListOption) (*RouteOptionList, error) { + list := &RouteOptionList{} + if err := c.client.List(ctx, list, opts...); err != nil { + return nil, err + } + return list, nil +} + +func (c *routeOptionClient) CreateRouteOption(ctx context.Context, obj *RouteOption, opts ...client.CreateOption) error { + return c.client.Create(ctx, obj, opts...) +} + +func (c *routeOptionClient) DeleteRouteOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { + obj := &RouteOption{} + obj.SetName(key.Name) + obj.SetNamespace(key.Namespace) + return c.client.Delete(ctx, obj, opts...) +} + +func (c *routeOptionClient) UpdateRouteOption(ctx context.Context, obj *RouteOption, opts ...client.UpdateOption) error { + return c.client.Update(ctx, obj, opts...) +} + +func (c *routeOptionClient) PatchRouteOption(ctx context.Context, obj *RouteOption, patch client.Patch, opts ...client.PatchOption) error { + return c.client.Patch(ctx, obj, patch, opts...) +} + +func (c *routeOptionClient) DeleteAllOfRouteOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { + obj := &RouteOption{} + return c.client.DeleteAllOf(ctx, obj, opts...) +} + +func (c *routeOptionClient) UpsertRouteOption(ctx context.Context, obj *RouteOption, transitionFuncs ...RouteOptionTransitionFunction) error { + genericTxFunc := func(existing, desired runtime.Object) error { + for _, txFunc := range transitionFuncs { + if err := txFunc(existing.(*RouteOption), desired.(*RouteOption)); err != nil { + return err + } + } + return nil + } + _, err := controllerutils.Upsert(ctx, c.client, obj, genericTxFunc) + return err +} + +func (c *routeOptionClient) UpdateRouteOptionStatus(ctx context.Context, obj *RouteOption, opts ...client.SubResourceUpdateOption) error { + return c.client.Status().Update(ctx, obj, opts...) +} + +func (c *routeOptionClient) PatchRouteOptionStatus(ctx context.Context, obj *RouteOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { + return c.client.Status().Patch(ctx, obj, patch, opts...) +} + +// Provides RouteOptionClients for multiple clusters. +type MulticlusterRouteOptionClient interface { + // Cluster returns a RouteOptionClient for the given cluster + Cluster(cluster string) (RouteOptionClient, error) +} + +type multiclusterRouteOptionClient struct { + client multicluster.Client +} + +func NewMulticlusterRouteOptionClient(client multicluster.Client) MulticlusterRouteOptionClient { + return &multiclusterRouteOptionClient{client: client} +} + +func (m *multiclusterRouteOptionClient) Cluster(cluster string) (RouteOptionClient, error) { + client, err := m.client.Cluster(cluster) + if err != nil { + return nil, err + } + return NewRouteOptionClient(client), nil +} + // Reader knows how to read and list RouteTables. type RouteTableReader interface { // Get retrieves a RouteTable for the given object key @@ -963,145 +1403,3 @@ func (m *multiclusterVirtualHostOptionClient) Cluster(cluster string) (VirtualHo } return NewVirtualHostOptionClient(client), nil } - -// Reader knows how to read and list RouteOptions. -type RouteOptionReader interface { - // Get retrieves a RouteOption for the given object key - GetRouteOption(ctx context.Context, key client.ObjectKey) (*RouteOption, error) - - // List retrieves list of RouteOptions for a given namespace and list options. - ListRouteOption(ctx context.Context, opts ...client.ListOption) (*RouteOptionList, error) -} - -// RouteOptionTransitionFunction instructs the RouteOptionWriter how to transition between an existing -// RouteOption object and a desired on an Upsert -type RouteOptionTransitionFunction func(existing, desired *RouteOption) error - -// Writer knows how to create, delete, and update RouteOptions. -type RouteOptionWriter interface { - // Create saves the RouteOption object. - CreateRouteOption(ctx context.Context, obj *RouteOption, opts ...client.CreateOption) error - - // Delete deletes the RouteOption object. - DeleteRouteOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error - - // Update updates the given RouteOption object. - UpdateRouteOption(ctx context.Context, obj *RouteOption, opts ...client.UpdateOption) error - - // Patch patches the given RouteOption object. - PatchRouteOption(ctx context.Context, obj *RouteOption, patch client.Patch, opts ...client.PatchOption) error - - // DeleteAllOf deletes all RouteOption objects matching the given options. - DeleteAllOfRouteOption(ctx context.Context, opts ...client.DeleteAllOfOption) error - - // Create or Update the RouteOption object. - UpsertRouteOption(ctx context.Context, obj *RouteOption, transitionFuncs ...RouteOptionTransitionFunction) error -} - -// StatusWriter knows how to update status subresource of a RouteOption object. -type RouteOptionStatusWriter interface { - // Update updates the fields corresponding to the status subresource for the - // given RouteOption object. - UpdateRouteOptionStatus(ctx context.Context, obj *RouteOption, opts ...client.SubResourceUpdateOption) error - - // Patch patches the given RouteOption object's subresource. - PatchRouteOptionStatus(ctx context.Context, obj *RouteOption, patch client.Patch, opts ...client.SubResourcePatchOption) error -} - -// Client knows how to perform CRUD operations on RouteOptions. -type RouteOptionClient interface { - RouteOptionReader - RouteOptionWriter - RouteOptionStatusWriter -} - -type routeOptionClient struct { - client client.Client -} - -func NewRouteOptionClient(client client.Client) *routeOptionClient { - return &routeOptionClient{client: client} -} - -func (c *routeOptionClient) GetRouteOption(ctx context.Context, key client.ObjectKey) (*RouteOption, error) { - obj := &RouteOption{} - if err := c.client.Get(ctx, key, obj); err != nil { - return nil, err - } - return obj, nil -} - -func (c *routeOptionClient) ListRouteOption(ctx context.Context, opts ...client.ListOption) (*RouteOptionList, error) { - list := &RouteOptionList{} - if err := c.client.List(ctx, list, opts...); err != nil { - return nil, err - } - return list, nil -} - -func (c *routeOptionClient) CreateRouteOption(ctx context.Context, obj *RouteOption, opts ...client.CreateOption) error { - return c.client.Create(ctx, obj, opts...) -} - -func (c *routeOptionClient) DeleteRouteOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { - obj := &RouteOption{} - obj.SetName(key.Name) - obj.SetNamespace(key.Namespace) - return c.client.Delete(ctx, obj, opts...) -} - -func (c *routeOptionClient) UpdateRouteOption(ctx context.Context, obj *RouteOption, opts ...client.UpdateOption) error { - return c.client.Update(ctx, obj, opts...) -} - -func (c *routeOptionClient) PatchRouteOption(ctx context.Context, obj *RouteOption, patch client.Patch, opts ...client.PatchOption) error { - return c.client.Patch(ctx, obj, patch, opts...) -} - -func (c *routeOptionClient) DeleteAllOfRouteOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { - obj := &RouteOption{} - return c.client.DeleteAllOf(ctx, obj, opts...) -} - -func (c *routeOptionClient) UpsertRouteOption(ctx context.Context, obj *RouteOption, transitionFuncs ...RouteOptionTransitionFunction) error { - genericTxFunc := func(existing, desired runtime.Object) error { - for _, txFunc := range transitionFuncs { - if err := txFunc(existing.(*RouteOption), desired.(*RouteOption)); err != nil { - return err - } - } - return nil - } - _, err := controllerutils.Upsert(ctx, c.client, obj, genericTxFunc) - return err -} - -func (c *routeOptionClient) UpdateRouteOptionStatus(ctx context.Context, obj *RouteOption, opts ...client.SubResourceUpdateOption) error { - return c.client.Status().Update(ctx, obj, opts...) -} - -func (c *routeOptionClient) PatchRouteOptionStatus(ctx context.Context, obj *RouteOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { - return c.client.Status().Patch(ctx, obj, patch, opts...) -} - -// Provides RouteOptionClients for multiple clusters. -type MulticlusterRouteOptionClient interface { - // Cluster returns a RouteOptionClient for the given cluster - Cluster(cluster string) (RouteOptionClient, error) -} - -type multiclusterRouteOptionClient struct { - client multicluster.Client -} - -func NewMulticlusterRouteOptionClient(client multicluster.Client) MulticlusterRouteOptionClient { - return &multiclusterRouteOptionClient{client: client} -} - -func (m *multiclusterRouteOptionClient) Cluster(cluster string) (RouteOptionClient, error) { - client, err := m.client.Cluster(cluster) - if err != nil { - return nil, err - } - return NewRouteOptionClient(client), nil -} diff --git a/pkg/api/gateway.solo.io/v1/controller/event_handlers.go b/pkg/api/gateway.solo.io/v1/controller/event_handlers.go index 45a1ef768..73bedeb32 100644 --- a/pkg/api/gateway.solo.io/v1/controller/event_handlers.go +++ b/pkg/api/gateway.solo.io/v1/controller/event_handlers.go @@ -124,6 +124,220 @@ func (h genericGatewayHandler) Generic(object client.Object) error { return h.handler.GenericGateway(obj) } +// Handle events for the HttpListenerOption Resource +// DEPRECATED: Prefer reconciler pattern. +type HttpListenerOptionEventHandler interface { + CreateHttpListenerOption(obj *gateway_solo_io_v1.HttpListenerOption) error + UpdateHttpListenerOption(old, new *gateway_solo_io_v1.HttpListenerOption) error + DeleteHttpListenerOption(obj *gateway_solo_io_v1.HttpListenerOption) error + GenericHttpListenerOption(obj *gateway_solo_io_v1.HttpListenerOption) error +} + +type HttpListenerOptionEventHandlerFuncs struct { + OnCreate func(obj *gateway_solo_io_v1.HttpListenerOption) error + OnUpdate func(old, new *gateway_solo_io_v1.HttpListenerOption) error + OnDelete func(obj *gateway_solo_io_v1.HttpListenerOption) error + OnGeneric func(obj *gateway_solo_io_v1.HttpListenerOption) error +} + +func (f *HttpListenerOptionEventHandlerFuncs) CreateHttpListenerOption(obj *gateway_solo_io_v1.HttpListenerOption) error { + if f.OnCreate == nil { + return nil + } + return f.OnCreate(obj) +} + +func (f *HttpListenerOptionEventHandlerFuncs) DeleteHttpListenerOption(obj *gateway_solo_io_v1.HttpListenerOption) error { + if f.OnDelete == nil { + return nil + } + return f.OnDelete(obj) +} + +func (f *HttpListenerOptionEventHandlerFuncs) UpdateHttpListenerOption(objOld, objNew *gateway_solo_io_v1.HttpListenerOption) error { + if f.OnUpdate == nil { + return nil + } + return f.OnUpdate(objOld, objNew) +} + +func (f *HttpListenerOptionEventHandlerFuncs) GenericHttpListenerOption(obj *gateway_solo_io_v1.HttpListenerOption) error { + if f.OnGeneric == nil { + return nil + } + return f.OnGeneric(obj) +} + +type HttpListenerOptionEventWatcher interface { + AddEventHandler(ctx context.Context, h HttpListenerOptionEventHandler, predicates ...predicate.Predicate) error +} + +type httpListenerOptionEventWatcher struct { + watcher events.EventWatcher +} + +func NewHttpListenerOptionEventWatcher(name string, mgr manager.Manager) HttpListenerOptionEventWatcher { + return &httpListenerOptionEventWatcher{ + watcher: events.NewWatcher(name, mgr, &gateway_solo_io_v1.HttpListenerOption{}), + } +} + +func (c *httpListenerOptionEventWatcher) AddEventHandler(ctx context.Context, h HttpListenerOptionEventHandler, predicates ...predicate.Predicate) error { + handler := genericHttpListenerOptionHandler{handler: h} + if err := c.watcher.Watch(ctx, handler, predicates...); err != nil { + return err + } + return nil +} + +// genericHttpListenerOptionHandler implements a generic events.EventHandler +type genericHttpListenerOptionHandler struct { + handler HttpListenerOptionEventHandler +} + +func (h genericHttpListenerOptionHandler) Create(object client.Object) error { + obj, ok := object.(*gateway_solo_io_v1.HttpListenerOption) + if !ok { + return errors.Errorf("internal error: HttpListenerOption handler received event for %T", object) + } + return h.handler.CreateHttpListenerOption(obj) +} + +func (h genericHttpListenerOptionHandler) Delete(object client.Object) error { + obj, ok := object.(*gateway_solo_io_v1.HttpListenerOption) + if !ok { + return errors.Errorf("internal error: HttpListenerOption handler received event for %T", object) + } + return h.handler.DeleteHttpListenerOption(obj) +} + +func (h genericHttpListenerOptionHandler) Update(old, new client.Object) error { + objOld, ok := old.(*gateway_solo_io_v1.HttpListenerOption) + if !ok { + return errors.Errorf("internal error: HttpListenerOption handler received event for %T", old) + } + objNew, ok := new.(*gateway_solo_io_v1.HttpListenerOption) + if !ok { + return errors.Errorf("internal error: HttpListenerOption handler received event for %T", new) + } + return h.handler.UpdateHttpListenerOption(objOld, objNew) +} + +func (h genericHttpListenerOptionHandler) Generic(object client.Object) error { + obj, ok := object.(*gateway_solo_io_v1.HttpListenerOption) + if !ok { + return errors.Errorf("internal error: HttpListenerOption handler received event for %T", object) + } + return h.handler.GenericHttpListenerOption(obj) +} + +// Handle events for the ListenerOption Resource +// DEPRECATED: Prefer reconciler pattern. +type ListenerOptionEventHandler interface { + CreateListenerOption(obj *gateway_solo_io_v1.ListenerOption) error + UpdateListenerOption(old, new *gateway_solo_io_v1.ListenerOption) error + DeleteListenerOption(obj *gateway_solo_io_v1.ListenerOption) error + GenericListenerOption(obj *gateway_solo_io_v1.ListenerOption) error +} + +type ListenerOptionEventHandlerFuncs struct { + OnCreate func(obj *gateway_solo_io_v1.ListenerOption) error + OnUpdate func(old, new *gateway_solo_io_v1.ListenerOption) error + OnDelete func(obj *gateway_solo_io_v1.ListenerOption) error + OnGeneric func(obj *gateway_solo_io_v1.ListenerOption) error +} + +func (f *ListenerOptionEventHandlerFuncs) CreateListenerOption(obj *gateway_solo_io_v1.ListenerOption) error { + if f.OnCreate == nil { + return nil + } + return f.OnCreate(obj) +} + +func (f *ListenerOptionEventHandlerFuncs) DeleteListenerOption(obj *gateway_solo_io_v1.ListenerOption) error { + if f.OnDelete == nil { + return nil + } + return f.OnDelete(obj) +} + +func (f *ListenerOptionEventHandlerFuncs) UpdateListenerOption(objOld, objNew *gateway_solo_io_v1.ListenerOption) error { + if f.OnUpdate == nil { + return nil + } + return f.OnUpdate(objOld, objNew) +} + +func (f *ListenerOptionEventHandlerFuncs) GenericListenerOption(obj *gateway_solo_io_v1.ListenerOption) error { + if f.OnGeneric == nil { + return nil + } + return f.OnGeneric(obj) +} + +type ListenerOptionEventWatcher interface { + AddEventHandler(ctx context.Context, h ListenerOptionEventHandler, predicates ...predicate.Predicate) error +} + +type listenerOptionEventWatcher struct { + watcher events.EventWatcher +} + +func NewListenerOptionEventWatcher(name string, mgr manager.Manager) ListenerOptionEventWatcher { + return &listenerOptionEventWatcher{ + watcher: events.NewWatcher(name, mgr, &gateway_solo_io_v1.ListenerOption{}), + } +} + +func (c *listenerOptionEventWatcher) AddEventHandler(ctx context.Context, h ListenerOptionEventHandler, predicates ...predicate.Predicate) error { + handler := genericListenerOptionHandler{handler: h} + if err := c.watcher.Watch(ctx, handler, predicates...); err != nil { + return err + } + return nil +} + +// genericListenerOptionHandler implements a generic events.EventHandler +type genericListenerOptionHandler struct { + handler ListenerOptionEventHandler +} + +func (h genericListenerOptionHandler) Create(object client.Object) error { + obj, ok := object.(*gateway_solo_io_v1.ListenerOption) + if !ok { + return errors.Errorf("internal error: ListenerOption handler received event for %T", object) + } + return h.handler.CreateListenerOption(obj) +} + +func (h genericListenerOptionHandler) Delete(object client.Object) error { + obj, ok := object.(*gateway_solo_io_v1.ListenerOption) + if !ok { + return errors.Errorf("internal error: ListenerOption handler received event for %T", object) + } + return h.handler.DeleteListenerOption(obj) +} + +func (h genericListenerOptionHandler) Update(old, new client.Object) error { + objOld, ok := old.(*gateway_solo_io_v1.ListenerOption) + if !ok { + return errors.Errorf("internal error: ListenerOption handler received event for %T", old) + } + objNew, ok := new.(*gateway_solo_io_v1.ListenerOption) + if !ok { + return errors.Errorf("internal error: ListenerOption handler received event for %T", new) + } + return h.handler.UpdateListenerOption(objOld, objNew) +} + +func (h genericListenerOptionHandler) Generic(object client.Object) error { + obj, ok := object.(*gateway_solo_io_v1.ListenerOption) + if !ok { + return errors.Errorf("internal error: ListenerOption handler received event for %T", object) + } + return h.handler.GenericListenerOption(obj) +} + // Handle events for the MatchableHttpGateway Resource // DEPRECATED: Prefer reconciler pattern. type MatchableHttpGatewayEventHandler interface { @@ -338,6 +552,113 @@ func (h genericMatchableTcpGatewayHandler) Generic(object client.Object) error { return h.handler.GenericMatchableTcpGateway(obj) } +// Handle events for the RouteOption Resource +// DEPRECATED: Prefer reconciler pattern. +type RouteOptionEventHandler interface { + CreateRouteOption(obj *gateway_solo_io_v1.RouteOption) error + UpdateRouteOption(old, new *gateway_solo_io_v1.RouteOption) error + DeleteRouteOption(obj *gateway_solo_io_v1.RouteOption) error + GenericRouteOption(obj *gateway_solo_io_v1.RouteOption) error +} + +type RouteOptionEventHandlerFuncs struct { + OnCreate func(obj *gateway_solo_io_v1.RouteOption) error + OnUpdate func(old, new *gateway_solo_io_v1.RouteOption) error + OnDelete func(obj *gateway_solo_io_v1.RouteOption) error + OnGeneric func(obj *gateway_solo_io_v1.RouteOption) error +} + +func (f *RouteOptionEventHandlerFuncs) CreateRouteOption(obj *gateway_solo_io_v1.RouteOption) error { + if f.OnCreate == nil { + return nil + } + return f.OnCreate(obj) +} + +func (f *RouteOptionEventHandlerFuncs) DeleteRouteOption(obj *gateway_solo_io_v1.RouteOption) error { + if f.OnDelete == nil { + return nil + } + return f.OnDelete(obj) +} + +func (f *RouteOptionEventHandlerFuncs) UpdateRouteOption(objOld, objNew *gateway_solo_io_v1.RouteOption) error { + if f.OnUpdate == nil { + return nil + } + return f.OnUpdate(objOld, objNew) +} + +func (f *RouteOptionEventHandlerFuncs) GenericRouteOption(obj *gateway_solo_io_v1.RouteOption) error { + if f.OnGeneric == nil { + return nil + } + return f.OnGeneric(obj) +} + +type RouteOptionEventWatcher interface { + AddEventHandler(ctx context.Context, h RouteOptionEventHandler, predicates ...predicate.Predicate) error +} + +type routeOptionEventWatcher struct { + watcher events.EventWatcher +} + +func NewRouteOptionEventWatcher(name string, mgr manager.Manager) RouteOptionEventWatcher { + return &routeOptionEventWatcher{ + watcher: events.NewWatcher(name, mgr, &gateway_solo_io_v1.RouteOption{}), + } +} + +func (c *routeOptionEventWatcher) AddEventHandler(ctx context.Context, h RouteOptionEventHandler, predicates ...predicate.Predicate) error { + handler := genericRouteOptionHandler{handler: h} + if err := c.watcher.Watch(ctx, handler, predicates...); err != nil { + return err + } + return nil +} + +// genericRouteOptionHandler implements a generic events.EventHandler +type genericRouteOptionHandler struct { + handler RouteOptionEventHandler +} + +func (h genericRouteOptionHandler) Create(object client.Object) error { + obj, ok := object.(*gateway_solo_io_v1.RouteOption) + if !ok { + return errors.Errorf("internal error: RouteOption handler received event for %T", object) + } + return h.handler.CreateRouteOption(obj) +} + +func (h genericRouteOptionHandler) Delete(object client.Object) error { + obj, ok := object.(*gateway_solo_io_v1.RouteOption) + if !ok { + return errors.Errorf("internal error: RouteOption handler received event for %T", object) + } + return h.handler.DeleteRouteOption(obj) +} + +func (h genericRouteOptionHandler) Update(old, new client.Object) error { + objOld, ok := old.(*gateway_solo_io_v1.RouteOption) + if !ok { + return errors.Errorf("internal error: RouteOption handler received event for %T", old) + } + objNew, ok := new.(*gateway_solo_io_v1.RouteOption) + if !ok { + return errors.Errorf("internal error: RouteOption handler received event for %T", new) + } + return h.handler.UpdateRouteOption(objOld, objNew) +} + +func (h genericRouteOptionHandler) Generic(object client.Object) error { + obj, ok := object.(*gateway_solo_io_v1.RouteOption) + if !ok { + return errors.Errorf("internal error: RouteOption handler received event for %T", object) + } + return h.handler.GenericRouteOption(obj) +} + // Handle events for the RouteTable Resource // DEPRECATED: Prefer reconciler pattern. type RouteTableEventHandler interface { @@ -658,110 +979,3 @@ func (h genericVirtualHostOptionHandler) Generic(object client.Object) error { } return h.handler.GenericVirtualHostOption(obj) } - -// Handle events for the RouteOption Resource -// DEPRECATED: Prefer reconciler pattern. -type RouteOptionEventHandler interface { - CreateRouteOption(obj *gateway_solo_io_v1.RouteOption) error - UpdateRouteOption(old, new *gateway_solo_io_v1.RouteOption) error - DeleteRouteOption(obj *gateway_solo_io_v1.RouteOption) error - GenericRouteOption(obj *gateway_solo_io_v1.RouteOption) error -} - -type RouteOptionEventHandlerFuncs struct { - OnCreate func(obj *gateway_solo_io_v1.RouteOption) error - OnUpdate func(old, new *gateway_solo_io_v1.RouteOption) error - OnDelete func(obj *gateway_solo_io_v1.RouteOption) error - OnGeneric func(obj *gateway_solo_io_v1.RouteOption) error -} - -func (f *RouteOptionEventHandlerFuncs) CreateRouteOption(obj *gateway_solo_io_v1.RouteOption) error { - if f.OnCreate == nil { - return nil - } - return f.OnCreate(obj) -} - -func (f *RouteOptionEventHandlerFuncs) DeleteRouteOption(obj *gateway_solo_io_v1.RouteOption) error { - if f.OnDelete == nil { - return nil - } - return f.OnDelete(obj) -} - -func (f *RouteOptionEventHandlerFuncs) UpdateRouteOption(objOld, objNew *gateway_solo_io_v1.RouteOption) error { - if f.OnUpdate == nil { - return nil - } - return f.OnUpdate(objOld, objNew) -} - -func (f *RouteOptionEventHandlerFuncs) GenericRouteOption(obj *gateway_solo_io_v1.RouteOption) error { - if f.OnGeneric == nil { - return nil - } - return f.OnGeneric(obj) -} - -type RouteOptionEventWatcher interface { - AddEventHandler(ctx context.Context, h RouteOptionEventHandler, predicates ...predicate.Predicate) error -} - -type routeOptionEventWatcher struct { - watcher events.EventWatcher -} - -func NewRouteOptionEventWatcher(name string, mgr manager.Manager) RouteOptionEventWatcher { - return &routeOptionEventWatcher{ - watcher: events.NewWatcher(name, mgr, &gateway_solo_io_v1.RouteOption{}), - } -} - -func (c *routeOptionEventWatcher) AddEventHandler(ctx context.Context, h RouteOptionEventHandler, predicates ...predicate.Predicate) error { - handler := genericRouteOptionHandler{handler: h} - if err := c.watcher.Watch(ctx, handler, predicates...); err != nil { - return err - } - return nil -} - -// genericRouteOptionHandler implements a generic events.EventHandler -type genericRouteOptionHandler struct { - handler RouteOptionEventHandler -} - -func (h genericRouteOptionHandler) Create(object client.Object) error { - obj, ok := object.(*gateway_solo_io_v1.RouteOption) - if !ok { - return errors.Errorf("internal error: RouteOption handler received event for %T", object) - } - return h.handler.CreateRouteOption(obj) -} - -func (h genericRouteOptionHandler) Delete(object client.Object) error { - obj, ok := object.(*gateway_solo_io_v1.RouteOption) - if !ok { - return errors.Errorf("internal error: RouteOption handler received event for %T", object) - } - return h.handler.DeleteRouteOption(obj) -} - -func (h genericRouteOptionHandler) Update(old, new client.Object) error { - objOld, ok := old.(*gateway_solo_io_v1.RouteOption) - if !ok { - return errors.Errorf("internal error: RouteOption handler received event for %T", old) - } - objNew, ok := new.(*gateway_solo_io_v1.RouteOption) - if !ok { - return errors.Errorf("internal error: RouteOption handler received event for %T", new) - } - return h.handler.UpdateRouteOption(objOld, objNew) -} - -func (h genericRouteOptionHandler) Generic(object client.Object) error { - obj, ok := object.(*gateway_solo_io_v1.RouteOption) - if !ok { - return errors.Errorf("internal error: RouteOption handler received event for %T", object) - } - return h.handler.GenericRouteOption(obj) -} diff --git a/pkg/api/gateway.solo.io/v1/controller/mocks/event_handlers.go b/pkg/api/gateway.solo.io/v1/controller/mocks/event_handlers.go index 61047e154..04bcf5965 100644 --- a/pkg/api/gateway.solo.io/v1/controller/mocks/event_handlers.go +++ b/pkg/api/gateway.solo.io/v1/controller/mocks/event_handlers.go @@ -135,6 +135,248 @@ func (mr *MockGatewayEventWatcherMockRecorder) AddEventHandler(ctx, h interface{ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddEventHandler", reflect.TypeOf((*MockGatewayEventWatcher)(nil).AddEventHandler), varargs...) } +// MockHttpListenerOptionEventHandler is a mock of HttpListenerOptionEventHandler interface. +type MockHttpListenerOptionEventHandler struct { + ctrl *gomock.Controller + recorder *MockHttpListenerOptionEventHandlerMockRecorder +} + +// MockHttpListenerOptionEventHandlerMockRecorder is the mock recorder for MockHttpListenerOptionEventHandler. +type MockHttpListenerOptionEventHandlerMockRecorder struct { + mock *MockHttpListenerOptionEventHandler +} + +// NewMockHttpListenerOptionEventHandler creates a new mock instance. +func NewMockHttpListenerOptionEventHandler(ctrl *gomock.Controller) *MockHttpListenerOptionEventHandler { + mock := &MockHttpListenerOptionEventHandler{ctrl: ctrl} + mock.recorder = &MockHttpListenerOptionEventHandlerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockHttpListenerOptionEventHandler) EXPECT() *MockHttpListenerOptionEventHandlerMockRecorder { + return m.recorder +} + +// CreateHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionEventHandler) CreateHttpListenerOption(obj *v1.HttpListenerOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHttpListenerOption", obj) + ret0, _ := ret[0].(error) + return ret0 +} + +// CreateHttpListenerOption indicates an expected call of CreateHttpListenerOption. +func (mr *MockHttpListenerOptionEventHandlerMockRecorder) CreateHttpListenerOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionEventHandler)(nil).CreateHttpListenerOption), obj) +} + +// DeleteHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionEventHandler) DeleteHttpListenerOption(obj *v1.HttpListenerOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHttpListenerOption", obj) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteHttpListenerOption indicates an expected call of DeleteHttpListenerOption. +func (mr *MockHttpListenerOptionEventHandlerMockRecorder) DeleteHttpListenerOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionEventHandler)(nil).DeleteHttpListenerOption), obj) +} + +// GenericHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionEventHandler) GenericHttpListenerOption(obj *v1.HttpListenerOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenericHttpListenerOption", obj) + ret0, _ := ret[0].(error) + return ret0 +} + +// GenericHttpListenerOption indicates an expected call of GenericHttpListenerOption. +func (mr *MockHttpListenerOptionEventHandlerMockRecorder) GenericHttpListenerOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenericHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionEventHandler)(nil).GenericHttpListenerOption), obj) +} + +// UpdateHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionEventHandler) UpdateHttpListenerOption(old, new *v1.HttpListenerOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateHttpListenerOption", old, new) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpdateHttpListenerOption indicates an expected call of UpdateHttpListenerOption. +func (mr *MockHttpListenerOptionEventHandlerMockRecorder) UpdateHttpListenerOption(old, new interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionEventHandler)(nil).UpdateHttpListenerOption), old, new) +} + +// MockHttpListenerOptionEventWatcher is a mock of HttpListenerOptionEventWatcher interface. +type MockHttpListenerOptionEventWatcher struct { + ctrl *gomock.Controller + recorder *MockHttpListenerOptionEventWatcherMockRecorder +} + +// MockHttpListenerOptionEventWatcherMockRecorder is the mock recorder for MockHttpListenerOptionEventWatcher. +type MockHttpListenerOptionEventWatcherMockRecorder struct { + mock *MockHttpListenerOptionEventWatcher +} + +// NewMockHttpListenerOptionEventWatcher creates a new mock instance. +func NewMockHttpListenerOptionEventWatcher(ctrl *gomock.Controller) *MockHttpListenerOptionEventWatcher { + mock := &MockHttpListenerOptionEventWatcher{ctrl: ctrl} + mock.recorder = &MockHttpListenerOptionEventWatcherMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockHttpListenerOptionEventWatcher) EXPECT() *MockHttpListenerOptionEventWatcherMockRecorder { + return m.recorder +} + +// AddEventHandler mocks base method. +func (m *MockHttpListenerOptionEventWatcher) AddEventHandler(ctx context.Context, h controller.HttpListenerOptionEventHandler, predicates ...predicate.Predicate) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, h} + for _, a := range predicates { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AddEventHandler", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// AddEventHandler indicates an expected call of AddEventHandler. +func (mr *MockHttpListenerOptionEventWatcherMockRecorder) AddEventHandler(ctx, h interface{}, predicates ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, h}, predicates...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddEventHandler", reflect.TypeOf((*MockHttpListenerOptionEventWatcher)(nil).AddEventHandler), varargs...) +} + +// MockListenerOptionEventHandler is a mock of ListenerOptionEventHandler interface. +type MockListenerOptionEventHandler struct { + ctrl *gomock.Controller + recorder *MockListenerOptionEventHandlerMockRecorder +} + +// MockListenerOptionEventHandlerMockRecorder is the mock recorder for MockListenerOptionEventHandler. +type MockListenerOptionEventHandlerMockRecorder struct { + mock *MockListenerOptionEventHandler +} + +// NewMockListenerOptionEventHandler creates a new mock instance. +func NewMockListenerOptionEventHandler(ctrl *gomock.Controller) *MockListenerOptionEventHandler { + mock := &MockListenerOptionEventHandler{ctrl: ctrl} + mock.recorder = &MockListenerOptionEventHandlerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockListenerOptionEventHandler) EXPECT() *MockListenerOptionEventHandlerMockRecorder { + return m.recorder +} + +// CreateListenerOption mocks base method. +func (m *MockListenerOptionEventHandler) CreateListenerOption(obj *v1.ListenerOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateListenerOption", obj) + ret0, _ := ret[0].(error) + return ret0 +} + +// CreateListenerOption indicates an expected call of CreateListenerOption. +func (mr *MockListenerOptionEventHandlerMockRecorder) CreateListenerOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateListenerOption", reflect.TypeOf((*MockListenerOptionEventHandler)(nil).CreateListenerOption), obj) +} + +// DeleteListenerOption mocks base method. +func (m *MockListenerOptionEventHandler) DeleteListenerOption(obj *v1.ListenerOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteListenerOption", obj) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteListenerOption indicates an expected call of DeleteListenerOption. +func (mr *MockListenerOptionEventHandlerMockRecorder) DeleteListenerOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteListenerOption", reflect.TypeOf((*MockListenerOptionEventHandler)(nil).DeleteListenerOption), obj) +} + +// GenericListenerOption mocks base method. +func (m *MockListenerOptionEventHandler) GenericListenerOption(obj *v1.ListenerOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenericListenerOption", obj) + ret0, _ := ret[0].(error) + return ret0 +} + +// GenericListenerOption indicates an expected call of GenericListenerOption. +func (mr *MockListenerOptionEventHandlerMockRecorder) GenericListenerOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenericListenerOption", reflect.TypeOf((*MockListenerOptionEventHandler)(nil).GenericListenerOption), obj) +} + +// UpdateListenerOption mocks base method. +func (m *MockListenerOptionEventHandler) UpdateListenerOption(old, new *v1.ListenerOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateListenerOption", old, new) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpdateListenerOption indicates an expected call of UpdateListenerOption. +func (mr *MockListenerOptionEventHandlerMockRecorder) UpdateListenerOption(old, new interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateListenerOption", reflect.TypeOf((*MockListenerOptionEventHandler)(nil).UpdateListenerOption), old, new) +} + +// MockListenerOptionEventWatcher is a mock of ListenerOptionEventWatcher interface. +type MockListenerOptionEventWatcher struct { + ctrl *gomock.Controller + recorder *MockListenerOptionEventWatcherMockRecorder +} + +// MockListenerOptionEventWatcherMockRecorder is the mock recorder for MockListenerOptionEventWatcher. +type MockListenerOptionEventWatcherMockRecorder struct { + mock *MockListenerOptionEventWatcher +} + +// NewMockListenerOptionEventWatcher creates a new mock instance. +func NewMockListenerOptionEventWatcher(ctrl *gomock.Controller) *MockListenerOptionEventWatcher { + mock := &MockListenerOptionEventWatcher{ctrl: ctrl} + mock.recorder = &MockListenerOptionEventWatcherMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockListenerOptionEventWatcher) EXPECT() *MockListenerOptionEventWatcherMockRecorder { + return m.recorder +} + +// AddEventHandler mocks base method. +func (m *MockListenerOptionEventWatcher) AddEventHandler(ctx context.Context, h controller.ListenerOptionEventHandler, predicates ...predicate.Predicate) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, h} + for _, a := range predicates { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AddEventHandler", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// AddEventHandler indicates an expected call of AddEventHandler. +func (mr *MockListenerOptionEventWatcherMockRecorder) AddEventHandler(ctx, h interface{}, predicates ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, h}, predicates...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddEventHandler", reflect.TypeOf((*MockListenerOptionEventWatcher)(nil).AddEventHandler), varargs...) +} + // MockMatchableHttpGatewayEventHandler is a mock of MatchableHttpGatewayEventHandler interface. type MockMatchableHttpGatewayEventHandler struct { ctrl *gomock.Controller @@ -377,6 +619,127 @@ func (mr *MockMatchableTcpGatewayEventWatcherMockRecorder) AddEventHandler(ctx, return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddEventHandler", reflect.TypeOf((*MockMatchableTcpGatewayEventWatcher)(nil).AddEventHandler), varargs...) } +// MockRouteOptionEventHandler is a mock of RouteOptionEventHandler interface. +type MockRouteOptionEventHandler struct { + ctrl *gomock.Controller + recorder *MockRouteOptionEventHandlerMockRecorder +} + +// MockRouteOptionEventHandlerMockRecorder is the mock recorder for MockRouteOptionEventHandler. +type MockRouteOptionEventHandlerMockRecorder struct { + mock *MockRouteOptionEventHandler +} + +// NewMockRouteOptionEventHandler creates a new mock instance. +func NewMockRouteOptionEventHandler(ctrl *gomock.Controller) *MockRouteOptionEventHandler { + mock := &MockRouteOptionEventHandler{ctrl: ctrl} + mock.recorder = &MockRouteOptionEventHandlerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockRouteOptionEventHandler) EXPECT() *MockRouteOptionEventHandlerMockRecorder { + return m.recorder +} + +// CreateRouteOption mocks base method. +func (m *MockRouteOptionEventHandler) CreateRouteOption(obj *v1.RouteOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRouteOption", obj) + ret0, _ := ret[0].(error) + return ret0 +} + +// CreateRouteOption indicates an expected call of CreateRouteOption. +func (mr *MockRouteOptionEventHandlerMockRecorder) CreateRouteOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRouteOption", reflect.TypeOf((*MockRouteOptionEventHandler)(nil).CreateRouteOption), obj) +} + +// DeleteRouteOption mocks base method. +func (m *MockRouteOptionEventHandler) DeleteRouteOption(obj *v1.RouteOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRouteOption", obj) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteRouteOption indicates an expected call of DeleteRouteOption. +func (mr *MockRouteOptionEventHandlerMockRecorder) DeleteRouteOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRouteOption", reflect.TypeOf((*MockRouteOptionEventHandler)(nil).DeleteRouteOption), obj) +} + +// GenericRouteOption mocks base method. +func (m *MockRouteOptionEventHandler) GenericRouteOption(obj *v1.RouteOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenericRouteOption", obj) + ret0, _ := ret[0].(error) + return ret0 +} + +// GenericRouteOption indicates an expected call of GenericRouteOption. +func (mr *MockRouteOptionEventHandlerMockRecorder) GenericRouteOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenericRouteOption", reflect.TypeOf((*MockRouteOptionEventHandler)(nil).GenericRouteOption), obj) +} + +// UpdateRouteOption mocks base method. +func (m *MockRouteOptionEventHandler) UpdateRouteOption(old, new *v1.RouteOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRouteOption", old, new) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpdateRouteOption indicates an expected call of UpdateRouteOption. +func (mr *MockRouteOptionEventHandlerMockRecorder) UpdateRouteOption(old, new interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteOption", reflect.TypeOf((*MockRouteOptionEventHandler)(nil).UpdateRouteOption), old, new) +} + +// MockRouteOptionEventWatcher is a mock of RouteOptionEventWatcher interface. +type MockRouteOptionEventWatcher struct { + ctrl *gomock.Controller + recorder *MockRouteOptionEventWatcherMockRecorder +} + +// MockRouteOptionEventWatcherMockRecorder is the mock recorder for MockRouteOptionEventWatcher. +type MockRouteOptionEventWatcherMockRecorder struct { + mock *MockRouteOptionEventWatcher +} + +// NewMockRouteOptionEventWatcher creates a new mock instance. +func NewMockRouteOptionEventWatcher(ctrl *gomock.Controller) *MockRouteOptionEventWatcher { + mock := &MockRouteOptionEventWatcher{ctrl: ctrl} + mock.recorder = &MockRouteOptionEventWatcherMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockRouteOptionEventWatcher) EXPECT() *MockRouteOptionEventWatcherMockRecorder { + return m.recorder +} + +// AddEventHandler mocks base method. +func (m *MockRouteOptionEventWatcher) AddEventHandler(ctx context.Context, h controller.RouteOptionEventHandler, predicates ...predicate.Predicate) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, h} + for _, a := range predicates { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AddEventHandler", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// AddEventHandler indicates an expected call of AddEventHandler. +func (mr *MockRouteOptionEventWatcherMockRecorder) AddEventHandler(ctx, h interface{}, predicates ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, h}, predicates...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddEventHandler", reflect.TypeOf((*MockRouteOptionEventWatcher)(nil).AddEventHandler), varargs...) +} + // MockRouteTableEventHandler is a mock of RouteTableEventHandler interface. type MockRouteTableEventHandler struct { ctrl *gomock.Controller @@ -739,124 +1102,3 @@ func (mr *MockVirtualHostOptionEventWatcherMockRecorder) AddEventHandler(ctx, h varargs := append([]interface{}{ctx, h}, predicates...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddEventHandler", reflect.TypeOf((*MockVirtualHostOptionEventWatcher)(nil).AddEventHandler), varargs...) } - -// MockRouteOptionEventHandler is a mock of RouteOptionEventHandler interface. -type MockRouteOptionEventHandler struct { - ctrl *gomock.Controller - recorder *MockRouteOptionEventHandlerMockRecorder -} - -// MockRouteOptionEventHandlerMockRecorder is the mock recorder for MockRouteOptionEventHandler. -type MockRouteOptionEventHandlerMockRecorder struct { - mock *MockRouteOptionEventHandler -} - -// NewMockRouteOptionEventHandler creates a new mock instance. -func NewMockRouteOptionEventHandler(ctrl *gomock.Controller) *MockRouteOptionEventHandler { - mock := &MockRouteOptionEventHandler{ctrl: ctrl} - mock.recorder = &MockRouteOptionEventHandlerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteOptionEventHandler) EXPECT() *MockRouteOptionEventHandlerMockRecorder { - return m.recorder -} - -// CreateRouteOption mocks base method. -func (m *MockRouteOptionEventHandler) CreateRouteOption(obj *v1.RouteOption) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateRouteOption", obj) - ret0, _ := ret[0].(error) - return ret0 -} - -// CreateRouteOption indicates an expected call of CreateRouteOption. -func (mr *MockRouteOptionEventHandlerMockRecorder) CreateRouteOption(obj interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRouteOption", reflect.TypeOf((*MockRouteOptionEventHandler)(nil).CreateRouteOption), obj) -} - -// DeleteRouteOption mocks base method. -func (m *MockRouteOptionEventHandler) DeleteRouteOption(obj *v1.RouteOption) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteRouteOption", obj) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteRouteOption indicates an expected call of DeleteRouteOption. -func (mr *MockRouteOptionEventHandlerMockRecorder) DeleteRouteOption(obj interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRouteOption", reflect.TypeOf((*MockRouteOptionEventHandler)(nil).DeleteRouteOption), obj) -} - -// GenericRouteOption mocks base method. -func (m *MockRouteOptionEventHandler) GenericRouteOption(obj *v1.RouteOption) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GenericRouteOption", obj) - ret0, _ := ret[0].(error) - return ret0 -} - -// GenericRouteOption indicates an expected call of GenericRouteOption. -func (mr *MockRouteOptionEventHandlerMockRecorder) GenericRouteOption(obj interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenericRouteOption", reflect.TypeOf((*MockRouteOptionEventHandler)(nil).GenericRouteOption), obj) -} - -// UpdateRouteOption mocks base method. -func (m *MockRouteOptionEventHandler) UpdateRouteOption(old, new *v1.RouteOption) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateRouteOption", old, new) - ret0, _ := ret[0].(error) - return ret0 -} - -// UpdateRouteOption indicates an expected call of UpdateRouteOption. -func (mr *MockRouteOptionEventHandlerMockRecorder) UpdateRouteOption(old, new interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteOption", reflect.TypeOf((*MockRouteOptionEventHandler)(nil).UpdateRouteOption), old, new) -} - -// MockRouteOptionEventWatcher is a mock of RouteOptionEventWatcher interface. -type MockRouteOptionEventWatcher struct { - ctrl *gomock.Controller - recorder *MockRouteOptionEventWatcherMockRecorder -} - -// MockRouteOptionEventWatcherMockRecorder is the mock recorder for MockRouteOptionEventWatcher. -type MockRouteOptionEventWatcherMockRecorder struct { - mock *MockRouteOptionEventWatcher -} - -// NewMockRouteOptionEventWatcher creates a new mock instance. -func NewMockRouteOptionEventWatcher(ctrl *gomock.Controller) *MockRouteOptionEventWatcher { - mock := &MockRouteOptionEventWatcher{ctrl: ctrl} - mock.recorder = &MockRouteOptionEventWatcherMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteOptionEventWatcher) EXPECT() *MockRouteOptionEventWatcherMockRecorder { - return m.recorder -} - -// AddEventHandler mocks base method. -func (m *MockRouteOptionEventWatcher) AddEventHandler(ctx context.Context, h controller.RouteOptionEventHandler, predicates ...predicate.Predicate) error { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, h} - for _, a := range predicates { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "AddEventHandler", varargs...) - ret0, _ := ret[0].(error) - return ret0 -} - -// AddEventHandler indicates an expected call of AddEventHandler. -func (mr *MockRouteOptionEventWatcherMockRecorder) AddEventHandler(ctx, h interface{}, predicates ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, h}, predicates...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddEventHandler", reflect.TypeOf((*MockRouteOptionEventWatcher)(nil).AddEventHandler), varargs...) -} diff --git a/pkg/api/gateway.solo.io/v1/controller/mocks/multicluster_reconcilers.go b/pkg/api/gateway.solo.io/v1/controller/mocks/multicluster_reconcilers.go index 5c6234534..7f37e5287 100644 --- a/pkg/api/gateway.solo.io/v1/controller/mocks/multicluster_reconcilers.go +++ b/pkg/api/gateway.solo.io/v1/controller/mocks/multicluster_reconcilers.go @@ -130,6 +130,236 @@ func (mr *MockMulticlusterGatewayReconcileLoopMockRecorder) AddMulticlusterGatew return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMulticlusterGatewayReconciler", reflect.TypeOf((*MockMulticlusterGatewayReconcileLoop)(nil).AddMulticlusterGatewayReconciler), varargs...) } +// MockMulticlusterHttpListenerOptionReconciler is a mock of MulticlusterHttpListenerOptionReconciler interface. +type MockMulticlusterHttpListenerOptionReconciler struct { + ctrl *gomock.Controller + recorder *MockMulticlusterHttpListenerOptionReconcilerMockRecorder +} + +// MockMulticlusterHttpListenerOptionReconcilerMockRecorder is the mock recorder for MockMulticlusterHttpListenerOptionReconciler. +type MockMulticlusterHttpListenerOptionReconcilerMockRecorder struct { + mock *MockMulticlusterHttpListenerOptionReconciler +} + +// NewMockMulticlusterHttpListenerOptionReconciler creates a new mock instance. +func NewMockMulticlusterHttpListenerOptionReconciler(ctrl *gomock.Controller) *MockMulticlusterHttpListenerOptionReconciler { + mock := &MockMulticlusterHttpListenerOptionReconciler{ctrl: ctrl} + mock.recorder = &MockMulticlusterHttpListenerOptionReconcilerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockMulticlusterHttpListenerOptionReconciler) EXPECT() *MockMulticlusterHttpListenerOptionReconcilerMockRecorder { + return m.recorder +} + +// ReconcileHttpListenerOption mocks base method. +func (m *MockMulticlusterHttpListenerOptionReconciler) ReconcileHttpListenerOption(clusterName string, obj *v1.HttpListenerOption) (reconcile.Result, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileHttpListenerOption", clusterName, obj) + ret0, _ := ret[0].(reconcile.Result) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReconcileHttpListenerOption indicates an expected call of ReconcileHttpListenerOption. +func (mr *MockMulticlusterHttpListenerOptionReconcilerMockRecorder) ReconcileHttpListenerOption(clusterName, obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileHttpListenerOption", reflect.TypeOf((*MockMulticlusterHttpListenerOptionReconciler)(nil).ReconcileHttpListenerOption), clusterName, obj) +} + +// MockMulticlusterHttpListenerOptionDeletionReconciler is a mock of MulticlusterHttpListenerOptionDeletionReconciler interface. +type MockMulticlusterHttpListenerOptionDeletionReconciler struct { + ctrl *gomock.Controller + recorder *MockMulticlusterHttpListenerOptionDeletionReconcilerMockRecorder +} + +// MockMulticlusterHttpListenerOptionDeletionReconcilerMockRecorder is the mock recorder for MockMulticlusterHttpListenerOptionDeletionReconciler. +type MockMulticlusterHttpListenerOptionDeletionReconcilerMockRecorder struct { + mock *MockMulticlusterHttpListenerOptionDeletionReconciler +} + +// NewMockMulticlusterHttpListenerOptionDeletionReconciler creates a new mock instance. +func NewMockMulticlusterHttpListenerOptionDeletionReconciler(ctrl *gomock.Controller) *MockMulticlusterHttpListenerOptionDeletionReconciler { + mock := &MockMulticlusterHttpListenerOptionDeletionReconciler{ctrl: ctrl} + mock.recorder = &MockMulticlusterHttpListenerOptionDeletionReconcilerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockMulticlusterHttpListenerOptionDeletionReconciler) EXPECT() *MockMulticlusterHttpListenerOptionDeletionReconcilerMockRecorder { + return m.recorder +} + +// ReconcileHttpListenerOptionDeletion mocks base method. +func (m *MockMulticlusterHttpListenerOptionDeletionReconciler) ReconcileHttpListenerOptionDeletion(clusterName string, req reconcile.Request) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileHttpListenerOptionDeletion", clusterName, req) + ret0, _ := ret[0].(error) + return ret0 +} + +// ReconcileHttpListenerOptionDeletion indicates an expected call of ReconcileHttpListenerOptionDeletion. +func (mr *MockMulticlusterHttpListenerOptionDeletionReconcilerMockRecorder) ReconcileHttpListenerOptionDeletion(clusterName, req interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileHttpListenerOptionDeletion", reflect.TypeOf((*MockMulticlusterHttpListenerOptionDeletionReconciler)(nil).ReconcileHttpListenerOptionDeletion), clusterName, req) +} + +// MockMulticlusterHttpListenerOptionReconcileLoop is a mock of MulticlusterHttpListenerOptionReconcileLoop interface. +type MockMulticlusterHttpListenerOptionReconcileLoop struct { + ctrl *gomock.Controller + recorder *MockMulticlusterHttpListenerOptionReconcileLoopMockRecorder +} + +// MockMulticlusterHttpListenerOptionReconcileLoopMockRecorder is the mock recorder for MockMulticlusterHttpListenerOptionReconcileLoop. +type MockMulticlusterHttpListenerOptionReconcileLoopMockRecorder struct { + mock *MockMulticlusterHttpListenerOptionReconcileLoop +} + +// NewMockMulticlusterHttpListenerOptionReconcileLoop creates a new mock instance. +func NewMockMulticlusterHttpListenerOptionReconcileLoop(ctrl *gomock.Controller) *MockMulticlusterHttpListenerOptionReconcileLoop { + mock := &MockMulticlusterHttpListenerOptionReconcileLoop{ctrl: ctrl} + mock.recorder = &MockMulticlusterHttpListenerOptionReconcileLoopMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockMulticlusterHttpListenerOptionReconcileLoop) EXPECT() *MockMulticlusterHttpListenerOptionReconcileLoopMockRecorder { + return m.recorder +} + +// AddMulticlusterHttpListenerOptionReconciler mocks base method. +func (m *MockMulticlusterHttpListenerOptionReconcileLoop) AddMulticlusterHttpListenerOptionReconciler(ctx context.Context, rec controller.MulticlusterHttpListenerOptionReconciler, predicates ...predicate.Predicate) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, rec} + for _, a := range predicates { + varargs = append(varargs, a) + } + m.ctrl.Call(m, "AddMulticlusterHttpListenerOptionReconciler", varargs...) +} + +// AddMulticlusterHttpListenerOptionReconciler indicates an expected call of AddMulticlusterHttpListenerOptionReconciler. +func (mr *MockMulticlusterHttpListenerOptionReconcileLoopMockRecorder) AddMulticlusterHttpListenerOptionReconciler(ctx, rec interface{}, predicates ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, rec}, predicates...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMulticlusterHttpListenerOptionReconciler", reflect.TypeOf((*MockMulticlusterHttpListenerOptionReconcileLoop)(nil).AddMulticlusterHttpListenerOptionReconciler), varargs...) +} + +// MockMulticlusterListenerOptionReconciler is a mock of MulticlusterListenerOptionReconciler interface. +type MockMulticlusterListenerOptionReconciler struct { + ctrl *gomock.Controller + recorder *MockMulticlusterListenerOptionReconcilerMockRecorder +} + +// MockMulticlusterListenerOptionReconcilerMockRecorder is the mock recorder for MockMulticlusterListenerOptionReconciler. +type MockMulticlusterListenerOptionReconcilerMockRecorder struct { + mock *MockMulticlusterListenerOptionReconciler +} + +// NewMockMulticlusterListenerOptionReconciler creates a new mock instance. +func NewMockMulticlusterListenerOptionReconciler(ctrl *gomock.Controller) *MockMulticlusterListenerOptionReconciler { + mock := &MockMulticlusterListenerOptionReconciler{ctrl: ctrl} + mock.recorder = &MockMulticlusterListenerOptionReconcilerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockMulticlusterListenerOptionReconciler) EXPECT() *MockMulticlusterListenerOptionReconcilerMockRecorder { + return m.recorder +} + +// ReconcileListenerOption mocks base method. +func (m *MockMulticlusterListenerOptionReconciler) ReconcileListenerOption(clusterName string, obj *v1.ListenerOption) (reconcile.Result, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileListenerOption", clusterName, obj) + ret0, _ := ret[0].(reconcile.Result) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReconcileListenerOption indicates an expected call of ReconcileListenerOption. +func (mr *MockMulticlusterListenerOptionReconcilerMockRecorder) ReconcileListenerOption(clusterName, obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileListenerOption", reflect.TypeOf((*MockMulticlusterListenerOptionReconciler)(nil).ReconcileListenerOption), clusterName, obj) +} + +// MockMulticlusterListenerOptionDeletionReconciler is a mock of MulticlusterListenerOptionDeletionReconciler interface. +type MockMulticlusterListenerOptionDeletionReconciler struct { + ctrl *gomock.Controller + recorder *MockMulticlusterListenerOptionDeletionReconcilerMockRecorder +} + +// MockMulticlusterListenerOptionDeletionReconcilerMockRecorder is the mock recorder for MockMulticlusterListenerOptionDeletionReconciler. +type MockMulticlusterListenerOptionDeletionReconcilerMockRecorder struct { + mock *MockMulticlusterListenerOptionDeletionReconciler +} + +// NewMockMulticlusterListenerOptionDeletionReconciler creates a new mock instance. +func NewMockMulticlusterListenerOptionDeletionReconciler(ctrl *gomock.Controller) *MockMulticlusterListenerOptionDeletionReconciler { + mock := &MockMulticlusterListenerOptionDeletionReconciler{ctrl: ctrl} + mock.recorder = &MockMulticlusterListenerOptionDeletionReconcilerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockMulticlusterListenerOptionDeletionReconciler) EXPECT() *MockMulticlusterListenerOptionDeletionReconcilerMockRecorder { + return m.recorder +} + +// ReconcileListenerOptionDeletion mocks base method. +func (m *MockMulticlusterListenerOptionDeletionReconciler) ReconcileListenerOptionDeletion(clusterName string, req reconcile.Request) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileListenerOptionDeletion", clusterName, req) + ret0, _ := ret[0].(error) + return ret0 +} + +// ReconcileListenerOptionDeletion indicates an expected call of ReconcileListenerOptionDeletion. +func (mr *MockMulticlusterListenerOptionDeletionReconcilerMockRecorder) ReconcileListenerOptionDeletion(clusterName, req interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileListenerOptionDeletion", reflect.TypeOf((*MockMulticlusterListenerOptionDeletionReconciler)(nil).ReconcileListenerOptionDeletion), clusterName, req) +} + +// MockMulticlusterListenerOptionReconcileLoop is a mock of MulticlusterListenerOptionReconcileLoop interface. +type MockMulticlusterListenerOptionReconcileLoop struct { + ctrl *gomock.Controller + recorder *MockMulticlusterListenerOptionReconcileLoopMockRecorder +} + +// MockMulticlusterListenerOptionReconcileLoopMockRecorder is the mock recorder for MockMulticlusterListenerOptionReconcileLoop. +type MockMulticlusterListenerOptionReconcileLoopMockRecorder struct { + mock *MockMulticlusterListenerOptionReconcileLoop +} + +// NewMockMulticlusterListenerOptionReconcileLoop creates a new mock instance. +func NewMockMulticlusterListenerOptionReconcileLoop(ctrl *gomock.Controller) *MockMulticlusterListenerOptionReconcileLoop { + mock := &MockMulticlusterListenerOptionReconcileLoop{ctrl: ctrl} + mock.recorder = &MockMulticlusterListenerOptionReconcileLoopMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockMulticlusterListenerOptionReconcileLoop) EXPECT() *MockMulticlusterListenerOptionReconcileLoopMockRecorder { + return m.recorder +} + +// AddMulticlusterListenerOptionReconciler mocks base method. +func (m *MockMulticlusterListenerOptionReconcileLoop) AddMulticlusterListenerOptionReconciler(ctx context.Context, rec controller.MulticlusterListenerOptionReconciler, predicates ...predicate.Predicate) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, rec} + for _, a := range predicates { + varargs = append(varargs, a) + } + m.ctrl.Call(m, "AddMulticlusterListenerOptionReconciler", varargs...) +} + +// AddMulticlusterListenerOptionReconciler indicates an expected call of AddMulticlusterListenerOptionReconciler. +func (mr *MockMulticlusterListenerOptionReconcileLoopMockRecorder) AddMulticlusterListenerOptionReconciler(ctx, rec interface{}, predicates ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, rec}, predicates...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMulticlusterListenerOptionReconciler", reflect.TypeOf((*MockMulticlusterListenerOptionReconcileLoop)(nil).AddMulticlusterListenerOptionReconciler), varargs...) +} + // MockMulticlusterMatchableHttpGatewayReconciler is a mock of MulticlusterMatchableHttpGatewayReconciler interface. type MockMulticlusterMatchableHttpGatewayReconciler struct { ctrl *gomock.Controller @@ -360,6 +590,121 @@ func (mr *MockMulticlusterMatchableTcpGatewayReconcileLoopMockRecorder) AddMulti return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMulticlusterMatchableTcpGatewayReconciler", reflect.TypeOf((*MockMulticlusterMatchableTcpGatewayReconcileLoop)(nil).AddMulticlusterMatchableTcpGatewayReconciler), varargs...) } +// MockMulticlusterRouteOptionReconciler is a mock of MulticlusterRouteOptionReconciler interface. +type MockMulticlusterRouteOptionReconciler struct { + ctrl *gomock.Controller + recorder *MockMulticlusterRouteOptionReconcilerMockRecorder +} + +// MockMulticlusterRouteOptionReconcilerMockRecorder is the mock recorder for MockMulticlusterRouteOptionReconciler. +type MockMulticlusterRouteOptionReconcilerMockRecorder struct { + mock *MockMulticlusterRouteOptionReconciler +} + +// NewMockMulticlusterRouteOptionReconciler creates a new mock instance. +func NewMockMulticlusterRouteOptionReconciler(ctrl *gomock.Controller) *MockMulticlusterRouteOptionReconciler { + mock := &MockMulticlusterRouteOptionReconciler{ctrl: ctrl} + mock.recorder = &MockMulticlusterRouteOptionReconcilerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockMulticlusterRouteOptionReconciler) EXPECT() *MockMulticlusterRouteOptionReconcilerMockRecorder { + return m.recorder +} + +// ReconcileRouteOption mocks base method. +func (m *MockMulticlusterRouteOptionReconciler) ReconcileRouteOption(clusterName string, obj *v1.RouteOption) (reconcile.Result, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileRouteOption", clusterName, obj) + ret0, _ := ret[0].(reconcile.Result) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReconcileRouteOption indicates an expected call of ReconcileRouteOption. +func (mr *MockMulticlusterRouteOptionReconcilerMockRecorder) ReconcileRouteOption(clusterName, obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileRouteOption", reflect.TypeOf((*MockMulticlusterRouteOptionReconciler)(nil).ReconcileRouteOption), clusterName, obj) +} + +// MockMulticlusterRouteOptionDeletionReconciler is a mock of MulticlusterRouteOptionDeletionReconciler interface. +type MockMulticlusterRouteOptionDeletionReconciler struct { + ctrl *gomock.Controller + recorder *MockMulticlusterRouteOptionDeletionReconcilerMockRecorder +} + +// MockMulticlusterRouteOptionDeletionReconcilerMockRecorder is the mock recorder for MockMulticlusterRouteOptionDeletionReconciler. +type MockMulticlusterRouteOptionDeletionReconcilerMockRecorder struct { + mock *MockMulticlusterRouteOptionDeletionReconciler +} + +// NewMockMulticlusterRouteOptionDeletionReconciler creates a new mock instance. +func NewMockMulticlusterRouteOptionDeletionReconciler(ctrl *gomock.Controller) *MockMulticlusterRouteOptionDeletionReconciler { + mock := &MockMulticlusterRouteOptionDeletionReconciler{ctrl: ctrl} + mock.recorder = &MockMulticlusterRouteOptionDeletionReconcilerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockMulticlusterRouteOptionDeletionReconciler) EXPECT() *MockMulticlusterRouteOptionDeletionReconcilerMockRecorder { + return m.recorder +} + +// ReconcileRouteOptionDeletion mocks base method. +func (m *MockMulticlusterRouteOptionDeletionReconciler) ReconcileRouteOptionDeletion(clusterName string, req reconcile.Request) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileRouteOptionDeletion", clusterName, req) + ret0, _ := ret[0].(error) + return ret0 +} + +// ReconcileRouteOptionDeletion indicates an expected call of ReconcileRouteOptionDeletion. +func (mr *MockMulticlusterRouteOptionDeletionReconcilerMockRecorder) ReconcileRouteOptionDeletion(clusterName, req interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileRouteOptionDeletion", reflect.TypeOf((*MockMulticlusterRouteOptionDeletionReconciler)(nil).ReconcileRouteOptionDeletion), clusterName, req) +} + +// MockMulticlusterRouteOptionReconcileLoop is a mock of MulticlusterRouteOptionReconcileLoop interface. +type MockMulticlusterRouteOptionReconcileLoop struct { + ctrl *gomock.Controller + recorder *MockMulticlusterRouteOptionReconcileLoopMockRecorder +} + +// MockMulticlusterRouteOptionReconcileLoopMockRecorder is the mock recorder for MockMulticlusterRouteOptionReconcileLoop. +type MockMulticlusterRouteOptionReconcileLoopMockRecorder struct { + mock *MockMulticlusterRouteOptionReconcileLoop +} + +// NewMockMulticlusterRouteOptionReconcileLoop creates a new mock instance. +func NewMockMulticlusterRouteOptionReconcileLoop(ctrl *gomock.Controller) *MockMulticlusterRouteOptionReconcileLoop { + mock := &MockMulticlusterRouteOptionReconcileLoop{ctrl: ctrl} + mock.recorder = &MockMulticlusterRouteOptionReconcileLoopMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockMulticlusterRouteOptionReconcileLoop) EXPECT() *MockMulticlusterRouteOptionReconcileLoopMockRecorder { + return m.recorder +} + +// AddMulticlusterRouteOptionReconciler mocks base method. +func (m *MockMulticlusterRouteOptionReconcileLoop) AddMulticlusterRouteOptionReconciler(ctx context.Context, rec controller.MulticlusterRouteOptionReconciler, predicates ...predicate.Predicate) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, rec} + for _, a := range predicates { + varargs = append(varargs, a) + } + m.ctrl.Call(m, "AddMulticlusterRouteOptionReconciler", varargs...) +} + +// AddMulticlusterRouteOptionReconciler indicates an expected call of AddMulticlusterRouteOptionReconciler. +func (mr *MockMulticlusterRouteOptionReconcileLoopMockRecorder) AddMulticlusterRouteOptionReconciler(ctx, rec interface{}, predicates ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, rec}, predicates...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMulticlusterRouteOptionReconciler", reflect.TypeOf((*MockMulticlusterRouteOptionReconcileLoop)(nil).AddMulticlusterRouteOptionReconciler), varargs...) +} + // MockMulticlusterRouteTableReconciler is a mock of MulticlusterRouteTableReconciler interface. type MockMulticlusterRouteTableReconciler struct { ctrl *gomock.Controller @@ -704,118 +1049,3 @@ func (mr *MockMulticlusterVirtualHostOptionReconcileLoopMockRecorder) AddMulticl varargs := append([]interface{}{ctx, rec}, predicates...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMulticlusterVirtualHostOptionReconciler", reflect.TypeOf((*MockMulticlusterVirtualHostOptionReconcileLoop)(nil).AddMulticlusterVirtualHostOptionReconciler), varargs...) } - -// MockMulticlusterRouteOptionReconciler is a mock of MulticlusterRouteOptionReconciler interface. -type MockMulticlusterRouteOptionReconciler struct { - ctrl *gomock.Controller - recorder *MockMulticlusterRouteOptionReconcilerMockRecorder -} - -// MockMulticlusterRouteOptionReconcilerMockRecorder is the mock recorder for MockMulticlusterRouteOptionReconciler. -type MockMulticlusterRouteOptionReconcilerMockRecorder struct { - mock *MockMulticlusterRouteOptionReconciler -} - -// NewMockMulticlusterRouteOptionReconciler creates a new mock instance. -func NewMockMulticlusterRouteOptionReconciler(ctrl *gomock.Controller) *MockMulticlusterRouteOptionReconciler { - mock := &MockMulticlusterRouteOptionReconciler{ctrl: ctrl} - mock.recorder = &MockMulticlusterRouteOptionReconcilerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMulticlusterRouteOptionReconciler) EXPECT() *MockMulticlusterRouteOptionReconcilerMockRecorder { - return m.recorder -} - -// ReconcileRouteOption mocks base method. -func (m *MockMulticlusterRouteOptionReconciler) ReconcileRouteOption(clusterName string, obj *v1.RouteOption) (reconcile.Result, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReconcileRouteOption", clusterName, obj) - ret0, _ := ret[0].(reconcile.Result) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ReconcileRouteOption indicates an expected call of ReconcileRouteOption. -func (mr *MockMulticlusterRouteOptionReconcilerMockRecorder) ReconcileRouteOption(clusterName, obj interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileRouteOption", reflect.TypeOf((*MockMulticlusterRouteOptionReconciler)(nil).ReconcileRouteOption), clusterName, obj) -} - -// MockMulticlusterRouteOptionDeletionReconciler is a mock of MulticlusterRouteOptionDeletionReconciler interface. -type MockMulticlusterRouteOptionDeletionReconciler struct { - ctrl *gomock.Controller - recorder *MockMulticlusterRouteOptionDeletionReconcilerMockRecorder -} - -// MockMulticlusterRouteOptionDeletionReconcilerMockRecorder is the mock recorder for MockMulticlusterRouteOptionDeletionReconciler. -type MockMulticlusterRouteOptionDeletionReconcilerMockRecorder struct { - mock *MockMulticlusterRouteOptionDeletionReconciler -} - -// NewMockMulticlusterRouteOptionDeletionReconciler creates a new mock instance. -func NewMockMulticlusterRouteOptionDeletionReconciler(ctrl *gomock.Controller) *MockMulticlusterRouteOptionDeletionReconciler { - mock := &MockMulticlusterRouteOptionDeletionReconciler{ctrl: ctrl} - mock.recorder = &MockMulticlusterRouteOptionDeletionReconcilerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMulticlusterRouteOptionDeletionReconciler) EXPECT() *MockMulticlusterRouteOptionDeletionReconcilerMockRecorder { - return m.recorder -} - -// ReconcileRouteOptionDeletion mocks base method. -func (m *MockMulticlusterRouteOptionDeletionReconciler) ReconcileRouteOptionDeletion(clusterName string, req reconcile.Request) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReconcileRouteOptionDeletion", clusterName, req) - ret0, _ := ret[0].(error) - return ret0 -} - -// ReconcileRouteOptionDeletion indicates an expected call of ReconcileRouteOptionDeletion. -func (mr *MockMulticlusterRouteOptionDeletionReconcilerMockRecorder) ReconcileRouteOptionDeletion(clusterName, req interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileRouteOptionDeletion", reflect.TypeOf((*MockMulticlusterRouteOptionDeletionReconciler)(nil).ReconcileRouteOptionDeletion), clusterName, req) -} - -// MockMulticlusterRouteOptionReconcileLoop is a mock of MulticlusterRouteOptionReconcileLoop interface. -type MockMulticlusterRouteOptionReconcileLoop struct { - ctrl *gomock.Controller - recorder *MockMulticlusterRouteOptionReconcileLoopMockRecorder -} - -// MockMulticlusterRouteOptionReconcileLoopMockRecorder is the mock recorder for MockMulticlusterRouteOptionReconcileLoop. -type MockMulticlusterRouteOptionReconcileLoopMockRecorder struct { - mock *MockMulticlusterRouteOptionReconcileLoop -} - -// NewMockMulticlusterRouteOptionReconcileLoop creates a new mock instance. -func NewMockMulticlusterRouteOptionReconcileLoop(ctrl *gomock.Controller) *MockMulticlusterRouteOptionReconcileLoop { - mock := &MockMulticlusterRouteOptionReconcileLoop{ctrl: ctrl} - mock.recorder = &MockMulticlusterRouteOptionReconcileLoopMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMulticlusterRouteOptionReconcileLoop) EXPECT() *MockMulticlusterRouteOptionReconcileLoopMockRecorder { - return m.recorder -} - -// AddMulticlusterRouteOptionReconciler mocks base method. -func (m *MockMulticlusterRouteOptionReconcileLoop) AddMulticlusterRouteOptionReconciler(ctx context.Context, rec controller.MulticlusterRouteOptionReconciler, predicates ...predicate.Predicate) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, rec} - for _, a := range predicates { - varargs = append(varargs, a) - } - m.ctrl.Call(m, "AddMulticlusterRouteOptionReconciler", varargs...) -} - -// AddMulticlusterRouteOptionReconciler indicates an expected call of AddMulticlusterRouteOptionReconciler. -func (mr *MockMulticlusterRouteOptionReconcileLoopMockRecorder) AddMulticlusterRouteOptionReconciler(ctx, rec interface{}, predicates ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, rec}, predicates...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMulticlusterRouteOptionReconciler", reflect.TypeOf((*MockMulticlusterRouteOptionReconcileLoop)(nil).AddMulticlusterRouteOptionReconciler), varargs...) -} diff --git a/pkg/api/gateway.solo.io/v1/controller/mocks/reconcilers.go b/pkg/api/gateway.solo.io/v1/controller/mocks/reconcilers.go index 4d3f0d903..4b9a5d6cd 100644 --- a/pkg/api/gateway.solo.io/v1/controller/mocks/reconcilers.go +++ b/pkg/api/gateway.solo.io/v1/controller/mocks/reconcilers.go @@ -198,6 +198,372 @@ func (mr *MockGatewayReconcileLoopMockRecorder) RunGatewayReconciler(ctx, rec in return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunGatewayReconciler", reflect.TypeOf((*MockGatewayReconcileLoop)(nil).RunGatewayReconciler), varargs...) } +// MockHttpListenerOptionReconciler is a mock of HttpListenerOptionReconciler interface. +type MockHttpListenerOptionReconciler struct { + ctrl *gomock.Controller + recorder *MockHttpListenerOptionReconcilerMockRecorder +} + +// MockHttpListenerOptionReconcilerMockRecorder is the mock recorder for MockHttpListenerOptionReconciler. +type MockHttpListenerOptionReconcilerMockRecorder struct { + mock *MockHttpListenerOptionReconciler +} + +// NewMockHttpListenerOptionReconciler creates a new mock instance. +func NewMockHttpListenerOptionReconciler(ctrl *gomock.Controller) *MockHttpListenerOptionReconciler { + mock := &MockHttpListenerOptionReconciler{ctrl: ctrl} + mock.recorder = &MockHttpListenerOptionReconcilerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockHttpListenerOptionReconciler) EXPECT() *MockHttpListenerOptionReconcilerMockRecorder { + return m.recorder +} + +// ReconcileHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionReconciler) ReconcileHttpListenerOption(obj *v1.HttpListenerOption) (reconcile.Result, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileHttpListenerOption", obj) + ret0, _ := ret[0].(reconcile.Result) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReconcileHttpListenerOption indicates an expected call of ReconcileHttpListenerOption. +func (mr *MockHttpListenerOptionReconcilerMockRecorder) ReconcileHttpListenerOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionReconciler)(nil).ReconcileHttpListenerOption), obj) +} + +// MockHttpListenerOptionDeletionReconciler is a mock of HttpListenerOptionDeletionReconciler interface. +type MockHttpListenerOptionDeletionReconciler struct { + ctrl *gomock.Controller + recorder *MockHttpListenerOptionDeletionReconcilerMockRecorder +} + +// MockHttpListenerOptionDeletionReconcilerMockRecorder is the mock recorder for MockHttpListenerOptionDeletionReconciler. +type MockHttpListenerOptionDeletionReconcilerMockRecorder struct { + mock *MockHttpListenerOptionDeletionReconciler +} + +// NewMockHttpListenerOptionDeletionReconciler creates a new mock instance. +func NewMockHttpListenerOptionDeletionReconciler(ctrl *gomock.Controller) *MockHttpListenerOptionDeletionReconciler { + mock := &MockHttpListenerOptionDeletionReconciler{ctrl: ctrl} + mock.recorder = &MockHttpListenerOptionDeletionReconcilerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockHttpListenerOptionDeletionReconciler) EXPECT() *MockHttpListenerOptionDeletionReconcilerMockRecorder { + return m.recorder +} + +// ReconcileHttpListenerOptionDeletion mocks base method. +func (m *MockHttpListenerOptionDeletionReconciler) ReconcileHttpListenerOptionDeletion(req reconcile.Request) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileHttpListenerOptionDeletion", req) + ret0, _ := ret[0].(error) + return ret0 +} + +// ReconcileHttpListenerOptionDeletion indicates an expected call of ReconcileHttpListenerOptionDeletion. +func (mr *MockHttpListenerOptionDeletionReconcilerMockRecorder) ReconcileHttpListenerOptionDeletion(req interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileHttpListenerOptionDeletion", reflect.TypeOf((*MockHttpListenerOptionDeletionReconciler)(nil).ReconcileHttpListenerOptionDeletion), req) +} + +// MockHttpListenerOptionFinalizer is a mock of HttpListenerOptionFinalizer interface. +type MockHttpListenerOptionFinalizer struct { + ctrl *gomock.Controller + recorder *MockHttpListenerOptionFinalizerMockRecorder +} + +// MockHttpListenerOptionFinalizerMockRecorder is the mock recorder for MockHttpListenerOptionFinalizer. +type MockHttpListenerOptionFinalizerMockRecorder struct { + mock *MockHttpListenerOptionFinalizer +} + +// NewMockHttpListenerOptionFinalizer creates a new mock instance. +func NewMockHttpListenerOptionFinalizer(ctrl *gomock.Controller) *MockHttpListenerOptionFinalizer { + mock := &MockHttpListenerOptionFinalizer{ctrl: ctrl} + mock.recorder = &MockHttpListenerOptionFinalizerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockHttpListenerOptionFinalizer) EXPECT() *MockHttpListenerOptionFinalizerMockRecorder { + return m.recorder +} + +// FinalizeHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionFinalizer) FinalizeHttpListenerOption(obj *v1.HttpListenerOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "FinalizeHttpListenerOption", obj) + ret0, _ := ret[0].(error) + return ret0 +} + +// FinalizeHttpListenerOption indicates an expected call of FinalizeHttpListenerOption. +func (mr *MockHttpListenerOptionFinalizerMockRecorder) FinalizeHttpListenerOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FinalizeHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionFinalizer)(nil).FinalizeHttpListenerOption), obj) +} + +// HttpListenerOptionFinalizerName mocks base method. +func (m *MockHttpListenerOptionFinalizer) HttpListenerOptionFinalizerName() string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "HttpListenerOptionFinalizerName") + ret0, _ := ret[0].(string) + return ret0 +} + +// HttpListenerOptionFinalizerName indicates an expected call of HttpListenerOptionFinalizerName. +func (mr *MockHttpListenerOptionFinalizerMockRecorder) HttpListenerOptionFinalizerName() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HttpListenerOptionFinalizerName", reflect.TypeOf((*MockHttpListenerOptionFinalizer)(nil).HttpListenerOptionFinalizerName)) +} + +// ReconcileHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionFinalizer) ReconcileHttpListenerOption(obj *v1.HttpListenerOption) (reconcile.Result, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileHttpListenerOption", obj) + ret0, _ := ret[0].(reconcile.Result) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReconcileHttpListenerOption indicates an expected call of ReconcileHttpListenerOption. +func (mr *MockHttpListenerOptionFinalizerMockRecorder) ReconcileHttpListenerOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionFinalizer)(nil).ReconcileHttpListenerOption), obj) +} + +// MockHttpListenerOptionReconcileLoop is a mock of HttpListenerOptionReconcileLoop interface. +type MockHttpListenerOptionReconcileLoop struct { + ctrl *gomock.Controller + recorder *MockHttpListenerOptionReconcileLoopMockRecorder +} + +// MockHttpListenerOptionReconcileLoopMockRecorder is the mock recorder for MockHttpListenerOptionReconcileLoop. +type MockHttpListenerOptionReconcileLoopMockRecorder struct { + mock *MockHttpListenerOptionReconcileLoop +} + +// NewMockHttpListenerOptionReconcileLoop creates a new mock instance. +func NewMockHttpListenerOptionReconcileLoop(ctrl *gomock.Controller) *MockHttpListenerOptionReconcileLoop { + mock := &MockHttpListenerOptionReconcileLoop{ctrl: ctrl} + mock.recorder = &MockHttpListenerOptionReconcileLoopMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockHttpListenerOptionReconcileLoop) EXPECT() *MockHttpListenerOptionReconcileLoopMockRecorder { + return m.recorder +} + +// RunHttpListenerOptionReconciler mocks base method. +func (m *MockHttpListenerOptionReconcileLoop) RunHttpListenerOptionReconciler(ctx context.Context, rec controller.HttpListenerOptionReconciler, predicates ...predicate.Predicate) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, rec} + for _, a := range predicates { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RunHttpListenerOptionReconciler", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// RunHttpListenerOptionReconciler indicates an expected call of RunHttpListenerOptionReconciler. +func (mr *MockHttpListenerOptionReconcileLoopMockRecorder) RunHttpListenerOptionReconciler(ctx, rec interface{}, predicates ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, rec}, predicates...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunHttpListenerOptionReconciler", reflect.TypeOf((*MockHttpListenerOptionReconcileLoop)(nil).RunHttpListenerOptionReconciler), varargs...) +} + +// MockListenerOptionReconciler is a mock of ListenerOptionReconciler interface. +type MockListenerOptionReconciler struct { + ctrl *gomock.Controller + recorder *MockListenerOptionReconcilerMockRecorder +} + +// MockListenerOptionReconcilerMockRecorder is the mock recorder for MockListenerOptionReconciler. +type MockListenerOptionReconcilerMockRecorder struct { + mock *MockListenerOptionReconciler +} + +// NewMockListenerOptionReconciler creates a new mock instance. +func NewMockListenerOptionReconciler(ctrl *gomock.Controller) *MockListenerOptionReconciler { + mock := &MockListenerOptionReconciler{ctrl: ctrl} + mock.recorder = &MockListenerOptionReconcilerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockListenerOptionReconciler) EXPECT() *MockListenerOptionReconcilerMockRecorder { + return m.recorder +} + +// ReconcileListenerOption mocks base method. +func (m *MockListenerOptionReconciler) ReconcileListenerOption(obj *v1.ListenerOption) (reconcile.Result, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileListenerOption", obj) + ret0, _ := ret[0].(reconcile.Result) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReconcileListenerOption indicates an expected call of ReconcileListenerOption. +func (mr *MockListenerOptionReconcilerMockRecorder) ReconcileListenerOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileListenerOption", reflect.TypeOf((*MockListenerOptionReconciler)(nil).ReconcileListenerOption), obj) +} + +// MockListenerOptionDeletionReconciler is a mock of ListenerOptionDeletionReconciler interface. +type MockListenerOptionDeletionReconciler struct { + ctrl *gomock.Controller + recorder *MockListenerOptionDeletionReconcilerMockRecorder +} + +// MockListenerOptionDeletionReconcilerMockRecorder is the mock recorder for MockListenerOptionDeletionReconciler. +type MockListenerOptionDeletionReconcilerMockRecorder struct { + mock *MockListenerOptionDeletionReconciler +} + +// NewMockListenerOptionDeletionReconciler creates a new mock instance. +func NewMockListenerOptionDeletionReconciler(ctrl *gomock.Controller) *MockListenerOptionDeletionReconciler { + mock := &MockListenerOptionDeletionReconciler{ctrl: ctrl} + mock.recorder = &MockListenerOptionDeletionReconcilerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockListenerOptionDeletionReconciler) EXPECT() *MockListenerOptionDeletionReconcilerMockRecorder { + return m.recorder +} + +// ReconcileListenerOptionDeletion mocks base method. +func (m *MockListenerOptionDeletionReconciler) ReconcileListenerOptionDeletion(req reconcile.Request) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileListenerOptionDeletion", req) + ret0, _ := ret[0].(error) + return ret0 +} + +// ReconcileListenerOptionDeletion indicates an expected call of ReconcileListenerOptionDeletion. +func (mr *MockListenerOptionDeletionReconcilerMockRecorder) ReconcileListenerOptionDeletion(req interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileListenerOptionDeletion", reflect.TypeOf((*MockListenerOptionDeletionReconciler)(nil).ReconcileListenerOptionDeletion), req) +} + +// MockListenerOptionFinalizer is a mock of ListenerOptionFinalizer interface. +type MockListenerOptionFinalizer struct { + ctrl *gomock.Controller + recorder *MockListenerOptionFinalizerMockRecorder +} + +// MockListenerOptionFinalizerMockRecorder is the mock recorder for MockListenerOptionFinalizer. +type MockListenerOptionFinalizerMockRecorder struct { + mock *MockListenerOptionFinalizer +} + +// NewMockListenerOptionFinalizer creates a new mock instance. +func NewMockListenerOptionFinalizer(ctrl *gomock.Controller) *MockListenerOptionFinalizer { + mock := &MockListenerOptionFinalizer{ctrl: ctrl} + mock.recorder = &MockListenerOptionFinalizerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockListenerOptionFinalizer) EXPECT() *MockListenerOptionFinalizerMockRecorder { + return m.recorder +} + +// FinalizeListenerOption mocks base method. +func (m *MockListenerOptionFinalizer) FinalizeListenerOption(obj *v1.ListenerOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "FinalizeListenerOption", obj) + ret0, _ := ret[0].(error) + return ret0 +} + +// FinalizeListenerOption indicates an expected call of FinalizeListenerOption. +func (mr *MockListenerOptionFinalizerMockRecorder) FinalizeListenerOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FinalizeListenerOption", reflect.TypeOf((*MockListenerOptionFinalizer)(nil).FinalizeListenerOption), obj) +} + +// ListenerOptionFinalizerName mocks base method. +func (m *MockListenerOptionFinalizer) ListenerOptionFinalizerName() string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListenerOptionFinalizerName") + ret0, _ := ret[0].(string) + return ret0 +} + +// ListenerOptionFinalizerName indicates an expected call of ListenerOptionFinalizerName. +func (mr *MockListenerOptionFinalizerMockRecorder) ListenerOptionFinalizerName() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListenerOptionFinalizerName", reflect.TypeOf((*MockListenerOptionFinalizer)(nil).ListenerOptionFinalizerName)) +} + +// ReconcileListenerOption mocks base method. +func (m *MockListenerOptionFinalizer) ReconcileListenerOption(obj *v1.ListenerOption) (reconcile.Result, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileListenerOption", obj) + ret0, _ := ret[0].(reconcile.Result) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReconcileListenerOption indicates an expected call of ReconcileListenerOption. +func (mr *MockListenerOptionFinalizerMockRecorder) ReconcileListenerOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileListenerOption", reflect.TypeOf((*MockListenerOptionFinalizer)(nil).ReconcileListenerOption), obj) +} + +// MockListenerOptionReconcileLoop is a mock of ListenerOptionReconcileLoop interface. +type MockListenerOptionReconcileLoop struct { + ctrl *gomock.Controller + recorder *MockListenerOptionReconcileLoopMockRecorder +} + +// MockListenerOptionReconcileLoopMockRecorder is the mock recorder for MockListenerOptionReconcileLoop. +type MockListenerOptionReconcileLoopMockRecorder struct { + mock *MockListenerOptionReconcileLoop +} + +// NewMockListenerOptionReconcileLoop creates a new mock instance. +func NewMockListenerOptionReconcileLoop(ctrl *gomock.Controller) *MockListenerOptionReconcileLoop { + mock := &MockListenerOptionReconcileLoop{ctrl: ctrl} + mock.recorder = &MockListenerOptionReconcileLoopMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockListenerOptionReconcileLoop) EXPECT() *MockListenerOptionReconcileLoopMockRecorder { + return m.recorder +} + +// RunListenerOptionReconciler mocks base method. +func (m *MockListenerOptionReconcileLoop) RunListenerOptionReconciler(ctx context.Context, rec controller.ListenerOptionReconciler, predicates ...predicate.Predicate) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, rec} + for _, a := range predicates { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RunListenerOptionReconciler", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// RunListenerOptionReconciler indicates an expected call of RunListenerOptionReconciler. +func (mr *MockListenerOptionReconcileLoopMockRecorder) RunListenerOptionReconciler(ctx, rec interface{}, predicates ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, rec}, predicates...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunListenerOptionReconciler", reflect.TypeOf((*MockListenerOptionReconcileLoop)(nil).RunListenerOptionReconciler), varargs...) +} + // MockMatchableHttpGatewayReconciler is a mock of MatchableHttpGatewayReconciler interface. type MockMatchableHttpGatewayReconciler struct { ctrl *gomock.Controller @@ -496,72 +862,255 @@ func (mr *MockMatchableTcpGatewayFinalizerMockRecorder) FinalizeMatchableTcpGate // MatchableTcpGatewayFinalizerName mocks base method. func (m *MockMatchableTcpGatewayFinalizer) MatchableTcpGatewayFinalizerName() string { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MatchableTcpGatewayFinalizerName") - ret0, _ := ret[0].(string) + ret := m.ctrl.Call(m, "MatchableTcpGatewayFinalizerName") + ret0, _ := ret[0].(string) + return ret0 +} + +// MatchableTcpGatewayFinalizerName indicates an expected call of MatchableTcpGatewayFinalizerName. +func (mr *MockMatchableTcpGatewayFinalizerMockRecorder) MatchableTcpGatewayFinalizerName() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MatchableTcpGatewayFinalizerName", reflect.TypeOf((*MockMatchableTcpGatewayFinalizer)(nil).MatchableTcpGatewayFinalizerName)) +} + +// ReconcileMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayFinalizer) ReconcileMatchableTcpGateway(obj *v1.MatchableTcpGateway) (reconcile.Result, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileMatchableTcpGateway", obj) + ret0, _ := ret[0].(reconcile.Result) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReconcileMatchableTcpGateway indicates an expected call of ReconcileMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayFinalizerMockRecorder) ReconcileMatchableTcpGateway(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayFinalizer)(nil).ReconcileMatchableTcpGateway), obj) +} + +// MockMatchableTcpGatewayReconcileLoop is a mock of MatchableTcpGatewayReconcileLoop interface. +type MockMatchableTcpGatewayReconcileLoop struct { + ctrl *gomock.Controller + recorder *MockMatchableTcpGatewayReconcileLoopMockRecorder +} + +// MockMatchableTcpGatewayReconcileLoopMockRecorder is the mock recorder for MockMatchableTcpGatewayReconcileLoop. +type MockMatchableTcpGatewayReconcileLoopMockRecorder struct { + mock *MockMatchableTcpGatewayReconcileLoop +} + +// NewMockMatchableTcpGatewayReconcileLoop creates a new mock instance. +func NewMockMatchableTcpGatewayReconcileLoop(ctrl *gomock.Controller) *MockMatchableTcpGatewayReconcileLoop { + mock := &MockMatchableTcpGatewayReconcileLoop{ctrl: ctrl} + mock.recorder = &MockMatchableTcpGatewayReconcileLoopMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockMatchableTcpGatewayReconcileLoop) EXPECT() *MockMatchableTcpGatewayReconcileLoopMockRecorder { + return m.recorder +} + +// RunMatchableTcpGatewayReconciler mocks base method. +func (m *MockMatchableTcpGatewayReconcileLoop) RunMatchableTcpGatewayReconciler(ctx context.Context, rec controller.MatchableTcpGatewayReconciler, predicates ...predicate.Predicate) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, rec} + for _, a := range predicates { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RunMatchableTcpGatewayReconciler", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// RunMatchableTcpGatewayReconciler indicates an expected call of RunMatchableTcpGatewayReconciler. +func (mr *MockMatchableTcpGatewayReconcileLoopMockRecorder) RunMatchableTcpGatewayReconciler(ctx, rec interface{}, predicates ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, rec}, predicates...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunMatchableTcpGatewayReconciler", reflect.TypeOf((*MockMatchableTcpGatewayReconcileLoop)(nil).RunMatchableTcpGatewayReconciler), varargs...) +} + +// MockRouteOptionReconciler is a mock of RouteOptionReconciler interface. +type MockRouteOptionReconciler struct { + ctrl *gomock.Controller + recorder *MockRouteOptionReconcilerMockRecorder +} + +// MockRouteOptionReconcilerMockRecorder is the mock recorder for MockRouteOptionReconciler. +type MockRouteOptionReconcilerMockRecorder struct { + mock *MockRouteOptionReconciler +} + +// NewMockRouteOptionReconciler creates a new mock instance. +func NewMockRouteOptionReconciler(ctrl *gomock.Controller) *MockRouteOptionReconciler { + mock := &MockRouteOptionReconciler{ctrl: ctrl} + mock.recorder = &MockRouteOptionReconcilerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockRouteOptionReconciler) EXPECT() *MockRouteOptionReconcilerMockRecorder { + return m.recorder +} + +// ReconcileRouteOption mocks base method. +func (m *MockRouteOptionReconciler) ReconcileRouteOption(obj *v1.RouteOption) (reconcile.Result, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileRouteOption", obj) + ret0, _ := ret[0].(reconcile.Result) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReconcileRouteOption indicates an expected call of ReconcileRouteOption. +func (mr *MockRouteOptionReconcilerMockRecorder) ReconcileRouteOption(obj interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileRouteOption", reflect.TypeOf((*MockRouteOptionReconciler)(nil).ReconcileRouteOption), obj) +} + +// MockRouteOptionDeletionReconciler is a mock of RouteOptionDeletionReconciler interface. +type MockRouteOptionDeletionReconciler struct { + ctrl *gomock.Controller + recorder *MockRouteOptionDeletionReconcilerMockRecorder +} + +// MockRouteOptionDeletionReconcilerMockRecorder is the mock recorder for MockRouteOptionDeletionReconciler. +type MockRouteOptionDeletionReconcilerMockRecorder struct { + mock *MockRouteOptionDeletionReconciler +} + +// NewMockRouteOptionDeletionReconciler creates a new mock instance. +func NewMockRouteOptionDeletionReconciler(ctrl *gomock.Controller) *MockRouteOptionDeletionReconciler { + mock := &MockRouteOptionDeletionReconciler{ctrl: ctrl} + mock.recorder = &MockRouteOptionDeletionReconcilerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockRouteOptionDeletionReconciler) EXPECT() *MockRouteOptionDeletionReconcilerMockRecorder { + return m.recorder +} + +// ReconcileRouteOptionDeletion mocks base method. +func (m *MockRouteOptionDeletionReconciler) ReconcileRouteOptionDeletion(req reconcile.Request) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReconcileRouteOptionDeletion", req) + ret0, _ := ret[0].(error) + return ret0 +} + +// ReconcileRouteOptionDeletion indicates an expected call of ReconcileRouteOptionDeletion. +func (mr *MockRouteOptionDeletionReconcilerMockRecorder) ReconcileRouteOptionDeletion(req interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileRouteOptionDeletion", reflect.TypeOf((*MockRouteOptionDeletionReconciler)(nil).ReconcileRouteOptionDeletion), req) +} + +// MockRouteOptionFinalizer is a mock of RouteOptionFinalizer interface. +type MockRouteOptionFinalizer struct { + ctrl *gomock.Controller + recorder *MockRouteOptionFinalizerMockRecorder +} + +// MockRouteOptionFinalizerMockRecorder is the mock recorder for MockRouteOptionFinalizer. +type MockRouteOptionFinalizerMockRecorder struct { + mock *MockRouteOptionFinalizer +} + +// NewMockRouteOptionFinalizer creates a new mock instance. +func NewMockRouteOptionFinalizer(ctrl *gomock.Controller) *MockRouteOptionFinalizer { + mock := &MockRouteOptionFinalizer{ctrl: ctrl} + mock.recorder = &MockRouteOptionFinalizerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockRouteOptionFinalizer) EXPECT() *MockRouteOptionFinalizerMockRecorder { + return m.recorder +} + +// FinalizeRouteOption mocks base method. +func (m *MockRouteOptionFinalizer) FinalizeRouteOption(obj *v1.RouteOption) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "FinalizeRouteOption", obj) + ret0, _ := ret[0].(error) return ret0 } -// MatchableTcpGatewayFinalizerName indicates an expected call of MatchableTcpGatewayFinalizerName. -func (mr *MockMatchableTcpGatewayFinalizerMockRecorder) MatchableTcpGatewayFinalizerName() *gomock.Call { +// FinalizeRouteOption indicates an expected call of FinalizeRouteOption. +func (mr *MockRouteOptionFinalizerMockRecorder) FinalizeRouteOption(obj interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MatchableTcpGatewayFinalizerName", reflect.TypeOf((*MockMatchableTcpGatewayFinalizer)(nil).MatchableTcpGatewayFinalizerName)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FinalizeRouteOption", reflect.TypeOf((*MockRouteOptionFinalizer)(nil).FinalizeRouteOption), obj) } -// ReconcileMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayFinalizer) ReconcileMatchableTcpGateway(obj *v1.MatchableTcpGateway) (reconcile.Result, error) { +// ReconcileRouteOption mocks base method. +func (m *MockRouteOptionFinalizer) ReconcileRouteOption(obj *v1.RouteOption) (reconcile.Result, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReconcileMatchableTcpGateway", obj) + ret := m.ctrl.Call(m, "ReconcileRouteOption", obj) ret0, _ := ret[0].(reconcile.Result) ret1, _ := ret[1].(error) return ret0, ret1 } -// ReconcileMatchableTcpGateway indicates an expected call of ReconcileMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayFinalizerMockRecorder) ReconcileMatchableTcpGateway(obj interface{}) *gomock.Call { +// ReconcileRouteOption indicates an expected call of ReconcileRouteOption. +func (mr *MockRouteOptionFinalizerMockRecorder) ReconcileRouteOption(obj interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayFinalizer)(nil).ReconcileMatchableTcpGateway), obj) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileRouteOption", reflect.TypeOf((*MockRouteOptionFinalizer)(nil).ReconcileRouteOption), obj) } -// MockMatchableTcpGatewayReconcileLoop is a mock of MatchableTcpGatewayReconcileLoop interface. -type MockMatchableTcpGatewayReconcileLoop struct { +// RouteOptionFinalizerName mocks base method. +func (m *MockRouteOptionFinalizer) RouteOptionFinalizerName() string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RouteOptionFinalizerName") + ret0, _ := ret[0].(string) + return ret0 +} + +// RouteOptionFinalizerName indicates an expected call of RouteOptionFinalizerName. +func (mr *MockRouteOptionFinalizerMockRecorder) RouteOptionFinalizerName() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RouteOptionFinalizerName", reflect.TypeOf((*MockRouteOptionFinalizer)(nil).RouteOptionFinalizerName)) +} + +// MockRouteOptionReconcileLoop is a mock of RouteOptionReconcileLoop interface. +type MockRouteOptionReconcileLoop struct { ctrl *gomock.Controller - recorder *MockMatchableTcpGatewayReconcileLoopMockRecorder + recorder *MockRouteOptionReconcileLoopMockRecorder } -// MockMatchableTcpGatewayReconcileLoopMockRecorder is the mock recorder for MockMatchableTcpGatewayReconcileLoop. -type MockMatchableTcpGatewayReconcileLoopMockRecorder struct { - mock *MockMatchableTcpGatewayReconcileLoop +// MockRouteOptionReconcileLoopMockRecorder is the mock recorder for MockRouteOptionReconcileLoop. +type MockRouteOptionReconcileLoopMockRecorder struct { + mock *MockRouteOptionReconcileLoop } -// NewMockMatchableTcpGatewayReconcileLoop creates a new mock instance. -func NewMockMatchableTcpGatewayReconcileLoop(ctrl *gomock.Controller) *MockMatchableTcpGatewayReconcileLoop { - mock := &MockMatchableTcpGatewayReconcileLoop{ctrl: ctrl} - mock.recorder = &MockMatchableTcpGatewayReconcileLoopMockRecorder{mock} +// NewMockRouteOptionReconcileLoop creates a new mock instance. +func NewMockRouteOptionReconcileLoop(ctrl *gomock.Controller) *MockRouteOptionReconcileLoop { + mock := &MockRouteOptionReconcileLoop{ctrl: ctrl} + mock.recorder = &MockRouteOptionReconcileLoopMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMatchableTcpGatewayReconcileLoop) EXPECT() *MockMatchableTcpGatewayReconcileLoopMockRecorder { +func (m *MockRouteOptionReconcileLoop) EXPECT() *MockRouteOptionReconcileLoopMockRecorder { return m.recorder } -// RunMatchableTcpGatewayReconciler mocks base method. -func (m *MockMatchableTcpGatewayReconcileLoop) RunMatchableTcpGatewayReconciler(ctx context.Context, rec controller.MatchableTcpGatewayReconciler, predicates ...predicate.Predicate) error { +// RunRouteOptionReconciler mocks base method. +func (m *MockRouteOptionReconcileLoop) RunRouteOptionReconciler(ctx context.Context, rec controller.RouteOptionReconciler, predicates ...predicate.Predicate) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, rec} for _, a := range predicates { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "RunMatchableTcpGatewayReconciler", varargs...) + ret := m.ctrl.Call(m, "RunRouteOptionReconciler", varargs...) ret0, _ := ret[0].(error) return ret0 } -// RunMatchableTcpGatewayReconciler indicates an expected call of RunMatchableTcpGatewayReconciler. -func (mr *MockMatchableTcpGatewayReconcileLoopMockRecorder) RunMatchableTcpGatewayReconciler(ctx, rec interface{}, predicates ...interface{}) *gomock.Call { +// RunRouteOptionReconciler indicates an expected call of RunRouteOptionReconciler. +func (mr *MockRouteOptionReconcileLoopMockRecorder) RunRouteOptionReconciler(ctx, rec interface{}, predicates ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, rec}, predicates...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunMatchableTcpGatewayReconciler", reflect.TypeOf((*MockMatchableTcpGatewayReconcileLoop)(nil).RunMatchableTcpGatewayReconciler), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunRouteOptionReconciler", reflect.TypeOf((*MockRouteOptionReconcileLoop)(nil).RunRouteOptionReconciler), varargs...) } // MockRouteTableReconciler is a mock of RouteTableReconciler interface. @@ -1112,186 +1661,3 @@ func (mr *MockVirtualHostOptionReconcileLoopMockRecorder) RunVirtualHostOptionRe varargs := append([]interface{}{ctx, rec}, predicates...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunVirtualHostOptionReconciler", reflect.TypeOf((*MockVirtualHostOptionReconcileLoop)(nil).RunVirtualHostOptionReconciler), varargs...) } - -// MockRouteOptionReconciler is a mock of RouteOptionReconciler interface. -type MockRouteOptionReconciler struct { - ctrl *gomock.Controller - recorder *MockRouteOptionReconcilerMockRecorder -} - -// MockRouteOptionReconcilerMockRecorder is the mock recorder for MockRouteOptionReconciler. -type MockRouteOptionReconcilerMockRecorder struct { - mock *MockRouteOptionReconciler -} - -// NewMockRouteOptionReconciler creates a new mock instance. -func NewMockRouteOptionReconciler(ctrl *gomock.Controller) *MockRouteOptionReconciler { - mock := &MockRouteOptionReconciler{ctrl: ctrl} - mock.recorder = &MockRouteOptionReconcilerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteOptionReconciler) EXPECT() *MockRouteOptionReconcilerMockRecorder { - return m.recorder -} - -// ReconcileRouteOption mocks base method. -func (m *MockRouteOptionReconciler) ReconcileRouteOption(obj *v1.RouteOption) (reconcile.Result, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReconcileRouteOption", obj) - ret0, _ := ret[0].(reconcile.Result) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ReconcileRouteOption indicates an expected call of ReconcileRouteOption. -func (mr *MockRouteOptionReconcilerMockRecorder) ReconcileRouteOption(obj interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileRouteOption", reflect.TypeOf((*MockRouteOptionReconciler)(nil).ReconcileRouteOption), obj) -} - -// MockRouteOptionDeletionReconciler is a mock of RouteOptionDeletionReconciler interface. -type MockRouteOptionDeletionReconciler struct { - ctrl *gomock.Controller - recorder *MockRouteOptionDeletionReconcilerMockRecorder -} - -// MockRouteOptionDeletionReconcilerMockRecorder is the mock recorder for MockRouteOptionDeletionReconciler. -type MockRouteOptionDeletionReconcilerMockRecorder struct { - mock *MockRouteOptionDeletionReconciler -} - -// NewMockRouteOptionDeletionReconciler creates a new mock instance. -func NewMockRouteOptionDeletionReconciler(ctrl *gomock.Controller) *MockRouteOptionDeletionReconciler { - mock := &MockRouteOptionDeletionReconciler{ctrl: ctrl} - mock.recorder = &MockRouteOptionDeletionReconcilerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteOptionDeletionReconciler) EXPECT() *MockRouteOptionDeletionReconcilerMockRecorder { - return m.recorder -} - -// ReconcileRouteOptionDeletion mocks base method. -func (m *MockRouteOptionDeletionReconciler) ReconcileRouteOptionDeletion(req reconcile.Request) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReconcileRouteOptionDeletion", req) - ret0, _ := ret[0].(error) - return ret0 -} - -// ReconcileRouteOptionDeletion indicates an expected call of ReconcileRouteOptionDeletion. -func (mr *MockRouteOptionDeletionReconcilerMockRecorder) ReconcileRouteOptionDeletion(req interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileRouteOptionDeletion", reflect.TypeOf((*MockRouteOptionDeletionReconciler)(nil).ReconcileRouteOptionDeletion), req) -} - -// MockRouteOptionFinalizer is a mock of RouteOptionFinalizer interface. -type MockRouteOptionFinalizer struct { - ctrl *gomock.Controller - recorder *MockRouteOptionFinalizerMockRecorder -} - -// MockRouteOptionFinalizerMockRecorder is the mock recorder for MockRouteOptionFinalizer. -type MockRouteOptionFinalizerMockRecorder struct { - mock *MockRouteOptionFinalizer -} - -// NewMockRouteOptionFinalizer creates a new mock instance. -func NewMockRouteOptionFinalizer(ctrl *gomock.Controller) *MockRouteOptionFinalizer { - mock := &MockRouteOptionFinalizer{ctrl: ctrl} - mock.recorder = &MockRouteOptionFinalizerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteOptionFinalizer) EXPECT() *MockRouteOptionFinalizerMockRecorder { - return m.recorder -} - -// FinalizeRouteOption mocks base method. -func (m *MockRouteOptionFinalizer) FinalizeRouteOption(obj *v1.RouteOption) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FinalizeRouteOption", obj) - ret0, _ := ret[0].(error) - return ret0 -} - -// FinalizeRouteOption indicates an expected call of FinalizeRouteOption. -func (mr *MockRouteOptionFinalizerMockRecorder) FinalizeRouteOption(obj interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FinalizeRouteOption", reflect.TypeOf((*MockRouteOptionFinalizer)(nil).FinalizeRouteOption), obj) -} - -// ReconcileRouteOption mocks base method. -func (m *MockRouteOptionFinalizer) ReconcileRouteOption(obj *v1.RouteOption) (reconcile.Result, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReconcileRouteOption", obj) - ret0, _ := ret[0].(reconcile.Result) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ReconcileRouteOption indicates an expected call of ReconcileRouteOption. -func (mr *MockRouteOptionFinalizerMockRecorder) ReconcileRouteOption(obj interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileRouteOption", reflect.TypeOf((*MockRouteOptionFinalizer)(nil).ReconcileRouteOption), obj) -} - -// RouteOptionFinalizerName mocks base method. -func (m *MockRouteOptionFinalizer) RouteOptionFinalizerName() string { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RouteOptionFinalizerName") - ret0, _ := ret[0].(string) - return ret0 -} - -// RouteOptionFinalizerName indicates an expected call of RouteOptionFinalizerName. -func (mr *MockRouteOptionFinalizerMockRecorder) RouteOptionFinalizerName() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RouteOptionFinalizerName", reflect.TypeOf((*MockRouteOptionFinalizer)(nil).RouteOptionFinalizerName)) -} - -// MockRouteOptionReconcileLoop is a mock of RouteOptionReconcileLoop interface. -type MockRouteOptionReconcileLoop struct { - ctrl *gomock.Controller - recorder *MockRouteOptionReconcileLoopMockRecorder -} - -// MockRouteOptionReconcileLoopMockRecorder is the mock recorder for MockRouteOptionReconcileLoop. -type MockRouteOptionReconcileLoopMockRecorder struct { - mock *MockRouteOptionReconcileLoop -} - -// NewMockRouteOptionReconcileLoop creates a new mock instance. -func NewMockRouteOptionReconcileLoop(ctrl *gomock.Controller) *MockRouteOptionReconcileLoop { - mock := &MockRouteOptionReconcileLoop{ctrl: ctrl} - mock.recorder = &MockRouteOptionReconcileLoopMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteOptionReconcileLoop) EXPECT() *MockRouteOptionReconcileLoopMockRecorder { - return m.recorder -} - -// RunRouteOptionReconciler mocks base method. -func (m *MockRouteOptionReconcileLoop) RunRouteOptionReconciler(ctx context.Context, rec controller.RouteOptionReconciler, predicates ...predicate.Predicate) error { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, rec} - for _, a := range predicates { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "RunRouteOptionReconciler", varargs...) - ret0, _ := ret[0].(error) - return ret0 -} - -// RunRouteOptionReconciler indicates an expected call of RunRouteOptionReconciler. -func (mr *MockRouteOptionReconcileLoopMockRecorder) RunRouteOptionReconciler(ctx, rec interface{}, predicates ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, rec}, predicates...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunRouteOptionReconciler", reflect.TypeOf((*MockRouteOptionReconcileLoop)(nil).RunRouteOptionReconciler), varargs...) -} diff --git a/pkg/api/gateway.solo.io/v1/controller/multicluster_reconcilers.go b/pkg/api/gateway.solo.io/v1/controller/multicluster_reconcilers.go index 2629a8fee..60862e9cc 100644 --- a/pkg/api/gateway.solo.io/v1/controller/multicluster_reconcilers.go +++ b/pkg/api/gateway.solo.io/v1/controller/multicluster_reconcilers.go @@ -89,6 +89,148 @@ func (g genericGatewayMulticlusterReconciler) Reconcile(cluster string, object e return g.reconciler.ReconcileGateway(cluster, obj) } +// Reconcile Upsert events for the HttpListenerOption Resource across clusters. +// implemented by the user +type MulticlusterHttpListenerOptionReconciler interface { + ReconcileHttpListenerOption(clusterName string, obj *gateway_solo_io_v1.HttpListenerOption) (reconcile.Result, error) +} + +// Reconcile deletion events for the HttpListenerOption Resource across clusters. +// Deletion receives a reconcile.Request as we cannot guarantee the last state of the object +// before being deleted. +// implemented by the user +type MulticlusterHttpListenerOptionDeletionReconciler interface { + ReconcileHttpListenerOptionDeletion(clusterName string, req reconcile.Request) error +} + +type MulticlusterHttpListenerOptionReconcilerFuncs struct { + OnReconcileHttpListenerOption func(clusterName string, obj *gateway_solo_io_v1.HttpListenerOption) (reconcile.Result, error) + OnReconcileHttpListenerOptionDeletion func(clusterName string, req reconcile.Request) error +} + +func (f *MulticlusterHttpListenerOptionReconcilerFuncs) ReconcileHttpListenerOption(clusterName string, obj *gateway_solo_io_v1.HttpListenerOption) (reconcile.Result, error) { + if f.OnReconcileHttpListenerOption == nil { + return reconcile.Result{}, nil + } + return f.OnReconcileHttpListenerOption(clusterName, obj) +} + +func (f *MulticlusterHttpListenerOptionReconcilerFuncs) ReconcileHttpListenerOptionDeletion(clusterName string, req reconcile.Request) error { + if f.OnReconcileHttpListenerOptionDeletion == nil { + return nil + } + return f.OnReconcileHttpListenerOptionDeletion(clusterName, req) +} + +type MulticlusterHttpListenerOptionReconcileLoop interface { + // AddMulticlusterHttpListenerOptionReconciler adds a MulticlusterHttpListenerOptionReconciler to the MulticlusterHttpListenerOptionReconcileLoop. + AddMulticlusterHttpListenerOptionReconciler(ctx context.Context, rec MulticlusterHttpListenerOptionReconciler, predicates ...predicate.Predicate) +} + +type multiclusterHttpListenerOptionReconcileLoop struct { + loop multicluster.Loop +} + +func (m *multiclusterHttpListenerOptionReconcileLoop) AddMulticlusterHttpListenerOptionReconciler(ctx context.Context, rec MulticlusterHttpListenerOptionReconciler, predicates ...predicate.Predicate) { + genericReconciler := genericHttpListenerOptionMulticlusterReconciler{reconciler: rec} + + m.loop.AddReconciler(ctx, genericReconciler, predicates...) +} + +func NewMulticlusterHttpListenerOptionReconcileLoop(name string, cw multicluster.ClusterWatcher, options reconcile.Options) MulticlusterHttpListenerOptionReconcileLoop { + return &multiclusterHttpListenerOptionReconcileLoop{loop: mc_reconcile.NewLoop(name, cw, &gateway_solo_io_v1.HttpListenerOption{}, options)} +} + +type genericHttpListenerOptionMulticlusterReconciler struct { + reconciler MulticlusterHttpListenerOptionReconciler +} + +func (g genericHttpListenerOptionMulticlusterReconciler) ReconcileDeletion(cluster string, req reconcile.Request) error { + if deletionReconciler, ok := g.reconciler.(MulticlusterHttpListenerOptionDeletionReconciler); ok { + return deletionReconciler.ReconcileHttpListenerOptionDeletion(cluster, req) + } + return nil +} + +func (g genericHttpListenerOptionMulticlusterReconciler) Reconcile(cluster string, object ezkube.Object) (reconcile.Result, error) { + obj, ok := object.(*gateway_solo_io_v1.HttpListenerOption) + if !ok { + return reconcile.Result{}, errors.Errorf("internal error: HttpListenerOption handler received event for %T", object) + } + return g.reconciler.ReconcileHttpListenerOption(cluster, obj) +} + +// Reconcile Upsert events for the ListenerOption Resource across clusters. +// implemented by the user +type MulticlusterListenerOptionReconciler interface { + ReconcileListenerOption(clusterName string, obj *gateway_solo_io_v1.ListenerOption) (reconcile.Result, error) +} + +// Reconcile deletion events for the ListenerOption Resource across clusters. +// Deletion receives a reconcile.Request as we cannot guarantee the last state of the object +// before being deleted. +// implemented by the user +type MulticlusterListenerOptionDeletionReconciler interface { + ReconcileListenerOptionDeletion(clusterName string, req reconcile.Request) error +} + +type MulticlusterListenerOptionReconcilerFuncs struct { + OnReconcileListenerOption func(clusterName string, obj *gateway_solo_io_v1.ListenerOption) (reconcile.Result, error) + OnReconcileListenerOptionDeletion func(clusterName string, req reconcile.Request) error +} + +func (f *MulticlusterListenerOptionReconcilerFuncs) ReconcileListenerOption(clusterName string, obj *gateway_solo_io_v1.ListenerOption) (reconcile.Result, error) { + if f.OnReconcileListenerOption == nil { + return reconcile.Result{}, nil + } + return f.OnReconcileListenerOption(clusterName, obj) +} + +func (f *MulticlusterListenerOptionReconcilerFuncs) ReconcileListenerOptionDeletion(clusterName string, req reconcile.Request) error { + if f.OnReconcileListenerOptionDeletion == nil { + return nil + } + return f.OnReconcileListenerOptionDeletion(clusterName, req) +} + +type MulticlusterListenerOptionReconcileLoop interface { + // AddMulticlusterListenerOptionReconciler adds a MulticlusterListenerOptionReconciler to the MulticlusterListenerOptionReconcileLoop. + AddMulticlusterListenerOptionReconciler(ctx context.Context, rec MulticlusterListenerOptionReconciler, predicates ...predicate.Predicate) +} + +type multiclusterListenerOptionReconcileLoop struct { + loop multicluster.Loop +} + +func (m *multiclusterListenerOptionReconcileLoop) AddMulticlusterListenerOptionReconciler(ctx context.Context, rec MulticlusterListenerOptionReconciler, predicates ...predicate.Predicate) { + genericReconciler := genericListenerOptionMulticlusterReconciler{reconciler: rec} + + m.loop.AddReconciler(ctx, genericReconciler, predicates...) +} + +func NewMulticlusterListenerOptionReconcileLoop(name string, cw multicluster.ClusterWatcher, options reconcile.Options) MulticlusterListenerOptionReconcileLoop { + return &multiclusterListenerOptionReconcileLoop{loop: mc_reconcile.NewLoop(name, cw, &gateway_solo_io_v1.ListenerOption{}, options)} +} + +type genericListenerOptionMulticlusterReconciler struct { + reconciler MulticlusterListenerOptionReconciler +} + +func (g genericListenerOptionMulticlusterReconciler) ReconcileDeletion(cluster string, req reconcile.Request) error { + if deletionReconciler, ok := g.reconciler.(MulticlusterListenerOptionDeletionReconciler); ok { + return deletionReconciler.ReconcileListenerOptionDeletion(cluster, req) + } + return nil +} + +func (g genericListenerOptionMulticlusterReconciler) Reconcile(cluster string, object ezkube.Object) (reconcile.Result, error) { + obj, ok := object.(*gateway_solo_io_v1.ListenerOption) + if !ok { + return reconcile.Result{}, errors.Errorf("internal error: ListenerOption handler received event for %T", object) + } + return g.reconciler.ReconcileListenerOption(cluster, obj) +} + // Reconcile Upsert events for the MatchableHttpGateway Resource across clusters. // implemented by the user type MulticlusterMatchableHttpGatewayReconciler interface { @@ -231,6 +373,77 @@ func (g genericMatchableTcpGatewayMulticlusterReconciler) Reconcile(cluster stri return g.reconciler.ReconcileMatchableTcpGateway(cluster, obj) } +// Reconcile Upsert events for the RouteOption Resource across clusters. +// implemented by the user +type MulticlusterRouteOptionReconciler interface { + ReconcileRouteOption(clusterName string, obj *gateway_solo_io_v1.RouteOption) (reconcile.Result, error) +} + +// Reconcile deletion events for the RouteOption Resource across clusters. +// Deletion receives a reconcile.Request as we cannot guarantee the last state of the object +// before being deleted. +// implemented by the user +type MulticlusterRouteOptionDeletionReconciler interface { + ReconcileRouteOptionDeletion(clusterName string, req reconcile.Request) error +} + +type MulticlusterRouteOptionReconcilerFuncs struct { + OnReconcileRouteOption func(clusterName string, obj *gateway_solo_io_v1.RouteOption) (reconcile.Result, error) + OnReconcileRouteOptionDeletion func(clusterName string, req reconcile.Request) error +} + +func (f *MulticlusterRouteOptionReconcilerFuncs) ReconcileRouteOption(clusterName string, obj *gateway_solo_io_v1.RouteOption) (reconcile.Result, error) { + if f.OnReconcileRouteOption == nil { + return reconcile.Result{}, nil + } + return f.OnReconcileRouteOption(clusterName, obj) +} + +func (f *MulticlusterRouteOptionReconcilerFuncs) ReconcileRouteOptionDeletion(clusterName string, req reconcile.Request) error { + if f.OnReconcileRouteOptionDeletion == nil { + return nil + } + return f.OnReconcileRouteOptionDeletion(clusterName, req) +} + +type MulticlusterRouteOptionReconcileLoop interface { + // AddMulticlusterRouteOptionReconciler adds a MulticlusterRouteOptionReconciler to the MulticlusterRouteOptionReconcileLoop. + AddMulticlusterRouteOptionReconciler(ctx context.Context, rec MulticlusterRouteOptionReconciler, predicates ...predicate.Predicate) +} + +type multiclusterRouteOptionReconcileLoop struct { + loop multicluster.Loop +} + +func (m *multiclusterRouteOptionReconcileLoop) AddMulticlusterRouteOptionReconciler(ctx context.Context, rec MulticlusterRouteOptionReconciler, predicates ...predicate.Predicate) { + genericReconciler := genericRouteOptionMulticlusterReconciler{reconciler: rec} + + m.loop.AddReconciler(ctx, genericReconciler, predicates...) +} + +func NewMulticlusterRouteOptionReconcileLoop(name string, cw multicluster.ClusterWatcher, options reconcile.Options) MulticlusterRouteOptionReconcileLoop { + return &multiclusterRouteOptionReconcileLoop{loop: mc_reconcile.NewLoop(name, cw, &gateway_solo_io_v1.RouteOption{}, options)} +} + +type genericRouteOptionMulticlusterReconciler struct { + reconciler MulticlusterRouteOptionReconciler +} + +func (g genericRouteOptionMulticlusterReconciler) ReconcileDeletion(cluster string, req reconcile.Request) error { + if deletionReconciler, ok := g.reconciler.(MulticlusterRouteOptionDeletionReconciler); ok { + return deletionReconciler.ReconcileRouteOptionDeletion(cluster, req) + } + return nil +} + +func (g genericRouteOptionMulticlusterReconciler) Reconcile(cluster string, object ezkube.Object) (reconcile.Result, error) { + obj, ok := object.(*gateway_solo_io_v1.RouteOption) + if !ok { + return reconcile.Result{}, errors.Errorf("internal error: RouteOption handler received event for %T", object) + } + return g.reconciler.ReconcileRouteOption(cluster, obj) +} + // Reconcile Upsert events for the RouteTable Resource across clusters. // implemented by the user type MulticlusterRouteTableReconciler interface { @@ -443,74 +656,3 @@ func (g genericVirtualHostOptionMulticlusterReconciler) Reconcile(cluster string } return g.reconciler.ReconcileVirtualHostOption(cluster, obj) } - -// Reconcile Upsert events for the RouteOption Resource across clusters. -// implemented by the user -type MulticlusterRouteOptionReconciler interface { - ReconcileRouteOption(clusterName string, obj *gateway_solo_io_v1.RouteOption) (reconcile.Result, error) -} - -// Reconcile deletion events for the RouteOption Resource across clusters. -// Deletion receives a reconcile.Request as we cannot guarantee the last state of the object -// before being deleted. -// implemented by the user -type MulticlusterRouteOptionDeletionReconciler interface { - ReconcileRouteOptionDeletion(clusterName string, req reconcile.Request) error -} - -type MulticlusterRouteOptionReconcilerFuncs struct { - OnReconcileRouteOption func(clusterName string, obj *gateway_solo_io_v1.RouteOption) (reconcile.Result, error) - OnReconcileRouteOptionDeletion func(clusterName string, req reconcile.Request) error -} - -func (f *MulticlusterRouteOptionReconcilerFuncs) ReconcileRouteOption(clusterName string, obj *gateway_solo_io_v1.RouteOption) (reconcile.Result, error) { - if f.OnReconcileRouteOption == nil { - return reconcile.Result{}, nil - } - return f.OnReconcileRouteOption(clusterName, obj) -} - -func (f *MulticlusterRouteOptionReconcilerFuncs) ReconcileRouteOptionDeletion(clusterName string, req reconcile.Request) error { - if f.OnReconcileRouteOptionDeletion == nil { - return nil - } - return f.OnReconcileRouteOptionDeletion(clusterName, req) -} - -type MulticlusterRouteOptionReconcileLoop interface { - // AddMulticlusterRouteOptionReconciler adds a MulticlusterRouteOptionReconciler to the MulticlusterRouteOptionReconcileLoop. - AddMulticlusterRouteOptionReconciler(ctx context.Context, rec MulticlusterRouteOptionReconciler, predicates ...predicate.Predicate) -} - -type multiclusterRouteOptionReconcileLoop struct { - loop multicluster.Loop -} - -func (m *multiclusterRouteOptionReconcileLoop) AddMulticlusterRouteOptionReconciler(ctx context.Context, rec MulticlusterRouteOptionReconciler, predicates ...predicate.Predicate) { - genericReconciler := genericRouteOptionMulticlusterReconciler{reconciler: rec} - - m.loop.AddReconciler(ctx, genericReconciler, predicates...) -} - -func NewMulticlusterRouteOptionReconcileLoop(name string, cw multicluster.ClusterWatcher, options reconcile.Options) MulticlusterRouteOptionReconcileLoop { - return &multiclusterRouteOptionReconcileLoop{loop: mc_reconcile.NewLoop(name, cw, &gateway_solo_io_v1.RouteOption{}, options)} -} - -type genericRouteOptionMulticlusterReconciler struct { - reconciler MulticlusterRouteOptionReconciler -} - -func (g genericRouteOptionMulticlusterReconciler) ReconcileDeletion(cluster string, req reconcile.Request) error { - if deletionReconciler, ok := g.reconciler.(MulticlusterRouteOptionDeletionReconciler); ok { - return deletionReconciler.ReconcileRouteOptionDeletion(cluster, req) - } - return nil -} - -func (g genericRouteOptionMulticlusterReconciler) Reconcile(cluster string, object ezkube.Object) (reconcile.Result, error) { - obj, ok := object.(*gateway_solo_io_v1.RouteOption) - if !ok { - return reconcile.Result{}, errors.Errorf("internal error: RouteOption handler received event for %T", object) - } - return g.reconciler.ReconcileRouteOption(cluster, obj) -} diff --git a/pkg/api/gateway.solo.io/v1/controller/reconcilers.go b/pkg/api/gateway.solo.io/v1/controller/reconcilers.go index be3c3b42e..16db8eabb 100644 --- a/pkg/api/gateway.solo.io/v1/controller/reconcilers.go +++ b/pkg/api/gateway.solo.io/v1/controller/reconcilers.go @@ -134,6 +134,240 @@ func (r genericGatewayFinalizer) Finalize(object ezkube.Object) error { return r.finalizingReconciler.FinalizeGateway(obj) } +// Reconcile Upsert events for the HttpListenerOption Resource. +// implemented by the user +type HttpListenerOptionReconciler interface { + ReconcileHttpListenerOption(obj *gateway_solo_io_v1.HttpListenerOption) (reconcile.Result, error) +} + +// Reconcile deletion events for the HttpListenerOption Resource. +// Deletion receives a reconcile.Request as we cannot guarantee the last state of the object +// before being deleted. +// implemented by the user +type HttpListenerOptionDeletionReconciler interface { + ReconcileHttpListenerOptionDeletion(req reconcile.Request) error +} + +type HttpListenerOptionReconcilerFuncs struct { + OnReconcileHttpListenerOption func(obj *gateway_solo_io_v1.HttpListenerOption) (reconcile.Result, error) + OnReconcileHttpListenerOptionDeletion func(req reconcile.Request) error +} + +func (f *HttpListenerOptionReconcilerFuncs) ReconcileHttpListenerOption(obj *gateway_solo_io_v1.HttpListenerOption) (reconcile.Result, error) { + if f.OnReconcileHttpListenerOption == nil { + return reconcile.Result{}, nil + } + return f.OnReconcileHttpListenerOption(obj) +} + +func (f *HttpListenerOptionReconcilerFuncs) ReconcileHttpListenerOptionDeletion(req reconcile.Request) error { + if f.OnReconcileHttpListenerOptionDeletion == nil { + return nil + } + return f.OnReconcileHttpListenerOptionDeletion(req) +} + +// Reconcile and finalize the HttpListenerOption Resource +// implemented by the user +type HttpListenerOptionFinalizer interface { + HttpListenerOptionReconciler + + // name of the finalizer used by this handler. + // finalizer names should be unique for a single task + HttpListenerOptionFinalizerName() string + + // finalize the object before it is deleted. + // Watchers created with a finalizing handler will a + FinalizeHttpListenerOption(obj *gateway_solo_io_v1.HttpListenerOption) error +} + +type HttpListenerOptionReconcileLoop interface { + RunHttpListenerOptionReconciler(ctx context.Context, rec HttpListenerOptionReconciler, predicates ...predicate.Predicate) error +} + +type httpListenerOptionReconcileLoop struct { + loop reconcile.Loop +} + +func NewHttpListenerOptionReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) HttpListenerOptionReconcileLoop { + return &httpListenerOptionReconcileLoop{ + // empty cluster indicates this reconciler is built for the local cluster + loop: reconcile.NewLoop(name, "", mgr, &gateway_solo_io_v1.HttpListenerOption{}, options), + } +} + +func (c *httpListenerOptionReconcileLoop) RunHttpListenerOptionReconciler(ctx context.Context, reconciler HttpListenerOptionReconciler, predicates ...predicate.Predicate) error { + genericReconciler := genericHttpListenerOptionReconciler{ + reconciler: reconciler, + } + + var reconcilerWrapper reconcile.Reconciler + if finalizingReconciler, ok := reconciler.(HttpListenerOptionFinalizer); ok { + reconcilerWrapper = genericHttpListenerOptionFinalizer{ + genericHttpListenerOptionReconciler: genericReconciler, + finalizingReconciler: finalizingReconciler, + } + } else { + reconcilerWrapper = genericReconciler + } + return c.loop.RunReconciler(ctx, reconcilerWrapper, predicates...) +} + +// genericHttpListenerOptionHandler implements a generic reconcile.Reconciler +type genericHttpListenerOptionReconciler struct { + reconciler HttpListenerOptionReconciler +} + +func (r genericHttpListenerOptionReconciler) Reconcile(object ezkube.Object) (reconcile.Result, error) { + obj, ok := object.(*gateway_solo_io_v1.HttpListenerOption) + if !ok { + return reconcile.Result{}, errors.Errorf("internal error: HttpListenerOption handler received event for %T", object) + } + return r.reconciler.ReconcileHttpListenerOption(obj) +} + +func (r genericHttpListenerOptionReconciler) ReconcileDeletion(request reconcile.Request) error { + if deletionReconciler, ok := r.reconciler.(HttpListenerOptionDeletionReconciler); ok { + return deletionReconciler.ReconcileHttpListenerOptionDeletion(request) + } + return nil +} + +// genericHttpListenerOptionFinalizer implements a generic reconcile.FinalizingReconciler +type genericHttpListenerOptionFinalizer struct { + genericHttpListenerOptionReconciler + finalizingReconciler HttpListenerOptionFinalizer +} + +func (r genericHttpListenerOptionFinalizer) FinalizerName() string { + return r.finalizingReconciler.HttpListenerOptionFinalizerName() +} + +func (r genericHttpListenerOptionFinalizer) Finalize(object ezkube.Object) error { + obj, ok := object.(*gateway_solo_io_v1.HttpListenerOption) + if !ok { + return errors.Errorf("internal error: HttpListenerOption handler received event for %T", object) + } + return r.finalizingReconciler.FinalizeHttpListenerOption(obj) +} + +// Reconcile Upsert events for the ListenerOption Resource. +// implemented by the user +type ListenerOptionReconciler interface { + ReconcileListenerOption(obj *gateway_solo_io_v1.ListenerOption) (reconcile.Result, error) +} + +// Reconcile deletion events for the ListenerOption Resource. +// Deletion receives a reconcile.Request as we cannot guarantee the last state of the object +// before being deleted. +// implemented by the user +type ListenerOptionDeletionReconciler interface { + ReconcileListenerOptionDeletion(req reconcile.Request) error +} + +type ListenerOptionReconcilerFuncs struct { + OnReconcileListenerOption func(obj *gateway_solo_io_v1.ListenerOption) (reconcile.Result, error) + OnReconcileListenerOptionDeletion func(req reconcile.Request) error +} + +func (f *ListenerOptionReconcilerFuncs) ReconcileListenerOption(obj *gateway_solo_io_v1.ListenerOption) (reconcile.Result, error) { + if f.OnReconcileListenerOption == nil { + return reconcile.Result{}, nil + } + return f.OnReconcileListenerOption(obj) +} + +func (f *ListenerOptionReconcilerFuncs) ReconcileListenerOptionDeletion(req reconcile.Request) error { + if f.OnReconcileListenerOptionDeletion == nil { + return nil + } + return f.OnReconcileListenerOptionDeletion(req) +} + +// Reconcile and finalize the ListenerOption Resource +// implemented by the user +type ListenerOptionFinalizer interface { + ListenerOptionReconciler + + // name of the finalizer used by this handler. + // finalizer names should be unique for a single task + ListenerOptionFinalizerName() string + + // finalize the object before it is deleted. + // Watchers created with a finalizing handler will a + FinalizeListenerOption(obj *gateway_solo_io_v1.ListenerOption) error +} + +type ListenerOptionReconcileLoop interface { + RunListenerOptionReconciler(ctx context.Context, rec ListenerOptionReconciler, predicates ...predicate.Predicate) error +} + +type listenerOptionReconcileLoop struct { + loop reconcile.Loop +} + +func NewListenerOptionReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) ListenerOptionReconcileLoop { + return &listenerOptionReconcileLoop{ + // empty cluster indicates this reconciler is built for the local cluster + loop: reconcile.NewLoop(name, "", mgr, &gateway_solo_io_v1.ListenerOption{}, options), + } +} + +func (c *listenerOptionReconcileLoop) RunListenerOptionReconciler(ctx context.Context, reconciler ListenerOptionReconciler, predicates ...predicate.Predicate) error { + genericReconciler := genericListenerOptionReconciler{ + reconciler: reconciler, + } + + var reconcilerWrapper reconcile.Reconciler + if finalizingReconciler, ok := reconciler.(ListenerOptionFinalizer); ok { + reconcilerWrapper = genericListenerOptionFinalizer{ + genericListenerOptionReconciler: genericReconciler, + finalizingReconciler: finalizingReconciler, + } + } else { + reconcilerWrapper = genericReconciler + } + return c.loop.RunReconciler(ctx, reconcilerWrapper, predicates...) +} + +// genericListenerOptionHandler implements a generic reconcile.Reconciler +type genericListenerOptionReconciler struct { + reconciler ListenerOptionReconciler +} + +func (r genericListenerOptionReconciler) Reconcile(object ezkube.Object) (reconcile.Result, error) { + obj, ok := object.(*gateway_solo_io_v1.ListenerOption) + if !ok { + return reconcile.Result{}, errors.Errorf("internal error: ListenerOption handler received event for %T", object) + } + return r.reconciler.ReconcileListenerOption(obj) +} + +func (r genericListenerOptionReconciler) ReconcileDeletion(request reconcile.Request) error { + if deletionReconciler, ok := r.reconciler.(ListenerOptionDeletionReconciler); ok { + return deletionReconciler.ReconcileListenerOptionDeletion(request) + } + return nil +} + +// genericListenerOptionFinalizer implements a generic reconcile.FinalizingReconciler +type genericListenerOptionFinalizer struct { + genericListenerOptionReconciler + finalizingReconciler ListenerOptionFinalizer +} + +func (r genericListenerOptionFinalizer) FinalizerName() string { + return r.finalizingReconciler.ListenerOptionFinalizerName() +} + +func (r genericListenerOptionFinalizer) Finalize(object ezkube.Object) error { + obj, ok := object.(*gateway_solo_io_v1.ListenerOption) + if !ok { + return errors.Errorf("internal error: ListenerOption handler received event for %T", object) + } + return r.finalizingReconciler.FinalizeListenerOption(obj) +} + // Reconcile Upsert events for the MatchableHttpGateway Resource. // implemented by the user type MatchableHttpGatewayReconciler interface { @@ -368,6 +602,123 @@ func (r genericMatchableTcpGatewayFinalizer) Finalize(object ezkube.Object) erro return r.finalizingReconciler.FinalizeMatchableTcpGateway(obj) } +// Reconcile Upsert events for the RouteOption Resource. +// implemented by the user +type RouteOptionReconciler interface { + ReconcileRouteOption(obj *gateway_solo_io_v1.RouteOption) (reconcile.Result, error) +} + +// Reconcile deletion events for the RouteOption Resource. +// Deletion receives a reconcile.Request as we cannot guarantee the last state of the object +// before being deleted. +// implemented by the user +type RouteOptionDeletionReconciler interface { + ReconcileRouteOptionDeletion(req reconcile.Request) error +} + +type RouteOptionReconcilerFuncs struct { + OnReconcileRouteOption func(obj *gateway_solo_io_v1.RouteOption) (reconcile.Result, error) + OnReconcileRouteOptionDeletion func(req reconcile.Request) error +} + +func (f *RouteOptionReconcilerFuncs) ReconcileRouteOption(obj *gateway_solo_io_v1.RouteOption) (reconcile.Result, error) { + if f.OnReconcileRouteOption == nil { + return reconcile.Result{}, nil + } + return f.OnReconcileRouteOption(obj) +} + +func (f *RouteOptionReconcilerFuncs) ReconcileRouteOptionDeletion(req reconcile.Request) error { + if f.OnReconcileRouteOptionDeletion == nil { + return nil + } + return f.OnReconcileRouteOptionDeletion(req) +} + +// Reconcile and finalize the RouteOption Resource +// implemented by the user +type RouteOptionFinalizer interface { + RouteOptionReconciler + + // name of the finalizer used by this handler. + // finalizer names should be unique for a single task + RouteOptionFinalizerName() string + + // finalize the object before it is deleted. + // Watchers created with a finalizing handler will a + FinalizeRouteOption(obj *gateway_solo_io_v1.RouteOption) error +} + +type RouteOptionReconcileLoop interface { + RunRouteOptionReconciler(ctx context.Context, rec RouteOptionReconciler, predicates ...predicate.Predicate) error +} + +type routeOptionReconcileLoop struct { + loop reconcile.Loop +} + +func NewRouteOptionReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) RouteOptionReconcileLoop { + return &routeOptionReconcileLoop{ + // empty cluster indicates this reconciler is built for the local cluster + loop: reconcile.NewLoop(name, "", mgr, &gateway_solo_io_v1.RouteOption{}, options), + } +} + +func (c *routeOptionReconcileLoop) RunRouteOptionReconciler(ctx context.Context, reconciler RouteOptionReconciler, predicates ...predicate.Predicate) error { + genericReconciler := genericRouteOptionReconciler{ + reconciler: reconciler, + } + + var reconcilerWrapper reconcile.Reconciler + if finalizingReconciler, ok := reconciler.(RouteOptionFinalizer); ok { + reconcilerWrapper = genericRouteOptionFinalizer{ + genericRouteOptionReconciler: genericReconciler, + finalizingReconciler: finalizingReconciler, + } + } else { + reconcilerWrapper = genericReconciler + } + return c.loop.RunReconciler(ctx, reconcilerWrapper, predicates...) +} + +// genericRouteOptionHandler implements a generic reconcile.Reconciler +type genericRouteOptionReconciler struct { + reconciler RouteOptionReconciler +} + +func (r genericRouteOptionReconciler) Reconcile(object ezkube.Object) (reconcile.Result, error) { + obj, ok := object.(*gateway_solo_io_v1.RouteOption) + if !ok { + return reconcile.Result{}, errors.Errorf("internal error: RouteOption handler received event for %T", object) + } + return r.reconciler.ReconcileRouteOption(obj) +} + +func (r genericRouteOptionReconciler) ReconcileDeletion(request reconcile.Request) error { + if deletionReconciler, ok := r.reconciler.(RouteOptionDeletionReconciler); ok { + return deletionReconciler.ReconcileRouteOptionDeletion(request) + } + return nil +} + +// genericRouteOptionFinalizer implements a generic reconcile.FinalizingReconciler +type genericRouteOptionFinalizer struct { + genericRouteOptionReconciler + finalizingReconciler RouteOptionFinalizer +} + +func (r genericRouteOptionFinalizer) FinalizerName() string { + return r.finalizingReconciler.RouteOptionFinalizerName() +} + +func (r genericRouteOptionFinalizer) Finalize(object ezkube.Object) error { + obj, ok := object.(*gateway_solo_io_v1.RouteOption) + if !ok { + return errors.Errorf("internal error: RouteOption handler received event for %T", object) + } + return r.finalizingReconciler.FinalizeRouteOption(obj) +} + // Reconcile Upsert events for the RouteTable Resource. // implemented by the user type RouteTableReconciler interface { @@ -718,120 +1069,3 @@ func (r genericVirtualHostOptionFinalizer) Finalize(object ezkube.Object) error } return r.finalizingReconciler.FinalizeVirtualHostOption(obj) } - -// Reconcile Upsert events for the RouteOption Resource. -// implemented by the user -type RouteOptionReconciler interface { - ReconcileRouteOption(obj *gateway_solo_io_v1.RouteOption) (reconcile.Result, error) -} - -// Reconcile deletion events for the RouteOption Resource. -// Deletion receives a reconcile.Request as we cannot guarantee the last state of the object -// before being deleted. -// implemented by the user -type RouteOptionDeletionReconciler interface { - ReconcileRouteOptionDeletion(req reconcile.Request) error -} - -type RouteOptionReconcilerFuncs struct { - OnReconcileRouteOption func(obj *gateway_solo_io_v1.RouteOption) (reconcile.Result, error) - OnReconcileRouteOptionDeletion func(req reconcile.Request) error -} - -func (f *RouteOptionReconcilerFuncs) ReconcileRouteOption(obj *gateway_solo_io_v1.RouteOption) (reconcile.Result, error) { - if f.OnReconcileRouteOption == nil { - return reconcile.Result{}, nil - } - return f.OnReconcileRouteOption(obj) -} - -func (f *RouteOptionReconcilerFuncs) ReconcileRouteOptionDeletion(req reconcile.Request) error { - if f.OnReconcileRouteOptionDeletion == nil { - return nil - } - return f.OnReconcileRouteOptionDeletion(req) -} - -// Reconcile and finalize the RouteOption Resource -// implemented by the user -type RouteOptionFinalizer interface { - RouteOptionReconciler - - // name of the finalizer used by this handler. - // finalizer names should be unique for a single task - RouteOptionFinalizerName() string - - // finalize the object before it is deleted. - // Watchers created with a finalizing handler will a - FinalizeRouteOption(obj *gateway_solo_io_v1.RouteOption) error -} - -type RouteOptionReconcileLoop interface { - RunRouteOptionReconciler(ctx context.Context, rec RouteOptionReconciler, predicates ...predicate.Predicate) error -} - -type routeOptionReconcileLoop struct { - loop reconcile.Loop -} - -func NewRouteOptionReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) RouteOptionReconcileLoop { - return &routeOptionReconcileLoop{ - // empty cluster indicates this reconciler is built for the local cluster - loop: reconcile.NewLoop(name, "", mgr, &gateway_solo_io_v1.RouteOption{}, options), - } -} - -func (c *routeOptionReconcileLoop) RunRouteOptionReconciler(ctx context.Context, reconciler RouteOptionReconciler, predicates ...predicate.Predicate) error { - genericReconciler := genericRouteOptionReconciler{ - reconciler: reconciler, - } - - var reconcilerWrapper reconcile.Reconciler - if finalizingReconciler, ok := reconciler.(RouteOptionFinalizer); ok { - reconcilerWrapper = genericRouteOptionFinalizer{ - genericRouteOptionReconciler: genericReconciler, - finalizingReconciler: finalizingReconciler, - } - } else { - reconcilerWrapper = genericReconciler - } - return c.loop.RunReconciler(ctx, reconcilerWrapper, predicates...) -} - -// genericRouteOptionHandler implements a generic reconcile.Reconciler -type genericRouteOptionReconciler struct { - reconciler RouteOptionReconciler -} - -func (r genericRouteOptionReconciler) Reconcile(object ezkube.Object) (reconcile.Result, error) { - obj, ok := object.(*gateway_solo_io_v1.RouteOption) - if !ok { - return reconcile.Result{}, errors.Errorf("internal error: RouteOption handler received event for %T", object) - } - return r.reconciler.ReconcileRouteOption(obj) -} - -func (r genericRouteOptionReconciler) ReconcileDeletion(request reconcile.Request) error { - if deletionReconciler, ok := r.reconciler.(RouteOptionDeletionReconciler); ok { - return deletionReconciler.ReconcileRouteOptionDeletion(request) - } - return nil -} - -// genericRouteOptionFinalizer implements a generic reconcile.FinalizingReconciler -type genericRouteOptionFinalizer struct { - genericRouteOptionReconciler - finalizingReconciler RouteOptionFinalizer -} - -func (r genericRouteOptionFinalizer) FinalizerName() string { - return r.finalizingReconciler.RouteOptionFinalizerName() -} - -func (r genericRouteOptionFinalizer) Finalize(object ezkube.Object) error { - obj, ok := object.(*gateway_solo_io_v1.RouteOption) - if !ok { - return errors.Errorf("internal error: RouteOption handler received event for %T", object) - } - return r.finalizingReconciler.FinalizeRouteOption(obj) -} diff --git a/pkg/api/gateway.solo.io/v1/external_options.pb.clone.go b/pkg/api/gateway.solo.io/v1/external_options.pb.clone.go index 969859502..71d039304 100644 --- a/pkg/api/gateway.solo.io/v1/external_options.pb.clone.go +++ b/pkg/api/gateway.solo.io/v1/external_options.pb.clone.go @@ -92,12 +92,12 @@ func (m *RouteOptionSpec) Clone() proto.Message { } // Clone function -func (m *ListenerOption) Clone() proto.Message { - var target *ListenerOption +func (m *ListenerOptionSpec) Clone() proto.Message { + var target *ListenerOptionSpec if m == nil { return target } - target = &ListenerOption{} + target = &ListenerOptionSpec{} if h, ok := interface{}(m.GetOptions()).(clone.Cloner); ok { target.Options = h.Clone().(*github_com_solo_io_solo_apis_pkg_api_gloo_solo_io_v1.ListenerOptions) @@ -122,12 +122,12 @@ func (m *ListenerOption) Clone() proto.Message { } // Clone function -func (m *HttpListenerOption) Clone() proto.Message { - var target *HttpListenerOption +func (m *HttpListenerOptionSpec) Clone() proto.Message { + var target *HttpListenerOptionSpec if m == nil { return target } - target = &HttpListenerOption{} + target = &HttpListenerOptionSpec{} if h, ok := interface{}(m.GetOptions()).(clone.Cloner); ok { target.Options = h.Clone().(*github_com_solo_io_solo_apis_pkg_api_gloo_solo_io_v1.HttpListenerOptions) @@ -152,12 +152,12 @@ func (m *HttpListenerOption) Clone() proto.Message { } // Clone function -func (m *VirtualHostOptionStatus) Clone() proto.Message { - var target *VirtualHostOptionStatus +func (m *HttpListenerOptionStatus) Clone() proto.Message { + var target *HttpListenerOptionStatus if m == nil { return target } - target = &VirtualHostOptionStatus{} + target = &HttpListenerOptionStatus{} target.State = m.GetState() @@ -166,13 +166,13 @@ func (m *VirtualHostOptionStatus) Clone() proto.Message { target.ReportedBy = m.GetReportedBy() if m.GetSubresourceStatuses() != nil { - target.SubresourceStatuses = make(map[string]*VirtualHostOptionStatus, len(m.GetSubresourceStatuses())) + target.SubresourceStatuses = make(map[string]*HttpListenerOptionStatus, len(m.GetSubresourceStatuses())) for k, v := range m.GetSubresourceStatuses() { if h, ok := interface{}(v).(clone.Cloner); ok { - target.SubresourceStatuses[k] = h.Clone().(*VirtualHostOptionStatus) + target.SubresourceStatuses[k] = h.Clone().(*HttpListenerOptionStatus) } else { - target.SubresourceStatuses[k] = proto.Clone(v).(*VirtualHostOptionStatus) + target.SubresourceStatuses[k] = proto.Clone(v).(*HttpListenerOptionStatus) } } @@ -188,21 +188,81 @@ func (m *VirtualHostOptionStatus) Clone() proto.Message { } // Clone function -func (m *VirtualHostOptionNamespacedStatuses) Clone() proto.Message { - var target *VirtualHostOptionNamespacedStatuses +func (m *HttpListenerOptionNamespacedStatuses) Clone() proto.Message { + var target *HttpListenerOptionNamespacedStatuses if m == nil { return target } - target = &VirtualHostOptionNamespacedStatuses{} + target = &HttpListenerOptionNamespacedStatuses{} if m.GetStatuses() != nil { - target.Statuses = make(map[string]*VirtualHostOptionStatus, len(m.GetStatuses())) + target.Statuses = make(map[string]*HttpListenerOptionStatus, len(m.GetStatuses())) for k, v := range m.GetStatuses() { if h, ok := interface{}(v).(clone.Cloner); ok { - target.Statuses[k] = h.Clone().(*VirtualHostOptionStatus) + target.Statuses[k] = h.Clone().(*HttpListenerOptionStatus) } else { - target.Statuses[k] = proto.Clone(v).(*VirtualHostOptionStatus) + target.Statuses[k] = proto.Clone(v).(*HttpListenerOptionStatus) + } + + } + } + + return target +} + +// Clone function +func (m *ListenerOptionStatus) Clone() proto.Message { + var target *ListenerOptionStatus + if m == nil { + return target + } + target = &ListenerOptionStatus{} + + target.State = m.GetState() + + target.Reason = m.GetReason() + + target.ReportedBy = m.GetReportedBy() + + if m.GetSubresourceStatuses() != nil { + target.SubresourceStatuses = make(map[string]*ListenerOptionStatus, len(m.GetSubresourceStatuses())) + for k, v := range m.GetSubresourceStatuses() { + + if h, ok := interface{}(v).(clone.Cloner); ok { + target.SubresourceStatuses[k] = h.Clone().(*ListenerOptionStatus) + } else { + target.SubresourceStatuses[k] = proto.Clone(v).(*ListenerOptionStatus) + } + + } + } + + if h, ok := interface{}(m.GetDetails()).(clone.Cloner); ok { + target.Details = h.Clone().(*github_com_golang_protobuf_ptypes_struct.Struct) + } else { + target.Details = proto.Clone(m.GetDetails()).(*github_com_golang_protobuf_ptypes_struct.Struct) + } + + return target +} + +// Clone function +func (m *ListenerOptionNamespacedStatuses) Clone() proto.Message { + var target *ListenerOptionNamespacedStatuses + if m == nil { + return target + } + target = &ListenerOptionNamespacedStatuses{} + + if m.GetStatuses() != nil { + target.Statuses = make(map[string]*ListenerOptionStatus, len(m.GetStatuses())) + for k, v := range m.GetStatuses() { + + if h, ok := interface{}(v).(clone.Cloner); ok { + target.Statuses[k] = h.Clone().(*ListenerOptionStatus) + } else { + target.Statuses[k] = proto.Clone(v).(*ListenerOptionStatus) } } @@ -270,3 +330,63 @@ func (m *RouteOptionNamespacedStatuses) Clone() proto.Message { return target } + +// Clone function +func (m *VirtualHostOptionStatus) Clone() proto.Message { + var target *VirtualHostOptionStatus + if m == nil { + return target + } + target = &VirtualHostOptionStatus{} + + target.State = m.GetState() + + target.Reason = m.GetReason() + + target.ReportedBy = m.GetReportedBy() + + if m.GetSubresourceStatuses() != nil { + target.SubresourceStatuses = make(map[string]*VirtualHostOptionStatus, len(m.GetSubresourceStatuses())) + for k, v := range m.GetSubresourceStatuses() { + + if h, ok := interface{}(v).(clone.Cloner); ok { + target.SubresourceStatuses[k] = h.Clone().(*VirtualHostOptionStatus) + } else { + target.SubresourceStatuses[k] = proto.Clone(v).(*VirtualHostOptionStatus) + } + + } + } + + if h, ok := interface{}(m.GetDetails()).(clone.Cloner); ok { + target.Details = h.Clone().(*github_com_golang_protobuf_ptypes_struct.Struct) + } else { + target.Details = proto.Clone(m.GetDetails()).(*github_com_golang_protobuf_ptypes_struct.Struct) + } + + return target +} + +// Clone function +func (m *VirtualHostOptionNamespacedStatuses) Clone() proto.Message { + var target *VirtualHostOptionNamespacedStatuses + if m == nil { + return target + } + target = &VirtualHostOptionNamespacedStatuses{} + + if m.GetStatuses() != nil { + target.Statuses = make(map[string]*VirtualHostOptionStatus, len(m.GetStatuses())) + for k, v := range m.GetStatuses() { + + if h, ok := interface{}(v).(clone.Cloner); ok { + target.Statuses[k] = h.Clone().(*VirtualHostOptionStatus) + } else { + target.Statuses[k] = proto.Clone(v).(*VirtualHostOptionStatus) + } + + } + } + + return target +} diff --git a/pkg/api/gateway.solo.io/v1/external_options.pb.equal.go b/pkg/api/gateway.solo.io/v1/external_options.pb.equal.go index a8b63dd4a..6940061ee 100644 --- a/pkg/api/gateway.solo.io/v1/external_options.pb.equal.go +++ b/pkg/api/gateway.solo.io/v1/external_options.pb.equal.go @@ -128,14 +128,14 @@ func (m *RouteOptionSpec) Equal(that interface{}) bool { } // Equal function -func (m *ListenerOption) Equal(that interface{}) bool { +func (m *ListenerOptionSpec) Equal(that interface{}) bool { if that == nil { return m == nil } - target, ok := that.(*ListenerOption) + target, ok := that.(*ListenerOptionSpec) if !ok { - that2, ok := that.(ListenerOption) + that2, ok := that.(ListenerOptionSpec) if ok { target = &that2 } else { @@ -179,14 +179,14 @@ func (m *ListenerOption) Equal(that interface{}) bool { } // Equal function -func (m *HttpListenerOption) Equal(that interface{}) bool { +func (m *HttpListenerOptionSpec) Equal(that interface{}) bool { if that == nil { return m == nil } - target, ok := that.(*HttpListenerOption) + target, ok := that.(*HttpListenerOptionSpec) if !ok { - that2, ok := that.(HttpListenerOption) + that2, ok := that.(HttpListenerOptionSpec) if ok { target = &that2 } else { @@ -230,14 +230,14 @@ func (m *HttpListenerOption) Equal(that interface{}) bool { } // Equal function -func (m *VirtualHostOptionStatus) Equal(that interface{}) bool { +func (m *HttpListenerOptionStatus) Equal(that interface{}) bool { if that == nil { return m == nil } - target, ok := that.(*VirtualHostOptionStatus) + target, ok := that.(*HttpListenerOptionStatus) if !ok { - that2, ok := that.(VirtualHostOptionStatus) + that2, ok := that.(HttpListenerOptionStatus) if ok { target = &that2 } else { @@ -293,14 +293,118 @@ func (m *VirtualHostOptionStatus) Equal(that interface{}) bool { } // Equal function -func (m *VirtualHostOptionNamespacedStatuses) Equal(that interface{}) bool { +func (m *HttpListenerOptionNamespacedStatuses) Equal(that interface{}) bool { if that == nil { return m == nil } - target, ok := that.(*VirtualHostOptionNamespacedStatuses) + target, ok := that.(*HttpListenerOptionNamespacedStatuses) if !ok { - that2, ok := that.(VirtualHostOptionNamespacedStatuses) + that2, ok := that.(HttpListenerOptionNamespacedStatuses) + if ok { + target = &that2 + } else { + return false + } + } + if target == nil { + return m == nil + } else if m == nil { + return false + } + + if len(m.GetStatuses()) != len(target.GetStatuses()) { + return false + } + for k, v := range m.GetStatuses() { + + if h, ok := interface{}(v).(equality.Equalizer); ok { + if !h.Equal(target.GetStatuses()[k]) { + return false + } + } else { + if !proto.Equal(v, target.GetStatuses()[k]) { + return false + } + } + + } + + return true +} + +// Equal function +func (m *ListenerOptionStatus) Equal(that interface{}) bool { + if that == nil { + return m == nil + } + + target, ok := that.(*ListenerOptionStatus) + if !ok { + that2, ok := that.(ListenerOptionStatus) + if ok { + target = &that2 + } else { + return false + } + } + if target == nil { + return m == nil + } else if m == nil { + return false + } + + if m.GetState() != target.GetState() { + return false + } + + if strings.Compare(m.GetReason(), target.GetReason()) != 0 { + return false + } + + if strings.Compare(m.GetReportedBy(), target.GetReportedBy()) != 0 { + return false + } + + if len(m.GetSubresourceStatuses()) != len(target.GetSubresourceStatuses()) { + return false + } + for k, v := range m.GetSubresourceStatuses() { + + if h, ok := interface{}(v).(equality.Equalizer); ok { + if !h.Equal(target.GetSubresourceStatuses()[k]) { + return false + } + } else { + if !proto.Equal(v, target.GetSubresourceStatuses()[k]) { + return false + } + } + + } + + if h, ok := interface{}(m.GetDetails()).(equality.Equalizer); ok { + if !h.Equal(target.GetDetails()) { + return false + } + } else { + if !proto.Equal(m.GetDetails(), target.GetDetails()) { + return false + } + } + + return true +} + +// Equal function +func (m *ListenerOptionNamespacedStatuses) Equal(that interface{}) bool { + if that == nil { + return m == nil + } + + target, ok := that.(*ListenerOptionNamespacedStatuses) + if !ok { + that2, ok := that.(ListenerOptionNamespacedStatuses) if ok { target = &that2 } else { @@ -436,3 +540,107 @@ func (m *RouteOptionNamespacedStatuses) Equal(that interface{}) bool { return true } + +// Equal function +func (m *VirtualHostOptionStatus) Equal(that interface{}) bool { + if that == nil { + return m == nil + } + + target, ok := that.(*VirtualHostOptionStatus) + if !ok { + that2, ok := that.(VirtualHostOptionStatus) + if ok { + target = &that2 + } else { + return false + } + } + if target == nil { + return m == nil + } else if m == nil { + return false + } + + if m.GetState() != target.GetState() { + return false + } + + if strings.Compare(m.GetReason(), target.GetReason()) != 0 { + return false + } + + if strings.Compare(m.GetReportedBy(), target.GetReportedBy()) != 0 { + return false + } + + if len(m.GetSubresourceStatuses()) != len(target.GetSubresourceStatuses()) { + return false + } + for k, v := range m.GetSubresourceStatuses() { + + if h, ok := interface{}(v).(equality.Equalizer); ok { + if !h.Equal(target.GetSubresourceStatuses()[k]) { + return false + } + } else { + if !proto.Equal(v, target.GetSubresourceStatuses()[k]) { + return false + } + } + + } + + if h, ok := interface{}(m.GetDetails()).(equality.Equalizer); ok { + if !h.Equal(target.GetDetails()) { + return false + } + } else { + if !proto.Equal(m.GetDetails(), target.GetDetails()) { + return false + } + } + + return true +} + +// Equal function +func (m *VirtualHostOptionNamespacedStatuses) Equal(that interface{}) bool { + if that == nil { + return m == nil + } + + target, ok := that.(*VirtualHostOptionNamespacedStatuses) + if !ok { + that2, ok := that.(VirtualHostOptionNamespacedStatuses) + if ok { + target = &that2 + } else { + return false + } + } + if target == nil { + return m == nil + } else if m == nil { + return false + } + + if len(m.GetStatuses()) != len(target.GetStatuses()) { + return false + } + for k, v := range m.GetStatuses() { + + if h, ok := interface{}(v).(equality.Equalizer); ok { + if !h.Equal(target.GetStatuses()[k]) { + return false + } + } else { + if !proto.Equal(v, target.GetStatuses()[k]) { + return false + } + } + + } + + return true +} diff --git a/pkg/api/gateway.solo.io/v1/external_options.pb.go b/pkg/api/gateway.solo.io/v1/external_options.pb.go index 59a756bcc..59005e27d 100644 --- a/pkg/api/gateway.solo.io/v1/external_options.pb.go +++ b/pkg/api/gateway.solo.io/v1/external_options.pb.go @@ -27,30 +27,30 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type VirtualHostOptionStatus_State int32 +type HttpListenerOptionStatus_State int32 const ( // Pending status indicates the resource has not yet been validated - VirtualHostOptionStatus_Pending VirtualHostOptionStatus_State = 0 + HttpListenerOptionStatus_Pending HttpListenerOptionStatus_State = 0 // Accepted indicates the resource has been validated - VirtualHostOptionStatus_Accepted VirtualHostOptionStatus_State = 1 + HttpListenerOptionStatus_Accepted HttpListenerOptionStatus_State = 1 // Rejected indicates an invalid configuration by the user // Rejected resources may be propagated to the xDS server depending on their severity - VirtualHostOptionStatus_Rejected VirtualHostOptionStatus_State = 2 + HttpListenerOptionStatus_Rejected HttpListenerOptionStatus_State = 2 // Warning indicates a partially invalid configuration by the user // Resources with Warnings may be partially accepted by a controller, depending on the implementation - VirtualHostOptionStatus_Warning VirtualHostOptionStatus_State = 3 + HttpListenerOptionStatus_Warning HttpListenerOptionStatus_State = 3 ) -// Enum value maps for VirtualHostOptionStatus_State. +// Enum value maps for HttpListenerOptionStatus_State. var ( - VirtualHostOptionStatus_State_name = map[int32]string{ + HttpListenerOptionStatus_State_name = map[int32]string{ 0: "Pending", 1: "Accepted", 2: "Rejected", 3: "Warning", } - VirtualHostOptionStatus_State_value = map[string]int32{ + HttpListenerOptionStatus_State_value = map[string]int32{ "Pending": 0, "Accepted": 1, "Rejected": 2, @@ -58,33 +58,91 @@ var ( } ) -func (x VirtualHostOptionStatus_State) Enum() *VirtualHostOptionStatus_State { - p := new(VirtualHostOptionStatus_State) +func (x HttpListenerOptionStatus_State) Enum() *HttpListenerOptionStatus_State { + p := new(HttpListenerOptionStatus_State) *p = x return p } -func (x VirtualHostOptionStatus_State) String() string { +func (x HttpListenerOptionStatus_State) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (VirtualHostOptionStatus_State) Descriptor() protoreflect.EnumDescriptor { +func (HttpListenerOptionStatus_State) Descriptor() protoreflect.EnumDescriptor { return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_enumTypes[0].Descriptor() } -func (VirtualHostOptionStatus_State) Type() protoreflect.EnumType { +func (HttpListenerOptionStatus_State) Type() protoreflect.EnumType { return &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_enumTypes[0] } -func (x VirtualHostOptionStatus_State) Number() protoreflect.EnumNumber { +func (x HttpListenerOptionStatus_State) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use VirtualHostOptionStatus_State.Descriptor instead. -func (VirtualHostOptionStatus_State) EnumDescriptor() ([]byte, []int) { +// Deprecated: Use HttpListenerOptionStatus_State.Descriptor instead. +func (HttpListenerOptionStatus_State) EnumDescriptor() ([]byte, []int) { return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{4, 0} } +type ListenerOptionStatus_State int32 + +const ( + // Pending status indicates the resource has not yet been validated + ListenerOptionStatus_Pending ListenerOptionStatus_State = 0 + // Accepted indicates the resource has been validated + ListenerOptionStatus_Accepted ListenerOptionStatus_State = 1 + // Rejected indicates an invalid configuration by the user + // Rejected resources may be propagated to the xDS server depending on their severity + ListenerOptionStatus_Rejected ListenerOptionStatus_State = 2 + // Warning indicates a partially invalid configuration by the user + // Resources with Warnings may be partially accepted by a controller, depending on the implementation + ListenerOptionStatus_Warning ListenerOptionStatus_State = 3 +) + +// Enum value maps for ListenerOptionStatus_State. +var ( + ListenerOptionStatus_State_name = map[int32]string{ + 0: "Pending", + 1: "Accepted", + 2: "Rejected", + 3: "Warning", + } + ListenerOptionStatus_State_value = map[string]int32{ + "Pending": 0, + "Accepted": 1, + "Rejected": 2, + "Warning": 3, + } +) + +func (x ListenerOptionStatus_State) Enum() *ListenerOptionStatus_State { + p := new(ListenerOptionStatus_State) + *p = x + return p +} + +func (x ListenerOptionStatus_State) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ListenerOptionStatus_State) Descriptor() protoreflect.EnumDescriptor { + return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_enumTypes[1].Descriptor() +} + +func (ListenerOptionStatus_State) Type() protoreflect.EnumType { + return &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_enumTypes[1] +} + +func (x ListenerOptionStatus_State) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ListenerOptionStatus_State.Descriptor instead. +func (ListenerOptionStatus_State) EnumDescriptor() ([]byte, []int) { + return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{6, 0} +} + type RouteOptionStatus_State int32 const ( @@ -127,11 +185,11 @@ func (x RouteOptionStatus_State) String() string { } func (RouteOptionStatus_State) Descriptor() protoreflect.EnumDescriptor { - return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_enumTypes[1].Descriptor() + return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_enumTypes[2].Descriptor() } func (RouteOptionStatus_State) Type() protoreflect.EnumType { - return &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_enumTypes[1] + return &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_enumTypes[2] } func (x RouteOptionStatus_State) Number() protoreflect.EnumNumber { @@ -140,7 +198,65 @@ func (x RouteOptionStatus_State) Number() protoreflect.EnumNumber { // Deprecated: Use RouteOptionStatus_State.Descriptor instead. func (RouteOptionStatus_State) EnumDescriptor() ([]byte, []int) { - return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{6, 0} + return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{8, 0} +} + +type VirtualHostOptionStatus_State int32 + +const ( + // Pending status indicates the resource has not yet been validated + VirtualHostOptionStatus_Pending VirtualHostOptionStatus_State = 0 + // Accepted indicates the resource has been validated + VirtualHostOptionStatus_Accepted VirtualHostOptionStatus_State = 1 + // Rejected indicates an invalid configuration by the user + // Rejected resources may be propagated to the xDS server depending on their severity + VirtualHostOptionStatus_Rejected VirtualHostOptionStatus_State = 2 + // Warning indicates a partially invalid configuration by the user + // Resources with Warnings may be partially accepted by a controller, depending on the implementation + VirtualHostOptionStatus_Warning VirtualHostOptionStatus_State = 3 +) + +// Enum value maps for VirtualHostOptionStatus_State. +var ( + VirtualHostOptionStatus_State_name = map[int32]string{ + 0: "Pending", + 1: "Accepted", + 2: "Rejected", + 3: "Warning", + } + VirtualHostOptionStatus_State_value = map[string]int32{ + "Pending": 0, + "Accepted": 1, + "Rejected": 2, + "Warning": 3, + } +) + +func (x VirtualHostOptionStatus_State) Enum() *VirtualHostOptionStatus_State { + p := new(VirtualHostOptionStatus_State) + *p = x + return p +} + +func (x VirtualHostOptionStatus_State) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (VirtualHostOptionStatus_State) Descriptor() protoreflect.EnumDescriptor { + return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_enumTypes[3].Descriptor() +} + +func (VirtualHostOptionStatus_State) Type() protoreflect.EnumType { + return &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_enumTypes[3] +} + +func (x VirtualHostOptionStatus_State) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use VirtualHostOptionStatus_State.Descriptor instead. +func (VirtualHostOptionStatus_State) EnumDescriptor() ([]byte, []int) { + return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{10, 0} } // The **VirtualHostOption** holds `options` configuration for a VirtualHost. @@ -488,7 +604,7 @@ func (x *RouteOptionSpec) GetTargetRefs() []*v11.PolicyTargetReference { return nil } -type ListenerOption struct { +type ListenerOptionSpec struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -503,8 +619,8 @@ type ListenerOption struct { TargetRefs []*v11.PolicyTargetReferenceWithSectionName `protobuf:"bytes,3,rep,name=target_refs,json=targetRefs,proto3" json:"target_refs,omitempty"` } -func (x *ListenerOption) Reset() { - *x = ListenerOption{} +func (x *ListenerOptionSpec) Reset() { + *x = ListenerOptionSpec{} if protoimpl.UnsafeEnabled { mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -512,13 +628,13 @@ func (x *ListenerOption) Reset() { } } -func (x *ListenerOption) String() string { +func (x *ListenerOptionSpec) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListenerOption) ProtoMessage() {} +func (*ListenerOptionSpec) ProtoMessage() {} -func (x *ListenerOption) ProtoReflect() protoreflect.Message { +func (x *ListenerOptionSpec) ProtoReflect() protoreflect.Message { mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -530,26 +646,26 @@ func (x *ListenerOption) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListenerOption.ProtoReflect.Descriptor instead. -func (*ListenerOption) Descriptor() ([]byte, []int) { +// Deprecated: Use ListenerOptionSpec.ProtoReflect.Descriptor instead. +func (*ListenerOptionSpec) Descriptor() ([]byte, []int) { return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{2} } -func (x *ListenerOption) GetOptions() *v1.ListenerOptions { +func (x *ListenerOptionSpec) GetOptions() *v1.ListenerOptions { if x != nil { return x.Options } return nil } -func (x *ListenerOption) GetTargetRefs() []*v11.PolicyTargetReferenceWithSectionName { +func (x *ListenerOptionSpec) GetTargetRefs() []*v11.PolicyTargetReferenceWithSectionName { if x != nil { return x.TargetRefs } return nil } -type HttpListenerOption struct { +type HttpListenerOptionSpec struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -564,8 +680,8 @@ type HttpListenerOption struct { TargetRefs []*v11.PolicyTargetReferenceWithSectionName `protobuf:"bytes,3,rep,name=target_refs,json=targetRefs,proto3" json:"target_refs,omitempty"` } -func (x *HttpListenerOption) Reset() { - *x = HttpListenerOption{} +func (x *HttpListenerOptionSpec) Reset() { + *x = HttpListenerOptionSpec{} if protoimpl.UnsafeEnabled { mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -573,13 +689,13 @@ func (x *HttpListenerOption) Reset() { } } -func (x *HttpListenerOption) String() string { +func (x *HttpListenerOptionSpec) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HttpListenerOption) ProtoMessage() {} +func (*HttpListenerOptionSpec) ProtoMessage() {} -func (x *HttpListenerOption) ProtoReflect() protoreflect.Message { +func (x *HttpListenerOptionSpec) ProtoReflect() protoreflect.Message { mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -591,44 +707,44 @@ func (x *HttpListenerOption) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HttpListenerOption.ProtoReflect.Descriptor instead. -func (*HttpListenerOption) Descriptor() ([]byte, []int) { +// Deprecated: Use HttpListenerOptionSpec.ProtoReflect.Descriptor instead. +func (*HttpListenerOptionSpec) Descriptor() ([]byte, []int) { return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{3} } -func (x *HttpListenerOption) GetOptions() *v1.HttpListenerOptions { +func (x *HttpListenerOptionSpec) GetOptions() *v1.HttpListenerOptions { if x != nil { return x.Options } return nil } -func (x *HttpListenerOption) GetTargetRefs() []*v11.PolicyTargetReferenceWithSectionName { +func (x *HttpListenerOptionSpec) GetTargetRefs() []*v11.PolicyTargetReferenceWithSectionName { if x != nil { return x.TargetRefs } return nil } -type VirtualHostOptionStatus struct { +type HttpListenerOptionStatus struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // State is the enum indicating the state of the resource - State VirtualHostOptionStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=gateway.solo.io.VirtualHostOptionStatus_State" json:"state,omitempty"` + State HttpListenerOptionStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=gateway.solo.io.HttpListenerOptionStatus_State" json:"state,omitempty"` // Reason is a description of the error for Rejected resources. If the resource is pending or accepted, this field will be empty Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` // Reference to the reporter who wrote this status ReportedBy string `protobuf:"bytes,3,opt,name=reported_by,json=reportedBy,proto3" json:"reported_by,omitempty"` // Reference to statuses (by resource-ref string: "Kind.Namespace.Name") of subresources of the parent resource - SubresourceStatuses map[string]*VirtualHostOptionStatus `protobuf:"bytes,4,rep,name=subresource_statuses,json=subresourceStatuses,proto3" json:"subresource_statuses,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + SubresourceStatuses map[string]*HttpListenerOptionStatus `protobuf:"bytes,4,rep,name=subresource_statuses,json=subresourceStatuses,proto3" json:"subresource_statuses,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Opaque details about status results Details *_struct.Struct `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"` } -func (x *VirtualHostOptionStatus) Reset() { - *x = VirtualHostOptionStatus{} +func (x *HttpListenerOptionStatus) Reset() { + *x = HttpListenerOptionStatus{} if protoimpl.UnsafeEnabled { mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -636,13 +752,13 @@ func (x *VirtualHostOptionStatus) Reset() { } } -func (x *VirtualHostOptionStatus) String() string { +func (x *HttpListenerOptionStatus) String() string { return protoimpl.X.MessageStringOf(x) } -func (*VirtualHostOptionStatus) ProtoMessage() {} +func (*HttpListenerOptionStatus) ProtoMessage() {} -func (x *VirtualHostOptionStatus) ProtoReflect() protoreflect.Message { +func (x *HttpListenerOptionStatus) ProtoReflect() protoreflect.Message { mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -654,56 +770,56 @@ func (x *VirtualHostOptionStatus) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use VirtualHostOptionStatus.ProtoReflect.Descriptor instead. -func (*VirtualHostOptionStatus) Descriptor() ([]byte, []int) { +// Deprecated: Use HttpListenerOptionStatus.ProtoReflect.Descriptor instead. +func (*HttpListenerOptionStatus) Descriptor() ([]byte, []int) { return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{4} } -func (x *VirtualHostOptionStatus) GetState() VirtualHostOptionStatus_State { +func (x *HttpListenerOptionStatus) GetState() HttpListenerOptionStatus_State { if x != nil { return x.State } - return VirtualHostOptionStatus_Pending + return HttpListenerOptionStatus_Pending } -func (x *VirtualHostOptionStatus) GetReason() string { +func (x *HttpListenerOptionStatus) GetReason() string { if x != nil { return x.Reason } return "" } -func (x *VirtualHostOptionStatus) GetReportedBy() string { +func (x *HttpListenerOptionStatus) GetReportedBy() string { if x != nil { return x.ReportedBy } return "" } -func (x *VirtualHostOptionStatus) GetSubresourceStatuses() map[string]*VirtualHostOptionStatus { +func (x *HttpListenerOptionStatus) GetSubresourceStatuses() map[string]*HttpListenerOptionStatus { if x != nil { return x.SubresourceStatuses } return nil } -func (x *VirtualHostOptionStatus) GetDetails() *_struct.Struct { +func (x *HttpListenerOptionStatus) GetDetails() *_struct.Struct { if x != nil { return x.Details } return nil } -type VirtualHostOptionNamespacedStatuses struct { +type HttpListenerOptionNamespacedStatuses struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Statuses map[string]*VirtualHostOptionStatus `protobuf:"bytes,1,rep,name=statuses,proto3" json:"statuses,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Statuses map[string]*HttpListenerOptionStatus `protobuf:"bytes,1,rep,name=statuses,proto3" json:"statuses,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (x *VirtualHostOptionNamespacedStatuses) Reset() { - *x = VirtualHostOptionNamespacedStatuses{} +func (x *HttpListenerOptionNamespacedStatuses) Reset() { + *x = HttpListenerOptionNamespacedStatuses{} if protoimpl.UnsafeEnabled { mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -711,13 +827,13 @@ func (x *VirtualHostOptionNamespacedStatuses) Reset() { } } -func (x *VirtualHostOptionNamespacedStatuses) String() string { +func (x *HttpListenerOptionNamespacedStatuses) String() string { return protoimpl.X.MessageStringOf(x) } -func (*VirtualHostOptionNamespacedStatuses) ProtoMessage() {} +func (*HttpListenerOptionNamespacedStatuses) ProtoMessage() {} -func (x *VirtualHostOptionNamespacedStatuses) ProtoReflect() protoreflect.Message { +func (x *HttpListenerOptionNamespacedStatuses) ProtoReflect() protoreflect.Message { mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -729,12 +845,143 @@ func (x *VirtualHostOptionNamespacedStatuses) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use VirtualHostOptionNamespacedStatuses.ProtoReflect.Descriptor instead. -func (*VirtualHostOptionNamespacedStatuses) Descriptor() ([]byte, []int) { +// Deprecated: Use HttpListenerOptionNamespacedStatuses.ProtoReflect.Descriptor instead. +func (*HttpListenerOptionNamespacedStatuses) Descriptor() ([]byte, []int) { return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{5} } -func (x *VirtualHostOptionNamespacedStatuses) GetStatuses() map[string]*VirtualHostOptionStatus { +func (x *HttpListenerOptionNamespacedStatuses) GetStatuses() map[string]*HttpListenerOptionStatus { + if x != nil { + return x.Statuses + } + return nil +} + +type ListenerOptionStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // State is the enum indicating the state of the resource + State ListenerOptionStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=gateway.solo.io.ListenerOptionStatus_State" json:"state,omitempty"` + // Reason is a description of the error for Rejected resources. If the resource is pending or accepted, this field will be empty + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + // Reference to the reporter who wrote this status + ReportedBy string `protobuf:"bytes,3,opt,name=reported_by,json=reportedBy,proto3" json:"reported_by,omitempty"` + // Reference to statuses (by resource-ref string: "Kind.Namespace.Name") of subresources of the parent resource + SubresourceStatuses map[string]*ListenerOptionStatus `protobuf:"bytes,4,rep,name=subresource_statuses,json=subresourceStatuses,proto3" json:"subresource_statuses,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Opaque details about status results + Details *_struct.Struct `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"` +} + +func (x *ListenerOptionStatus) Reset() { + *x = ListenerOptionStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListenerOptionStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListenerOptionStatus) ProtoMessage() {} + +func (x *ListenerOptionStatus) ProtoReflect() protoreflect.Message { + mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListenerOptionStatus.ProtoReflect.Descriptor instead. +func (*ListenerOptionStatus) Descriptor() ([]byte, []int) { + return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{6} +} + +func (x *ListenerOptionStatus) GetState() ListenerOptionStatus_State { + if x != nil { + return x.State + } + return ListenerOptionStatus_Pending +} + +func (x *ListenerOptionStatus) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *ListenerOptionStatus) GetReportedBy() string { + if x != nil { + return x.ReportedBy + } + return "" +} + +func (x *ListenerOptionStatus) GetSubresourceStatuses() map[string]*ListenerOptionStatus { + if x != nil { + return x.SubresourceStatuses + } + return nil +} + +func (x *ListenerOptionStatus) GetDetails() *_struct.Struct { + if x != nil { + return x.Details + } + return nil +} + +type ListenerOptionNamespacedStatuses struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Statuses map[string]*ListenerOptionStatus `protobuf:"bytes,1,rep,name=statuses,proto3" json:"statuses,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ListenerOptionNamespacedStatuses) Reset() { + *x = ListenerOptionNamespacedStatuses{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListenerOptionNamespacedStatuses) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListenerOptionNamespacedStatuses) ProtoMessage() {} + +func (x *ListenerOptionNamespacedStatuses) ProtoReflect() protoreflect.Message { + mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListenerOptionNamespacedStatuses.ProtoReflect.Descriptor instead. +func (*ListenerOptionNamespacedStatuses) Descriptor() ([]byte, []int) { + return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{7} +} + +func (x *ListenerOptionNamespacedStatuses) GetStatuses() map[string]*ListenerOptionStatus { if x != nil { return x.Statuses } @@ -761,7 +1008,7 @@ type RouteOptionStatus struct { func (x *RouteOptionStatus) Reset() { *x = RouteOptionStatus{} if protoimpl.UnsafeEnabled { - mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[6] + mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -774,7 +1021,7 @@ func (x *RouteOptionStatus) String() string { func (*RouteOptionStatus) ProtoMessage() {} func (x *RouteOptionStatus) ProtoReflect() protoreflect.Message { - mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[6] + mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -787,7 +1034,7 @@ func (x *RouteOptionStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use RouteOptionStatus.ProtoReflect.Descriptor instead. func (*RouteOptionStatus) Descriptor() ([]byte, []int) { - return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{6} + return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{8} } func (x *RouteOptionStatus) GetState() RouteOptionStatus_State { @@ -836,7 +1083,7 @@ type RouteOptionNamespacedStatuses struct { func (x *RouteOptionNamespacedStatuses) Reset() { *x = RouteOptionNamespacedStatuses{} if protoimpl.UnsafeEnabled { - mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[7] + mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -849,7 +1096,7 @@ func (x *RouteOptionNamespacedStatuses) String() string { func (*RouteOptionNamespacedStatuses) ProtoMessage() {} func (x *RouteOptionNamespacedStatuses) ProtoReflect() protoreflect.Message { - mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[7] + mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -862,7 +1109,7 @@ func (x *RouteOptionNamespacedStatuses) ProtoReflect() protoreflect.Message { // Deprecated: Use RouteOptionNamespacedStatuses.ProtoReflect.Descriptor instead. func (*RouteOptionNamespacedStatuses) Descriptor() ([]byte, []int) { - return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{7} + return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{9} } func (x *RouteOptionNamespacedStatuses) GetStatuses() map[string]*RouteOptionStatus { @@ -872,6 +1119,137 @@ func (x *RouteOptionNamespacedStatuses) GetStatuses() map[string]*RouteOptionSta return nil } +type VirtualHostOptionStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // State is the enum indicating the state of the resource + State VirtualHostOptionStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=gateway.solo.io.VirtualHostOptionStatus_State" json:"state,omitempty"` + // Reason is a description of the error for Rejected resources. If the resource is pending or accepted, this field will be empty + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + // Reference to the reporter who wrote this status + ReportedBy string `protobuf:"bytes,3,opt,name=reported_by,json=reportedBy,proto3" json:"reported_by,omitempty"` + // Reference to statuses (by resource-ref string: "Kind.Namespace.Name") of subresources of the parent resource + SubresourceStatuses map[string]*VirtualHostOptionStatus `protobuf:"bytes,4,rep,name=subresource_statuses,json=subresourceStatuses,proto3" json:"subresource_statuses,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Opaque details about status results + Details *_struct.Struct `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"` +} + +func (x *VirtualHostOptionStatus) Reset() { + *x = VirtualHostOptionStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VirtualHostOptionStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VirtualHostOptionStatus) ProtoMessage() {} + +func (x *VirtualHostOptionStatus) ProtoReflect() protoreflect.Message { + mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VirtualHostOptionStatus.ProtoReflect.Descriptor instead. +func (*VirtualHostOptionStatus) Descriptor() ([]byte, []int) { + return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{10} +} + +func (x *VirtualHostOptionStatus) GetState() VirtualHostOptionStatus_State { + if x != nil { + return x.State + } + return VirtualHostOptionStatus_Pending +} + +func (x *VirtualHostOptionStatus) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *VirtualHostOptionStatus) GetReportedBy() string { + if x != nil { + return x.ReportedBy + } + return "" +} + +func (x *VirtualHostOptionStatus) GetSubresourceStatuses() map[string]*VirtualHostOptionStatus { + if x != nil { + return x.SubresourceStatuses + } + return nil +} + +func (x *VirtualHostOptionStatus) GetDetails() *_struct.Struct { + if x != nil { + return x.Details + } + return nil +} + +type VirtualHostOptionNamespacedStatuses struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Statuses map[string]*VirtualHostOptionStatus `protobuf:"bytes,1,rep,name=statuses,proto3" json:"statuses,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *VirtualHostOptionNamespacedStatuses) Reset() { + *x = VirtualHostOptionNamespacedStatuses{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VirtualHostOptionNamespacedStatuses) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VirtualHostOptionNamespacedStatuses) ProtoMessage() {} + +func (x *VirtualHostOptionNamespacedStatuses) ProtoReflect() protoreflect.Message { + mi := &file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VirtualHostOptionNamespacedStatuses.ProtoReflect.Descriptor instead. +func (*VirtualHostOptionNamespacedStatuses) Descriptor() ([]byte, []int) { + return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescGZIP(), []int{11} +} + +func (x *VirtualHostOptionNamespacedStatuses) GetStatuses() map[string]*VirtualHostOptionStatus { + if x != nil { + return x.Statuses + } + return nil +} + var File_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto protoreflect.FileDescriptor var file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDesc = []byte{ @@ -933,123 +1311,215 @@ var file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto 0x32, 0x28, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x6b, 0x76, 0x32, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x52, 0x65, 0x66, 0x73, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0xa3, 0x01, 0x0a, - 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x37, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x67, 0x6c, 0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x58, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x6b, 0x76, 0x32, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, - 0x6f, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x53, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, - 0x66, 0x73, 0x22, 0xab, 0x01, 0x0a, 0x12, 0x48, 0x74, 0x74, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x65, - 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x07, 0x6f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6c, 0x6f, - 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x4c, 0x69, - 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x58, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x5f, 0x72, 0x65, 0x66, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x73, 0x6b, 0x76, 0x32, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x66, 0x73, - 0x22, 0xf2, 0x03, 0x0a, 0x17, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x44, 0x0a, 0x05, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x67, 0x61, - 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x56, 0x69, - 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x74, 0x0a, 0x14, 0x73, - 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x67, 0x61, 0x74, 0x65, - 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x56, 0x69, 0x72, 0x74, - 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, + 0x65, 0x74, 0x52, 0x65, 0x66, 0x73, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0xa7, 0x01, 0x0a, + 0x12, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x70, 0x65, 0x63, 0x12, 0x37, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6c, 0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, + 0x2e, 0x69, 0x6f, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x58, 0x0a, 0x0b, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x37, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x6b, 0x76, 0x32, 0x2e, 0x73, 0x6f, + 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x53, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x52, 0x65, 0x66, 0x73, 0x22, 0xaf, 0x01, 0x0a, 0x16, 0x48, 0x74, 0x74, 0x70, 0x4c, + 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, + 0x63, 0x12, 0x3b, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6c, 0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, + 0x6f, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x58, + 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x73, 0x6b, 0x76, 0x32, 0x2e, + 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, + 0x68, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x0a, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x66, 0x73, 0x22, 0xf6, 0x03, 0x0a, 0x18, 0x48, 0x74, 0x74, + 0x70, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x45, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, + 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x65, + 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, + 0x5f, 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x75, 0x0a, 0x14, 0x73, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, + 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, + 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x73, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x07, + 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x1a, + 0x71, 0x0a, 0x18, 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3f, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, + 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x48, + 0x74, 0x74, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x50, + 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x65, + 0x70, 0x74, 0x65, 0x64, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, + 0x65, 0x64, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x10, + 0x03, 0x22, 0xef, 0x01, 0x0a, 0x24, 0x48, 0x74, 0x74, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x12, 0x5f, 0x0a, 0x08, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x67, + 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x48, + 0x74, 0x74, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x1a, 0x66, 0x0a, 0x0d, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3f, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, + 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, + 0x48, 0x74, 0x74, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0xe6, 0x03, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x41, 0x0a, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x61, + 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x71, 0x0a, 0x14, 0x73, 0x75, 0x62, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, + 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, + 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x75, + 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x73, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x07, 0x64, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, + 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x1a, 0x6d, + 0x0a, 0x18, 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3b, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x61, + 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, + 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x10, + 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x10, 0x02, 0x12, + 0x0b, 0x0a, 0x07, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x03, 0x22, 0xe3, 0x01, 0x0a, + 0x20, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, + 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, + 0x73, 0x12, 0x5b, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, + 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x64, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x1a, 0x62, + 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x3b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, + 0x69, 0x6f, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0xda, 0x03, 0x0a, 0x11, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, + 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x42, + 0x79, 0x12, 0x6e, 0x0a, 0x14, 0x73, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x3b, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, + 0x6f, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x73, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x07, 0x64, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x1a, 0x70, 0x0a, 0x18, 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x61, 0x69, 0x6c, 0x73, 0x1a, 0x6a, 0x0a, 0x18, 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x3e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, - 0x2e, 0x69, 0x6f, 0x2e, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x0b, 0x0a, 0x07, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, - 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, - 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x61, 0x72, 0x6e, - 0x69, 0x6e, 0x67, 0x10, 0x03, 0x22, 0xec, 0x01, 0x0a, 0x23, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, - 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x12, 0x5e, 0x0a, - 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x42, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, - 0x6f, 0x2e, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x64, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x1a, 0x65, 0x0a, - 0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x3e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x28, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, - 0x6f, 0x2e, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x22, 0xda, 0x03, 0x0a, 0x11, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3e, 0x0a, 0x05, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x67, 0x61, 0x74, 0x65, - 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x52, 0x6f, 0x75, 0x74, - 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, - 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, - 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x62, - 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x64, 0x42, 0x79, 0x12, 0x6e, 0x0a, 0x14, 0x73, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, + 0x65, 0x79, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, - 0x73, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x07, 0x64, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x1a, 0x6a, 0x0a, 0x18, 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0x3d, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x65, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, + 0x65, 0x64, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, + 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x03, 0x22, + 0xda, 0x01, 0x0a, 0x1d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, + 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, + 0x73, 0x12, 0x58, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x1a, 0x5f, 0x0a, 0x0d, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x38, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, + 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xf2, 0x03, 0x0a, + 0x17, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x44, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, + 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, + 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x74, 0x0a, 0x14, 0x73, 0x75, 0x62, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, + 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, + 0x6f, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, + 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x73, 0x75, 0x62, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x12, 0x31, 0x0a, + 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x1a, 0x70, 0x0a, 0x18, 0x53, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3e, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, + 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, + 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x10, - 0x03, 0x22, 0xda, 0x01, 0x0a, 0x1d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, - 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x64, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x1a, 0x5f, 0x0a, - 0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x22, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, - 0x6f, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x45, - 0xb8, 0xf5, 0x04, 0x01, 0xc0, 0xf5, 0x04, 0x01, 0xd0, 0xf5, 0x04, 0x01, 0x5a, 0x37, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6c, 0x6f, 0x2d, 0x69, 0x6f, - 0x2f, 0x73, 0x6f, 0x6c, 0x6f, 0x2d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, - 0x69, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x03, 0x22, 0xec, 0x01, 0x0a, 0x23, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, + 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x12, 0x5e, 0x0a, 0x08, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x67, 0x61, + 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x56, 0x69, + 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, + 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, + 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x1a, 0x65, 0x0a, 0x0d, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3e, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x61, + 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x56, 0x69, + 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x42, 0x45, 0xb8, 0xf5, 0x04, 0x01, 0xc0, 0xf5, 0x04, 0x01, 0xd0, 0xf5, 0x04, 0x01, 0x5a, 0x37, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6c, 0x6f, 0x2d, + 0x69, 0x6f, 0x2f, 0x73, 0x6f, 0x6c, 0x6f, 0x2d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x70, 0x6b, 0x67, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x73, 0x6f, 0x6c, + 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1064,57 +1534,79 @@ func file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_prot return file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDescData } -var file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_goTypes = []interface{}{ - (VirtualHostOptionStatus_State)(0), // 0: gateway.solo.io.VirtualHostOptionStatus.State - (RouteOptionStatus_State)(0), // 1: gateway.solo.io.RouteOptionStatus.State - (*VirtualHostOptionSpec)(nil), // 2: gateway.solo.io.VirtualHostOptionSpec - (*RouteOptionSpec)(nil), // 3: gateway.solo.io.RouteOptionSpec - (*ListenerOption)(nil), // 4: gateway.solo.io.ListenerOption - (*HttpListenerOption)(nil), // 5: gateway.solo.io.HttpListenerOption - (*VirtualHostOptionStatus)(nil), // 6: gateway.solo.io.VirtualHostOptionStatus - (*VirtualHostOptionNamespacedStatuses)(nil), // 7: gateway.solo.io.VirtualHostOptionNamespacedStatuses - (*RouteOptionStatus)(nil), // 8: gateway.solo.io.RouteOptionStatus - (*RouteOptionNamespacedStatuses)(nil), // 9: gateway.solo.io.RouteOptionNamespacedStatuses - nil, // 10: gateway.solo.io.VirtualHostOptionStatus.SubresourceStatusesEntry - nil, // 11: gateway.solo.io.VirtualHostOptionNamespacedStatuses.StatusesEntry - nil, // 12: gateway.solo.io.RouteOptionStatus.SubresourceStatusesEntry - nil, // 13: gateway.solo.io.RouteOptionNamespacedStatuses.StatusesEntry - (*v1.VirtualHostOptions)(nil), // 14: gloo.solo.io.VirtualHostOptions - (*v11.PolicyTargetReferenceWithSectionName)(nil), // 15: core.skv2.solo.io.PolicyTargetReferenceWithSectionName - (*v1.RouteOptions)(nil), // 16: gloo.solo.io.RouteOptions - (*v11.PolicyTargetReference)(nil), // 17: core.skv2.solo.io.PolicyTargetReference - (*v1.ListenerOptions)(nil), // 18: gloo.solo.io.ListenerOptions - (*v1.HttpListenerOptions)(nil), // 19: gloo.solo.io.HttpListenerOptions - (*_struct.Struct)(nil), // 20: google.protobuf.Struct + (HttpListenerOptionStatus_State)(0), // 0: gateway.solo.io.HttpListenerOptionStatus.State + (ListenerOptionStatus_State)(0), // 1: gateway.solo.io.ListenerOptionStatus.State + (RouteOptionStatus_State)(0), // 2: gateway.solo.io.RouteOptionStatus.State + (VirtualHostOptionStatus_State)(0), // 3: gateway.solo.io.VirtualHostOptionStatus.State + (*VirtualHostOptionSpec)(nil), // 4: gateway.solo.io.VirtualHostOptionSpec + (*RouteOptionSpec)(nil), // 5: gateway.solo.io.RouteOptionSpec + (*ListenerOptionSpec)(nil), // 6: gateway.solo.io.ListenerOptionSpec + (*HttpListenerOptionSpec)(nil), // 7: gateway.solo.io.HttpListenerOptionSpec + (*HttpListenerOptionStatus)(nil), // 8: gateway.solo.io.HttpListenerOptionStatus + (*HttpListenerOptionNamespacedStatuses)(nil), // 9: gateway.solo.io.HttpListenerOptionNamespacedStatuses + (*ListenerOptionStatus)(nil), // 10: gateway.solo.io.ListenerOptionStatus + (*ListenerOptionNamespacedStatuses)(nil), // 11: gateway.solo.io.ListenerOptionNamespacedStatuses + (*RouteOptionStatus)(nil), // 12: gateway.solo.io.RouteOptionStatus + (*RouteOptionNamespacedStatuses)(nil), // 13: gateway.solo.io.RouteOptionNamespacedStatuses + (*VirtualHostOptionStatus)(nil), // 14: gateway.solo.io.VirtualHostOptionStatus + (*VirtualHostOptionNamespacedStatuses)(nil), // 15: gateway.solo.io.VirtualHostOptionNamespacedStatuses + nil, // 16: gateway.solo.io.HttpListenerOptionStatus.SubresourceStatusesEntry + nil, // 17: gateway.solo.io.HttpListenerOptionNamespacedStatuses.StatusesEntry + nil, // 18: gateway.solo.io.ListenerOptionStatus.SubresourceStatusesEntry + nil, // 19: gateway.solo.io.ListenerOptionNamespacedStatuses.StatusesEntry + nil, // 20: gateway.solo.io.RouteOptionStatus.SubresourceStatusesEntry + nil, // 21: gateway.solo.io.RouteOptionNamespacedStatuses.StatusesEntry + nil, // 22: gateway.solo.io.VirtualHostOptionStatus.SubresourceStatusesEntry + nil, // 23: gateway.solo.io.VirtualHostOptionNamespacedStatuses.StatusesEntry + (*v1.VirtualHostOptions)(nil), // 24: gloo.solo.io.VirtualHostOptions + (*v11.PolicyTargetReferenceWithSectionName)(nil), // 25: core.skv2.solo.io.PolicyTargetReferenceWithSectionName + (*v1.RouteOptions)(nil), // 26: gloo.solo.io.RouteOptions + (*v11.PolicyTargetReference)(nil), // 27: core.skv2.solo.io.PolicyTargetReference + (*v1.ListenerOptions)(nil), // 28: gloo.solo.io.ListenerOptions + (*v1.HttpListenerOptions)(nil), // 29: gloo.solo.io.HttpListenerOptions + (*_struct.Struct)(nil), // 30: google.protobuf.Struct } var file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_depIdxs = []int32{ - 14, // 0: gateway.solo.io.VirtualHostOptionSpec.options:type_name -> gloo.solo.io.VirtualHostOptions - 15, // 1: gateway.solo.io.VirtualHostOptionSpec.target_refs:type_name -> core.skv2.solo.io.PolicyTargetReferenceWithSectionName - 16, // 2: gateway.solo.io.RouteOptionSpec.options:type_name -> gloo.solo.io.RouteOptions - 17, // 3: gateway.solo.io.RouteOptionSpec.target_refs:type_name -> core.skv2.solo.io.PolicyTargetReference - 18, // 4: gateway.solo.io.ListenerOption.options:type_name -> gloo.solo.io.ListenerOptions - 15, // 5: gateway.solo.io.ListenerOption.target_refs:type_name -> core.skv2.solo.io.PolicyTargetReferenceWithSectionName - 19, // 6: gateway.solo.io.HttpListenerOption.options:type_name -> gloo.solo.io.HttpListenerOptions - 15, // 7: gateway.solo.io.HttpListenerOption.target_refs:type_name -> core.skv2.solo.io.PolicyTargetReferenceWithSectionName - 0, // 8: gateway.solo.io.VirtualHostOptionStatus.state:type_name -> gateway.solo.io.VirtualHostOptionStatus.State - 10, // 9: gateway.solo.io.VirtualHostOptionStatus.subresource_statuses:type_name -> gateway.solo.io.VirtualHostOptionStatus.SubresourceStatusesEntry - 20, // 10: gateway.solo.io.VirtualHostOptionStatus.details:type_name -> google.protobuf.Struct - 11, // 11: gateway.solo.io.VirtualHostOptionNamespacedStatuses.statuses:type_name -> gateway.solo.io.VirtualHostOptionNamespacedStatuses.StatusesEntry - 1, // 12: gateway.solo.io.RouteOptionStatus.state:type_name -> gateway.solo.io.RouteOptionStatus.State - 12, // 13: gateway.solo.io.RouteOptionStatus.subresource_statuses:type_name -> gateway.solo.io.RouteOptionStatus.SubresourceStatusesEntry - 20, // 14: gateway.solo.io.RouteOptionStatus.details:type_name -> google.protobuf.Struct - 13, // 15: gateway.solo.io.RouteOptionNamespacedStatuses.statuses:type_name -> gateway.solo.io.RouteOptionNamespacedStatuses.StatusesEntry - 6, // 16: gateway.solo.io.VirtualHostOptionStatus.SubresourceStatusesEntry.value:type_name -> gateway.solo.io.VirtualHostOptionStatus - 6, // 17: gateway.solo.io.VirtualHostOptionNamespacedStatuses.StatusesEntry.value:type_name -> gateway.solo.io.VirtualHostOptionStatus - 8, // 18: gateway.solo.io.RouteOptionStatus.SubresourceStatusesEntry.value:type_name -> gateway.solo.io.RouteOptionStatus - 8, // 19: gateway.solo.io.RouteOptionNamespacedStatuses.StatusesEntry.value:type_name -> gateway.solo.io.RouteOptionStatus - 20, // [20:20] is the sub-list for method output_type - 20, // [20:20] is the sub-list for method input_type - 20, // [20:20] is the sub-list for extension type_name - 20, // [20:20] is the sub-list for extension extendee - 0, // [0:20] is the sub-list for field type_name + 24, // 0: gateway.solo.io.VirtualHostOptionSpec.options:type_name -> gloo.solo.io.VirtualHostOptions + 25, // 1: gateway.solo.io.VirtualHostOptionSpec.target_refs:type_name -> core.skv2.solo.io.PolicyTargetReferenceWithSectionName + 26, // 2: gateway.solo.io.RouteOptionSpec.options:type_name -> gloo.solo.io.RouteOptions + 27, // 3: gateway.solo.io.RouteOptionSpec.target_refs:type_name -> core.skv2.solo.io.PolicyTargetReference + 28, // 4: gateway.solo.io.ListenerOptionSpec.options:type_name -> gloo.solo.io.ListenerOptions + 25, // 5: gateway.solo.io.ListenerOptionSpec.target_refs:type_name -> core.skv2.solo.io.PolicyTargetReferenceWithSectionName + 29, // 6: gateway.solo.io.HttpListenerOptionSpec.options:type_name -> gloo.solo.io.HttpListenerOptions + 25, // 7: gateway.solo.io.HttpListenerOptionSpec.target_refs:type_name -> core.skv2.solo.io.PolicyTargetReferenceWithSectionName + 0, // 8: gateway.solo.io.HttpListenerOptionStatus.state:type_name -> gateway.solo.io.HttpListenerOptionStatus.State + 16, // 9: gateway.solo.io.HttpListenerOptionStatus.subresource_statuses:type_name -> gateway.solo.io.HttpListenerOptionStatus.SubresourceStatusesEntry + 30, // 10: gateway.solo.io.HttpListenerOptionStatus.details:type_name -> google.protobuf.Struct + 17, // 11: gateway.solo.io.HttpListenerOptionNamespacedStatuses.statuses:type_name -> gateway.solo.io.HttpListenerOptionNamespacedStatuses.StatusesEntry + 1, // 12: gateway.solo.io.ListenerOptionStatus.state:type_name -> gateway.solo.io.ListenerOptionStatus.State + 18, // 13: gateway.solo.io.ListenerOptionStatus.subresource_statuses:type_name -> gateway.solo.io.ListenerOptionStatus.SubresourceStatusesEntry + 30, // 14: gateway.solo.io.ListenerOptionStatus.details:type_name -> google.protobuf.Struct + 19, // 15: gateway.solo.io.ListenerOptionNamespacedStatuses.statuses:type_name -> gateway.solo.io.ListenerOptionNamespacedStatuses.StatusesEntry + 2, // 16: gateway.solo.io.RouteOptionStatus.state:type_name -> gateway.solo.io.RouteOptionStatus.State + 20, // 17: gateway.solo.io.RouteOptionStatus.subresource_statuses:type_name -> gateway.solo.io.RouteOptionStatus.SubresourceStatusesEntry + 30, // 18: gateway.solo.io.RouteOptionStatus.details:type_name -> google.protobuf.Struct + 21, // 19: gateway.solo.io.RouteOptionNamespacedStatuses.statuses:type_name -> gateway.solo.io.RouteOptionNamespacedStatuses.StatusesEntry + 3, // 20: gateway.solo.io.VirtualHostOptionStatus.state:type_name -> gateway.solo.io.VirtualHostOptionStatus.State + 22, // 21: gateway.solo.io.VirtualHostOptionStatus.subresource_statuses:type_name -> gateway.solo.io.VirtualHostOptionStatus.SubresourceStatusesEntry + 30, // 22: gateway.solo.io.VirtualHostOptionStatus.details:type_name -> google.protobuf.Struct + 23, // 23: gateway.solo.io.VirtualHostOptionNamespacedStatuses.statuses:type_name -> gateway.solo.io.VirtualHostOptionNamespacedStatuses.StatusesEntry + 8, // 24: gateway.solo.io.HttpListenerOptionStatus.SubresourceStatusesEntry.value:type_name -> gateway.solo.io.HttpListenerOptionStatus + 8, // 25: gateway.solo.io.HttpListenerOptionNamespacedStatuses.StatusesEntry.value:type_name -> gateway.solo.io.HttpListenerOptionStatus + 10, // 26: gateway.solo.io.ListenerOptionStatus.SubresourceStatusesEntry.value:type_name -> gateway.solo.io.ListenerOptionStatus + 10, // 27: gateway.solo.io.ListenerOptionNamespacedStatuses.StatusesEntry.value:type_name -> gateway.solo.io.ListenerOptionStatus + 12, // 28: gateway.solo.io.RouteOptionStatus.SubresourceStatusesEntry.value:type_name -> gateway.solo.io.RouteOptionStatus + 12, // 29: gateway.solo.io.RouteOptionNamespacedStatuses.StatusesEntry.value:type_name -> gateway.solo.io.RouteOptionStatus + 14, // 30: gateway.solo.io.VirtualHostOptionStatus.SubresourceStatusesEntry.value:type_name -> gateway.solo.io.VirtualHostOptionStatus + 14, // 31: gateway.solo.io.VirtualHostOptionNamespacedStatuses.StatusesEntry.value:type_name -> gateway.solo.io.VirtualHostOptionStatus + 32, // [32:32] is the sub-list for method output_type + 32, // [32:32] is the sub-list for method input_type + 32, // [32:32] is the sub-list for extension type_name + 32, // [32:32] is the sub-list for extension extendee + 0, // [0:32] is the sub-list for field type_name } func init() { file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_init() } @@ -1148,7 +1640,7 @@ func file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_prot } } file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListenerOption); i { + switch v := v.(*ListenerOptionSpec); i { case 0: return &v.state case 1: @@ -1160,7 +1652,7 @@ func file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_prot } } file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HttpListenerOption); i { + switch v := v.(*HttpListenerOptionSpec); i { case 0: return &v.state case 1: @@ -1172,7 +1664,7 @@ func file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_prot } } file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VirtualHostOptionStatus); i { + switch v := v.(*HttpListenerOptionStatus); i { case 0: return &v.state case 1: @@ -1184,7 +1676,7 @@ func file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_prot } } file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VirtualHostOptionNamespacedStatuses); i { + switch v := v.(*HttpListenerOptionNamespacedStatuses); i { case 0: return &v.state case 1: @@ -1196,7 +1688,7 @@ func file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_prot } } file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RouteOptionStatus); i { + switch v := v.(*ListenerOptionStatus); i { case 0: return &v.state case 1: @@ -1208,6 +1700,30 @@ func file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_prot } } file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListenerOptionNamespacedStatuses); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RouteOptionStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RouteOptionNamespacedStatuses); i { case 0: return &v.state @@ -1219,14 +1735,38 @@ func file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_prot return nil } } + file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VirtualHostOptionStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VirtualHostOptionNamespacedStatuses); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_github_com_solo_io_solo_apis_api_gloo_gateway_v1_external_options_proto_rawDesc, - NumEnums: 2, - NumMessages: 12, + NumEnums: 4, + NumMessages: 20, NumExtensions: 0, NumServices: 0, }, diff --git a/pkg/api/gateway.solo.io/v1/external_options.pb.hash.go b/pkg/api/gateway.solo.io/v1/external_options.pb.hash.go index bf42685dc..44ecc53e9 100644 --- a/pkg/api/gateway.solo.io/v1/external_options.pb.hash.go +++ b/pkg/api/gateway.solo.io/v1/external_options.pb.hash.go @@ -146,7 +146,7 @@ func (m *RouteOptionSpec) Hash(hasher hash.Hash64) (uint64, error) { } // Hash function -func (m *ListenerOption) Hash(hasher hash.Hash64) (uint64, error) { +func (m *ListenerOptionSpec) Hash(hasher hash.Hash64) (uint64, error) { if m == nil { return 0, nil } @@ -154,7 +154,7 @@ func (m *ListenerOption) Hash(hasher hash.Hash64) (uint64, error) { hasher = fnv.New64() } var err error - if _, err = hasher.Write([]byte("gateway.solo.io.github.com/solo-io/solo-apis/pkg/api/gateway.solo.io/v1.ListenerOption")); err != nil { + if _, err = hasher.Write([]byte("gateway.solo.io.github.com/solo-io/solo-apis/pkg/api/gateway.solo.io/v1.ListenerOptionSpec")); err != nil { return 0, err } @@ -206,7 +206,7 @@ func (m *ListenerOption) Hash(hasher hash.Hash64) (uint64, error) { } // Hash function -func (m *HttpListenerOption) Hash(hasher hash.Hash64) (uint64, error) { +func (m *HttpListenerOptionSpec) Hash(hasher hash.Hash64) (uint64, error) { if m == nil { return 0, nil } @@ -214,7 +214,7 @@ func (m *HttpListenerOption) Hash(hasher hash.Hash64) (uint64, error) { hasher = fnv.New64() } var err error - if _, err = hasher.Write([]byte("gateway.solo.io.github.com/solo-io/solo-apis/pkg/api/gateway.solo.io/v1.HttpListenerOption")); err != nil { + if _, err = hasher.Write([]byte("gateway.solo.io.github.com/solo-io/solo-apis/pkg/api/gateway.solo.io/v1.HttpListenerOptionSpec")); err != nil { return 0, err } @@ -266,7 +266,7 @@ func (m *HttpListenerOption) Hash(hasher hash.Hash64) (uint64, error) { } // Hash function -func (m *VirtualHostOptionStatus) Hash(hasher hash.Hash64) (uint64, error) { +func (m *HttpListenerOptionStatus) Hash(hasher hash.Hash64) (uint64, error) { if m == nil { return 0, nil } @@ -274,7 +274,7 @@ func (m *VirtualHostOptionStatus) Hash(hasher hash.Hash64) (uint64, error) { hasher = fnv.New64() } var err error - if _, err = hasher.Write([]byte("gateway.solo.io.github.com/solo-io/solo-apis/pkg/api/gateway.solo.io/v1.VirtualHostOptionStatus")); err != nil { + if _, err = hasher.Write([]byte("gateway.solo.io.github.com/solo-io/solo-apis/pkg/api/gateway.solo.io/v1.HttpListenerOptionStatus")); err != nil { return 0, err } @@ -354,7 +354,7 @@ func (m *VirtualHostOptionStatus) Hash(hasher hash.Hash64) (uint64, error) { } // Hash function -func (m *VirtualHostOptionNamespacedStatuses) Hash(hasher hash.Hash64) (uint64, error) { +func (m *HttpListenerOptionNamespacedStatuses) Hash(hasher hash.Hash64) (uint64, error) { if m == nil { return 0, nil } @@ -362,7 +362,150 @@ func (m *VirtualHostOptionNamespacedStatuses) Hash(hasher hash.Hash64) (uint64, hasher = fnv.New64() } var err error - if _, err = hasher.Write([]byte("gateway.solo.io.github.com/solo-io/solo-apis/pkg/api/gateway.solo.io/v1.VirtualHostOptionNamespacedStatuses")); err != nil { + if _, err = hasher.Write([]byte("gateway.solo.io.github.com/solo-io/solo-apis/pkg/api/gateway.solo.io/v1.HttpListenerOptionNamespacedStatuses")); err != nil { + return 0, err + } + + { + var result uint64 + innerHash := fnv.New64() + for k, v := range m.GetStatuses() { + innerHash.Reset() + + if h, ok := interface{}(v).(safe_hasher.SafeHasher); ok { + if _, err = innerHash.Write([]byte("")); err != nil { + return 0, err + } + if _, err = h.Hash(innerHash); err != nil { + return 0, err + } + } else { + if fieldValue, err := hashstructure.Hash(v, nil); err != nil { + return 0, err + } else { + if _, err = innerHash.Write([]byte("")); err != nil { + return 0, err + } + if err := binary.Write(innerHash, binary.LittleEndian, fieldValue); err != nil { + return 0, err + } + } + } + + if _, err = innerHash.Write([]byte(k)); err != nil { + return 0, err + } + + result = result ^ innerHash.Sum64() + } + err = binary.Write(hasher, binary.LittleEndian, result) + if err != nil { + return 0, err + } + + } + + return hasher.Sum64(), nil +} + +// Hash function +func (m *ListenerOptionStatus) Hash(hasher hash.Hash64) (uint64, error) { + if m == nil { + return 0, nil + } + if hasher == nil { + hasher = fnv.New64() + } + var err error + if _, err = hasher.Write([]byte("gateway.solo.io.github.com/solo-io/solo-apis/pkg/api/gateway.solo.io/v1.ListenerOptionStatus")); err != nil { + return 0, err + } + + err = binary.Write(hasher, binary.LittleEndian, m.GetState()) + if err != nil { + return 0, err + } + + if _, err = hasher.Write([]byte(m.GetReason())); err != nil { + return 0, err + } + + if _, err = hasher.Write([]byte(m.GetReportedBy())); err != nil { + return 0, err + } + + { + var result uint64 + innerHash := fnv.New64() + for k, v := range m.GetSubresourceStatuses() { + innerHash.Reset() + + if h, ok := interface{}(v).(safe_hasher.SafeHasher); ok { + if _, err = innerHash.Write([]byte("")); err != nil { + return 0, err + } + if _, err = h.Hash(innerHash); err != nil { + return 0, err + } + } else { + if fieldValue, err := hashstructure.Hash(v, nil); err != nil { + return 0, err + } else { + if _, err = innerHash.Write([]byte("")); err != nil { + return 0, err + } + if err := binary.Write(innerHash, binary.LittleEndian, fieldValue); err != nil { + return 0, err + } + } + } + + if _, err = innerHash.Write([]byte(k)); err != nil { + return 0, err + } + + result = result ^ innerHash.Sum64() + } + err = binary.Write(hasher, binary.LittleEndian, result) + if err != nil { + return 0, err + } + + } + + if h, ok := interface{}(m.GetDetails()).(safe_hasher.SafeHasher); ok { + if _, err = hasher.Write([]byte("Details")); err != nil { + return 0, err + } + if _, err = h.Hash(hasher); err != nil { + return 0, err + } + } else { + if fieldValue, err := hashstructure.Hash(m.GetDetails(), nil); err != nil { + return 0, err + } else { + if _, err = hasher.Write([]byte("Details")); err != nil { + return 0, err + } + if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil { + return 0, err + } + } + } + + return hasher.Sum64(), nil +} + +// Hash function +func (m *ListenerOptionNamespacedStatuses) Hash(hasher hash.Hash64) (uint64, error) { + if m == nil { + return 0, nil + } + if hasher == nil { + hasher = fnv.New64() + } + var err error + if _, err = hasher.Write([]byte("gateway.solo.io.github.com/solo-io/solo-apis/pkg/api/gateway.solo.io/v1.ListenerOptionNamespacedStatuses")); err != nil { return 0, err } @@ -550,3 +693,146 @@ func (m *RouteOptionNamespacedStatuses) Hash(hasher hash.Hash64) (uint64, error) return hasher.Sum64(), nil } + +// Hash function +func (m *VirtualHostOptionStatus) Hash(hasher hash.Hash64) (uint64, error) { + if m == nil { + return 0, nil + } + if hasher == nil { + hasher = fnv.New64() + } + var err error + if _, err = hasher.Write([]byte("gateway.solo.io.github.com/solo-io/solo-apis/pkg/api/gateway.solo.io/v1.VirtualHostOptionStatus")); err != nil { + return 0, err + } + + err = binary.Write(hasher, binary.LittleEndian, m.GetState()) + if err != nil { + return 0, err + } + + if _, err = hasher.Write([]byte(m.GetReason())); err != nil { + return 0, err + } + + if _, err = hasher.Write([]byte(m.GetReportedBy())); err != nil { + return 0, err + } + + { + var result uint64 + innerHash := fnv.New64() + for k, v := range m.GetSubresourceStatuses() { + innerHash.Reset() + + if h, ok := interface{}(v).(safe_hasher.SafeHasher); ok { + if _, err = innerHash.Write([]byte("")); err != nil { + return 0, err + } + if _, err = h.Hash(innerHash); err != nil { + return 0, err + } + } else { + if fieldValue, err := hashstructure.Hash(v, nil); err != nil { + return 0, err + } else { + if _, err = innerHash.Write([]byte("")); err != nil { + return 0, err + } + if err := binary.Write(innerHash, binary.LittleEndian, fieldValue); err != nil { + return 0, err + } + } + } + + if _, err = innerHash.Write([]byte(k)); err != nil { + return 0, err + } + + result = result ^ innerHash.Sum64() + } + err = binary.Write(hasher, binary.LittleEndian, result) + if err != nil { + return 0, err + } + + } + + if h, ok := interface{}(m.GetDetails()).(safe_hasher.SafeHasher); ok { + if _, err = hasher.Write([]byte("Details")); err != nil { + return 0, err + } + if _, err = h.Hash(hasher); err != nil { + return 0, err + } + } else { + if fieldValue, err := hashstructure.Hash(m.GetDetails(), nil); err != nil { + return 0, err + } else { + if _, err = hasher.Write([]byte("Details")); err != nil { + return 0, err + } + if err := binary.Write(hasher, binary.LittleEndian, fieldValue); err != nil { + return 0, err + } + } + } + + return hasher.Sum64(), nil +} + +// Hash function +func (m *VirtualHostOptionNamespacedStatuses) Hash(hasher hash.Hash64) (uint64, error) { + if m == nil { + return 0, nil + } + if hasher == nil { + hasher = fnv.New64() + } + var err error + if _, err = hasher.Write([]byte("gateway.solo.io.github.com/solo-io/solo-apis/pkg/api/gateway.solo.io/v1.VirtualHostOptionNamespacedStatuses")); err != nil { + return 0, err + } + + { + var result uint64 + innerHash := fnv.New64() + for k, v := range m.GetStatuses() { + innerHash.Reset() + + if h, ok := interface{}(v).(safe_hasher.SafeHasher); ok { + if _, err = innerHash.Write([]byte("")); err != nil { + return 0, err + } + if _, err = h.Hash(innerHash); err != nil { + return 0, err + } + } else { + if fieldValue, err := hashstructure.Hash(v, nil); err != nil { + return 0, err + } else { + if _, err = innerHash.Write([]byte("")); err != nil { + return 0, err + } + if err := binary.Write(innerHash, binary.LittleEndian, fieldValue); err != nil { + return 0, err + } + } + } + + if _, err = innerHash.Write([]byte(k)); err != nil { + return 0, err + } + + result = result ^ innerHash.Sum64() + } + err = binary.Write(hasher, binary.LittleEndian, result) + if err != nil { + return 0, err + } + + } + + return hasher.Sum64(), nil +} diff --git a/pkg/api/gateway.solo.io/v1/gloo_json.gen.go b/pkg/api/gateway.solo.io/v1/gloo_json.gen.go index 261623e10..a6b23e0b8 100644 --- a/pkg/api/gateway.solo.io/v1/gloo_json.gen.go +++ b/pkg/api/gateway.solo.io/v1/gloo_json.gen.go @@ -60,6 +60,74 @@ func (this *GatewayStatus) UnmarshalJSON(b []byte) error { return nil } +// MarshalJSON is a custom marshaler for HttpListenerOptionSpec +func (this *HttpListenerOptionSpec) MarshalJSON() ([]byte, error) { + str, err := marshaller.MarshalToString(this) + return []byte(str), err +} + +// UnmarshalJSON is a custom unmarshaler for HttpListenerOptionSpec +func (this *HttpListenerOptionSpec) UnmarshalJSON(b []byte) error { + return unmarshaller.Unmarshal(bytes.NewReader(b), this) +} + +// MarshalJSON is a custom marshaler for HttpListenerOptionStatus +func (this *HttpListenerOptionStatus) MarshalJSON() ([]byte, error) { + str, err := marshaller.MarshalToString(this) + return []byte(str), err +} + +// UnmarshalJSON is a custom unmarshaler for HttpListenerOptionStatus +func (this *HttpListenerOptionStatus) UnmarshalJSON(b []byte) error { + namespacedStatuses := HttpListenerOptionNamespacedStatuses{} + if err := unmarshaller.Unmarshal(bytes.NewReader(b), &namespacedStatuses); err != nil { + return unmarshaller.Unmarshal(bytes.NewReader(b), this) + } + + for _, status := range namespacedStatuses.GetStatuses() { + // take the first status + if status != nil { + status.DeepCopyInto(this) + return nil + } + } + return nil +} + +// MarshalJSON is a custom marshaler for ListenerOptionSpec +func (this *ListenerOptionSpec) MarshalJSON() ([]byte, error) { + str, err := marshaller.MarshalToString(this) + return []byte(str), err +} + +// UnmarshalJSON is a custom unmarshaler for ListenerOptionSpec +func (this *ListenerOptionSpec) UnmarshalJSON(b []byte) error { + return unmarshaller.Unmarshal(bytes.NewReader(b), this) +} + +// MarshalJSON is a custom marshaler for ListenerOptionStatus +func (this *ListenerOptionStatus) MarshalJSON() ([]byte, error) { + str, err := marshaller.MarshalToString(this) + return []byte(str), err +} + +// UnmarshalJSON is a custom unmarshaler for ListenerOptionStatus +func (this *ListenerOptionStatus) UnmarshalJSON(b []byte) error { + namespacedStatuses := ListenerOptionNamespacedStatuses{} + if err := unmarshaller.Unmarshal(bytes.NewReader(b), &namespacedStatuses); err != nil { + return unmarshaller.Unmarshal(bytes.NewReader(b), this) + } + + for _, status := range namespacedStatuses.GetStatuses() { + // take the first status + if status != nil { + status.DeepCopyInto(this) + return nil + } + } + return nil +} + // MarshalJSON is a custom marshaler for MatchableHttpGatewaySpec func (this *MatchableHttpGatewaySpec) MarshalJSON() ([]byte, error) { str, err := marshaller.MarshalToString(this) @@ -128,6 +196,40 @@ func (this *MatchableTcpGatewayStatus) UnmarshalJSON(b []byte) error { return nil } +// MarshalJSON is a custom marshaler for RouteOptionSpec +func (this *RouteOptionSpec) MarshalJSON() ([]byte, error) { + str, err := marshaller.MarshalToString(this) + return []byte(str), err +} + +// UnmarshalJSON is a custom unmarshaler for RouteOptionSpec +func (this *RouteOptionSpec) UnmarshalJSON(b []byte) error { + return unmarshaller.Unmarshal(bytes.NewReader(b), this) +} + +// MarshalJSON is a custom marshaler for RouteOptionStatus +func (this *RouteOptionStatus) MarshalJSON() ([]byte, error) { + str, err := marshaller.MarshalToString(this) + return []byte(str), err +} + +// UnmarshalJSON is a custom unmarshaler for RouteOptionStatus +func (this *RouteOptionStatus) UnmarshalJSON(b []byte) error { + namespacedStatuses := RouteOptionNamespacedStatuses{} + if err := unmarshaller.Unmarshal(bytes.NewReader(b), &namespacedStatuses); err != nil { + return unmarshaller.Unmarshal(bytes.NewReader(b), this) + } + + for _, status := range namespacedStatuses.GetStatuses() { + // take the first status + if status != nil { + status.DeepCopyInto(this) + return nil + } + } + return nil +} + // MarshalJSON is a custom marshaler for RouteTableSpec func (this *RouteTableSpec) MarshalJSON() ([]byte, error) { str, err := marshaller.MarshalToString(this) @@ -229,37 +331,3 @@ func (this *VirtualHostOptionStatus) UnmarshalJSON(b []byte) error { } return nil } - -// MarshalJSON is a custom marshaler for RouteOptionSpec -func (this *RouteOptionSpec) MarshalJSON() ([]byte, error) { - str, err := marshaller.MarshalToString(this) - return []byte(str), err -} - -// UnmarshalJSON is a custom unmarshaler for RouteOptionSpec -func (this *RouteOptionSpec) UnmarshalJSON(b []byte) error { - return unmarshaller.Unmarshal(bytes.NewReader(b), this) -} - -// MarshalJSON is a custom marshaler for RouteOptionStatus -func (this *RouteOptionStatus) MarshalJSON() ([]byte, error) { - str, err := marshaller.MarshalToString(this) - return []byte(str), err -} - -// UnmarshalJSON is a custom unmarshaler for RouteOptionStatus -func (this *RouteOptionStatus) UnmarshalJSON(b []byte) error { - namespacedStatuses := RouteOptionNamespacedStatuses{} - if err := unmarshaller.Unmarshal(bytes.NewReader(b), &namespacedStatuses); err != nil { - return unmarshaller.Unmarshal(bytes.NewReader(b), this) - } - - for _, status := range namespacedStatuses.GetStatuses() { - // take the first status - if status != nil { - status.DeepCopyInto(this) - return nil - } - } - return nil -} diff --git a/pkg/api/gateway.solo.io/v1/mocks/clients.go b/pkg/api/gateway.solo.io/v1/mocks/clients.go index f9ab8b4f0..333e2f83f 100644 --- a/pkg/api/gateway.solo.io/v1/mocks/clients.go +++ b/pkg/api/gateway.solo.io/v1/mocks/clients.go @@ -88,6 +88,34 @@ func (mr *MockClientsetMockRecorder) Gateways() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Gateways", reflect.TypeOf((*MockClientset)(nil).Gateways)) } +// HttpListenerOptions mocks base method. +func (m *MockClientset) HttpListenerOptions() v1.HttpListenerOptionClient { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "HttpListenerOptions") + ret0, _ := ret[0].(v1.HttpListenerOptionClient) + return ret0 +} + +// HttpListenerOptions indicates an expected call of HttpListenerOptions. +func (mr *MockClientsetMockRecorder) HttpListenerOptions() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HttpListenerOptions", reflect.TypeOf((*MockClientset)(nil).HttpListenerOptions)) +} + +// ListenerOptions mocks base method. +func (m *MockClientset) ListenerOptions() v1.ListenerOptionClient { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListenerOptions") + ret0, _ := ret[0].(v1.ListenerOptionClient) + return ret0 +} + +// ListenerOptions indicates an expected call of ListenerOptions. +func (mr *MockClientsetMockRecorder) ListenerOptions() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListenerOptions", reflect.TypeOf((*MockClientset)(nil).ListenerOptions)) +} + // MatchableHttpGateways mocks base method. func (m *MockClientset) MatchableHttpGateways() v1.MatchableHttpGatewayClient { m.ctrl.T.Helper() @@ -676,3026 +704,4034 @@ func (mr *MockMulticlusterGatewayClientMockRecorder) Cluster(cluster interface{} return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterGatewayClient)(nil).Cluster), cluster) } -// MockMatchableHttpGatewayReader is a mock of MatchableHttpGatewayReader interface. -type MockMatchableHttpGatewayReader struct { +// MockHttpListenerOptionReader is a mock of HttpListenerOptionReader interface. +type MockHttpListenerOptionReader struct { ctrl *gomock.Controller - recorder *MockMatchableHttpGatewayReaderMockRecorder + recorder *MockHttpListenerOptionReaderMockRecorder } -// MockMatchableHttpGatewayReaderMockRecorder is the mock recorder for MockMatchableHttpGatewayReader. -type MockMatchableHttpGatewayReaderMockRecorder struct { - mock *MockMatchableHttpGatewayReader +// MockHttpListenerOptionReaderMockRecorder is the mock recorder for MockHttpListenerOptionReader. +type MockHttpListenerOptionReaderMockRecorder struct { + mock *MockHttpListenerOptionReader } -// NewMockMatchableHttpGatewayReader creates a new mock instance. -func NewMockMatchableHttpGatewayReader(ctrl *gomock.Controller) *MockMatchableHttpGatewayReader { - mock := &MockMatchableHttpGatewayReader{ctrl: ctrl} - mock.recorder = &MockMatchableHttpGatewayReaderMockRecorder{mock} +// NewMockHttpListenerOptionReader creates a new mock instance. +func NewMockHttpListenerOptionReader(ctrl *gomock.Controller) *MockHttpListenerOptionReader { + mock := &MockHttpListenerOptionReader{ctrl: ctrl} + mock.recorder = &MockHttpListenerOptionReaderMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMatchableHttpGatewayReader) EXPECT() *MockMatchableHttpGatewayReaderMockRecorder { +func (m *MockHttpListenerOptionReader) EXPECT() *MockHttpListenerOptionReaderMockRecorder { return m.recorder } -// GetMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayReader) GetMatchableHttpGateway(ctx context.Context, key client.ObjectKey) (*v1.MatchableHttpGateway, error) { +// GetHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionReader) GetHttpListenerOption(ctx context.Context, key client.ObjectKey) (*v1.HttpListenerOption, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetMatchableHttpGateway", ctx, key) - ret0, _ := ret[0].(*v1.MatchableHttpGateway) + ret := m.ctrl.Call(m, "GetHttpListenerOption", ctx, key) + ret0, _ := ret[0].(*v1.HttpListenerOption) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetMatchableHttpGateway indicates an expected call of GetMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayReaderMockRecorder) GetMatchableHttpGateway(ctx, key interface{}) *gomock.Call { +// GetHttpListenerOption indicates an expected call of GetHttpListenerOption. +func (mr *MockHttpListenerOptionReaderMockRecorder) GetHttpListenerOption(ctx, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayReader)(nil).GetMatchableHttpGateway), ctx, key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionReader)(nil).GetHttpListenerOption), ctx, key) } -// ListMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayReader) ListMatchableHttpGateway(ctx context.Context, opts ...client.ListOption) (*v1.MatchableHttpGatewayList, error) { +// ListHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionReader) ListHttpListenerOption(ctx context.Context, opts ...client.ListOption) (*v1.HttpListenerOptionList, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ListMatchableHttpGateway", varargs...) - ret0, _ := ret[0].(*v1.MatchableHttpGatewayList) + ret := m.ctrl.Call(m, "ListHttpListenerOption", varargs...) + ret0, _ := ret[0].(*v1.HttpListenerOptionList) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListMatchableHttpGateway indicates an expected call of ListMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayReaderMockRecorder) ListMatchableHttpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { +// ListHttpListenerOption indicates an expected call of ListHttpListenerOption. +func (mr *MockHttpListenerOptionReaderMockRecorder) ListHttpListenerOption(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayReader)(nil).ListMatchableHttpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionReader)(nil).ListHttpListenerOption), varargs...) } -// MockMatchableHttpGatewayWriter is a mock of MatchableHttpGatewayWriter interface. -type MockMatchableHttpGatewayWriter struct { +// MockHttpListenerOptionWriter is a mock of HttpListenerOptionWriter interface. +type MockHttpListenerOptionWriter struct { ctrl *gomock.Controller - recorder *MockMatchableHttpGatewayWriterMockRecorder + recorder *MockHttpListenerOptionWriterMockRecorder } -// MockMatchableHttpGatewayWriterMockRecorder is the mock recorder for MockMatchableHttpGatewayWriter. -type MockMatchableHttpGatewayWriterMockRecorder struct { - mock *MockMatchableHttpGatewayWriter +// MockHttpListenerOptionWriterMockRecorder is the mock recorder for MockHttpListenerOptionWriter. +type MockHttpListenerOptionWriterMockRecorder struct { + mock *MockHttpListenerOptionWriter } -// NewMockMatchableHttpGatewayWriter creates a new mock instance. -func NewMockMatchableHttpGatewayWriter(ctrl *gomock.Controller) *MockMatchableHttpGatewayWriter { - mock := &MockMatchableHttpGatewayWriter{ctrl: ctrl} - mock.recorder = &MockMatchableHttpGatewayWriterMockRecorder{mock} +// NewMockHttpListenerOptionWriter creates a new mock instance. +func NewMockHttpListenerOptionWriter(ctrl *gomock.Controller) *MockHttpListenerOptionWriter { + mock := &MockHttpListenerOptionWriter{ctrl: ctrl} + mock.recorder = &MockHttpListenerOptionWriterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMatchableHttpGatewayWriter) EXPECT() *MockMatchableHttpGatewayWriterMockRecorder { +func (m *MockHttpListenerOptionWriter) EXPECT() *MockHttpListenerOptionWriterMockRecorder { return m.recorder } -// CreateMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayWriter) CreateMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, opts ...client.CreateOption) error { +// CreateHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionWriter) CreateHttpListenerOption(ctx context.Context, obj *v1.HttpListenerOption, opts ...client.CreateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateMatchableHttpGateway", varargs...) + ret := m.ctrl.Call(m, "CreateHttpListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// CreateMatchableHttpGateway indicates an expected call of CreateMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayWriterMockRecorder) CreateMatchableHttpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// CreateHttpListenerOption indicates an expected call of CreateHttpListenerOption. +func (mr *MockHttpListenerOptionWriterMockRecorder) CreateHttpListenerOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayWriter)(nil).CreateMatchableHttpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionWriter)(nil).CreateHttpListenerOption), varargs...) } -// DeleteAllOfMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayWriter) DeleteAllOfMatchableHttpGateway(ctx context.Context, opts ...client.DeleteAllOfOption) error { +// DeleteAllOfHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionWriter) DeleteAllOfHttpListenerOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteAllOfMatchableHttpGateway", varargs...) + ret := m.ctrl.Call(m, "DeleteAllOfHttpListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteAllOfMatchableHttpGateway indicates an expected call of DeleteAllOfMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayWriterMockRecorder) DeleteAllOfMatchableHttpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { +// DeleteAllOfHttpListenerOption indicates an expected call of DeleteAllOfHttpListenerOption. +func (mr *MockHttpListenerOptionWriterMockRecorder) DeleteAllOfHttpListenerOption(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayWriter)(nil).DeleteAllOfMatchableHttpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionWriter)(nil).DeleteAllOfHttpListenerOption), varargs...) } -// DeleteMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayWriter) DeleteMatchableHttpGateway(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { +// DeleteHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionWriter) DeleteHttpListenerOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, key} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteMatchableHttpGateway", varargs...) + ret := m.ctrl.Call(m, "DeleteHttpListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteMatchableHttpGateway indicates an expected call of DeleteMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayWriterMockRecorder) DeleteMatchableHttpGateway(ctx, key interface{}, opts ...interface{}) *gomock.Call { +// DeleteHttpListenerOption indicates an expected call of DeleteHttpListenerOption. +func (mr *MockHttpListenerOptionWriterMockRecorder) DeleteHttpListenerOption(ctx, key interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, key}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayWriter)(nil).DeleteMatchableHttpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionWriter)(nil).DeleteHttpListenerOption), varargs...) } -// PatchMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayWriter) PatchMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, patch client.Patch, opts ...client.PatchOption) error { +// PatchHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionWriter) PatchHttpListenerOption(ctx context.Context, obj *v1.HttpListenerOption, patch client.Patch, opts ...client.PatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchMatchableHttpGateway", varargs...) + ret := m.ctrl.Call(m, "PatchHttpListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchMatchableHttpGateway indicates an expected call of PatchMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayWriterMockRecorder) PatchMatchableHttpGateway(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchHttpListenerOption indicates an expected call of PatchHttpListenerOption. +func (mr *MockHttpListenerOptionWriterMockRecorder) PatchHttpListenerOption(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayWriter)(nil).PatchMatchableHttpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionWriter)(nil).PatchHttpListenerOption), varargs...) } -// UpdateMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayWriter) UpdateMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, opts ...client.UpdateOption) error { +// UpdateHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionWriter) UpdateHttpListenerOption(ctx context.Context, obj *v1.HttpListenerOption, opts ...client.UpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateMatchableHttpGateway", varargs...) + ret := m.ctrl.Call(m, "UpdateHttpListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateMatchableHttpGateway indicates an expected call of UpdateMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayWriterMockRecorder) UpdateMatchableHttpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateHttpListenerOption indicates an expected call of UpdateHttpListenerOption. +func (mr *MockHttpListenerOptionWriterMockRecorder) UpdateHttpListenerOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayWriter)(nil).UpdateMatchableHttpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionWriter)(nil).UpdateHttpListenerOption), varargs...) } -// UpsertMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayWriter) UpsertMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, transitionFuncs ...v1.MatchableHttpGatewayTransitionFunction) error { +// UpsertHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionWriter) UpsertHttpListenerOption(ctx context.Context, obj *v1.HttpListenerOption, transitionFuncs ...v1.HttpListenerOptionTransitionFunction) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range transitionFuncs { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpsertMatchableHttpGateway", varargs...) + ret := m.ctrl.Call(m, "UpsertHttpListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpsertMatchableHttpGateway indicates an expected call of UpsertMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayWriterMockRecorder) UpsertMatchableHttpGateway(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { +// UpsertHttpListenerOption indicates an expected call of UpsertHttpListenerOption. +func (mr *MockHttpListenerOptionWriterMockRecorder) UpsertHttpListenerOption(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, transitionFuncs...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayWriter)(nil).UpsertMatchableHttpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionWriter)(nil).UpsertHttpListenerOption), varargs...) } -// MockMatchableHttpGatewayStatusWriter is a mock of MatchableHttpGatewayStatusWriter interface. -type MockMatchableHttpGatewayStatusWriter struct { +// MockHttpListenerOptionStatusWriter is a mock of HttpListenerOptionStatusWriter interface. +type MockHttpListenerOptionStatusWriter struct { ctrl *gomock.Controller - recorder *MockMatchableHttpGatewayStatusWriterMockRecorder + recorder *MockHttpListenerOptionStatusWriterMockRecorder } -// MockMatchableHttpGatewayStatusWriterMockRecorder is the mock recorder for MockMatchableHttpGatewayStatusWriter. -type MockMatchableHttpGatewayStatusWriterMockRecorder struct { - mock *MockMatchableHttpGatewayStatusWriter +// MockHttpListenerOptionStatusWriterMockRecorder is the mock recorder for MockHttpListenerOptionStatusWriter. +type MockHttpListenerOptionStatusWriterMockRecorder struct { + mock *MockHttpListenerOptionStatusWriter } -// NewMockMatchableHttpGatewayStatusWriter creates a new mock instance. -func NewMockMatchableHttpGatewayStatusWriter(ctrl *gomock.Controller) *MockMatchableHttpGatewayStatusWriter { - mock := &MockMatchableHttpGatewayStatusWriter{ctrl: ctrl} - mock.recorder = &MockMatchableHttpGatewayStatusWriterMockRecorder{mock} +// NewMockHttpListenerOptionStatusWriter creates a new mock instance. +func NewMockHttpListenerOptionStatusWriter(ctrl *gomock.Controller) *MockHttpListenerOptionStatusWriter { + mock := &MockHttpListenerOptionStatusWriter{ctrl: ctrl} + mock.recorder = &MockHttpListenerOptionStatusWriterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMatchableHttpGatewayStatusWriter) EXPECT() *MockMatchableHttpGatewayStatusWriterMockRecorder { +func (m *MockHttpListenerOptionStatusWriter) EXPECT() *MockHttpListenerOptionStatusWriterMockRecorder { return m.recorder } -// PatchMatchableHttpGatewayStatus mocks base method. -func (m *MockMatchableHttpGatewayStatusWriter) PatchMatchableHttpGatewayStatus(ctx context.Context, obj *v1.MatchableHttpGateway, patch client.Patch, opts ...client.SubResourcePatchOption) error { +// PatchHttpListenerOptionStatus mocks base method. +func (m *MockHttpListenerOptionStatusWriter) PatchHttpListenerOptionStatus(ctx context.Context, obj *v1.HttpListenerOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchMatchableHttpGatewayStatus", varargs...) + ret := m.ctrl.Call(m, "PatchHttpListenerOptionStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchMatchableHttpGatewayStatus indicates an expected call of PatchMatchableHttpGatewayStatus. -func (mr *MockMatchableHttpGatewayStatusWriterMockRecorder) PatchMatchableHttpGatewayStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchHttpListenerOptionStatus indicates an expected call of PatchHttpListenerOptionStatus. +func (mr *MockHttpListenerOptionStatusWriterMockRecorder) PatchHttpListenerOptionStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableHttpGatewayStatus", reflect.TypeOf((*MockMatchableHttpGatewayStatusWriter)(nil).PatchMatchableHttpGatewayStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchHttpListenerOptionStatus", reflect.TypeOf((*MockHttpListenerOptionStatusWriter)(nil).PatchHttpListenerOptionStatus), varargs...) } -// UpdateMatchableHttpGatewayStatus mocks base method. -func (m *MockMatchableHttpGatewayStatusWriter) UpdateMatchableHttpGatewayStatus(ctx context.Context, obj *v1.MatchableHttpGateway, opts ...client.SubResourceUpdateOption) error { +// UpdateHttpListenerOptionStatus mocks base method. +func (m *MockHttpListenerOptionStatusWriter) UpdateHttpListenerOptionStatus(ctx context.Context, obj *v1.HttpListenerOption, opts ...client.SubResourceUpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateMatchableHttpGatewayStatus", varargs...) + ret := m.ctrl.Call(m, "UpdateHttpListenerOptionStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateMatchableHttpGatewayStatus indicates an expected call of UpdateMatchableHttpGatewayStatus. -func (mr *MockMatchableHttpGatewayStatusWriterMockRecorder) UpdateMatchableHttpGatewayStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateHttpListenerOptionStatus indicates an expected call of UpdateHttpListenerOptionStatus. +func (mr *MockHttpListenerOptionStatusWriterMockRecorder) UpdateHttpListenerOptionStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableHttpGatewayStatus", reflect.TypeOf((*MockMatchableHttpGatewayStatusWriter)(nil).UpdateMatchableHttpGatewayStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHttpListenerOptionStatus", reflect.TypeOf((*MockHttpListenerOptionStatusWriter)(nil).UpdateHttpListenerOptionStatus), varargs...) } -// MockMatchableHttpGatewayClient is a mock of MatchableHttpGatewayClient interface. -type MockMatchableHttpGatewayClient struct { +// MockHttpListenerOptionClient is a mock of HttpListenerOptionClient interface. +type MockHttpListenerOptionClient struct { ctrl *gomock.Controller - recorder *MockMatchableHttpGatewayClientMockRecorder + recorder *MockHttpListenerOptionClientMockRecorder } -// MockMatchableHttpGatewayClientMockRecorder is the mock recorder for MockMatchableHttpGatewayClient. -type MockMatchableHttpGatewayClientMockRecorder struct { - mock *MockMatchableHttpGatewayClient +// MockHttpListenerOptionClientMockRecorder is the mock recorder for MockHttpListenerOptionClient. +type MockHttpListenerOptionClientMockRecorder struct { + mock *MockHttpListenerOptionClient } -// NewMockMatchableHttpGatewayClient creates a new mock instance. -func NewMockMatchableHttpGatewayClient(ctrl *gomock.Controller) *MockMatchableHttpGatewayClient { - mock := &MockMatchableHttpGatewayClient{ctrl: ctrl} - mock.recorder = &MockMatchableHttpGatewayClientMockRecorder{mock} +// NewMockHttpListenerOptionClient creates a new mock instance. +func NewMockHttpListenerOptionClient(ctrl *gomock.Controller) *MockHttpListenerOptionClient { + mock := &MockHttpListenerOptionClient{ctrl: ctrl} + mock.recorder = &MockHttpListenerOptionClientMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMatchableHttpGatewayClient) EXPECT() *MockMatchableHttpGatewayClientMockRecorder { +func (m *MockHttpListenerOptionClient) EXPECT() *MockHttpListenerOptionClientMockRecorder { return m.recorder } -// CreateMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayClient) CreateMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, opts ...client.CreateOption) error { +// CreateHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionClient) CreateHttpListenerOption(ctx context.Context, obj *v1.HttpListenerOption, opts ...client.CreateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateMatchableHttpGateway", varargs...) + ret := m.ctrl.Call(m, "CreateHttpListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// CreateMatchableHttpGateway indicates an expected call of CreateMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayClientMockRecorder) CreateMatchableHttpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// CreateHttpListenerOption indicates an expected call of CreateHttpListenerOption. +func (mr *MockHttpListenerOptionClientMockRecorder) CreateHttpListenerOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).CreateMatchableHttpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionClient)(nil).CreateHttpListenerOption), varargs...) } -// DeleteAllOfMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayClient) DeleteAllOfMatchableHttpGateway(ctx context.Context, opts ...client.DeleteAllOfOption) error { +// DeleteAllOfHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionClient) DeleteAllOfHttpListenerOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteAllOfMatchableHttpGateway", varargs...) + ret := m.ctrl.Call(m, "DeleteAllOfHttpListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteAllOfMatchableHttpGateway indicates an expected call of DeleteAllOfMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayClientMockRecorder) DeleteAllOfMatchableHttpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { +// DeleteAllOfHttpListenerOption indicates an expected call of DeleteAllOfHttpListenerOption. +func (mr *MockHttpListenerOptionClientMockRecorder) DeleteAllOfHttpListenerOption(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).DeleteAllOfMatchableHttpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionClient)(nil).DeleteAllOfHttpListenerOption), varargs...) } -// DeleteMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayClient) DeleteMatchableHttpGateway(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { +// DeleteHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionClient) DeleteHttpListenerOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, key} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteMatchableHttpGateway", varargs...) + ret := m.ctrl.Call(m, "DeleteHttpListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteMatchableHttpGateway indicates an expected call of DeleteMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayClientMockRecorder) DeleteMatchableHttpGateway(ctx, key interface{}, opts ...interface{}) *gomock.Call { +// DeleteHttpListenerOption indicates an expected call of DeleteHttpListenerOption. +func (mr *MockHttpListenerOptionClientMockRecorder) DeleteHttpListenerOption(ctx, key interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, key}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).DeleteMatchableHttpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionClient)(nil).DeleteHttpListenerOption), varargs...) } -// GetMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayClient) GetMatchableHttpGateway(ctx context.Context, key client.ObjectKey) (*v1.MatchableHttpGateway, error) { +// GetHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionClient) GetHttpListenerOption(ctx context.Context, key client.ObjectKey) (*v1.HttpListenerOption, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetMatchableHttpGateway", ctx, key) - ret0, _ := ret[0].(*v1.MatchableHttpGateway) + ret := m.ctrl.Call(m, "GetHttpListenerOption", ctx, key) + ret0, _ := ret[0].(*v1.HttpListenerOption) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetMatchableHttpGateway indicates an expected call of GetMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayClientMockRecorder) GetMatchableHttpGateway(ctx, key interface{}) *gomock.Call { +// GetHttpListenerOption indicates an expected call of GetHttpListenerOption. +func (mr *MockHttpListenerOptionClientMockRecorder) GetHttpListenerOption(ctx, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).GetMatchableHttpGateway), ctx, key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionClient)(nil).GetHttpListenerOption), ctx, key) } -// ListMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayClient) ListMatchableHttpGateway(ctx context.Context, opts ...client.ListOption) (*v1.MatchableHttpGatewayList, error) { +// ListHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionClient) ListHttpListenerOption(ctx context.Context, opts ...client.ListOption) (*v1.HttpListenerOptionList, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ListMatchableHttpGateway", varargs...) - ret0, _ := ret[0].(*v1.MatchableHttpGatewayList) + ret := m.ctrl.Call(m, "ListHttpListenerOption", varargs...) + ret0, _ := ret[0].(*v1.HttpListenerOptionList) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListMatchableHttpGateway indicates an expected call of ListMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayClientMockRecorder) ListMatchableHttpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { +// ListHttpListenerOption indicates an expected call of ListHttpListenerOption. +func (mr *MockHttpListenerOptionClientMockRecorder) ListHttpListenerOption(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).ListMatchableHttpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionClient)(nil).ListHttpListenerOption), varargs...) } -// PatchMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayClient) PatchMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, patch client.Patch, opts ...client.PatchOption) error { +// PatchHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionClient) PatchHttpListenerOption(ctx context.Context, obj *v1.HttpListenerOption, patch client.Patch, opts ...client.PatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchMatchableHttpGateway", varargs...) + ret := m.ctrl.Call(m, "PatchHttpListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchMatchableHttpGateway indicates an expected call of PatchMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayClientMockRecorder) PatchMatchableHttpGateway(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchHttpListenerOption indicates an expected call of PatchHttpListenerOption. +func (mr *MockHttpListenerOptionClientMockRecorder) PatchHttpListenerOption(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).PatchMatchableHttpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionClient)(nil).PatchHttpListenerOption), varargs...) } -// PatchMatchableHttpGatewayStatus mocks base method. -func (m *MockMatchableHttpGatewayClient) PatchMatchableHttpGatewayStatus(ctx context.Context, obj *v1.MatchableHttpGateway, patch client.Patch, opts ...client.SubResourcePatchOption) error { +// PatchHttpListenerOptionStatus mocks base method. +func (m *MockHttpListenerOptionClient) PatchHttpListenerOptionStatus(ctx context.Context, obj *v1.HttpListenerOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchMatchableHttpGatewayStatus", varargs...) + ret := m.ctrl.Call(m, "PatchHttpListenerOptionStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchMatchableHttpGatewayStatus indicates an expected call of PatchMatchableHttpGatewayStatus. -func (mr *MockMatchableHttpGatewayClientMockRecorder) PatchMatchableHttpGatewayStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchHttpListenerOptionStatus indicates an expected call of PatchHttpListenerOptionStatus. +func (mr *MockHttpListenerOptionClientMockRecorder) PatchHttpListenerOptionStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableHttpGatewayStatus", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).PatchMatchableHttpGatewayStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchHttpListenerOptionStatus", reflect.TypeOf((*MockHttpListenerOptionClient)(nil).PatchHttpListenerOptionStatus), varargs...) } -// UpdateMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayClient) UpdateMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, opts ...client.UpdateOption) error { +// UpdateHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionClient) UpdateHttpListenerOption(ctx context.Context, obj *v1.HttpListenerOption, opts ...client.UpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateMatchableHttpGateway", varargs...) + ret := m.ctrl.Call(m, "UpdateHttpListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateMatchableHttpGateway indicates an expected call of UpdateMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayClientMockRecorder) UpdateMatchableHttpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateHttpListenerOption indicates an expected call of UpdateHttpListenerOption. +func (mr *MockHttpListenerOptionClientMockRecorder) UpdateHttpListenerOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).UpdateMatchableHttpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionClient)(nil).UpdateHttpListenerOption), varargs...) } -// UpdateMatchableHttpGatewayStatus mocks base method. -func (m *MockMatchableHttpGatewayClient) UpdateMatchableHttpGatewayStatus(ctx context.Context, obj *v1.MatchableHttpGateway, opts ...client.SubResourceUpdateOption) error { +// UpdateHttpListenerOptionStatus mocks base method. +func (m *MockHttpListenerOptionClient) UpdateHttpListenerOptionStatus(ctx context.Context, obj *v1.HttpListenerOption, opts ...client.SubResourceUpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateMatchableHttpGatewayStatus", varargs...) + ret := m.ctrl.Call(m, "UpdateHttpListenerOptionStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateMatchableHttpGatewayStatus indicates an expected call of UpdateMatchableHttpGatewayStatus. -func (mr *MockMatchableHttpGatewayClientMockRecorder) UpdateMatchableHttpGatewayStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateHttpListenerOptionStatus indicates an expected call of UpdateHttpListenerOptionStatus. +func (mr *MockHttpListenerOptionClientMockRecorder) UpdateHttpListenerOptionStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableHttpGatewayStatus", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).UpdateMatchableHttpGatewayStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHttpListenerOptionStatus", reflect.TypeOf((*MockHttpListenerOptionClient)(nil).UpdateHttpListenerOptionStatus), varargs...) } -// UpsertMatchableHttpGateway mocks base method. -func (m *MockMatchableHttpGatewayClient) UpsertMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, transitionFuncs ...v1.MatchableHttpGatewayTransitionFunction) error { +// UpsertHttpListenerOption mocks base method. +func (m *MockHttpListenerOptionClient) UpsertHttpListenerOption(ctx context.Context, obj *v1.HttpListenerOption, transitionFuncs ...v1.HttpListenerOptionTransitionFunction) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range transitionFuncs { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpsertMatchableHttpGateway", varargs...) + ret := m.ctrl.Call(m, "UpsertHttpListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpsertMatchableHttpGateway indicates an expected call of UpsertMatchableHttpGateway. -func (mr *MockMatchableHttpGatewayClientMockRecorder) UpsertMatchableHttpGateway(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { +// UpsertHttpListenerOption indicates an expected call of UpsertHttpListenerOption. +func (mr *MockHttpListenerOptionClientMockRecorder) UpsertHttpListenerOption(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, transitionFuncs...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).UpsertMatchableHttpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertHttpListenerOption", reflect.TypeOf((*MockHttpListenerOptionClient)(nil).UpsertHttpListenerOption), varargs...) } -// MockMulticlusterMatchableHttpGatewayClient is a mock of MulticlusterMatchableHttpGatewayClient interface. -type MockMulticlusterMatchableHttpGatewayClient struct { +// MockMulticlusterHttpListenerOptionClient is a mock of MulticlusterHttpListenerOptionClient interface. +type MockMulticlusterHttpListenerOptionClient struct { ctrl *gomock.Controller - recorder *MockMulticlusterMatchableHttpGatewayClientMockRecorder + recorder *MockMulticlusterHttpListenerOptionClientMockRecorder } -// MockMulticlusterMatchableHttpGatewayClientMockRecorder is the mock recorder for MockMulticlusterMatchableHttpGatewayClient. -type MockMulticlusterMatchableHttpGatewayClientMockRecorder struct { - mock *MockMulticlusterMatchableHttpGatewayClient +// MockMulticlusterHttpListenerOptionClientMockRecorder is the mock recorder for MockMulticlusterHttpListenerOptionClient. +type MockMulticlusterHttpListenerOptionClientMockRecorder struct { + mock *MockMulticlusterHttpListenerOptionClient } -// NewMockMulticlusterMatchableHttpGatewayClient creates a new mock instance. -func NewMockMulticlusterMatchableHttpGatewayClient(ctrl *gomock.Controller) *MockMulticlusterMatchableHttpGatewayClient { - mock := &MockMulticlusterMatchableHttpGatewayClient{ctrl: ctrl} - mock.recorder = &MockMulticlusterMatchableHttpGatewayClientMockRecorder{mock} +// NewMockMulticlusterHttpListenerOptionClient creates a new mock instance. +func NewMockMulticlusterHttpListenerOptionClient(ctrl *gomock.Controller) *MockMulticlusterHttpListenerOptionClient { + mock := &MockMulticlusterHttpListenerOptionClient{ctrl: ctrl} + mock.recorder = &MockMulticlusterHttpListenerOptionClientMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMulticlusterMatchableHttpGatewayClient) EXPECT() *MockMulticlusterMatchableHttpGatewayClientMockRecorder { +func (m *MockMulticlusterHttpListenerOptionClient) EXPECT() *MockMulticlusterHttpListenerOptionClientMockRecorder { return m.recorder } // Cluster mocks base method. -func (m *MockMulticlusterMatchableHttpGatewayClient) Cluster(cluster string) (v1.MatchableHttpGatewayClient, error) { +func (m *MockMulticlusterHttpListenerOptionClient) Cluster(cluster string) (v1.HttpListenerOptionClient, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Cluster", cluster) - ret0, _ := ret[0].(v1.MatchableHttpGatewayClient) + ret0, _ := ret[0].(v1.HttpListenerOptionClient) ret1, _ := ret[1].(error) return ret0, ret1 } // Cluster indicates an expected call of Cluster. -func (mr *MockMulticlusterMatchableHttpGatewayClientMockRecorder) Cluster(cluster interface{}) *gomock.Call { +func (mr *MockMulticlusterHttpListenerOptionClientMockRecorder) Cluster(cluster interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterMatchableHttpGatewayClient)(nil).Cluster), cluster) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterHttpListenerOptionClient)(nil).Cluster), cluster) } -// MockMatchableTcpGatewayReader is a mock of MatchableTcpGatewayReader interface. -type MockMatchableTcpGatewayReader struct { +// MockListenerOptionReader is a mock of ListenerOptionReader interface. +type MockListenerOptionReader struct { ctrl *gomock.Controller - recorder *MockMatchableTcpGatewayReaderMockRecorder + recorder *MockListenerOptionReaderMockRecorder } -// MockMatchableTcpGatewayReaderMockRecorder is the mock recorder for MockMatchableTcpGatewayReader. -type MockMatchableTcpGatewayReaderMockRecorder struct { - mock *MockMatchableTcpGatewayReader +// MockListenerOptionReaderMockRecorder is the mock recorder for MockListenerOptionReader. +type MockListenerOptionReaderMockRecorder struct { + mock *MockListenerOptionReader } -// NewMockMatchableTcpGatewayReader creates a new mock instance. -func NewMockMatchableTcpGatewayReader(ctrl *gomock.Controller) *MockMatchableTcpGatewayReader { - mock := &MockMatchableTcpGatewayReader{ctrl: ctrl} - mock.recorder = &MockMatchableTcpGatewayReaderMockRecorder{mock} +// NewMockListenerOptionReader creates a new mock instance. +func NewMockListenerOptionReader(ctrl *gomock.Controller) *MockListenerOptionReader { + mock := &MockListenerOptionReader{ctrl: ctrl} + mock.recorder = &MockListenerOptionReaderMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMatchableTcpGatewayReader) EXPECT() *MockMatchableTcpGatewayReaderMockRecorder { +func (m *MockListenerOptionReader) EXPECT() *MockListenerOptionReaderMockRecorder { return m.recorder } -// GetMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayReader) GetMatchableTcpGateway(ctx context.Context, key client.ObjectKey) (*v1.MatchableTcpGateway, error) { +// GetListenerOption mocks base method. +func (m *MockListenerOptionReader) GetListenerOption(ctx context.Context, key client.ObjectKey) (*v1.ListenerOption, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetMatchableTcpGateway", ctx, key) - ret0, _ := ret[0].(*v1.MatchableTcpGateway) + ret := m.ctrl.Call(m, "GetListenerOption", ctx, key) + ret0, _ := ret[0].(*v1.ListenerOption) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetMatchableTcpGateway indicates an expected call of GetMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayReaderMockRecorder) GetMatchableTcpGateway(ctx, key interface{}) *gomock.Call { +// GetListenerOption indicates an expected call of GetListenerOption. +func (mr *MockListenerOptionReaderMockRecorder) GetListenerOption(ctx, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayReader)(nil).GetMatchableTcpGateway), ctx, key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetListenerOption", reflect.TypeOf((*MockListenerOptionReader)(nil).GetListenerOption), ctx, key) } -// ListMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayReader) ListMatchableTcpGateway(ctx context.Context, opts ...client.ListOption) (*v1.MatchableTcpGatewayList, error) { +// ListListenerOption mocks base method. +func (m *MockListenerOptionReader) ListListenerOption(ctx context.Context, opts ...client.ListOption) (*v1.ListenerOptionList, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ListMatchableTcpGateway", varargs...) - ret0, _ := ret[0].(*v1.MatchableTcpGatewayList) + ret := m.ctrl.Call(m, "ListListenerOption", varargs...) + ret0, _ := ret[0].(*v1.ListenerOptionList) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListMatchableTcpGateway indicates an expected call of ListMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayReaderMockRecorder) ListMatchableTcpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { +// ListListenerOption indicates an expected call of ListListenerOption. +func (mr *MockListenerOptionReaderMockRecorder) ListListenerOption(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayReader)(nil).ListMatchableTcpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListListenerOption", reflect.TypeOf((*MockListenerOptionReader)(nil).ListListenerOption), varargs...) } -// MockMatchableTcpGatewayWriter is a mock of MatchableTcpGatewayWriter interface. -type MockMatchableTcpGatewayWriter struct { +// MockListenerOptionWriter is a mock of ListenerOptionWriter interface. +type MockListenerOptionWriter struct { ctrl *gomock.Controller - recorder *MockMatchableTcpGatewayWriterMockRecorder + recorder *MockListenerOptionWriterMockRecorder } -// MockMatchableTcpGatewayWriterMockRecorder is the mock recorder for MockMatchableTcpGatewayWriter. -type MockMatchableTcpGatewayWriterMockRecorder struct { - mock *MockMatchableTcpGatewayWriter +// MockListenerOptionWriterMockRecorder is the mock recorder for MockListenerOptionWriter. +type MockListenerOptionWriterMockRecorder struct { + mock *MockListenerOptionWriter } -// NewMockMatchableTcpGatewayWriter creates a new mock instance. -func NewMockMatchableTcpGatewayWriter(ctrl *gomock.Controller) *MockMatchableTcpGatewayWriter { - mock := &MockMatchableTcpGatewayWriter{ctrl: ctrl} - mock.recorder = &MockMatchableTcpGatewayWriterMockRecorder{mock} +// NewMockListenerOptionWriter creates a new mock instance. +func NewMockListenerOptionWriter(ctrl *gomock.Controller) *MockListenerOptionWriter { + mock := &MockListenerOptionWriter{ctrl: ctrl} + mock.recorder = &MockListenerOptionWriterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMatchableTcpGatewayWriter) EXPECT() *MockMatchableTcpGatewayWriterMockRecorder { +func (m *MockListenerOptionWriter) EXPECT() *MockListenerOptionWriterMockRecorder { return m.recorder } -// CreateMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayWriter) CreateMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, opts ...client.CreateOption) error { +// CreateListenerOption mocks base method. +func (m *MockListenerOptionWriter) CreateListenerOption(ctx context.Context, obj *v1.ListenerOption, opts ...client.CreateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateMatchableTcpGateway", varargs...) + ret := m.ctrl.Call(m, "CreateListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// CreateMatchableTcpGateway indicates an expected call of CreateMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayWriterMockRecorder) CreateMatchableTcpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// CreateListenerOption indicates an expected call of CreateListenerOption. +func (mr *MockListenerOptionWriterMockRecorder) CreateListenerOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayWriter)(nil).CreateMatchableTcpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateListenerOption", reflect.TypeOf((*MockListenerOptionWriter)(nil).CreateListenerOption), varargs...) } -// DeleteAllOfMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayWriter) DeleteAllOfMatchableTcpGateway(ctx context.Context, opts ...client.DeleteAllOfOption) error { +// DeleteAllOfListenerOption mocks base method. +func (m *MockListenerOptionWriter) DeleteAllOfListenerOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteAllOfMatchableTcpGateway", varargs...) + ret := m.ctrl.Call(m, "DeleteAllOfListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteAllOfMatchableTcpGateway indicates an expected call of DeleteAllOfMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayWriterMockRecorder) DeleteAllOfMatchableTcpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { +// DeleteAllOfListenerOption indicates an expected call of DeleteAllOfListenerOption. +func (mr *MockListenerOptionWriterMockRecorder) DeleteAllOfListenerOption(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayWriter)(nil).DeleteAllOfMatchableTcpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfListenerOption", reflect.TypeOf((*MockListenerOptionWriter)(nil).DeleteAllOfListenerOption), varargs...) } -// DeleteMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayWriter) DeleteMatchableTcpGateway(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { +// DeleteListenerOption mocks base method. +func (m *MockListenerOptionWriter) DeleteListenerOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, key} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteMatchableTcpGateway", varargs...) + ret := m.ctrl.Call(m, "DeleteListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteMatchableTcpGateway indicates an expected call of DeleteMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayWriterMockRecorder) DeleteMatchableTcpGateway(ctx, key interface{}, opts ...interface{}) *gomock.Call { +// DeleteListenerOption indicates an expected call of DeleteListenerOption. +func (mr *MockListenerOptionWriterMockRecorder) DeleteListenerOption(ctx, key interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, key}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayWriter)(nil).DeleteMatchableTcpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteListenerOption", reflect.TypeOf((*MockListenerOptionWriter)(nil).DeleteListenerOption), varargs...) } -// PatchMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayWriter) PatchMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, patch client.Patch, opts ...client.PatchOption) error { +// PatchListenerOption mocks base method. +func (m *MockListenerOptionWriter) PatchListenerOption(ctx context.Context, obj *v1.ListenerOption, patch client.Patch, opts ...client.PatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchMatchableTcpGateway", varargs...) + ret := m.ctrl.Call(m, "PatchListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchMatchableTcpGateway indicates an expected call of PatchMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayWriterMockRecorder) PatchMatchableTcpGateway(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchListenerOption indicates an expected call of PatchListenerOption. +func (mr *MockListenerOptionWriterMockRecorder) PatchListenerOption(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayWriter)(nil).PatchMatchableTcpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchListenerOption", reflect.TypeOf((*MockListenerOptionWriter)(nil).PatchListenerOption), varargs...) } -// UpdateMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayWriter) UpdateMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, opts ...client.UpdateOption) error { +// UpdateListenerOption mocks base method. +func (m *MockListenerOptionWriter) UpdateListenerOption(ctx context.Context, obj *v1.ListenerOption, opts ...client.UpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateMatchableTcpGateway", varargs...) + ret := m.ctrl.Call(m, "UpdateListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateMatchableTcpGateway indicates an expected call of UpdateMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayWriterMockRecorder) UpdateMatchableTcpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateListenerOption indicates an expected call of UpdateListenerOption. +func (mr *MockListenerOptionWriterMockRecorder) UpdateListenerOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayWriter)(nil).UpdateMatchableTcpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateListenerOption", reflect.TypeOf((*MockListenerOptionWriter)(nil).UpdateListenerOption), varargs...) } -// UpsertMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayWriter) UpsertMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, transitionFuncs ...v1.MatchableTcpGatewayTransitionFunction) error { +// UpsertListenerOption mocks base method. +func (m *MockListenerOptionWriter) UpsertListenerOption(ctx context.Context, obj *v1.ListenerOption, transitionFuncs ...v1.ListenerOptionTransitionFunction) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range transitionFuncs { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpsertMatchableTcpGateway", varargs...) + ret := m.ctrl.Call(m, "UpsertListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpsertMatchableTcpGateway indicates an expected call of UpsertMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayWriterMockRecorder) UpsertMatchableTcpGateway(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { +// UpsertListenerOption indicates an expected call of UpsertListenerOption. +func (mr *MockListenerOptionWriterMockRecorder) UpsertListenerOption(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, transitionFuncs...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayWriter)(nil).UpsertMatchableTcpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertListenerOption", reflect.TypeOf((*MockListenerOptionWriter)(nil).UpsertListenerOption), varargs...) } -// MockMatchableTcpGatewayStatusWriter is a mock of MatchableTcpGatewayStatusWriter interface. -type MockMatchableTcpGatewayStatusWriter struct { +// MockListenerOptionStatusWriter is a mock of ListenerOptionStatusWriter interface. +type MockListenerOptionStatusWriter struct { ctrl *gomock.Controller - recorder *MockMatchableTcpGatewayStatusWriterMockRecorder + recorder *MockListenerOptionStatusWriterMockRecorder } -// MockMatchableTcpGatewayStatusWriterMockRecorder is the mock recorder for MockMatchableTcpGatewayStatusWriter. -type MockMatchableTcpGatewayStatusWriterMockRecorder struct { - mock *MockMatchableTcpGatewayStatusWriter +// MockListenerOptionStatusWriterMockRecorder is the mock recorder for MockListenerOptionStatusWriter. +type MockListenerOptionStatusWriterMockRecorder struct { + mock *MockListenerOptionStatusWriter } -// NewMockMatchableTcpGatewayStatusWriter creates a new mock instance. -func NewMockMatchableTcpGatewayStatusWriter(ctrl *gomock.Controller) *MockMatchableTcpGatewayStatusWriter { - mock := &MockMatchableTcpGatewayStatusWriter{ctrl: ctrl} - mock.recorder = &MockMatchableTcpGatewayStatusWriterMockRecorder{mock} +// NewMockListenerOptionStatusWriter creates a new mock instance. +func NewMockListenerOptionStatusWriter(ctrl *gomock.Controller) *MockListenerOptionStatusWriter { + mock := &MockListenerOptionStatusWriter{ctrl: ctrl} + mock.recorder = &MockListenerOptionStatusWriterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMatchableTcpGatewayStatusWriter) EXPECT() *MockMatchableTcpGatewayStatusWriterMockRecorder { +func (m *MockListenerOptionStatusWriter) EXPECT() *MockListenerOptionStatusWriterMockRecorder { return m.recorder } -// PatchMatchableTcpGatewayStatus mocks base method. -func (m *MockMatchableTcpGatewayStatusWriter) PatchMatchableTcpGatewayStatus(ctx context.Context, obj *v1.MatchableTcpGateway, patch client.Patch, opts ...client.SubResourcePatchOption) error { +// PatchListenerOptionStatus mocks base method. +func (m *MockListenerOptionStatusWriter) PatchListenerOptionStatus(ctx context.Context, obj *v1.ListenerOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchMatchableTcpGatewayStatus", varargs...) + ret := m.ctrl.Call(m, "PatchListenerOptionStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchMatchableTcpGatewayStatus indicates an expected call of PatchMatchableTcpGatewayStatus. -func (mr *MockMatchableTcpGatewayStatusWriterMockRecorder) PatchMatchableTcpGatewayStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchListenerOptionStatus indicates an expected call of PatchListenerOptionStatus. +func (mr *MockListenerOptionStatusWriterMockRecorder) PatchListenerOptionStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableTcpGatewayStatus", reflect.TypeOf((*MockMatchableTcpGatewayStatusWriter)(nil).PatchMatchableTcpGatewayStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchListenerOptionStatus", reflect.TypeOf((*MockListenerOptionStatusWriter)(nil).PatchListenerOptionStatus), varargs...) } -// UpdateMatchableTcpGatewayStatus mocks base method. -func (m *MockMatchableTcpGatewayStatusWriter) UpdateMatchableTcpGatewayStatus(ctx context.Context, obj *v1.MatchableTcpGateway, opts ...client.SubResourceUpdateOption) error { +// UpdateListenerOptionStatus mocks base method. +func (m *MockListenerOptionStatusWriter) UpdateListenerOptionStatus(ctx context.Context, obj *v1.ListenerOption, opts ...client.SubResourceUpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateMatchableTcpGatewayStatus", varargs...) + ret := m.ctrl.Call(m, "UpdateListenerOptionStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateMatchableTcpGatewayStatus indicates an expected call of UpdateMatchableTcpGatewayStatus. -func (mr *MockMatchableTcpGatewayStatusWriterMockRecorder) UpdateMatchableTcpGatewayStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateListenerOptionStatus indicates an expected call of UpdateListenerOptionStatus. +func (mr *MockListenerOptionStatusWriterMockRecorder) UpdateListenerOptionStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableTcpGatewayStatus", reflect.TypeOf((*MockMatchableTcpGatewayStatusWriter)(nil).UpdateMatchableTcpGatewayStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateListenerOptionStatus", reflect.TypeOf((*MockListenerOptionStatusWriter)(nil).UpdateListenerOptionStatus), varargs...) } -// MockMatchableTcpGatewayClient is a mock of MatchableTcpGatewayClient interface. -type MockMatchableTcpGatewayClient struct { +// MockListenerOptionClient is a mock of ListenerOptionClient interface. +type MockListenerOptionClient struct { ctrl *gomock.Controller - recorder *MockMatchableTcpGatewayClientMockRecorder + recorder *MockListenerOptionClientMockRecorder } -// MockMatchableTcpGatewayClientMockRecorder is the mock recorder for MockMatchableTcpGatewayClient. -type MockMatchableTcpGatewayClientMockRecorder struct { - mock *MockMatchableTcpGatewayClient +// MockListenerOptionClientMockRecorder is the mock recorder for MockListenerOptionClient. +type MockListenerOptionClientMockRecorder struct { + mock *MockListenerOptionClient } -// NewMockMatchableTcpGatewayClient creates a new mock instance. -func NewMockMatchableTcpGatewayClient(ctrl *gomock.Controller) *MockMatchableTcpGatewayClient { - mock := &MockMatchableTcpGatewayClient{ctrl: ctrl} - mock.recorder = &MockMatchableTcpGatewayClientMockRecorder{mock} +// NewMockListenerOptionClient creates a new mock instance. +func NewMockListenerOptionClient(ctrl *gomock.Controller) *MockListenerOptionClient { + mock := &MockListenerOptionClient{ctrl: ctrl} + mock.recorder = &MockListenerOptionClientMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMatchableTcpGatewayClient) EXPECT() *MockMatchableTcpGatewayClientMockRecorder { +func (m *MockListenerOptionClient) EXPECT() *MockListenerOptionClientMockRecorder { return m.recorder } -// CreateMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayClient) CreateMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, opts ...client.CreateOption) error { +// CreateListenerOption mocks base method. +func (m *MockListenerOptionClient) CreateListenerOption(ctx context.Context, obj *v1.ListenerOption, opts ...client.CreateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateMatchableTcpGateway", varargs...) + ret := m.ctrl.Call(m, "CreateListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// CreateMatchableTcpGateway indicates an expected call of CreateMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayClientMockRecorder) CreateMatchableTcpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// CreateListenerOption indicates an expected call of CreateListenerOption. +func (mr *MockListenerOptionClientMockRecorder) CreateListenerOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).CreateMatchableTcpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateListenerOption", reflect.TypeOf((*MockListenerOptionClient)(nil).CreateListenerOption), varargs...) } -// DeleteAllOfMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayClient) DeleteAllOfMatchableTcpGateway(ctx context.Context, opts ...client.DeleteAllOfOption) error { +// DeleteAllOfListenerOption mocks base method. +func (m *MockListenerOptionClient) DeleteAllOfListenerOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteAllOfMatchableTcpGateway", varargs...) + ret := m.ctrl.Call(m, "DeleteAllOfListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteAllOfMatchableTcpGateway indicates an expected call of DeleteAllOfMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayClientMockRecorder) DeleteAllOfMatchableTcpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { +// DeleteAllOfListenerOption indicates an expected call of DeleteAllOfListenerOption. +func (mr *MockListenerOptionClientMockRecorder) DeleteAllOfListenerOption(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).DeleteAllOfMatchableTcpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfListenerOption", reflect.TypeOf((*MockListenerOptionClient)(nil).DeleteAllOfListenerOption), varargs...) } -// DeleteMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayClient) DeleteMatchableTcpGateway(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { +// DeleteListenerOption mocks base method. +func (m *MockListenerOptionClient) DeleteListenerOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, key} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteMatchableTcpGateway", varargs...) + ret := m.ctrl.Call(m, "DeleteListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteMatchableTcpGateway indicates an expected call of DeleteMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayClientMockRecorder) DeleteMatchableTcpGateway(ctx, key interface{}, opts ...interface{}) *gomock.Call { +// DeleteListenerOption indicates an expected call of DeleteListenerOption. +func (mr *MockListenerOptionClientMockRecorder) DeleteListenerOption(ctx, key interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, key}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).DeleteMatchableTcpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteListenerOption", reflect.TypeOf((*MockListenerOptionClient)(nil).DeleteListenerOption), varargs...) } -// GetMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayClient) GetMatchableTcpGateway(ctx context.Context, key client.ObjectKey) (*v1.MatchableTcpGateway, error) { +// GetListenerOption mocks base method. +func (m *MockListenerOptionClient) GetListenerOption(ctx context.Context, key client.ObjectKey) (*v1.ListenerOption, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetMatchableTcpGateway", ctx, key) - ret0, _ := ret[0].(*v1.MatchableTcpGateway) + ret := m.ctrl.Call(m, "GetListenerOption", ctx, key) + ret0, _ := ret[0].(*v1.ListenerOption) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetMatchableTcpGateway indicates an expected call of GetMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayClientMockRecorder) GetMatchableTcpGateway(ctx, key interface{}) *gomock.Call { +// GetListenerOption indicates an expected call of GetListenerOption. +func (mr *MockListenerOptionClientMockRecorder) GetListenerOption(ctx, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).GetMatchableTcpGateway), ctx, key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetListenerOption", reflect.TypeOf((*MockListenerOptionClient)(nil).GetListenerOption), ctx, key) } -// ListMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayClient) ListMatchableTcpGateway(ctx context.Context, opts ...client.ListOption) (*v1.MatchableTcpGatewayList, error) { +// ListListenerOption mocks base method. +func (m *MockListenerOptionClient) ListListenerOption(ctx context.Context, opts ...client.ListOption) (*v1.ListenerOptionList, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ListMatchableTcpGateway", varargs...) - ret0, _ := ret[0].(*v1.MatchableTcpGatewayList) + ret := m.ctrl.Call(m, "ListListenerOption", varargs...) + ret0, _ := ret[0].(*v1.ListenerOptionList) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListMatchableTcpGateway indicates an expected call of ListMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayClientMockRecorder) ListMatchableTcpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { +// ListListenerOption indicates an expected call of ListListenerOption. +func (mr *MockListenerOptionClientMockRecorder) ListListenerOption(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).ListMatchableTcpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListListenerOption", reflect.TypeOf((*MockListenerOptionClient)(nil).ListListenerOption), varargs...) } -// PatchMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayClient) PatchMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, patch client.Patch, opts ...client.PatchOption) error { +// PatchListenerOption mocks base method. +func (m *MockListenerOptionClient) PatchListenerOption(ctx context.Context, obj *v1.ListenerOption, patch client.Patch, opts ...client.PatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchMatchableTcpGateway", varargs...) + ret := m.ctrl.Call(m, "PatchListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchMatchableTcpGateway indicates an expected call of PatchMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayClientMockRecorder) PatchMatchableTcpGateway(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchListenerOption indicates an expected call of PatchListenerOption. +func (mr *MockListenerOptionClientMockRecorder) PatchListenerOption(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).PatchMatchableTcpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchListenerOption", reflect.TypeOf((*MockListenerOptionClient)(nil).PatchListenerOption), varargs...) } -// PatchMatchableTcpGatewayStatus mocks base method. -func (m *MockMatchableTcpGatewayClient) PatchMatchableTcpGatewayStatus(ctx context.Context, obj *v1.MatchableTcpGateway, patch client.Patch, opts ...client.SubResourcePatchOption) error { +// PatchListenerOptionStatus mocks base method. +func (m *MockListenerOptionClient) PatchListenerOptionStatus(ctx context.Context, obj *v1.ListenerOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchMatchableTcpGatewayStatus", varargs...) + ret := m.ctrl.Call(m, "PatchListenerOptionStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchMatchableTcpGatewayStatus indicates an expected call of PatchMatchableTcpGatewayStatus. -func (mr *MockMatchableTcpGatewayClientMockRecorder) PatchMatchableTcpGatewayStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchListenerOptionStatus indicates an expected call of PatchListenerOptionStatus. +func (mr *MockListenerOptionClientMockRecorder) PatchListenerOptionStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableTcpGatewayStatus", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).PatchMatchableTcpGatewayStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchListenerOptionStatus", reflect.TypeOf((*MockListenerOptionClient)(nil).PatchListenerOptionStatus), varargs...) } -// UpdateMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayClient) UpdateMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, opts ...client.UpdateOption) error { +// UpdateListenerOption mocks base method. +func (m *MockListenerOptionClient) UpdateListenerOption(ctx context.Context, obj *v1.ListenerOption, opts ...client.UpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateMatchableTcpGateway", varargs...) + ret := m.ctrl.Call(m, "UpdateListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateMatchableTcpGateway indicates an expected call of UpdateMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayClientMockRecorder) UpdateMatchableTcpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateListenerOption indicates an expected call of UpdateListenerOption. +func (mr *MockListenerOptionClientMockRecorder) UpdateListenerOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).UpdateMatchableTcpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateListenerOption", reflect.TypeOf((*MockListenerOptionClient)(nil).UpdateListenerOption), varargs...) } -// UpdateMatchableTcpGatewayStatus mocks base method. -func (m *MockMatchableTcpGatewayClient) UpdateMatchableTcpGatewayStatus(ctx context.Context, obj *v1.MatchableTcpGateway, opts ...client.SubResourceUpdateOption) error { +// UpdateListenerOptionStatus mocks base method. +func (m *MockListenerOptionClient) UpdateListenerOptionStatus(ctx context.Context, obj *v1.ListenerOption, opts ...client.SubResourceUpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateMatchableTcpGatewayStatus", varargs...) + ret := m.ctrl.Call(m, "UpdateListenerOptionStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateMatchableTcpGatewayStatus indicates an expected call of UpdateMatchableTcpGatewayStatus. -func (mr *MockMatchableTcpGatewayClientMockRecorder) UpdateMatchableTcpGatewayStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateListenerOptionStatus indicates an expected call of UpdateListenerOptionStatus. +func (mr *MockListenerOptionClientMockRecorder) UpdateListenerOptionStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableTcpGatewayStatus", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).UpdateMatchableTcpGatewayStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateListenerOptionStatus", reflect.TypeOf((*MockListenerOptionClient)(nil).UpdateListenerOptionStatus), varargs...) } -// UpsertMatchableTcpGateway mocks base method. -func (m *MockMatchableTcpGatewayClient) UpsertMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, transitionFuncs ...v1.MatchableTcpGatewayTransitionFunction) error { +// UpsertListenerOption mocks base method. +func (m *MockListenerOptionClient) UpsertListenerOption(ctx context.Context, obj *v1.ListenerOption, transitionFuncs ...v1.ListenerOptionTransitionFunction) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range transitionFuncs { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpsertMatchableTcpGateway", varargs...) + ret := m.ctrl.Call(m, "UpsertListenerOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpsertMatchableTcpGateway indicates an expected call of UpsertMatchableTcpGateway. -func (mr *MockMatchableTcpGatewayClientMockRecorder) UpsertMatchableTcpGateway(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { +// UpsertListenerOption indicates an expected call of UpsertListenerOption. +func (mr *MockListenerOptionClientMockRecorder) UpsertListenerOption(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, transitionFuncs...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).UpsertMatchableTcpGateway), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertListenerOption", reflect.TypeOf((*MockListenerOptionClient)(nil).UpsertListenerOption), varargs...) } -// MockMulticlusterMatchableTcpGatewayClient is a mock of MulticlusterMatchableTcpGatewayClient interface. -type MockMulticlusterMatchableTcpGatewayClient struct { +// MockMulticlusterListenerOptionClient is a mock of MulticlusterListenerOptionClient interface. +type MockMulticlusterListenerOptionClient struct { ctrl *gomock.Controller - recorder *MockMulticlusterMatchableTcpGatewayClientMockRecorder + recorder *MockMulticlusterListenerOptionClientMockRecorder } -// MockMulticlusterMatchableTcpGatewayClientMockRecorder is the mock recorder for MockMulticlusterMatchableTcpGatewayClient. -type MockMulticlusterMatchableTcpGatewayClientMockRecorder struct { - mock *MockMulticlusterMatchableTcpGatewayClient +// MockMulticlusterListenerOptionClientMockRecorder is the mock recorder for MockMulticlusterListenerOptionClient. +type MockMulticlusterListenerOptionClientMockRecorder struct { + mock *MockMulticlusterListenerOptionClient } -// NewMockMulticlusterMatchableTcpGatewayClient creates a new mock instance. -func NewMockMulticlusterMatchableTcpGatewayClient(ctrl *gomock.Controller) *MockMulticlusterMatchableTcpGatewayClient { - mock := &MockMulticlusterMatchableTcpGatewayClient{ctrl: ctrl} - mock.recorder = &MockMulticlusterMatchableTcpGatewayClientMockRecorder{mock} +// NewMockMulticlusterListenerOptionClient creates a new mock instance. +func NewMockMulticlusterListenerOptionClient(ctrl *gomock.Controller) *MockMulticlusterListenerOptionClient { + mock := &MockMulticlusterListenerOptionClient{ctrl: ctrl} + mock.recorder = &MockMulticlusterListenerOptionClientMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMulticlusterMatchableTcpGatewayClient) EXPECT() *MockMulticlusterMatchableTcpGatewayClientMockRecorder { +func (m *MockMulticlusterListenerOptionClient) EXPECT() *MockMulticlusterListenerOptionClientMockRecorder { return m.recorder } // Cluster mocks base method. -func (m *MockMulticlusterMatchableTcpGatewayClient) Cluster(cluster string) (v1.MatchableTcpGatewayClient, error) { +func (m *MockMulticlusterListenerOptionClient) Cluster(cluster string) (v1.ListenerOptionClient, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Cluster", cluster) - ret0, _ := ret[0].(v1.MatchableTcpGatewayClient) + ret0, _ := ret[0].(v1.ListenerOptionClient) ret1, _ := ret[1].(error) return ret0, ret1 } // Cluster indicates an expected call of Cluster. -func (mr *MockMulticlusterMatchableTcpGatewayClientMockRecorder) Cluster(cluster interface{}) *gomock.Call { +func (mr *MockMulticlusterListenerOptionClientMockRecorder) Cluster(cluster interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterMatchableTcpGatewayClient)(nil).Cluster), cluster) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterListenerOptionClient)(nil).Cluster), cluster) } -// MockRouteTableReader is a mock of RouteTableReader interface. -type MockRouteTableReader struct { +// MockMatchableHttpGatewayReader is a mock of MatchableHttpGatewayReader interface. +type MockMatchableHttpGatewayReader struct { ctrl *gomock.Controller - recorder *MockRouteTableReaderMockRecorder + recorder *MockMatchableHttpGatewayReaderMockRecorder } -// MockRouteTableReaderMockRecorder is the mock recorder for MockRouteTableReader. -type MockRouteTableReaderMockRecorder struct { - mock *MockRouteTableReader +// MockMatchableHttpGatewayReaderMockRecorder is the mock recorder for MockMatchableHttpGatewayReader. +type MockMatchableHttpGatewayReaderMockRecorder struct { + mock *MockMatchableHttpGatewayReader } -// NewMockRouteTableReader creates a new mock instance. -func NewMockRouteTableReader(ctrl *gomock.Controller) *MockRouteTableReader { - mock := &MockRouteTableReader{ctrl: ctrl} - mock.recorder = &MockRouteTableReaderMockRecorder{mock} +// NewMockMatchableHttpGatewayReader creates a new mock instance. +func NewMockMatchableHttpGatewayReader(ctrl *gomock.Controller) *MockMatchableHttpGatewayReader { + mock := &MockMatchableHttpGatewayReader{ctrl: ctrl} + mock.recorder = &MockMatchableHttpGatewayReaderMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteTableReader) EXPECT() *MockRouteTableReaderMockRecorder { +func (m *MockMatchableHttpGatewayReader) EXPECT() *MockMatchableHttpGatewayReaderMockRecorder { return m.recorder } -// GetRouteTable mocks base method. -func (m *MockRouteTableReader) GetRouteTable(ctx context.Context, key client.ObjectKey) (*v1.RouteTable, error) { +// GetMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayReader) GetMatchableHttpGateway(ctx context.Context, key client.ObjectKey) (*v1.MatchableHttpGateway, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetRouteTable", ctx, key) - ret0, _ := ret[0].(*v1.RouteTable) + ret := m.ctrl.Call(m, "GetMatchableHttpGateway", ctx, key) + ret0, _ := ret[0].(*v1.MatchableHttpGateway) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetRouteTable indicates an expected call of GetRouteTable. -func (mr *MockRouteTableReaderMockRecorder) GetRouteTable(ctx, key interface{}) *gomock.Call { +// GetMatchableHttpGateway indicates an expected call of GetMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayReaderMockRecorder) GetMatchableHttpGateway(ctx, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRouteTable", reflect.TypeOf((*MockRouteTableReader)(nil).GetRouteTable), ctx, key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayReader)(nil).GetMatchableHttpGateway), ctx, key) } -// ListRouteTable mocks base method. -func (m *MockRouteTableReader) ListRouteTable(ctx context.Context, opts ...client.ListOption) (*v1.RouteTableList, error) { +// ListMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayReader) ListMatchableHttpGateway(ctx context.Context, opts ...client.ListOption) (*v1.MatchableHttpGatewayList, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ListRouteTable", varargs...) - ret0, _ := ret[0].(*v1.RouteTableList) + ret := m.ctrl.Call(m, "ListMatchableHttpGateway", varargs...) + ret0, _ := ret[0].(*v1.MatchableHttpGatewayList) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListRouteTable indicates an expected call of ListRouteTable. -func (mr *MockRouteTableReaderMockRecorder) ListRouteTable(ctx interface{}, opts ...interface{}) *gomock.Call { +// ListMatchableHttpGateway indicates an expected call of ListMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayReaderMockRecorder) ListMatchableHttpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRouteTable", reflect.TypeOf((*MockRouteTableReader)(nil).ListRouteTable), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayReader)(nil).ListMatchableHttpGateway), varargs...) } -// MockRouteTableWriter is a mock of RouteTableWriter interface. -type MockRouteTableWriter struct { +// MockMatchableHttpGatewayWriter is a mock of MatchableHttpGatewayWriter interface. +type MockMatchableHttpGatewayWriter struct { ctrl *gomock.Controller - recorder *MockRouteTableWriterMockRecorder + recorder *MockMatchableHttpGatewayWriterMockRecorder } -// MockRouteTableWriterMockRecorder is the mock recorder for MockRouteTableWriter. -type MockRouteTableWriterMockRecorder struct { - mock *MockRouteTableWriter +// MockMatchableHttpGatewayWriterMockRecorder is the mock recorder for MockMatchableHttpGatewayWriter. +type MockMatchableHttpGatewayWriterMockRecorder struct { + mock *MockMatchableHttpGatewayWriter } -// NewMockRouteTableWriter creates a new mock instance. -func NewMockRouteTableWriter(ctrl *gomock.Controller) *MockRouteTableWriter { - mock := &MockRouteTableWriter{ctrl: ctrl} - mock.recorder = &MockRouteTableWriterMockRecorder{mock} +// NewMockMatchableHttpGatewayWriter creates a new mock instance. +func NewMockMatchableHttpGatewayWriter(ctrl *gomock.Controller) *MockMatchableHttpGatewayWriter { + mock := &MockMatchableHttpGatewayWriter{ctrl: ctrl} + mock.recorder = &MockMatchableHttpGatewayWriterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteTableWriter) EXPECT() *MockRouteTableWriterMockRecorder { +func (m *MockMatchableHttpGatewayWriter) EXPECT() *MockMatchableHttpGatewayWriterMockRecorder { return m.recorder } -// CreateRouteTable mocks base method. -func (m *MockRouteTableWriter) CreateRouteTable(ctx context.Context, obj *v1.RouteTable, opts ...client.CreateOption) error { +// CreateMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayWriter) CreateMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, opts ...client.CreateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateRouteTable", varargs...) + ret := m.ctrl.Call(m, "CreateMatchableHttpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// CreateRouteTable indicates an expected call of CreateRouteTable. -func (mr *MockRouteTableWriterMockRecorder) CreateRouteTable(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// CreateMatchableHttpGateway indicates an expected call of CreateMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayWriterMockRecorder) CreateMatchableHttpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRouteTable", reflect.TypeOf((*MockRouteTableWriter)(nil).CreateRouteTable), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayWriter)(nil).CreateMatchableHttpGateway), varargs...) } -// DeleteAllOfRouteTable mocks base method. -func (m *MockRouteTableWriter) DeleteAllOfRouteTable(ctx context.Context, opts ...client.DeleteAllOfOption) error { +// DeleteAllOfMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayWriter) DeleteAllOfMatchableHttpGateway(ctx context.Context, opts ...client.DeleteAllOfOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteAllOfRouteTable", varargs...) + ret := m.ctrl.Call(m, "DeleteAllOfMatchableHttpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteAllOfRouteTable indicates an expected call of DeleteAllOfRouteTable. -func (mr *MockRouteTableWriterMockRecorder) DeleteAllOfRouteTable(ctx interface{}, opts ...interface{}) *gomock.Call { +// DeleteAllOfMatchableHttpGateway indicates an expected call of DeleteAllOfMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayWriterMockRecorder) DeleteAllOfMatchableHttpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfRouteTable", reflect.TypeOf((*MockRouteTableWriter)(nil).DeleteAllOfRouteTable), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayWriter)(nil).DeleteAllOfMatchableHttpGateway), varargs...) } -// DeleteRouteTable mocks base method. -func (m *MockRouteTableWriter) DeleteRouteTable(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { +// DeleteMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayWriter) DeleteMatchableHttpGateway(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, key} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteRouteTable", varargs...) + ret := m.ctrl.Call(m, "DeleteMatchableHttpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteRouteTable indicates an expected call of DeleteRouteTable. -func (mr *MockRouteTableWriterMockRecorder) DeleteRouteTable(ctx, key interface{}, opts ...interface{}) *gomock.Call { +// DeleteMatchableHttpGateway indicates an expected call of DeleteMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayWriterMockRecorder) DeleteMatchableHttpGateway(ctx, key interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, key}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRouteTable", reflect.TypeOf((*MockRouteTableWriter)(nil).DeleteRouteTable), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayWriter)(nil).DeleteMatchableHttpGateway), varargs...) } -// PatchRouteTable mocks base method. -func (m *MockRouteTableWriter) PatchRouteTable(ctx context.Context, obj *v1.RouteTable, patch client.Patch, opts ...client.PatchOption) error { +// PatchMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayWriter) PatchMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, patch client.Patch, opts ...client.PatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchRouteTable", varargs...) + ret := m.ctrl.Call(m, "PatchMatchableHttpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchRouteTable indicates an expected call of PatchRouteTable. -func (mr *MockRouteTableWriterMockRecorder) PatchRouteTable(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchMatchableHttpGateway indicates an expected call of PatchMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayWriterMockRecorder) PatchMatchableHttpGateway(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteTable", reflect.TypeOf((*MockRouteTableWriter)(nil).PatchRouteTable), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayWriter)(nil).PatchMatchableHttpGateway), varargs...) } -// UpdateRouteTable mocks base method. -func (m *MockRouteTableWriter) UpdateRouteTable(ctx context.Context, obj *v1.RouteTable, opts ...client.UpdateOption) error { +// UpdateMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayWriter) UpdateMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, opts ...client.UpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateRouteTable", varargs...) + ret := m.ctrl.Call(m, "UpdateMatchableHttpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateRouteTable indicates an expected call of UpdateRouteTable. -func (mr *MockRouteTableWriterMockRecorder) UpdateRouteTable(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateMatchableHttpGateway indicates an expected call of UpdateMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayWriterMockRecorder) UpdateMatchableHttpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteTable", reflect.TypeOf((*MockRouteTableWriter)(nil).UpdateRouteTable), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayWriter)(nil).UpdateMatchableHttpGateway), varargs...) } -// UpsertRouteTable mocks base method. -func (m *MockRouteTableWriter) UpsertRouteTable(ctx context.Context, obj *v1.RouteTable, transitionFuncs ...v1.RouteTableTransitionFunction) error { +// UpsertMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayWriter) UpsertMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, transitionFuncs ...v1.MatchableHttpGatewayTransitionFunction) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range transitionFuncs { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpsertRouteTable", varargs...) + ret := m.ctrl.Call(m, "UpsertMatchableHttpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpsertRouteTable indicates an expected call of UpsertRouteTable. -func (mr *MockRouteTableWriterMockRecorder) UpsertRouteTable(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { +// UpsertMatchableHttpGateway indicates an expected call of UpsertMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayWriterMockRecorder) UpsertMatchableHttpGateway(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, transitionFuncs...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertRouteTable", reflect.TypeOf((*MockRouteTableWriter)(nil).UpsertRouteTable), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayWriter)(nil).UpsertMatchableHttpGateway), varargs...) } -// MockRouteTableStatusWriter is a mock of RouteTableStatusWriter interface. -type MockRouteTableStatusWriter struct { +// MockMatchableHttpGatewayStatusWriter is a mock of MatchableHttpGatewayStatusWriter interface. +type MockMatchableHttpGatewayStatusWriter struct { ctrl *gomock.Controller - recorder *MockRouteTableStatusWriterMockRecorder + recorder *MockMatchableHttpGatewayStatusWriterMockRecorder } -// MockRouteTableStatusWriterMockRecorder is the mock recorder for MockRouteTableStatusWriter. -type MockRouteTableStatusWriterMockRecorder struct { - mock *MockRouteTableStatusWriter +// MockMatchableHttpGatewayStatusWriterMockRecorder is the mock recorder for MockMatchableHttpGatewayStatusWriter. +type MockMatchableHttpGatewayStatusWriterMockRecorder struct { + mock *MockMatchableHttpGatewayStatusWriter } -// NewMockRouteTableStatusWriter creates a new mock instance. -func NewMockRouteTableStatusWriter(ctrl *gomock.Controller) *MockRouteTableStatusWriter { - mock := &MockRouteTableStatusWriter{ctrl: ctrl} - mock.recorder = &MockRouteTableStatusWriterMockRecorder{mock} +// NewMockMatchableHttpGatewayStatusWriter creates a new mock instance. +func NewMockMatchableHttpGatewayStatusWriter(ctrl *gomock.Controller) *MockMatchableHttpGatewayStatusWriter { + mock := &MockMatchableHttpGatewayStatusWriter{ctrl: ctrl} + mock.recorder = &MockMatchableHttpGatewayStatusWriterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteTableStatusWriter) EXPECT() *MockRouteTableStatusWriterMockRecorder { +func (m *MockMatchableHttpGatewayStatusWriter) EXPECT() *MockMatchableHttpGatewayStatusWriterMockRecorder { return m.recorder } -// PatchRouteTableStatus mocks base method. -func (m *MockRouteTableStatusWriter) PatchRouteTableStatus(ctx context.Context, obj *v1.RouteTable, patch client.Patch, opts ...client.SubResourcePatchOption) error { +// PatchMatchableHttpGatewayStatus mocks base method. +func (m *MockMatchableHttpGatewayStatusWriter) PatchMatchableHttpGatewayStatus(ctx context.Context, obj *v1.MatchableHttpGateway, patch client.Patch, opts ...client.SubResourcePatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchRouteTableStatus", varargs...) + ret := m.ctrl.Call(m, "PatchMatchableHttpGatewayStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchRouteTableStatus indicates an expected call of PatchRouteTableStatus. -func (mr *MockRouteTableStatusWriterMockRecorder) PatchRouteTableStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchMatchableHttpGatewayStatus indicates an expected call of PatchMatchableHttpGatewayStatus. +func (mr *MockMatchableHttpGatewayStatusWriterMockRecorder) PatchMatchableHttpGatewayStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteTableStatus", reflect.TypeOf((*MockRouteTableStatusWriter)(nil).PatchRouteTableStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableHttpGatewayStatus", reflect.TypeOf((*MockMatchableHttpGatewayStatusWriter)(nil).PatchMatchableHttpGatewayStatus), varargs...) } -// UpdateRouteTableStatus mocks base method. -func (m *MockRouteTableStatusWriter) UpdateRouteTableStatus(ctx context.Context, obj *v1.RouteTable, opts ...client.SubResourceUpdateOption) error { +// UpdateMatchableHttpGatewayStatus mocks base method. +func (m *MockMatchableHttpGatewayStatusWriter) UpdateMatchableHttpGatewayStatus(ctx context.Context, obj *v1.MatchableHttpGateway, opts ...client.SubResourceUpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateRouteTableStatus", varargs...) + ret := m.ctrl.Call(m, "UpdateMatchableHttpGatewayStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateRouteTableStatus indicates an expected call of UpdateRouteTableStatus. -func (mr *MockRouteTableStatusWriterMockRecorder) UpdateRouteTableStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateMatchableHttpGatewayStatus indicates an expected call of UpdateMatchableHttpGatewayStatus. +func (mr *MockMatchableHttpGatewayStatusWriterMockRecorder) UpdateMatchableHttpGatewayStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteTableStatus", reflect.TypeOf((*MockRouteTableStatusWriter)(nil).UpdateRouteTableStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableHttpGatewayStatus", reflect.TypeOf((*MockMatchableHttpGatewayStatusWriter)(nil).UpdateMatchableHttpGatewayStatus), varargs...) } -// MockRouteTableClient is a mock of RouteTableClient interface. -type MockRouteTableClient struct { +// MockMatchableHttpGatewayClient is a mock of MatchableHttpGatewayClient interface. +type MockMatchableHttpGatewayClient struct { ctrl *gomock.Controller - recorder *MockRouteTableClientMockRecorder + recorder *MockMatchableHttpGatewayClientMockRecorder } -// MockRouteTableClientMockRecorder is the mock recorder for MockRouteTableClient. -type MockRouteTableClientMockRecorder struct { - mock *MockRouteTableClient +// MockMatchableHttpGatewayClientMockRecorder is the mock recorder for MockMatchableHttpGatewayClient. +type MockMatchableHttpGatewayClientMockRecorder struct { + mock *MockMatchableHttpGatewayClient } -// NewMockRouteTableClient creates a new mock instance. -func NewMockRouteTableClient(ctrl *gomock.Controller) *MockRouteTableClient { - mock := &MockRouteTableClient{ctrl: ctrl} - mock.recorder = &MockRouteTableClientMockRecorder{mock} +// NewMockMatchableHttpGatewayClient creates a new mock instance. +func NewMockMatchableHttpGatewayClient(ctrl *gomock.Controller) *MockMatchableHttpGatewayClient { + mock := &MockMatchableHttpGatewayClient{ctrl: ctrl} + mock.recorder = &MockMatchableHttpGatewayClientMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteTableClient) EXPECT() *MockRouteTableClientMockRecorder { +func (m *MockMatchableHttpGatewayClient) EXPECT() *MockMatchableHttpGatewayClientMockRecorder { return m.recorder } -// CreateRouteTable mocks base method. -func (m *MockRouteTableClient) CreateRouteTable(ctx context.Context, obj *v1.RouteTable, opts ...client.CreateOption) error { +// CreateMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayClient) CreateMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, opts ...client.CreateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateRouteTable", varargs...) + ret := m.ctrl.Call(m, "CreateMatchableHttpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// CreateRouteTable indicates an expected call of CreateRouteTable. -func (mr *MockRouteTableClientMockRecorder) CreateRouteTable(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// CreateMatchableHttpGateway indicates an expected call of CreateMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayClientMockRecorder) CreateMatchableHttpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).CreateRouteTable), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).CreateMatchableHttpGateway), varargs...) } -// DeleteAllOfRouteTable mocks base method. -func (m *MockRouteTableClient) DeleteAllOfRouteTable(ctx context.Context, opts ...client.DeleteAllOfOption) error { +// DeleteAllOfMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayClient) DeleteAllOfMatchableHttpGateway(ctx context.Context, opts ...client.DeleteAllOfOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteAllOfRouteTable", varargs...) + ret := m.ctrl.Call(m, "DeleteAllOfMatchableHttpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteAllOfRouteTable indicates an expected call of DeleteAllOfRouteTable. -func (mr *MockRouteTableClientMockRecorder) DeleteAllOfRouteTable(ctx interface{}, opts ...interface{}) *gomock.Call { +// DeleteAllOfMatchableHttpGateway indicates an expected call of DeleteAllOfMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayClientMockRecorder) DeleteAllOfMatchableHttpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).DeleteAllOfRouteTable), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).DeleteAllOfMatchableHttpGateway), varargs...) } -// DeleteRouteTable mocks base method. -func (m *MockRouteTableClient) DeleteRouteTable(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { +// DeleteMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayClient) DeleteMatchableHttpGateway(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, key} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteRouteTable", varargs...) + ret := m.ctrl.Call(m, "DeleteMatchableHttpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteRouteTable indicates an expected call of DeleteRouteTable. -func (mr *MockRouteTableClientMockRecorder) DeleteRouteTable(ctx, key interface{}, opts ...interface{}) *gomock.Call { +// DeleteMatchableHttpGateway indicates an expected call of DeleteMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayClientMockRecorder) DeleteMatchableHttpGateway(ctx, key interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, key}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).DeleteRouteTable), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).DeleteMatchableHttpGateway), varargs...) } -// GetRouteTable mocks base method. -func (m *MockRouteTableClient) GetRouteTable(ctx context.Context, key client.ObjectKey) (*v1.RouteTable, error) { +// GetMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayClient) GetMatchableHttpGateway(ctx context.Context, key client.ObjectKey) (*v1.MatchableHttpGateway, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetRouteTable", ctx, key) - ret0, _ := ret[0].(*v1.RouteTable) + ret := m.ctrl.Call(m, "GetMatchableHttpGateway", ctx, key) + ret0, _ := ret[0].(*v1.MatchableHttpGateway) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetRouteTable indicates an expected call of GetRouteTable. -func (mr *MockRouteTableClientMockRecorder) GetRouteTable(ctx, key interface{}) *gomock.Call { +// GetMatchableHttpGateway indicates an expected call of GetMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayClientMockRecorder) GetMatchableHttpGateway(ctx, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).GetRouteTable), ctx, key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).GetMatchableHttpGateway), ctx, key) } -// ListRouteTable mocks base method. -func (m *MockRouteTableClient) ListRouteTable(ctx context.Context, opts ...client.ListOption) (*v1.RouteTableList, error) { +// ListMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayClient) ListMatchableHttpGateway(ctx context.Context, opts ...client.ListOption) (*v1.MatchableHttpGatewayList, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ListRouteTable", varargs...) - ret0, _ := ret[0].(*v1.RouteTableList) + ret := m.ctrl.Call(m, "ListMatchableHttpGateway", varargs...) + ret0, _ := ret[0].(*v1.MatchableHttpGatewayList) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListRouteTable indicates an expected call of ListRouteTable. -func (mr *MockRouteTableClientMockRecorder) ListRouteTable(ctx interface{}, opts ...interface{}) *gomock.Call { +// ListMatchableHttpGateway indicates an expected call of ListMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayClientMockRecorder) ListMatchableHttpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).ListRouteTable), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).ListMatchableHttpGateway), varargs...) } -// PatchRouteTable mocks base method. -func (m *MockRouteTableClient) PatchRouteTable(ctx context.Context, obj *v1.RouteTable, patch client.Patch, opts ...client.PatchOption) error { +// PatchMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayClient) PatchMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, patch client.Patch, opts ...client.PatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchRouteTable", varargs...) + ret := m.ctrl.Call(m, "PatchMatchableHttpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchRouteTable indicates an expected call of PatchRouteTable. -func (mr *MockRouteTableClientMockRecorder) PatchRouteTable(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchMatchableHttpGateway indicates an expected call of PatchMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayClientMockRecorder) PatchMatchableHttpGateway(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).PatchRouteTable), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).PatchMatchableHttpGateway), varargs...) } -// PatchRouteTableStatus mocks base method. -func (m *MockRouteTableClient) PatchRouteTableStatus(ctx context.Context, obj *v1.RouteTable, patch client.Patch, opts ...client.SubResourcePatchOption) error { +// PatchMatchableHttpGatewayStatus mocks base method. +func (m *MockMatchableHttpGatewayClient) PatchMatchableHttpGatewayStatus(ctx context.Context, obj *v1.MatchableHttpGateway, patch client.Patch, opts ...client.SubResourcePatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchRouteTableStatus", varargs...) + ret := m.ctrl.Call(m, "PatchMatchableHttpGatewayStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchRouteTableStatus indicates an expected call of PatchRouteTableStatus. -func (mr *MockRouteTableClientMockRecorder) PatchRouteTableStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchMatchableHttpGatewayStatus indicates an expected call of PatchMatchableHttpGatewayStatus. +func (mr *MockMatchableHttpGatewayClientMockRecorder) PatchMatchableHttpGatewayStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteTableStatus", reflect.TypeOf((*MockRouteTableClient)(nil).PatchRouteTableStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableHttpGatewayStatus", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).PatchMatchableHttpGatewayStatus), varargs...) } -// UpdateRouteTable mocks base method. -func (m *MockRouteTableClient) UpdateRouteTable(ctx context.Context, obj *v1.RouteTable, opts ...client.UpdateOption) error { +// UpdateMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayClient) UpdateMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, opts ...client.UpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateRouteTable", varargs...) + ret := m.ctrl.Call(m, "UpdateMatchableHttpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateRouteTable indicates an expected call of UpdateRouteTable. -func (mr *MockRouteTableClientMockRecorder) UpdateRouteTable(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateMatchableHttpGateway indicates an expected call of UpdateMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayClientMockRecorder) UpdateMatchableHttpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).UpdateRouteTable), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).UpdateMatchableHttpGateway), varargs...) } -// UpdateRouteTableStatus mocks base method. -func (m *MockRouteTableClient) UpdateRouteTableStatus(ctx context.Context, obj *v1.RouteTable, opts ...client.SubResourceUpdateOption) error { +// UpdateMatchableHttpGatewayStatus mocks base method. +func (m *MockMatchableHttpGatewayClient) UpdateMatchableHttpGatewayStatus(ctx context.Context, obj *v1.MatchableHttpGateway, opts ...client.SubResourceUpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateRouteTableStatus", varargs...) + ret := m.ctrl.Call(m, "UpdateMatchableHttpGatewayStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateRouteTableStatus indicates an expected call of UpdateRouteTableStatus. -func (mr *MockRouteTableClientMockRecorder) UpdateRouteTableStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateMatchableHttpGatewayStatus indicates an expected call of UpdateMatchableHttpGatewayStatus. +func (mr *MockMatchableHttpGatewayClientMockRecorder) UpdateMatchableHttpGatewayStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteTableStatus", reflect.TypeOf((*MockRouteTableClient)(nil).UpdateRouteTableStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableHttpGatewayStatus", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).UpdateMatchableHttpGatewayStatus), varargs...) } -// UpsertRouteTable mocks base method. -func (m *MockRouteTableClient) UpsertRouteTable(ctx context.Context, obj *v1.RouteTable, transitionFuncs ...v1.RouteTableTransitionFunction) error { +// UpsertMatchableHttpGateway mocks base method. +func (m *MockMatchableHttpGatewayClient) UpsertMatchableHttpGateway(ctx context.Context, obj *v1.MatchableHttpGateway, transitionFuncs ...v1.MatchableHttpGatewayTransitionFunction) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range transitionFuncs { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpsertRouteTable", varargs...) + ret := m.ctrl.Call(m, "UpsertMatchableHttpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpsertRouteTable indicates an expected call of UpsertRouteTable. -func (mr *MockRouteTableClientMockRecorder) UpsertRouteTable(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { +// UpsertMatchableHttpGateway indicates an expected call of UpsertMatchableHttpGateway. +func (mr *MockMatchableHttpGatewayClientMockRecorder) UpsertMatchableHttpGateway(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, transitionFuncs...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).UpsertRouteTable), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertMatchableHttpGateway", reflect.TypeOf((*MockMatchableHttpGatewayClient)(nil).UpsertMatchableHttpGateway), varargs...) } -// MockMulticlusterRouteTableClient is a mock of MulticlusterRouteTableClient interface. -type MockMulticlusterRouteTableClient struct { +// MockMulticlusterMatchableHttpGatewayClient is a mock of MulticlusterMatchableHttpGatewayClient interface. +type MockMulticlusterMatchableHttpGatewayClient struct { ctrl *gomock.Controller - recorder *MockMulticlusterRouteTableClientMockRecorder + recorder *MockMulticlusterMatchableHttpGatewayClientMockRecorder } -// MockMulticlusterRouteTableClientMockRecorder is the mock recorder for MockMulticlusterRouteTableClient. -type MockMulticlusterRouteTableClientMockRecorder struct { - mock *MockMulticlusterRouteTableClient +// MockMulticlusterMatchableHttpGatewayClientMockRecorder is the mock recorder for MockMulticlusterMatchableHttpGatewayClient. +type MockMulticlusterMatchableHttpGatewayClientMockRecorder struct { + mock *MockMulticlusterMatchableHttpGatewayClient } -// NewMockMulticlusterRouteTableClient creates a new mock instance. -func NewMockMulticlusterRouteTableClient(ctrl *gomock.Controller) *MockMulticlusterRouteTableClient { - mock := &MockMulticlusterRouteTableClient{ctrl: ctrl} - mock.recorder = &MockMulticlusterRouteTableClientMockRecorder{mock} +// NewMockMulticlusterMatchableHttpGatewayClient creates a new mock instance. +func NewMockMulticlusterMatchableHttpGatewayClient(ctrl *gomock.Controller) *MockMulticlusterMatchableHttpGatewayClient { + mock := &MockMulticlusterMatchableHttpGatewayClient{ctrl: ctrl} + mock.recorder = &MockMulticlusterMatchableHttpGatewayClientMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMulticlusterRouteTableClient) EXPECT() *MockMulticlusterRouteTableClientMockRecorder { +func (m *MockMulticlusterMatchableHttpGatewayClient) EXPECT() *MockMulticlusterMatchableHttpGatewayClientMockRecorder { return m.recorder } // Cluster mocks base method. -func (m *MockMulticlusterRouteTableClient) Cluster(cluster string) (v1.RouteTableClient, error) { +func (m *MockMulticlusterMatchableHttpGatewayClient) Cluster(cluster string) (v1.MatchableHttpGatewayClient, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Cluster", cluster) - ret0, _ := ret[0].(v1.RouteTableClient) + ret0, _ := ret[0].(v1.MatchableHttpGatewayClient) ret1, _ := ret[1].(error) return ret0, ret1 } // Cluster indicates an expected call of Cluster. -func (mr *MockMulticlusterRouteTableClientMockRecorder) Cluster(cluster interface{}) *gomock.Call { +func (mr *MockMulticlusterMatchableHttpGatewayClientMockRecorder) Cluster(cluster interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterRouteTableClient)(nil).Cluster), cluster) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterMatchableHttpGatewayClient)(nil).Cluster), cluster) } -// MockVirtualServiceReader is a mock of VirtualServiceReader interface. -type MockVirtualServiceReader struct { +// MockMatchableTcpGatewayReader is a mock of MatchableTcpGatewayReader interface. +type MockMatchableTcpGatewayReader struct { ctrl *gomock.Controller - recorder *MockVirtualServiceReaderMockRecorder + recorder *MockMatchableTcpGatewayReaderMockRecorder } -// MockVirtualServiceReaderMockRecorder is the mock recorder for MockVirtualServiceReader. -type MockVirtualServiceReaderMockRecorder struct { - mock *MockVirtualServiceReader +// MockMatchableTcpGatewayReaderMockRecorder is the mock recorder for MockMatchableTcpGatewayReader. +type MockMatchableTcpGatewayReaderMockRecorder struct { + mock *MockMatchableTcpGatewayReader } -// NewMockVirtualServiceReader creates a new mock instance. -func NewMockVirtualServiceReader(ctrl *gomock.Controller) *MockVirtualServiceReader { - mock := &MockVirtualServiceReader{ctrl: ctrl} - mock.recorder = &MockVirtualServiceReaderMockRecorder{mock} +// NewMockMatchableTcpGatewayReader creates a new mock instance. +func NewMockMatchableTcpGatewayReader(ctrl *gomock.Controller) *MockMatchableTcpGatewayReader { + mock := &MockMatchableTcpGatewayReader{ctrl: ctrl} + mock.recorder = &MockMatchableTcpGatewayReaderMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockVirtualServiceReader) EXPECT() *MockVirtualServiceReaderMockRecorder { +func (m *MockMatchableTcpGatewayReader) EXPECT() *MockMatchableTcpGatewayReaderMockRecorder { return m.recorder } -// GetVirtualService mocks base method. -func (m *MockVirtualServiceReader) GetVirtualService(ctx context.Context, key client.ObjectKey) (*v1.VirtualService, error) { +// GetMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayReader) GetMatchableTcpGateway(ctx context.Context, key client.ObjectKey) (*v1.MatchableTcpGateway, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetVirtualService", ctx, key) - ret0, _ := ret[0].(*v1.VirtualService) + ret := m.ctrl.Call(m, "GetMatchableTcpGateway", ctx, key) + ret0, _ := ret[0].(*v1.MatchableTcpGateway) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetVirtualService indicates an expected call of GetVirtualService. -func (mr *MockVirtualServiceReaderMockRecorder) GetVirtualService(ctx, key interface{}) *gomock.Call { +// GetMatchableTcpGateway indicates an expected call of GetMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayReaderMockRecorder) GetMatchableTcpGateway(ctx, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVirtualService", reflect.TypeOf((*MockVirtualServiceReader)(nil).GetVirtualService), ctx, key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayReader)(nil).GetMatchableTcpGateway), ctx, key) } -// ListVirtualService mocks base method. -func (m *MockVirtualServiceReader) ListVirtualService(ctx context.Context, opts ...client.ListOption) (*v1.VirtualServiceList, error) { +// ListMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayReader) ListMatchableTcpGateway(ctx context.Context, opts ...client.ListOption) (*v1.MatchableTcpGatewayList, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ListVirtualService", varargs...) - ret0, _ := ret[0].(*v1.VirtualServiceList) + ret := m.ctrl.Call(m, "ListMatchableTcpGateway", varargs...) + ret0, _ := ret[0].(*v1.MatchableTcpGatewayList) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListVirtualService indicates an expected call of ListVirtualService. -func (mr *MockVirtualServiceReaderMockRecorder) ListVirtualService(ctx interface{}, opts ...interface{}) *gomock.Call { +// ListMatchableTcpGateway indicates an expected call of ListMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayReaderMockRecorder) ListMatchableTcpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualService", reflect.TypeOf((*MockVirtualServiceReader)(nil).ListVirtualService), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayReader)(nil).ListMatchableTcpGateway), varargs...) } -// MockVirtualServiceWriter is a mock of VirtualServiceWriter interface. -type MockVirtualServiceWriter struct { +// MockMatchableTcpGatewayWriter is a mock of MatchableTcpGatewayWriter interface. +type MockMatchableTcpGatewayWriter struct { ctrl *gomock.Controller - recorder *MockVirtualServiceWriterMockRecorder + recorder *MockMatchableTcpGatewayWriterMockRecorder } -// MockVirtualServiceWriterMockRecorder is the mock recorder for MockVirtualServiceWriter. -type MockVirtualServiceWriterMockRecorder struct { - mock *MockVirtualServiceWriter +// MockMatchableTcpGatewayWriterMockRecorder is the mock recorder for MockMatchableTcpGatewayWriter. +type MockMatchableTcpGatewayWriterMockRecorder struct { + mock *MockMatchableTcpGatewayWriter } -// NewMockVirtualServiceWriter creates a new mock instance. -func NewMockVirtualServiceWriter(ctrl *gomock.Controller) *MockVirtualServiceWriter { - mock := &MockVirtualServiceWriter{ctrl: ctrl} - mock.recorder = &MockVirtualServiceWriterMockRecorder{mock} +// NewMockMatchableTcpGatewayWriter creates a new mock instance. +func NewMockMatchableTcpGatewayWriter(ctrl *gomock.Controller) *MockMatchableTcpGatewayWriter { + mock := &MockMatchableTcpGatewayWriter{ctrl: ctrl} + mock.recorder = &MockMatchableTcpGatewayWriterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockVirtualServiceWriter) EXPECT() *MockVirtualServiceWriterMockRecorder { +func (m *MockMatchableTcpGatewayWriter) EXPECT() *MockMatchableTcpGatewayWriterMockRecorder { return m.recorder } -// CreateVirtualService mocks base method. -func (m *MockVirtualServiceWriter) CreateVirtualService(ctx context.Context, obj *v1.VirtualService, opts ...client.CreateOption) error { +// CreateMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayWriter) CreateMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, opts ...client.CreateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateVirtualService", varargs...) + ret := m.ctrl.Call(m, "CreateMatchableTcpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// CreateVirtualService indicates an expected call of CreateVirtualService. -func (mr *MockVirtualServiceWriterMockRecorder) CreateVirtualService(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// CreateMatchableTcpGateway indicates an expected call of CreateMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayWriterMockRecorder) CreateMatchableTcpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVirtualService", reflect.TypeOf((*MockVirtualServiceWriter)(nil).CreateVirtualService), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayWriter)(nil).CreateMatchableTcpGateway), varargs...) } -// DeleteAllOfVirtualService mocks base method. -func (m *MockVirtualServiceWriter) DeleteAllOfVirtualService(ctx context.Context, opts ...client.DeleteAllOfOption) error { +// DeleteAllOfMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayWriter) DeleteAllOfMatchableTcpGateway(ctx context.Context, opts ...client.DeleteAllOfOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteAllOfVirtualService", varargs...) + ret := m.ctrl.Call(m, "DeleteAllOfMatchableTcpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteAllOfVirtualService indicates an expected call of DeleteAllOfVirtualService. -func (mr *MockVirtualServiceWriterMockRecorder) DeleteAllOfVirtualService(ctx interface{}, opts ...interface{}) *gomock.Call { +// DeleteAllOfMatchableTcpGateway indicates an expected call of DeleteAllOfMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayWriterMockRecorder) DeleteAllOfMatchableTcpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfVirtualService", reflect.TypeOf((*MockVirtualServiceWriter)(nil).DeleteAllOfVirtualService), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayWriter)(nil).DeleteAllOfMatchableTcpGateway), varargs...) } -// DeleteVirtualService mocks base method. -func (m *MockVirtualServiceWriter) DeleteVirtualService(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { +// DeleteMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayWriter) DeleteMatchableTcpGateway(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, key} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteVirtualService", varargs...) + ret := m.ctrl.Call(m, "DeleteMatchableTcpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteVirtualService indicates an expected call of DeleteVirtualService. -func (mr *MockVirtualServiceWriterMockRecorder) DeleteVirtualService(ctx, key interface{}, opts ...interface{}) *gomock.Call { +// DeleteMatchableTcpGateway indicates an expected call of DeleteMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayWriterMockRecorder) DeleteMatchableTcpGateway(ctx, key interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, key}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVirtualService", reflect.TypeOf((*MockVirtualServiceWriter)(nil).DeleteVirtualService), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayWriter)(nil).DeleteMatchableTcpGateway), varargs...) } -// PatchVirtualService mocks base method. -func (m *MockVirtualServiceWriter) PatchVirtualService(ctx context.Context, obj *v1.VirtualService, patch client.Patch, opts ...client.PatchOption) error { +// PatchMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayWriter) PatchMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, patch client.Patch, opts ...client.PatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchVirtualService", varargs...) + ret := m.ctrl.Call(m, "PatchMatchableTcpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchVirtualService indicates an expected call of PatchVirtualService. -func (mr *MockVirtualServiceWriterMockRecorder) PatchVirtualService(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchMatchableTcpGateway indicates an expected call of PatchMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayWriterMockRecorder) PatchMatchableTcpGateway(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualService", reflect.TypeOf((*MockVirtualServiceWriter)(nil).PatchVirtualService), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayWriter)(nil).PatchMatchableTcpGateway), varargs...) } -// UpdateVirtualService mocks base method. -func (m *MockVirtualServiceWriter) UpdateVirtualService(ctx context.Context, obj *v1.VirtualService, opts ...client.UpdateOption) error { +// UpdateMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayWriter) UpdateMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, opts ...client.UpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateVirtualService", varargs...) + ret := m.ctrl.Call(m, "UpdateMatchableTcpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateVirtualService indicates an expected call of UpdateVirtualService. -func (mr *MockVirtualServiceWriterMockRecorder) UpdateVirtualService(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateMatchableTcpGateway indicates an expected call of UpdateMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayWriterMockRecorder) UpdateMatchableTcpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualService", reflect.TypeOf((*MockVirtualServiceWriter)(nil).UpdateVirtualService), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayWriter)(nil).UpdateMatchableTcpGateway), varargs...) } -// UpsertVirtualService mocks base method. -func (m *MockVirtualServiceWriter) UpsertVirtualService(ctx context.Context, obj *v1.VirtualService, transitionFuncs ...v1.VirtualServiceTransitionFunction) error { +// UpsertMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayWriter) UpsertMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, transitionFuncs ...v1.MatchableTcpGatewayTransitionFunction) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range transitionFuncs { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpsertVirtualService", varargs...) + ret := m.ctrl.Call(m, "UpsertMatchableTcpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpsertVirtualService indicates an expected call of UpsertVirtualService. -func (mr *MockVirtualServiceWriterMockRecorder) UpsertVirtualService(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { +// UpsertMatchableTcpGateway indicates an expected call of UpsertMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayWriterMockRecorder) UpsertMatchableTcpGateway(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, transitionFuncs...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertVirtualService", reflect.TypeOf((*MockVirtualServiceWriter)(nil).UpsertVirtualService), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayWriter)(nil).UpsertMatchableTcpGateway), varargs...) } -// MockVirtualServiceStatusWriter is a mock of VirtualServiceStatusWriter interface. -type MockVirtualServiceStatusWriter struct { +// MockMatchableTcpGatewayStatusWriter is a mock of MatchableTcpGatewayStatusWriter interface. +type MockMatchableTcpGatewayStatusWriter struct { ctrl *gomock.Controller - recorder *MockVirtualServiceStatusWriterMockRecorder + recorder *MockMatchableTcpGatewayStatusWriterMockRecorder } -// MockVirtualServiceStatusWriterMockRecorder is the mock recorder for MockVirtualServiceStatusWriter. -type MockVirtualServiceStatusWriterMockRecorder struct { - mock *MockVirtualServiceStatusWriter +// MockMatchableTcpGatewayStatusWriterMockRecorder is the mock recorder for MockMatchableTcpGatewayStatusWriter. +type MockMatchableTcpGatewayStatusWriterMockRecorder struct { + mock *MockMatchableTcpGatewayStatusWriter } -// NewMockVirtualServiceStatusWriter creates a new mock instance. -func NewMockVirtualServiceStatusWriter(ctrl *gomock.Controller) *MockVirtualServiceStatusWriter { - mock := &MockVirtualServiceStatusWriter{ctrl: ctrl} - mock.recorder = &MockVirtualServiceStatusWriterMockRecorder{mock} +// NewMockMatchableTcpGatewayStatusWriter creates a new mock instance. +func NewMockMatchableTcpGatewayStatusWriter(ctrl *gomock.Controller) *MockMatchableTcpGatewayStatusWriter { + mock := &MockMatchableTcpGatewayStatusWriter{ctrl: ctrl} + mock.recorder = &MockMatchableTcpGatewayStatusWriterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockVirtualServiceStatusWriter) EXPECT() *MockVirtualServiceStatusWriterMockRecorder { +func (m *MockMatchableTcpGatewayStatusWriter) EXPECT() *MockMatchableTcpGatewayStatusWriterMockRecorder { return m.recorder } -// PatchVirtualServiceStatus mocks base method. -func (m *MockVirtualServiceStatusWriter) PatchVirtualServiceStatus(ctx context.Context, obj *v1.VirtualService, patch client.Patch, opts ...client.SubResourcePatchOption) error { +// PatchMatchableTcpGatewayStatus mocks base method. +func (m *MockMatchableTcpGatewayStatusWriter) PatchMatchableTcpGatewayStatus(ctx context.Context, obj *v1.MatchableTcpGateway, patch client.Patch, opts ...client.SubResourcePatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchVirtualServiceStatus", varargs...) + ret := m.ctrl.Call(m, "PatchMatchableTcpGatewayStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchVirtualServiceStatus indicates an expected call of PatchVirtualServiceStatus. -func (mr *MockVirtualServiceStatusWriterMockRecorder) PatchVirtualServiceStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchMatchableTcpGatewayStatus indicates an expected call of PatchMatchableTcpGatewayStatus. +func (mr *MockMatchableTcpGatewayStatusWriterMockRecorder) PatchMatchableTcpGatewayStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualServiceStatus", reflect.TypeOf((*MockVirtualServiceStatusWriter)(nil).PatchVirtualServiceStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableTcpGatewayStatus", reflect.TypeOf((*MockMatchableTcpGatewayStatusWriter)(nil).PatchMatchableTcpGatewayStatus), varargs...) } -// UpdateVirtualServiceStatus mocks base method. -func (m *MockVirtualServiceStatusWriter) UpdateVirtualServiceStatus(ctx context.Context, obj *v1.VirtualService, opts ...client.SubResourceUpdateOption) error { +// UpdateMatchableTcpGatewayStatus mocks base method. +func (m *MockMatchableTcpGatewayStatusWriter) UpdateMatchableTcpGatewayStatus(ctx context.Context, obj *v1.MatchableTcpGateway, opts ...client.SubResourceUpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateVirtualServiceStatus", varargs...) + ret := m.ctrl.Call(m, "UpdateMatchableTcpGatewayStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateVirtualServiceStatus indicates an expected call of UpdateVirtualServiceStatus. -func (mr *MockVirtualServiceStatusWriterMockRecorder) UpdateVirtualServiceStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateMatchableTcpGatewayStatus indicates an expected call of UpdateMatchableTcpGatewayStatus. +func (mr *MockMatchableTcpGatewayStatusWriterMockRecorder) UpdateMatchableTcpGatewayStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualServiceStatus", reflect.TypeOf((*MockVirtualServiceStatusWriter)(nil).UpdateVirtualServiceStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableTcpGatewayStatus", reflect.TypeOf((*MockMatchableTcpGatewayStatusWriter)(nil).UpdateMatchableTcpGatewayStatus), varargs...) } -// MockVirtualServiceClient is a mock of VirtualServiceClient interface. -type MockVirtualServiceClient struct { +// MockMatchableTcpGatewayClient is a mock of MatchableTcpGatewayClient interface. +type MockMatchableTcpGatewayClient struct { ctrl *gomock.Controller - recorder *MockVirtualServiceClientMockRecorder + recorder *MockMatchableTcpGatewayClientMockRecorder } -// MockVirtualServiceClientMockRecorder is the mock recorder for MockVirtualServiceClient. -type MockVirtualServiceClientMockRecorder struct { - mock *MockVirtualServiceClient +// MockMatchableTcpGatewayClientMockRecorder is the mock recorder for MockMatchableTcpGatewayClient. +type MockMatchableTcpGatewayClientMockRecorder struct { + mock *MockMatchableTcpGatewayClient } -// NewMockVirtualServiceClient creates a new mock instance. -func NewMockVirtualServiceClient(ctrl *gomock.Controller) *MockVirtualServiceClient { - mock := &MockVirtualServiceClient{ctrl: ctrl} - mock.recorder = &MockVirtualServiceClientMockRecorder{mock} +// NewMockMatchableTcpGatewayClient creates a new mock instance. +func NewMockMatchableTcpGatewayClient(ctrl *gomock.Controller) *MockMatchableTcpGatewayClient { + mock := &MockMatchableTcpGatewayClient{ctrl: ctrl} + mock.recorder = &MockMatchableTcpGatewayClientMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockVirtualServiceClient) EXPECT() *MockVirtualServiceClientMockRecorder { +func (m *MockMatchableTcpGatewayClient) EXPECT() *MockMatchableTcpGatewayClientMockRecorder { return m.recorder } -// CreateVirtualService mocks base method. -func (m *MockVirtualServiceClient) CreateVirtualService(ctx context.Context, obj *v1.VirtualService, opts ...client.CreateOption) error { +// CreateMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayClient) CreateMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, opts ...client.CreateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateVirtualService", varargs...) + ret := m.ctrl.Call(m, "CreateMatchableTcpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// CreateVirtualService indicates an expected call of CreateVirtualService. -func (mr *MockVirtualServiceClientMockRecorder) CreateVirtualService(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// CreateMatchableTcpGateway indicates an expected call of CreateMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayClientMockRecorder) CreateMatchableTcpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).CreateVirtualService), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).CreateMatchableTcpGateway), varargs...) } -// DeleteAllOfVirtualService mocks base method. -func (m *MockVirtualServiceClient) DeleteAllOfVirtualService(ctx context.Context, opts ...client.DeleteAllOfOption) error { +// DeleteAllOfMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayClient) DeleteAllOfMatchableTcpGateway(ctx context.Context, opts ...client.DeleteAllOfOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteAllOfVirtualService", varargs...) + ret := m.ctrl.Call(m, "DeleteAllOfMatchableTcpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteAllOfVirtualService indicates an expected call of DeleteAllOfVirtualService. -func (mr *MockVirtualServiceClientMockRecorder) DeleteAllOfVirtualService(ctx interface{}, opts ...interface{}) *gomock.Call { +// DeleteAllOfMatchableTcpGateway indicates an expected call of DeleteAllOfMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayClientMockRecorder) DeleteAllOfMatchableTcpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).DeleteAllOfVirtualService), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).DeleteAllOfMatchableTcpGateway), varargs...) } -// DeleteVirtualService mocks base method. -func (m *MockVirtualServiceClient) DeleteVirtualService(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { +// DeleteMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayClient) DeleteMatchableTcpGateway(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, key} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteVirtualService", varargs...) + ret := m.ctrl.Call(m, "DeleteMatchableTcpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteVirtualService indicates an expected call of DeleteVirtualService. -func (mr *MockVirtualServiceClientMockRecorder) DeleteVirtualService(ctx, key interface{}, opts ...interface{}) *gomock.Call { +// DeleteMatchableTcpGateway indicates an expected call of DeleteMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayClientMockRecorder) DeleteMatchableTcpGateway(ctx, key interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, key}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).DeleteVirtualService), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).DeleteMatchableTcpGateway), varargs...) } -// GetVirtualService mocks base method. -func (m *MockVirtualServiceClient) GetVirtualService(ctx context.Context, key client.ObjectKey) (*v1.VirtualService, error) { +// GetMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayClient) GetMatchableTcpGateway(ctx context.Context, key client.ObjectKey) (*v1.MatchableTcpGateway, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetVirtualService", ctx, key) - ret0, _ := ret[0].(*v1.VirtualService) + ret := m.ctrl.Call(m, "GetMatchableTcpGateway", ctx, key) + ret0, _ := ret[0].(*v1.MatchableTcpGateway) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetVirtualService indicates an expected call of GetVirtualService. -func (mr *MockVirtualServiceClientMockRecorder) GetVirtualService(ctx, key interface{}) *gomock.Call { +// GetMatchableTcpGateway indicates an expected call of GetMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayClientMockRecorder) GetMatchableTcpGateway(ctx, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).GetVirtualService), ctx, key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).GetMatchableTcpGateway), ctx, key) } -// ListVirtualService mocks base method. -func (m *MockVirtualServiceClient) ListVirtualService(ctx context.Context, opts ...client.ListOption) (*v1.VirtualServiceList, error) { +// ListMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayClient) ListMatchableTcpGateway(ctx context.Context, opts ...client.ListOption) (*v1.MatchableTcpGatewayList, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ListVirtualService", varargs...) - ret0, _ := ret[0].(*v1.VirtualServiceList) + ret := m.ctrl.Call(m, "ListMatchableTcpGateway", varargs...) + ret0, _ := ret[0].(*v1.MatchableTcpGatewayList) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListVirtualService indicates an expected call of ListVirtualService. -func (mr *MockVirtualServiceClientMockRecorder) ListVirtualService(ctx interface{}, opts ...interface{}) *gomock.Call { +// ListMatchableTcpGateway indicates an expected call of ListMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayClientMockRecorder) ListMatchableTcpGateway(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).ListVirtualService), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).ListMatchableTcpGateway), varargs...) } -// PatchVirtualService mocks base method. -func (m *MockVirtualServiceClient) PatchVirtualService(ctx context.Context, obj *v1.VirtualService, patch client.Patch, opts ...client.PatchOption) error { +// PatchMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayClient) PatchMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, patch client.Patch, opts ...client.PatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchVirtualService", varargs...) + ret := m.ctrl.Call(m, "PatchMatchableTcpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchVirtualService indicates an expected call of PatchVirtualService. -func (mr *MockVirtualServiceClientMockRecorder) PatchVirtualService(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchMatchableTcpGateway indicates an expected call of PatchMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayClientMockRecorder) PatchMatchableTcpGateway(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).PatchVirtualService), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).PatchMatchableTcpGateway), varargs...) } -// PatchVirtualServiceStatus mocks base method. -func (m *MockVirtualServiceClient) PatchVirtualServiceStatus(ctx context.Context, obj *v1.VirtualService, patch client.Patch, opts ...client.SubResourcePatchOption) error { +// PatchMatchableTcpGatewayStatus mocks base method. +func (m *MockMatchableTcpGatewayClient) PatchMatchableTcpGatewayStatus(ctx context.Context, obj *v1.MatchableTcpGateway, patch client.Patch, opts ...client.SubResourcePatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchVirtualServiceStatus", varargs...) + ret := m.ctrl.Call(m, "PatchMatchableTcpGatewayStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchVirtualServiceStatus indicates an expected call of PatchVirtualServiceStatus. -func (mr *MockVirtualServiceClientMockRecorder) PatchVirtualServiceStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchMatchableTcpGatewayStatus indicates an expected call of PatchMatchableTcpGatewayStatus. +func (mr *MockMatchableTcpGatewayClientMockRecorder) PatchMatchableTcpGatewayStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualServiceStatus", reflect.TypeOf((*MockVirtualServiceClient)(nil).PatchVirtualServiceStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchMatchableTcpGatewayStatus", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).PatchMatchableTcpGatewayStatus), varargs...) } -// UpdateVirtualService mocks base method. -func (m *MockVirtualServiceClient) UpdateVirtualService(ctx context.Context, obj *v1.VirtualService, opts ...client.UpdateOption) error { +// UpdateMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayClient) UpdateMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, opts ...client.UpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateVirtualService", varargs...) + ret := m.ctrl.Call(m, "UpdateMatchableTcpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateVirtualService indicates an expected call of UpdateVirtualService. -func (mr *MockVirtualServiceClientMockRecorder) UpdateVirtualService(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateMatchableTcpGateway indicates an expected call of UpdateMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayClientMockRecorder) UpdateMatchableTcpGateway(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).UpdateVirtualService), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).UpdateMatchableTcpGateway), varargs...) } -// UpdateVirtualServiceStatus mocks base method. -func (m *MockVirtualServiceClient) UpdateVirtualServiceStatus(ctx context.Context, obj *v1.VirtualService, opts ...client.SubResourceUpdateOption) error { +// UpdateMatchableTcpGatewayStatus mocks base method. +func (m *MockMatchableTcpGatewayClient) UpdateMatchableTcpGatewayStatus(ctx context.Context, obj *v1.MatchableTcpGateway, opts ...client.SubResourceUpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateVirtualServiceStatus", varargs...) + ret := m.ctrl.Call(m, "UpdateMatchableTcpGatewayStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateVirtualServiceStatus indicates an expected call of UpdateVirtualServiceStatus. -func (mr *MockVirtualServiceClientMockRecorder) UpdateVirtualServiceStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateMatchableTcpGatewayStatus indicates an expected call of UpdateMatchableTcpGatewayStatus. +func (mr *MockMatchableTcpGatewayClientMockRecorder) UpdateMatchableTcpGatewayStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualServiceStatus", reflect.TypeOf((*MockVirtualServiceClient)(nil).UpdateVirtualServiceStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchableTcpGatewayStatus", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).UpdateMatchableTcpGatewayStatus), varargs...) } -// UpsertVirtualService mocks base method. -func (m *MockVirtualServiceClient) UpsertVirtualService(ctx context.Context, obj *v1.VirtualService, transitionFuncs ...v1.VirtualServiceTransitionFunction) error { +// UpsertMatchableTcpGateway mocks base method. +func (m *MockMatchableTcpGatewayClient) UpsertMatchableTcpGateway(ctx context.Context, obj *v1.MatchableTcpGateway, transitionFuncs ...v1.MatchableTcpGatewayTransitionFunction) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range transitionFuncs { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpsertVirtualService", varargs...) + ret := m.ctrl.Call(m, "UpsertMatchableTcpGateway", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpsertVirtualService indicates an expected call of UpsertVirtualService. -func (mr *MockVirtualServiceClientMockRecorder) UpsertVirtualService(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { +// UpsertMatchableTcpGateway indicates an expected call of UpsertMatchableTcpGateway. +func (mr *MockMatchableTcpGatewayClientMockRecorder) UpsertMatchableTcpGateway(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, transitionFuncs...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).UpsertVirtualService), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertMatchableTcpGateway", reflect.TypeOf((*MockMatchableTcpGatewayClient)(nil).UpsertMatchableTcpGateway), varargs...) } -// MockMulticlusterVirtualServiceClient is a mock of MulticlusterVirtualServiceClient interface. -type MockMulticlusterVirtualServiceClient struct { +// MockMulticlusterMatchableTcpGatewayClient is a mock of MulticlusterMatchableTcpGatewayClient interface. +type MockMulticlusterMatchableTcpGatewayClient struct { ctrl *gomock.Controller - recorder *MockMulticlusterVirtualServiceClientMockRecorder + recorder *MockMulticlusterMatchableTcpGatewayClientMockRecorder } -// MockMulticlusterVirtualServiceClientMockRecorder is the mock recorder for MockMulticlusterVirtualServiceClient. -type MockMulticlusterVirtualServiceClientMockRecorder struct { - mock *MockMulticlusterVirtualServiceClient +// MockMulticlusterMatchableTcpGatewayClientMockRecorder is the mock recorder for MockMulticlusterMatchableTcpGatewayClient. +type MockMulticlusterMatchableTcpGatewayClientMockRecorder struct { + mock *MockMulticlusterMatchableTcpGatewayClient } -// NewMockMulticlusterVirtualServiceClient creates a new mock instance. -func NewMockMulticlusterVirtualServiceClient(ctrl *gomock.Controller) *MockMulticlusterVirtualServiceClient { - mock := &MockMulticlusterVirtualServiceClient{ctrl: ctrl} - mock.recorder = &MockMulticlusterVirtualServiceClientMockRecorder{mock} +// NewMockMulticlusterMatchableTcpGatewayClient creates a new mock instance. +func NewMockMulticlusterMatchableTcpGatewayClient(ctrl *gomock.Controller) *MockMulticlusterMatchableTcpGatewayClient { + mock := &MockMulticlusterMatchableTcpGatewayClient{ctrl: ctrl} + mock.recorder = &MockMulticlusterMatchableTcpGatewayClientMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMulticlusterVirtualServiceClient) EXPECT() *MockMulticlusterVirtualServiceClientMockRecorder { +func (m *MockMulticlusterMatchableTcpGatewayClient) EXPECT() *MockMulticlusterMatchableTcpGatewayClientMockRecorder { return m.recorder } // Cluster mocks base method. -func (m *MockMulticlusterVirtualServiceClient) Cluster(cluster string) (v1.VirtualServiceClient, error) { +func (m *MockMulticlusterMatchableTcpGatewayClient) Cluster(cluster string) (v1.MatchableTcpGatewayClient, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Cluster", cluster) - ret0, _ := ret[0].(v1.VirtualServiceClient) + ret0, _ := ret[0].(v1.MatchableTcpGatewayClient) ret1, _ := ret[1].(error) return ret0, ret1 } // Cluster indicates an expected call of Cluster. -func (mr *MockMulticlusterVirtualServiceClientMockRecorder) Cluster(cluster interface{}) *gomock.Call { +func (mr *MockMulticlusterMatchableTcpGatewayClientMockRecorder) Cluster(cluster interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterVirtualServiceClient)(nil).Cluster), cluster) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterMatchableTcpGatewayClient)(nil).Cluster), cluster) } -// MockVirtualHostOptionReader is a mock of VirtualHostOptionReader interface. -type MockVirtualHostOptionReader struct { +// MockRouteOptionReader is a mock of RouteOptionReader interface. +type MockRouteOptionReader struct { ctrl *gomock.Controller - recorder *MockVirtualHostOptionReaderMockRecorder + recorder *MockRouteOptionReaderMockRecorder } -// MockVirtualHostOptionReaderMockRecorder is the mock recorder for MockVirtualHostOptionReader. -type MockVirtualHostOptionReaderMockRecorder struct { - mock *MockVirtualHostOptionReader +// MockRouteOptionReaderMockRecorder is the mock recorder for MockRouteOptionReader. +type MockRouteOptionReaderMockRecorder struct { + mock *MockRouteOptionReader } -// NewMockVirtualHostOptionReader creates a new mock instance. -func NewMockVirtualHostOptionReader(ctrl *gomock.Controller) *MockVirtualHostOptionReader { - mock := &MockVirtualHostOptionReader{ctrl: ctrl} - mock.recorder = &MockVirtualHostOptionReaderMockRecorder{mock} +// NewMockRouteOptionReader creates a new mock instance. +func NewMockRouteOptionReader(ctrl *gomock.Controller) *MockRouteOptionReader { + mock := &MockRouteOptionReader{ctrl: ctrl} + mock.recorder = &MockRouteOptionReaderMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockVirtualHostOptionReader) EXPECT() *MockVirtualHostOptionReaderMockRecorder { +func (m *MockRouteOptionReader) EXPECT() *MockRouteOptionReaderMockRecorder { return m.recorder } -// GetVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionReader) GetVirtualHostOption(ctx context.Context, key client.ObjectKey) (*v1.VirtualHostOption, error) { +// GetRouteOption mocks base method. +func (m *MockRouteOptionReader) GetRouteOption(ctx context.Context, key client.ObjectKey) (*v1.RouteOption, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetVirtualHostOption", ctx, key) - ret0, _ := ret[0].(*v1.VirtualHostOption) + ret := m.ctrl.Call(m, "GetRouteOption", ctx, key) + ret0, _ := ret[0].(*v1.RouteOption) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetVirtualHostOption indicates an expected call of GetVirtualHostOption. -func (mr *MockVirtualHostOptionReaderMockRecorder) GetVirtualHostOption(ctx, key interface{}) *gomock.Call { +// GetRouteOption indicates an expected call of GetRouteOption. +func (mr *MockRouteOptionReaderMockRecorder) GetRouteOption(ctx, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionReader)(nil).GetVirtualHostOption), ctx, key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRouteOption", reflect.TypeOf((*MockRouteOptionReader)(nil).GetRouteOption), ctx, key) } -// ListVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionReader) ListVirtualHostOption(ctx context.Context, opts ...client.ListOption) (*v1.VirtualHostOptionList, error) { +// ListRouteOption mocks base method. +func (m *MockRouteOptionReader) ListRouteOption(ctx context.Context, opts ...client.ListOption) (*v1.RouteOptionList, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ListVirtualHostOption", varargs...) - ret0, _ := ret[0].(*v1.VirtualHostOptionList) + ret := m.ctrl.Call(m, "ListRouteOption", varargs...) + ret0, _ := ret[0].(*v1.RouteOptionList) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListVirtualHostOption indicates an expected call of ListVirtualHostOption. -func (mr *MockVirtualHostOptionReaderMockRecorder) ListVirtualHostOption(ctx interface{}, opts ...interface{}) *gomock.Call { +// ListRouteOption indicates an expected call of ListRouteOption. +func (mr *MockRouteOptionReaderMockRecorder) ListRouteOption(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionReader)(nil).ListVirtualHostOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRouteOption", reflect.TypeOf((*MockRouteOptionReader)(nil).ListRouteOption), varargs...) } -// MockVirtualHostOptionWriter is a mock of VirtualHostOptionWriter interface. -type MockVirtualHostOptionWriter struct { +// MockRouteOptionWriter is a mock of RouteOptionWriter interface. +type MockRouteOptionWriter struct { ctrl *gomock.Controller - recorder *MockVirtualHostOptionWriterMockRecorder + recorder *MockRouteOptionWriterMockRecorder } -// MockVirtualHostOptionWriterMockRecorder is the mock recorder for MockVirtualHostOptionWriter. -type MockVirtualHostOptionWriterMockRecorder struct { - mock *MockVirtualHostOptionWriter +// MockRouteOptionWriterMockRecorder is the mock recorder for MockRouteOptionWriter. +type MockRouteOptionWriterMockRecorder struct { + mock *MockRouteOptionWriter } -// NewMockVirtualHostOptionWriter creates a new mock instance. -func NewMockVirtualHostOptionWriter(ctrl *gomock.Controller) *MockVirtualHostOptionWriter { - mock := &MockVirtualHostOptionWriter{ctrl: ctrl} - mock.recorder = &MockVirtualHostOptionWriterMockRecorder{mock} +// NewMockRouteOptionWriter creates a new mock instance. +func NewMockRouteOptionWriter(ctrl *gomock.Controller) *MockRouteOptionWriter { + mock := &MockRouteOptionWriter{ctrl: ctrl} + mock.recorder = &MockRouteOptionWriterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockVirtualHostOptionWriter) EXPECT() *MockVirtualHostOptionWriterMockRecorder { +func (m *MockRouteOptionWriter) EXPECT() *MockRouteOptionWriterMockRecorder { return m.recorder } -// CreateVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionWriter) CreateVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, opts ...client.CreateOption) error { +// CreateRouteOption mocks base method. +func (m *MockRouteOptionWriter) CreateRouteOption(ctx context.Context, obj *v1.RouteOption, opts ...client.CreateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateVirtualHostOption", varargs...) + ret := m.ctrl.Call(m, "CreateRouteOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// CreateVirtualHostOption indicates an expected call of CreateVirtualHostOption. -func (mr *MockVirtualHostOptionWriterMockRecorder) CreateVirtualHostOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// CreateRouteOption indicates an expected call of CreateRouteOption. +func (mr *MockRouteOptionWriterMockRecorder) CreateRouteOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionWriter)(nil).CreateVirtualHostOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRouteOption", reflect.TypeOf((*MockRouteOptionWriter)(nil).CreateRouteOption), varargs...) } -// DeleteAllOfVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionWriter) DeleteAllOfVirtualHostOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { +// DeleteAllOfRouteOption mocks base method. +func (m *MockRouteOptionWriter) DeleteAllOfRouteOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteAllOfVirtualHostOption", varargs...) + ret := m.ctrl.Call(m, "DeleteAllOfRouteOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteAllOfVirtualHostOption indicates an expected call of DeleteAllOfVirtualHostOption. -func (mr *MockVirtualHostOptionWriterMockRecorder) DeleteAllOfVirtualHostOption(ctx interface{}, opts ...interface{}) *gomock.Call { +// DeleteAllOfRouteOption indicates an expected call of DeleteAllOfRouteOption. +func (mr *MockRouteOptionWriterMockRecorder) DeleteAllOfRouteOption(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionWriter)(nil).DeleteAllOfVirtualHostOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfRouteOption", reflect.TypeOf((*MockRouteOptionWriter)(nil).DeleteAllOfRouteOption), varargs...) } -// DeleteVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionWriter) DeleteVirtualHostOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { +// DeleteRouteOption mocks base method. +func (m *MockRouteOptionWriter) DeleteRouteOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, key} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteVirtualHostOption", varargs...) + ret := m.ctrl.Call(m, "DeleteRouteOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteVirtualHostOption indicates an expected call of DeleteVirtualHostOption. -func (mr *MockVirtualHostOptionWriterMockRecorder) DeleteVirtualHostOption(ctx, key interface{}, opts ...interface{}) *gomock.Call { +// DeleteRouteOption indicates an expected call of DeleteRouteOption. +func (mr *MockRouteOptionWriterMockRecorder) DeleteRouteOption(ctx, key interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, key}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionWriter)(nil).DeleteVirtualHostOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRouteOption", reflect.TypeOf((*MockRouteOptionWriter)(nil).DeleteRouteOption), varargs...) } -// PatchVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionWriter) PatchVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, patch client.Patch, opts ...client.PatchOption) error { +// PatchRouteOption mocks base method. +func (m *MockRouteOptionWriter) PatchRouteOption(ctx context.Context, obj *v1.RouteOption, patch client.Patch, opts ...client.PatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchVirtualHostOption", varargs...) + ret := m.ctrl.Call(m, "PatchRouteOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchVirtualHostOption indicates an expected call of PatchVirtualHostOption. -func (mr *MockVirtualHostOptionWriterMockRecorder) PatchVirtualHostOption(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchRouteOption indicates an expected call of PatchRouteOption. +func (mr *MockRouteOptionWriterMockRecorder) PatchRouteOption(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionWriter)(nil).PatchVirtualHostOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteOption", reflect.TypeOf((*MockRouteOptionWriter)(nil).PatchRouteOption), varargs...) } -// UpdateVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionWriter) UpdateVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, opts ...client.UpdateOption) error { +// UpdateRouteOption mocks base method. +func (m *MockRouteOptionWriter) UpdateRouteOption(ctx context.Context, obj *v1.RouteOption, opts ...client.UpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateVirtualHostOption", varargs...) + ret := m.ctrl.Call(m, "UpdateRouteOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateVirtualHostOption indicates an expected call of UpdateVirtualHostOption. -func (mr *MockVirtualHostOptionWriterMockRecorder) UpdateVirtualHostOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateRouteOption indicates an expected call of UpdateRouteOption. +func (mr *MockRouteOptionWriterMockRecorder) UpdateRouteOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionWriter)(nil).UpdateVirtualHostOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteOption", reflect.TypeOf((*MockRouteOptionWriter)(nil).UpdateRouteOption), varargs...) } -// UpsertVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionWriter) UpsertVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, transitionFuncs ...v1.VirtualHostOptionTransitionFunction) error { +// UpsertRouteOption mocks base method. +func (m *MockRouteOptionWriter) UpsertRouteOption(ctx context.Context, obj *v1.RouteOption, transitionFuncs ...v1.RouteOptionTransitionFunction) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range transitionFuncs { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpsertVirtualHostOption", varargs...) + ret := m.ctrl.Call(m, "UpsertRouteOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpsertVirtualHostOption indicates an expected call of UpsertVirtualHostOption. -func (mr *MockVirtualHostOptionWriterMockRecorder) UpsertVirtualHostOption(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { +// UpsertRouteOption indicates an expected call of UpsertRouteOption. +func (mr *MockRouteOptionWriterMockRecorder) UpsertRouteOption(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, transitionFuncs...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionWriter)(nil).UpsertVirtualHostOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertRouteOption", reflect.TypeOf((*MockRouteOptionWriter)(nil).UpsertRouteOption), varargs...) } -// MockVirtualHostOptionStatusWriter is a mock of VirtualHostOptionStatusWriter interface. -type MockVirtualHostOptionStatusWriter struct { +// MockRouteOptionStatusWriter is a mock of RouteOptionStatusWriter interface. +type MockRouteOptionStatusWriter struct { ctrl *gomock.Controller - recorder *MockVirtualHostOptionStatusWriterMockRecorder + recorder *MockRouteOptionStatusWriterMockRecorder } -// MockVirtualHostOptionStatusWriterMockRecorder is the mock recorder for MockVirtualHostOptionStatusWriter. -type MockVirtualHostOptionStatusWriterMockRecorder struct { - mock *MockVirtualHostOptionStatusWriter +// MockRouteOptionStatusWriterMockRecorder is the mock recorder for MockRouteOptionStatusWriter. +type MockRouteOptionStatusWriterMockRecorder struct { + mock *MockRouteOptionStatusWriter } -// NewMockVirtualHostOptionStatusWriter creates a new mock instance. -func NewMockVirtualHostOptionStatusWriter(ctrl *gomock.Controller) *MockVirtualHostOptionStatusWriter { - mock := &MockVirtualHostOptionStatusWriter{ctrl: ctrl} - mock.recorder = &MockVirtualHostOptionStatusWriterMockRecorder{mock} +// NewMockRouteOptionStatusWriter creates a new mock instance. +func NewMockRouteOptionStatusWriter(ctrl *gomock.Controller) *MockRouteOptionStatusWriter { + mock := &MockRouteOptionStatusWriter{ctrl: ctrl} + mock.recorder = &MockRouteOptionStatusWriterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockVirtualHostOptionStatusWriter) EXPECT() *MockVirtualHostOptionStatusWriterMockRecorder { +func (m *MockRouteOptionStatusWriter) EXPECT() *MockRouteOptionStatusWriterMockRecorder { return m.recorder } -// PatchVirtualHostOptionStatus mocks base method. -func (m *MockVirtualHostOptionStatusWriter) PatchVirtualHostOptionStatus(ctx context.Context, obj *v1.VirtualHostOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { +// PatchRouteOptionStatus mocks base method. +func (m *MockRouteOptionStatusWriter) PatchRouteOptionStatus(ctx context.Context, obj *v1.RouteOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj, patch} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchRouteOptionStatus", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// PatchRouteOptionStatus indicates an expected call of PatchRouteOptionStatus. +func (mr *MockRouteOptionStatusWriterMockRecorder) PatchRouteOptionStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj, patch}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteOptionStatus", reflect.TypeOf((*MockRouteOptionStatusWriter)(nil).PatchRouteOptionStatus), varargs...) +} + +// UpdateRouteOptionStatus mocks base method. +func (m *MockRouteOptionStatusWriter) UpdateRouteOptionStatus(ctx context.Context, obj *v1.RouteOption, opts ...client.SubResourceUpdateOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateRouteOptionStatus", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpdateRouteOptionStatus indicates an expected call of UpdateRouteOptionStatus. +func (mr *MockRouteOptionStatusWriterMockRecorder) UpdateRouteOptionStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteOptionStatus", reflect.TypeOf((*MockRouteOptionStatusWriter)(nil).UpdateRouteOptionStatus), varargs...) +} + +// MockRouteOptionClient is a mock of RouteOptionClient interface. +type MockRouteOptionClient struct { + ctrl *gomock.Controller + recorder *MockRouteOptionClientMockRecorder +} + +// MockRouteOptionClientMockRecorder is the mock recorder for MockRouteOptionClient. +type MockRouteOptionClientMockRecorder struct { + mock *MockRouteOptionClient +} + +// NewMockRouteOptionClient creates a new mock instance. +func NewMockRouteOptionClient(ctrl *gomock.Controller) *MockRouteOptionClient { + mock := &MockRouteOptionClient{ctrl: ctrl} + mock.recorder = &MockRouteOptionClientMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockRouteOptionClient) EXPECT() *MockRouteOptionClientMockRecorder { + return m.recorder +} + +// CreateRouteOption mocks base method. +func (m *MockRouteOptionClient) CreateRouteOption(ctx context.Context, obj *v1.RouteOption, opts ...client.CreateOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRouteOption", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// CreateRouteOption indicates an expected call of CreateRouteOption. +func (mr *MockRouteOptionClientMockRecorder) CreateRouteOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).CreateRouteOption), varargs...) +} + +// DeleteAllOfRouteOption mocks base method. +func (m *MockRouteOptionClient) DeleteAllOfRouteOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAllOfRouteOption", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteAllOfRouteOption indicates an expected call of DeleteAllOfRouteOption. +func (mr *MockRouteOptionClientMockRecorder) DeleteAllOfRouteOption(ctx interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).DeleteAllOfRouteOption), varargs...) +} + +// DeleteRouteOption mocks base method. +func (m *MockRouteOptionClient) DeleteRouteOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, key} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteRouteOption", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteRouteOption indicates an expected call of DeleteRouteOption. +func (mr *MockRouteOptionClientMockRecorder) DeleteRouteOption(ctx, key interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, key}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).DeleteRouteOption), varargs...) +} + +// GetRouteOption mocks base method. +func (m *MockRouteOptionClient) GetRouteOption(ctx context.Context, key client.ObjectKey) (*v1.RouteOption, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRouteOption", ctx, key) + ret0, _ := ret[0].(*v1.RouteOption) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRouteOption indicates an expected call of GetRouteOption. +func (mr *MockRouteOptionClientMockRecorder) GetRouteOption(ctx, key interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).GetRouteOption), ctx, key) +} + +// ListRouteOption mocks base method. +func (m *MockRouteOptionClient) ListRouteOption(ctx context.Context, opts ...client.ListOption) (*v1.RouteOptionList, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRouteOption", varargs...) + ret0, _ := ret[0].(*v1.RouteOptionList) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRouteOption indicates an expected call of ListRouteOption. +func (mr *MockRouteOptionClientMockRecorder) ListRouteOption(ctx interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).ListRouteOption), varargs...) +} + +// PatchRouteOption mocks base method. +func (m *MockRouteOptionClient) PatchRouteOption(ctx context.Context, obj *v1.RouteOption, patch client.Patch, opts ...client.PatchOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj, patch} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchRouteOption", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// PatchRouteOption indicates an expected call of PatchRouteOption. +func (mr *MockRouteOptionClientMockRecorder) PatchRouteOption(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj, patch}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).PatchRouteOption), varargs...) +} + +// PatchRouteOptionStatus mocks base method. +func (m *MockRouteOptionClient) PatchRouteOptionStatus(ctx context.Context, obj *v1.RouteOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj, patch} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchRouteOptionStatus", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// PatchRouteOptionStatus indicates an expected call of PatchRouteOptionStatus. +func (mr *MockRouteOptionClientMockRecorder) PatchRouteOptionStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj, patch}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteOptionStatus", reflect.TypeOf((*MockRouteOptionClient)(nil).PatchRouteOptionStatus), varargs...) +} + +// UpdateRouteOption mocks base method. +func (m *MockRouteOptionClient) UpdateRouteOption(ctx context.Context, obj *v1.RouteOption, opts ...client.UpdateOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateRouteOption", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpdateRouteOption indicates an expected call of UpdateRouteOption. +func (mr *MockRouteOptionClientMockRecorder) UpdateRouteOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).UpdateRouteOption), varargs...) +} + +// UpdateRouteOptionStatus mocks base method. +func (m *MockRouteOptionClient) UpdateRouteOptionStatus(ctx context.Context, obj *v1.RouteOption, opts ...client.SubResourceUpdateOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateRouteOptionStatus", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpdateRouteOptionStatus indicates an expected call of UpdateRouteOptionStatus. +func (mr *MockRouteOptionClientMockRecorder) UpdateRouteOptionStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteOptionStatus", reflect.TypeOf((*MockRouteOptionClient)(nil).UpdateRouteOptionStatus), varargs...) +} + +// UpsertRouteOption mocks base method. +func (m *MockRouteOptionClient) UpsertRouteOption(ctx context.Context, obj *v1.RouteOption, transitionFuncs ...v1.RouteOptionTransitionFunction) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range transitionFuncs { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpsertRouteOption", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpsertRouteOption indicates an expected call of UpsertRouteOption. +func (mr *MockRouteOptionClientMockRecorder) UpsertRouteOption(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, transitionFuncs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).UpsertRouteOption), varargs...) +} + +// MockMulticlusterRouteOptionClient is a mock of MulticlusterRouteOptionClient interface. +type MockMulticlusterRouteOptionClient struct { + ctrl *gomock.Controller + recorder *MockMulticlusterRouteOptionClientMockRecorder +} + +// MockMulticlusterRouteOptionClientMockRecorder is the mock recorder for MockMulticlusterRouteOptionClient. +type MockMulticlusterRouteOptionClientMockRecorder struct { + mock *MockMulticlusterRouteOptionClient +} + +// NewMockMulticlusterRouteOptionClient creates a new mock instance. +func NewMockMulticlusterRouteOptionClient(ctrl *gomock.Controller) *MockMulticlusterRouteOptionClient { + mock := &MockMulticlusterRouteOptionClient{ctrl: ctrl} + mock.recorder = &MockMulticlusterRouteOptionClientMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockMulticlusterRouteOptionClient) EXPECT() *MockMulticlusterRouteOptionClientMockRecorder { + return m.recorder +} + +// Cluster mocks base method. +func (m *MockMulticlusterRouteOptionClient) Cluster(cluster string) (v1.RouteOptionClient, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Cluster", cluster) + ret0, _ := ret[0].(v1.RouteOptionClient) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Cluster indicates an expected call of Cluster. +func (mr *MockMulticlusterRouteOptionClientMockRecorder) Cluster(cluster interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterRouteOptionClient)(nil).Cluster), cluster) +} + +// MockRouteTableReader is a mock of RouteTableReader interface. +type MockRouteTableReader struct { + ctrl *gomock.Controller + recorder *MockRouteTableReaderMockRecorder +} + +// MockRouteTableReaderMockRecorder is the mock recorder for MockRouteTableReader. +type MockRouteTableReaderMockRecorder struct { + mock *MockRouteTableReader +} + +// NewMockRouteTableReader creates a new mock instance. +func NewMockRouteTableReader(ctrl *gomock.Controller) *MockRouteTableReader { + mock := &MockRouteTableReader{ctrl: ctrl} + mock.recorder = &MockRouteTableReaderMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockRouteTableReader) EXPECT() *MockRouteTableReaderMockRecorder { + return m.recorder +} + +// GetRouteTable mocks base method. +func (m *MockRouteTableReader) GetRouteTable(ctx context.Context, key client.ObjectKey) (*v1.RouteTable, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRouteTable", ctx, key) + ret0, _ := ret[0].(*v1.RouteTable) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRouteTable indicates an expected call of GetRouteTable. +func (mr *MockRouteTableReaderMockRecorder) GetRouteTable(ctx, key interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRouteTable", reflect.TypeOf((*MockRouteTableReader)(nil).GetRouteTable), ctx, key) +} + +// ListRouteTable mocks base method. +func (m *MockRouteTableReader) ListRouteTable(ctx context.Context, opts ...client.ListOption) (*v1.RouteTableList, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRouteTable", varargs...) + ret0, _ := ret[0].(*v1.RouteTableList) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRouteTable indicates an expected call of ListRouteTable. +func (mr *MockRouteTableReaderMockRecorder) ListRouteTable(ctx interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRouteTable", reflect.TypeOf((*MockRouteTableReader)(nil).ListRouteTable), varargs...) +} + +// MockRouteTableWriter is a mock of RouteTableWriter interface. +type MockRouteTableWriter struct { + ctrl *gomock.Controller + recorder *MockRouteTableWriterMockRecorder +} + +// MockRouteTableWriterMockRecorder is the mock recorder for MockRouteTableWriter. +type MockRouteTableWriterMockRecorder struct { + mock *MockRouteTableWriter +} + +// NewMockRouteTableWriter creates a new mock instance. +func NewMockRouteTableWriter(ctrl *gomock.Controller) *MockRouteTableWriter { + mock := &MockRouteTableWriter{ctrl: ctrl} + mock.recorder = &MockRouteTableWriterMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockRouteTableWriter) EXPECT() *MockRouteTableWriterMockRecorder { + return m.recorder +} + +// CreateRouteTable mocks base method. +func (m *MockRouteTableWriter) CreateRouteTable(ctx context.Context, obj *v1.RouteTable, opts ...client.CreateOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRouteTable", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// CreateRouteTable indicates an expected call of CreateRouteTable. +func (mr *MockRouteTableWriterMockRecorder) CreateRouteTable(ctx, obj interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRouteTable", reflect.TypeOf((*MockRouteTableWriter)(nil).CreateRouteTable), varargs...) +} + +// DeleteAllOfRouteTable mocks base method. +func (m *MockRouteTableWriter) DeleteAllOfRouteTable(ctx context.Context, opts ...client.DeleteAllOfOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAllOfRouteTable", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteAllOfRouteTable indicates an expected call of DeleteAllOfRouteTable. +func (mr *MockRouteTableWriterMockRecorder) DeleteAllOfRouteTable(ctx interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfRouteTable", reflect.TypeOf((*MockRouteTableWriter)(nil).DeleteAllOfRouteTable), varargs...) +} + +// DeleteRouteTable mocks base method. +func (m *MockRouteTableWriter) DeleteRouteTable(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, key} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteRouteTable", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteRouteTable indicates an expected call of DeleteRouteTable. +func (mr *MockRouteTableWriterMockRecorder) DeleteRouteTable(ctx, key interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, key}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRouteTable", reflect.TypeOf((*MockRouteTableWriter)(nil).DeleteRouteTable), varargs...) +} + +// PatchRouteTable mocks base method. +func (m *MockRouteTableWriter) PatchRouteTable(ctx context.Context, obj *v1.RouteTable, patch client.Patch, opts ...client.PatchOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj, patch} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchRouteTable", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// PatchRouteTable indicates an expected call of PatchRouteTable. +func (mr *MockRouteTableWriterMockRecorder) PatchRouteTable(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj, patch}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteTable", reflect.TypeOf((*MockRouteTableWriter)(nil).PatchRouteTable), varargs...) +} + +// UpdateRouteTable mocks base method. +func (m *MockRouteTableWriter) UpdateRouteTable(ctx context.Context, obj *v1.RouteTable, opts ...client.UpdateOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateRouteTable", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpdateRouteTable indicates an expected call of UpdateRouteTable. +func (mr *MockRouteTableWriterMockRecorder) UpdateRouteTable(ctx, obj interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteTable", reflect.TypeOf((*MockRouteTableWriter)(nil).UpdateRouteTable), varargs...) +} + +// UpsertRouteTable mocks base method. +func (m *MockRouteTableWriter) UpsertRouteTable(ctx context.Context, obj *v1.RouteTable, transitionFuncs ...v1.RouteTableTransitionFunction) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range transitionFuncs { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpsertRouteTable", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpsertRouteTable indicates an expected call of UpsertRouteTable. +func (mr *MockRouteTableWriterMockRecorder) UpsertRouteTable(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, transitionFuncs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertRouteTable", reflect.TypeOf((*MockRouteTableWriter)(nil).UpsertRouteTable), varargs...) +} + +// MockRouteTableStatusWriter is a mock of RouteTableStatusWriter interface. +type MockRouteTableStatusWriter struct { + ctrl *gomock.Controller + recorder *MockRouteTableStatusWriterMockRecorder +} + +// MockRouteTableStatusWriterMockRecorder is the mock recorder for MockRouteTableStatusWriter. +type MockRouteTableStatusWriterMockRecorder struct { + mock *MockRouteTableStatusWriter +} + +// NewMockRouteTableStatusWriter creates a new mock instance. +func NewMockRouteTableStatusWriter(ctrl *gomock.Controller) *MockRouteTableStatusWriter { + mock := &MockRouteTableStatusWriter{ctrl: ctrl} + mock.recorder = &MockRouteTableStatusWriterMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockRouteTableStatusWriter) EXPECT() *MockRouteTableStatusWriterMockRecorder { + return m.recorder +} + +// PatchRouteTableStatus mocks base method. +func (m *MockRouteTableStatusWriter) PatchRouteTableStatus(ctx context.Context, obj *v1.RouteTable, patch client.Patch, opts ...client.SubResourcePatchOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj, patch} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchRouteTableStatus", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// PatchRouteTableStatus indicates an expected call of PatchRouteTableStatus. +func (mr *MockRouteTableStatusWriterMockRecorder) PatchRouteTableStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj, patch}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteTableStatus", reflect.TypeOf((*MockRouteTableStatusWriter)(nil).PatchRouteTableStatus), varargs...) +} + +// UpdateRouteTableStatus mocks base method. +func (m *MockRouteTableStatusWriter) UpdateRouteTableStatus(ctx context.Context, obj *v1.RouteTable, opts ...client.SubResourceUpdateOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateRouteTableStatus", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpdateRouteTableStatus indicates an expected call of UpdateRouteTableStatus. +func (mr *MockRouteTableStatusWriterMockRecorder) UpdateRouteTableStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteTableStatus", reflect.TypeOf((*MockRouteTableStatusWriter)(nil).UpdateRouteTableStatus), varargs...) +} + +// MockRouteTableClient is a mock of RouteTableClient interface. +type MockRouteTableClient struct { + ctrl *gomock.Controller + recorder *MockRouteTableClientMockRecorder +} + +// MockRouteTableClientMockRecorder is the mock recorder for MockRouteTableClient. +type MockRouteTableClientMockRecorder struct { + mock *MockRouteTableClient +} + +// NewMockRouteTableClient creates a new mock instance. +func NewMockRouteTableClient(ctrl *gomock.Controller) *MockRouteTableClient { + mock := &MockRouteTableClient{ctrl: ctrl} + mock.recorder = &MockRouteTableClientMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockRouteTableClient) EXPECT() *MockRouteTableClientMockRecorder { + return m.recorder +} + +// CreateRouteTable mocks base method. +func (m *MockRouteTableClient) CreateRouteTable(ctx context.Context, obj *v1.RouteTable, opts ...client.CreateOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRouteTable", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// CreateRouteTable indicates an expected call of CreateRouteTable. +func (mr *MockRouteTableClientMockRecorder) CreateRouteTable(ctx, obj interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).CreateRouteTable), varargs...) +} + +// DeleteAllOfRouteTable mocks base method. +func (m *MockRouteTableClient) DeleteAllOfRouteTable(ctx context.Context, opts ...client.DeleteAllOfOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAllOfRouteTable", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteAllOfRouteTable indicates an expected call of DeleteAllOfRouteTable. +func (mr *MockRouteTableClientMockRecorder) DeleteAllOfRouteTable(ctx interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).DeleteAllOfRouteTable), varargs...) +} + +// DeleteRouteTable mocks base method. +func (m *MockRouteTableClient) DeleteRouteTable(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, key} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteRouteTable", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteRouteTable indicates an expected call of DeleteRouteTable. +func (mr *MockRouteTableClientMockRecorder) DeleteRouteTable(ctx, key interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, key}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).DeleteRouteTable), varargs...) +} + +// GetRouteTable mocks base method. +func (m *MockRouteTableClient) GetRouteTable(ctx context.Context, key client.ObjectKey) (*v1.RouteTable, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRouteTable", ctx, key) + ret0, _ := ret[0].(*v1.RouteTable) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRouteTable indicates an expected call of GetRouteTable. +func (mr *MockRouteTableClientMockRecorder) GetRouteTable(ctx, key interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).GetRouteTable), ctx, key) +} + +// ListRouteTable mocks base method. +func (m *MockRouteTableClient) ListRouteTable(ctx context.Context, opts ...client.ListOption) (*v1.RouteTableList, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRouteTable", varargs...) + ret0, _ := ret[0].(*v1.RouteTableList) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRouteTable indicates an expected call of ListRouteTable. +func (mr *MockRouteTableClientMockRecorder) ListRouteTable(ctx interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).ListRouteTable), varargs...) +} + +// PatchRouteTable mocks base method. +func (m *MockRouteTableClient) PatchRouteTable(ctx context.Context, obj *v1.RouteTable, patch client.Patch, opts ...client.PatchOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj, patch} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchRouteTable", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// PatchRouteTable indicates an expected call of PatchRouteTable. +func (mr *MockRouteTableClientMockRecorder) PatchRouteTable(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj, patch}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).PatchRouteTable), varargs...) +} + +// PatchRouteTableStatus mocks base method. +func (m *MockRouteTableClient) PatchRouteTableStatus(ctx context.Context, obj *v1.RouteTable, patch client.Patch, opts ...client.SubResourcePatchOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj, patch} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchRouteTableStatus", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// PatchRouteTableStatus indicates an expected call of PatchRouteTableStatus. +func (mr *MockRouteTableClientMockRecorder) PatchRouteTableStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj, patch}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteTableStatus", reflect.TypeOf((*MockRouteTableClient)(nil).PatchRouteTableStatus), varargs...) +} + +// UpdateRouteTable mocks base method. +func (m *MockRouteTableClient) UpdateRouteTable(ctx context.Context, obj *v1.RouteTable, opts ...client.UpdateOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateRouteTable", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpdateRouteTable indicates an expected call of UpdateRouteTable. +func (mr *MockRouteTableClientMockRecorder) UpdateRouteTable(ctx, obj interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).UpdateRouteTable), varargs...) +} + +// UpdateRouteTableStatus mocks base method. +func (m *MockRouteTableClient) UpdateRouteTableStatus(ctx context.Context, obj *v1.RouteTable, opts ...client.SubResourceUpdateOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateRouteTableStatus", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpdateRouteTableStatus indicates an expected call of UpdateRouteTableStatus. +func (mr *MockRouteTableClientMockRecorder) UpdateRouteTableStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteTableStatus", reflect.TypeOf((*MockRouteTableClient)(nil).UpdateRouteTableStatus), varargs...) +} + +// UpsertRouteTable mocks base method. +func (m *MockRouteTableClient) UpsertRouteTable(ctx context.Context, obj *v1.RouteTable, transitionFuncs ...v1.RouteTableTransitionFunction) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range transitionFuncs { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpsertRouteTable", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpsertRouteTable indicates an expected call of UpsertRouteTable. +func (mr *MockRouteTableClientMockRecorder) UpsertRouteTable(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, transitionFuncs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertRouteTable", reflect.TypeOf((*MockRouteTableClient)(nil).UpsertRouteTable), varargs...) +} + +// MockMulticlusterRouteTableClient is a mock of MulticlusterRouteTableClient interface. +type MockMulticlusterRouteTableClient struct { + ctrl *gomock.Controller + recorder *MockMulticlusterRouteTableClientMockRecorder +} + +// MockMulticlusterRouteTableClientMockRecorder is the mock recorder for MockMulticlusterRouteTableClient. +type MockMulticlusterRouteTableClientMockRecorder struct { + mock *MockMulticlusterRouteTableClient +} + +// NewMockMulticlusterRouteTableClient creates a new mock instance. +func NewMockMulticlusterRouteTableClient(ctrl *gomock.Controller) *MockMulticlusterRouteTableClient { + mock := &MockMulticlusterRouteTableClient{ctrl: ctrl} + mock.recorder = &MockMulticlusterRouteTableClientMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockMulticlusterRouteTableClient) EXPECT() *MockMulticlusterRouteTableClientMockRecorder { + return m.recorder +} + +// Cluster mocks base method. +func (m *MockMulticlusterRouteTableClient) Cluster(cluster string) (v1.RouteTableClient, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Cluster", cluster) + ret0, _ := ret[0].(v1.RouteTableClient) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Cluster indicates an expected call of Cluster. +func (mr *MockMulticlusterRouteTableClientMockRecorder) Cluster(cluster interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterRouteTableClient)(nil).Cluster), cluster) +} + +// MockVirtualServiceReader is a mock of VirtualServiceReader interface. +type MockVirtualServiceReader struct { + ctrl *gomock.Controller + recorder *MockVirtualServiceReaderMockRecorder +} + +// MockVirtualServiceReaderMockRecorder is the mock recorder for MockVirtualServiceReader. +type MockVirtualServiceReaderMockRecorder struct { + mock *MockVirtualServiceReader +} + +// NewMockVirtualServiceReader creates a new mock instance. +func NewMockVirtualServiceReader(ctrl *gomock.Controller) *MockVirtualServiceReader { + mock := &MockVirtualServiceReader{ctrl: ctrl} + mock.recorder = &MockVirtualServiceReaderMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockVirtualServiceReader) EXPECT() *MockVirtualServiceReaderMockRecorder { + return m.recorder +} + +// GetVirtualService mocks base method. +func (m *MockVirtualServiceReader) GetVirtualService(ctx context.Context, key client.ObjectKey) (*v1.VirtualService, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetVirtualService", ctx, key) + ret0, _ := ret[0].(*v1.VirtualService) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetVirtualService indicates an expected call of GetVirtualService. +func (mr *MockVirtualServiceReaderMockRecorder) GetVirtualService(ctx, key interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVirtualService", reflect.TypeOf((*MockVirtualServiceReader)(nil).GetVirtualService), ctx, key) +} + +// ListVirtualService mocks base method. +func (m *MockVirtualServiceReader) ListVirtualService(ctx context.Context, opts ...client.ListOption) (*v1.VirtualServiceList, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListVirtualService", varargs...) + ret0, _ := ret[0].(*v1.VirtualServiceList) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListVirtualService indicates an expected call of ListVirtualService. +func (mr *MockVirtualServiceReaderMockRecorder) ListVirtualService(ctx interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualService", reflect.TypeOf((*MockVirtualServiceReader)(nil).ListVirtualService), varargs...) +} + +// MockVirtualServiceWriter is a mock of VirtualServiceWriter interface. +type MockVirtualServiceWriter struct { + ctrl *gomock.Controller + recorder *MockVirtualServiceWriterMockRecorder +} + +// MockVirtualServiceWriterMockRecorder is the mock recorder for MockVirtualServiceWriter. +type MockVirtualServiceWriterMockRecorder struct { + mock *MockVirtualServiceWriter +} + +// NewMockVirtualServiceWriter creates a new mock instance. +func NewMockVirtualServiceWriter(ctrl *gomock.Controller) *MockVirtualServiceWriter { + mock := &MockVirtualServiceWriter{ctrl: ctrl} + mock.recorder = &MockVirtualServiceWriterMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockVirtualServiceWriter) EXPECT() *MockVirtualServiceWriterMockRecorder { + return m.recorder +} + +// CreateVirtualService mocks base method. +func (m *MockVirtualServiceWriter) CreateVirtualService(ctx context.Context, obj *v1.VirtualService, opts ...client.CreateOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateVirtualService", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// CreateVirtualService indicates an expected call of CreateVirtualService. +func (mr *MockVirtualServiceWriterMockRecorder) CreateVirtualService(ctx, obj interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVirtualService", reflect.TypeOf((*MockVirtualServiceWriter)(nil).CreateVirtualService), varargs...) +} + +// DeleteAllOfVirtualService mocks base method. +func (m *MockVirtualServiceWriter) DeleteAllOfVirtualService(ctx context.Context, opts ...client.DeleteAllOfOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAllOfVirtualService", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteAllOfVirtualService indicates an expected call of DeleteAllOfVirtualService. +func (mr *MockVirtualServiceWriterMockRecorder) DeleteAllOfVirtualService(ctx interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfVirtualService", reflect.TypeOf((*MockVirtualServiceWriter)(nil).DeleteAllOfVirtualService), varargs...) +} + +// DeleteVirtualService mocks base method. +func (m *MockVirtualServiceWriter) DeleteVirtualService(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, key} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteVirtualService", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteVirtualService indicates an expected call of DeleteVirtualService. +func (mr *MockVirtualServiceWriterMockRecorder) DeleteVirtualService(ctx, key interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, key}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVirtualService", reflect.TypeOf((*MockVirtualServiceWriter)(nil).DeleteVirtualService), varargs...) +} + +// PatchVirtualService mocks base method. +func (m *MockVirtualServiceWriter) PatchVirtualService(ctx context.Context, obj *v1.VirtualService, patch client.Patch, opts ...client.PatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchVirtualHostOptionStatus", varargs...) + ret := m.ctrl.Call(m, "PatchVirtualService", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchVirtualHostOptionStatus indicates an expected call of PatchVirtualHostOptionStatus. -func (mr *MockVirtualHostOptionStatusWriterMockRecorder) PatchVirtualHostOptionStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchVirtualService indicates an expected call of PatchVirtualService. +func (mr *MockVirtualServiceWriterMockRecorder) PatchVirtualService(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualHostOptionStatus", reflect.TypeOf((*MockVirtualHostOptionStatusWriter)(nil).PatchVirtualHostOptionStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualService", reflect.TypeOf((*MockVirtualServiceWriter)(nil).PatchVirtualService), varargs...) } -// UpdateVirtualHostOptionStatus mocks base method. -func (m *MockVirtualHostOptionStatusWriter) UpdateVirtualHostOptionStatus(ctx context.Context, obj *v1.VirtualHostOption, opts ...client.SubResourceUpdateOption) error { +// UpdateVirtualService mocks base method. +func (m *MockVirtualServiceWriter) UpdateVirtualService(ctx context.Context, obj *v1.VirtualService, opts ...client.UpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateVirtualHostOptionStatus", varargs...) + ret := m.ctrl.Call(m, "UpdateVirtualService", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateVirtualHostOptionStatus indicates an expected call of UpdateVirtualHostOptionStatus. -func (mr *MockVirtualHostOptionStatusWriterMockRecorder) UpdateVirtualHostOptionStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateVirtualService indicates an expected call of UpdateVirtualService. +func (mr *MockVirtualServiceWriterMockRecorder) UpdateVirtualService(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualHostOptionStatus", reflect.TypeOf((*MockVirtualHostOptionStatusWriter)(nil).UpdateVirtualHostOptionStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualService", reflect.TypeOf((*MockVirtualServiceWriter)(nil).UpdateVirtualService), varargs...) } -// MockVirtualHostOptionClient is a mock of VirtualHostOptionClient interface. -type MockVirtualHostOptionClient struct { +// UpsertVirtualService mocks base method. +func (m *MockVirtualServiceWriter) UpsertVirtualService(ctx context.Context, obj *v1.VirtualService, transitionFuncs ...v1.VirtualServiceTransitionFunction) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range transitionFuncs { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpsertVirtualService", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpsertVirtualService indicates an expected call of UpsertVirtualService. +func (mr *MockVirtualServiceWriterMockRecorder) UpsertVirtualService(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, transitionFuncs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertVirtualService", reflect.TypeOf((*MockVirtualServiceWriter)(nil).UpsertVirtualService), varargs...) +} + +// MockVirtualServiceStatusWriter is a mock of VirtualServiceStatusWriter interface. +type MockVirtualServiceStatusWriter struct { ctrl *gomock.Controller - recorder *MockVirtualHostOptionClientMockRecorder + recorder *MockVirtualServiceStatusWriterMockRecorder } -// MockVirtualHostOptionClientMockRecorder is the mock recorder for MockVirtualHostOptionClient. -type MockVirtualHostOptionClientMockRecorder struct { - mock *MockVirtualHostOptionClient +// MockVirtualServiceStatusWriterMockRecorder is the mock recorder for MockVirtualServiceStatusWriter. +type MockVirtualServiceStatusWriterMockRecorder struct { + mock *MockVirtualServiceStatusWriter } -// NewMockVirtualHostOptionClient creates a new mock instance. -func NewMockVirtualHostOptionClient(ctrl *gomock.Controller) *MockVirtualHostOptionClient { - mock := &MockVirtualHostOptionClient{ctrl: ctrl} - mock.recorder = &MockVirtualHostOptionClientMockRecorder{mock} +// NewMockVirtualServiceStatusWriter creates a new mock instance. +func NewMockVirtualServiceStatusWriter(ctrl *gomock.Controller) *MockVirtualServiceStatusWriter { + mock := &MockVirtualServiceStatusWriter{ctrl: ctrl} + mock.recorder = &MockVirtualServiceStatusWriterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockVirtualHostOptionClient) EXPECT() *MockVirtualHostOptionClientMockRecorder { +func (m *MockVirtualServiceStatusWriter) EXPECT() *MockVirtualServiceStatusWriterMockRecorder { return m.recorder } -// CreateVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionClient) CreateVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, opts ...client.CreateOption) error { +// PatchVirtualServiceStatus mocks base method. +func (m *MockVirtualServiceStatusWriter) PatchVirtualServiceStatus(ctx context.Context, obj *v1.VirtualService, patch client.Patch, opts ...client.SubResourcePatchOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj, patch} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchVirtualServiceStatus", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// PatchVirtualServiceStatus indicates an expected call of PatchVirtualServiceStatus. +func (mr *MockVirtualServiceStatusWriterMockRecorder) PatchVirtualServiceStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj, patch}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualServiceStatus", reflect.TypeOf((*MockVirtualServiceStatusWriter)(nil).PatchVirtualServiceStatus), varargs...) +} + +// UpdateVirtualServiceStatus mocks base method. +func (m *MockVirtualServiceStatusWriter) UpdateVirtualServiceStatus(ctx context.Context, obj *v1.VirtualService, opts ...client.SubResourceUpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateVirtualHostOption", varargs...) + ret := m.ctrl.Call(m, "UpdateVirtualServiceStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// CreateVirtualHostOption indicates an expected call of CreateVirtualHostOption. -func (mr *MockVirtualHostOptionClientMockRecorder) CreateVirtualHostOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateVirtualServiceStatus indicates an expected call of UpdateVirtualServiceStatus. +func (mr *MockVirtualServiceStatusWriterMockRecorder) UpdateVirtualServiceStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualServiceStatus", reflect.TypeOf((*MockVirtualServiceStatusWriter)(nil).UpdateVirtualServiceStatus), varargs...) +} + +// MockVirtualServiceClient is a mock of VirtualServiceClient interface. +type MockVirtualServiceClient struct { + ctrl *gomock.Controller + recorder *MockVirtualServiceClientMockRecorder +} + +// MockVirtualServiceClientMockRecorder is the mock recorder for MockVirtualServiceClient. +type MockVirtualServiceClientMockRecorder struct { + mock *MockVirtualServiceClient +} + +// NewMockVirtualServiceClient creates a new mock instance. +func NewMockVirtualServiceClient(ctrl *gomock.Controller) *MockVirtualServiceClient { + mock := &MockVirtualServiceClient{ctrl: ctrl} + mock.recorder = &MockVirtualServiceClientMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockVirtualServiceClient) EXPECT() *MockVirtualServiceClientMockRecorder { + return m.recorder +} + +// CreateVirtualService mocks base method. +func (m *MockVirtualServiceClient) CreateVirtualService(ctx context.Context, obj *v1.VirtualService, opts ...client.CreateOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateVirtualService", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// CreateVirtualService indicates an expected call of CreateVirtualService. +func (mr *MockVirtualServiceClientMockRecorder) CreateVirtualService(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).CreateVirtualHostOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).CreateVirtualService), varargs...) } -// DeleteAllOfVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionClient) DeleteAllOfVirtualHostOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { +// DeleteAllOfVirtualService mocks base method. +func (m *MockVirtualServiceClient) DeleteAllOfVirtualService(ctx context.Context, opts ...client.DeleteAllOfOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteAllOfVirtualHostOption", varargs...) + ret := m.ctrl.Call(m, "DeleteAllOfVirtualService", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteAllOfVirtualHostOption indicates an expected call of DeleteAllOfVirtualHostOption. -func (mr *MockVirtualHostOptionClientMockRecorder) DeleteAllOfVirtualHostOption(ctx interface{}, opts ...interface{}) *gomock.Call { +// DeleteAllOfVirtualService indicates an expected call of DeleteAllOfVirtualService. +func (mr *MockVirtualServiceClientMockRecorder) DeleteAllOfVirtualService(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).DeleteAllOfVirtualHostOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).DeleteAllOfVirtualService), varargs...) } -// DeleteVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionClient) DeleteVirtualHostOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { +// DeleteVirtualService mocks base method. +func (m *MockVirtualServiceClient) DeleteVirtualService(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, key} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteVirtualHostOption", varargs...) + ret := m.ctrl.Call(m, "DeleteVirtualService", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteVirtualHostOption indicates an expected call of DeleteVirtualHostOption. -func (mr *MockVirtualHostOptionClientMockRecorder) DeleteVirtualHostOption(ctx, key interface{}, opts ...interface{}) *gomock.Call { +// DeleteVirtualService indicates an expected call of DeleteVirtualService. +func (mr *MockVirtualServiceClientMockRecorder) DeleteVirtualService(ctx, key interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, key}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).DeleteVirtualHostOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).DeleteVirtualService), varargs...) } -// GetVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionClient) GetVirtualHostOption(ctx context.Context, key client.ObjectKey) (*v1.VirtualHostOption, error) { +// GetVirtualService mocks base method. +func (m *MockVirtualServiceClient) GetVirtualService(ctx context.Context, key client.ObjectKey) (*v1.VirtualService, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetVirtualHostOption", ctx, key) - ret0, _ := ret[0].(*v1.VirtualHostOption) + ret := m.ctrl.Call(m, "GetVirtualService", ctx, key) + ret0, _ := ret[0].(*v1.VirtualService) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetVirtualHostOption indicates an expected call of GetVirtualHostOption. -func (mr *MockVirtualHostOptionClientMockRecorder) GetVirtualHostOption(ctx, key interface{}) *gomock.Call { +// GetVirtualService indicates an expected call of GetVirtualService. +func (mr *MockVirtualServiceClientMockRecorder) GetVirtualService(ctx, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).GetVirtualHostOption), ctx, key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).GetVirtualService), ctx, key) } -// ListVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionClient) ListVirtualHostOption(ctx context.Context, opts ...client.ListOption) (*v1.VirtualHostOptionList, error) { +// ListVirtualService mocks base method. +func (m *MockVirtualServiceClient) ListVirtualService(ctx context.Context, opts ...client.ListOption) (*v1.VirtualServiceList, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ListVirtualHostOption", varargs...) - ret0, _ := ret[0].(*v1.VirtualHostOptionList) + ret := m.ctrl.Call(m, "ListVirtualService", varargs...) + ret0, _ := ret[0].(*v1.VirtualServiceList) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListVirtualHostOption indicates an expected call of ListVirtualHostOption. -func (mr *MockVirtualHostOptionClientMockRecorder) ListVirtualHostOption(ctx interface{}, opts ...interface{}) *gomock.Call { +// ListVirtualService indicates an expected call of ListVirtualService. +func (mr *MockVirtualServiceClientMockRecorder) ListVirtualService(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).ListVirtualHostOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).ListVirtualService), varargs...) } -// PatchVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionClient) PatchVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, patch client.Patch, opts ...client.PatchOption) error { +// PatchVirtualService mocks base method. +func (m *MockVirtualServiceClient) PatchVirtualService(ctx context.Context, obj *v1.VirtualService, patch client.Patch, opts ...client.PatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchVirtualHostOption", varargs...) + ret := m.ctrl.Call(m, "PatchVirtualService", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchVirtualHostOption indicates an expected call of PatchVirtualHostOption. -func (mr *MockVirtualHostOptionClientMockRecorder) PatchVirtualHostOption(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchVirtualService indicates an expected call of PatchVirtualService. +func (mr *MockVirtualServiceClientMockRecorder) PatchVirtualService(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).PatchVirtualHostOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).PatchVirtualService), varargs...) } -// PatchVirtualHostOptionStatus mocks base method. -func (m *MockVirtualHostOptionClient) PatchVirtualHostOptionStatus(ctx context.Context, obj *v1.VirtualHostOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { +// PatchVirtualServiceStatus mocks base method. +func (m *MockVirtualServiceClient) PatchVirtualServiceStatus(ctx context.Context, obj *v1.VirtualService, patch client.Patch, opts ...client.SubResourcePatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchVirtualHostOptionStatus", varargs...) + ret := m.ctrl.Call(m, "PatchVirtualServiceStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchVirtualHostOptionStatus indicates an expected call of PatchVirtualHostOptionStatus. -func (mr *MockVirtualHostOptionClientMockRecorder) PatchVirtualHostOptionStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchVirtualServiceStatus indicates an expected call of PatchVirtualServiceStatus. +func (mr *MockVirtualServiceClientMockRecorder) PatchVirtualServiceStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualHostOptionStatus", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).PatchVirtualHostOptionStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualServiceStatus", reflect.TypeOf((*MockVirtualServiceClient)(nil).PatchVirtualServiceStatus), varargs...) } -// UpdateVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionClient) UpdateVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, opts ...client.UpdateOption) error { +// UpdateVirtualService mocks base method. +func (m *MockVirtualServiceClient) UpdateVirtualService(ctx context.Context, obj *v1.VirtualService, opts ...client.UpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateVirtualHostOption", varargs...) + ret := m.ctrl.Call(m, "UpdateVirtualService", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateVirtualHostOption indicates an expected call of UpdateVirtualHostOption. -func (mr *MockVirtualHostOptionClientMockRecorder) UpdateVirtualHostOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateVirtualService indicates an expected call of UpdateVirtualService. +func (mr *MockVirtualServiceClientMockRecorder) UpdateVirtualService(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).UpdateVirtualHostOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).UpdateVirtualService), varargs...) } -// UpdateVirtualHostOptionStatus mocks base method. -func (m *MockVirtualHostOptionClient) UpdateVirtualHostOptionStatus(ctx context.Context, obj *v1.VirtualHostOption, opts ...client.SubResourceUpdateOption) error { +// UpdateVirtualServiceStatus mocks base method. +func (m *MockVirtualServiceClient) UpdateVirtualServiceStatus(ctx context.Context, obj *v1.VirtualService, opts ...client.SubResourceUpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateVirtualHostOptionStatus", varargs...) + ret := m.ctrl.Call(m, "UpdateVirtualServiceStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateVirtualHostOptionStatus indicates an expected call of UpdateVirtualHostOptionStatus. -func (mr *MockVirtualHostOptionClientMockRecorder) UpdateVirtualHostOptionStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateVirtualServiceStatus indicates an expected call of UpdateVirtualServiceStatus. +func (mr *MockVirtualServiceClientMockRecorder) UpdateVirtualServiceStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualHostOptionStatus", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).UpdateVirtualHostOptionStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualServiceStatus", reflect.TypeOf((*MockVirtualServiceClient)(nil).UpdateVirtualServiceStatus), varargs...) } -// UpsertVirtualHostOption mocks base method. -func (m *MockVirtualHostOptionClient) UpsertVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, transitionFuncs ...v1.VirtualHostOptionTransitionFunction) error { +// UpsertVirtualService mocks base method. +func (m *MockVirtualServiceClient) UpsertVirtualService(ctx context.Context, obj *v1.VirtualService, transitionFuncs ...v1.VirtualServiceTransitionFunction) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range transitionFuncs { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpsertVirtualHostOption", varargs...) + ret := m.ctrl.Call(m, "UpsertVirtualService", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpsertVirtualHostOption indicates an expected call of UpsertVirtualHostOption. -func (mr *MockVirtualHostOptionClientMockRecorder) UpsertVirtualHostOption(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { +// UpsertVirtualService indicates an expected call of UpsertVirtualService. +func (mr *MockVirtualServiceClientMockRecorder) UpsertVirtualService(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, transitionFuncs...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).UpsertVirtualHostOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertVirtualService", reflect.TypeOf((*MockVirtualServiceClient)(nil).UpsertVirtualService), varargs...) } -// MockMulticlusterVirtualHostOptionClient is a mock of MulticlusterVirtualHostOptionClient interface. -type MockMulticlusterVirtualHostOptionClient struct { +// MockMulticlusterVirtualServiceClient is a mock of MulticlusterVirtualServiceClient interface. +type MockMulticlusterVirtualServiceClient struct { ctrl *gomock.Controller - recorder *MockMulticlusterVirtualHostOptionClientMockRecorder + recorder *MockMulticlusterVirtualServiceClientMockRecorder } -// MockMulticlusterVirtualHostOptionClientMockRecorder is the mock recorder for MockMulticlusterVirtualHostOptionClient. -type MockMulticlusterVirtualHostOptionClientMockRecorder struct { - mock *MockMulticlusterVirtualHostOptionClient +// MockMulticlusterVirtualServiceClientMockRecorder is the mock recorder for MockMulticlusterVirtualServiceClient. +type MockMulticlusterVirtualServiceClientMockRecorder struct { + mock *MockMulticlusterVirtualServiceClient } -// NewMockMulticlusterVirtualHostOptionClient creates a new mock instance. -func NewMockMulticlusterVirtualHostOptionClient(ctrl *gomock.Controller) *MockMulticlusterVirtualHostOptionClient { - mock := &MockMulticlusterVirtualHostOptionClient{ctrl: ctrl} - mock.recorder = &MockMulticlusterVirtualHostOptionClientMockRecorder{mock} +// NewMockMulticlusterVirtualServiceClient creates a new mock instance. +func NewMockMulticlusterVirtualServiceClient(ctrl *gomock.Controller) *MockMulticlusterVirtualServiceClient { + mock := &MockMulticlusterVirtualServiceClient{ctrl: ctrl} + mock.recorder = &MockMulticlusterVirtualServiceClientMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMulticlusterVirtualHostOptionClient) EXPECT() *MockMulticlusterVirtualHostOptionClientMockRecorder { +func (m *MockMulticlusterVirtualServiceClient) EXPECT() *MockMulticlusterVirtualServiceClientMockRecorder { return m.recorder } // Cluster mocks base method. -func (m *MockMulticlusterVirtualHostOptionClient) Cluster(cluster string) (v1.VirtualHostOptionClient, error) { +func (m *MockMulticlusterVirtualServiceClient) Cluster(cluster string) (v1.VirtualServiceClient, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Cluster", cluster) - ret0, _ := ret[0].(v1.VirtualHostOptionClient) + ret0, _ := ret[0].(v1.VirtualServiceClient) ret1, _ := ret[1].(error) return ret0, ret1 } // Cluster indicates an expected call of Cluster. -func (mr *MockMulticlusterVirtualHostOptionClientMockRecorder) Cluster(cluster interface{}) *gomock.Call { +func (mr *MockMulticlusterVirtualServiceClientMockRecorder) Cluster(cluster interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterVirtualHostOptionClient)(nil).Cluster), cluster) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterVirtualServiceClient)(nil).Cluster), cluster) } -// MockRouteOptionReader is a mock of RouteOptionReader interface. -type MockRouteOptionReader struct { +// MockVirtualHostOptionReader is a mock of VirtualHostOptionReader interface. +type MockVirtualHostOptionReader struct { ctrl *gomock.Controller - recorder *MockRouteOptionReaderMockRecorder + recorder *MockVirtualHostOptionReaderMockRecorder } -// MockRouteOptionReaderMockRecorder is the mock recorder for MockRouteOptionReader. -type MockRouteOptionReaderMockRecorder struct { - mock *MockRouteOptionReader +// MockVirtualHostOptionReaderMockRecorder is the mock recorder for MockVirtualHostOptionReader. +type MockVirtualHostOptionReaderMockRecorder struct { + mock *MockVirtualHostOptionReader } -// NewMockRouteOptionReader creates a new mock instance. -func NewMockRouteOptionReader(ctrl *gomock.Controller) *MockRouteOptionReader { - mock := &MockRouteOptionReader{ctrl: ctrl} - mock.recorder = &MockRouteOptionReaderMockRecorder{mock} +// NewMockVirtualHostOptionReader creates a new mock instance. +func NewMockVirtualHostOptionReader(ctrl *gomock.Controller) *MockVirtualHostOptionReader { + mock := &MockVirtualHostOptionReader{ctrl: ctrl} + mock.recorder = &MockVirtualHostOptionReaderMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteOptionReader) EXPECT() *MockRouteOptionReaderMockRecorder { +func (m *MockVirtualHostOptionReader) EXPECT() *MockVirtualHostOptionReaderMockRecorder { return m.recorder } -// GetRouteOption mocks base method. -func (m *MockRouteOptionReader) GetRouteOption(ctx context.Context, key client.ObjectKey) (*v1.RouteOption, error) { +// GetVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionReader) GetVirtualHostOption(ctx context.Context, key client.ObjectKey) (*v1.VirtualHostOption, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetRouteOption", ctx, key) - ret0, _ := ret[0].(*v1.RouteOption) + ret := m.ctrl.Call(m, "GetVirtualHostOption", ctx, key) + ret0, _ := ret[0].(*v1.VirtualHostOption) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetRouteOption indicates an expected call of GetRouteOption. -func (mr *MockRouteOptionReaderMockRecorder) GetRouteOption(ctx, key interface{}) *gomock.Call { +// GetVirtualHostOption indicates an expected call of GetVirtualHostOption. +func (mr *MockVirtualHostOptionReaderMockRecorder) GetVirtualHostOption(ctx, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRouteOption", reflect.TypeOf((*MockRouteOptionReader)(nil).GetRouteOption), ctx, key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionReader)(nil).GetVirtualHostOption), ctx, key) } -// ListRouteOption mocks base method. -func (m *MockRouteOptionReader) ListRouteOption(ctx context.Context, opts ...client.ListOption) (*v1.RouteOptionList, error) { +// ListVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionReader) ListVirtualHostOption(ctx context.Context, opts ...client.ListOption) (*v1.VirtualHostOptionList, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ListRouteOption", varargs...) - ret0, _ := ret[0].(*v1.RouteOptionList) + ret := m.ctrl.Call(m, "ListVirtualHostOption", varargs...) + ret0, _ := ret[0].(*v1.VirtualHostOptionList) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListRouteOption indicates an expected call of ListRouteOption. -func (mr *MockRouteOptionReaderMockRecorder) ListRouteOption(ctx interface{}, opts ...interface{}) *gomock.Call { +// ListVirtualHostOption indicates an expected call of ListVirtualHostOption. +func (mr *MockVirtualHostOptionReaderMockRecorder) ListVirtualHostOption(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRouteOption", reflect.TypeOf((*MockRouteOptionReader)(nil).ListRouteOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionReader)(nil).ListVirtualHostOption), varargs...) } -// MockRouteOptionWriter is a mock of RouteOptionWriter interface. -type MockRouteOptionWriter struct { +// MockVirtualHostOptionWriter is a mock of VirtualHostOptionWriter interface. +type MockVirtualHostOptionWriter struct { ctrl *gomock.Controller - recorder *MockRouteOptionWriterMockRecorder + recorder *MockVirtualHostOptionWriterMockRecorder } -// MockRouteOptionWriterMockRecorder is the mock recorder for MockRouteOptionWriter. -type MockRouteOptionWriterMockRecorder struct { - mock *MockRouteOptionWriter +// MockVirtualHostOptionWriterMockRecorder is the mock recorder for MockVirtualHostOptionWriter. +type MockVirtualHostOptionWriterMockRecorder struct { + mock *MockVirtualHostOptionWriter } -// NewMockRouteOptionWriter creates a new mock instance. -func NewMockRouteOptionWriter(ctrl *gomock.Controller) *MockRouteOptionWriter { - mock := &MockRouteOptionWriter{ctrl: ctrl} - mock.recorder = &MockRouteOptionWriterMockRecorder{mock} +// NewMockVirtualHostOptionWriter creates a new mock instance. +func NewMockVirtualHostOptionWriter(ctrl *gomock.Controller) *MockVirtualHostOptionWriter { + mock := &MockVirtualHostOptionWriter{ctrl: ctrl} + mock.recorder = &MockVirtualHostOptionWriterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteOptionWriter) EXPECT() *MockRouteOptionWriterMockRecorder { +func (m *MockVirtualHostOptionWriter) EXPECT() *MockVirtualHostOptionWriterMockRecorder { return m.recorder } -// CreateRouteOption mocks base method. -func (m *MockRouteOptionWriter) CreateRouteOption(ctx context.Context, obj *v1.RouteOption, opts ...client.CreateOption) error { +// CreateVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionWriter) CreateVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, opts ...client.CreateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateRouteOption", varargs...) + ret := m.ctrl.Call(m, "CreateVirtualHostOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// CreateRouteOption indicates an expected call of CreateRouteOption. -func (mr *MockRouteOptionWriterMockRecorder) CreateRouteOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// CreateVirtualHostOption indicates an expected call of CreateVirtualHostOption. +func (mr *MockVirtualHostOptionWriterMockRecorder) CreateVirtualHostOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRouteOption", reflect.TypeOf((*MockRouteOptionWriter)(nil).CreateRouteOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionWriter)(nil).CreateVirtualHostOption), varargs...) } -// DeleteAllOfRouteOption mocks base method. -func (m *MockRouteOptionWriter) DeleteAllOfRouteOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { +// DeleteAllOfVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionWriter) DeleteAllOfVirtualHostOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteAllOfRouteOption", varargs...) + ret := m.ctrl.Call(m, "DeleteAllOfVirtualHostOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteAllOfRouteOption indicates an expected call of DeleteAllOfRouteOption. -func (mr *MockRouteOptionWriterMockRecorder) DeleteAllOfRouteOption(ctx interface{}, opts ...interface{}) *gomock.Call { +// DeleteAllOfVirtualHostOption indicates an expected call of DeleteAllOfVirtualHostOption. +func (mr *MockVirtualHostOptionWriterMockRecorder) DeleteAllOfVirtualHostOption(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfRouteOption", reflect.TypeOf((*MockRouteOptionWriter)(nil).DeleteAllOfRouteOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionWriter)(nil).DeleteAllOfVirtualHostOption), varargs...) } -// DeleteRouteOption mocks base method. -func (m *MockRouteOptionWriter) DeleteRouteOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { +// DeleteVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionWriter) DeleteVirtualHostOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, key} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteRouteOption", varargs...) + ret := m.ctrl.Call(m, "DeleteVirtualHostOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteRouteOption indicates an expected call of DeleteRouteOption. -func (mr *MockRouteOptionWriterMockRecorder) DeleteRouteOption(ctx, key interface{}, opts ...interface{}) *gomock.Call { +// DeleteVirtualHostOption indicates an expected call of DeleteVirtualHostOption. +func (mr *MockVirtualHostOptionWriterMockRecorder) DeleteVirtualHostOption(ctx, key interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, key}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRouteOption", reflect.TypeOf((*MockRouteOptionWriter)(nil).DeleteRouteOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionWriter)(nil).DeleteVirtualHostOption), varargs...) } -// PatchRouteOption mocks base method. -func (m *MockRouteOptionWriter) PatchRouteOption(ctx context.Context, obj *v1.RouteOption, patch client.Patch, opts ...client.PatchOption) error { +// PatchVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionWriter) PatchVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, patch client.Patch, opts ...client.PatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchRouteOption", varargs...) + ret := m.ctrl.Call(m, "PatchVirtualHostOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchRouteOption indicates an expected call of PatchRouteOption. -func (mr *MockRouteOptionWriterMockRecorder) PatchRouteOption(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchVirtualHostOption indicates an expected call of PatchVirtualHostOption. +func (mr *MockVirtualHostOptionWriterMockRecorder) PatchVirtualHostOption(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteOption", reflect.TypeOf((*MockRouteOptionWriter)(nil).PatchRouteOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionWriter)(nil).PatchVirtualHostOption), varargs...) } -// UpdateRouteOption mocks base method. -func (m *MockRouteOptionWriter) UpdateRouteOption(ctx context.Context, obj *v1.RouteOption, opts ...client.UpdateOption) error { +// UpdateVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionWriter) UpdateVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, opts ...client.UpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateRouteOption", varargs...) + ret := m.ctrl.Call(m, "UpdateVirtualHostOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateRouteOption indicates an expected call of UpdateRouteOption. -func (mr *MockRouteOptionWriterMockRecorder) UpdateRouteOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateVirtualHostOption indicates an expected call of UpdateVirtualHostOption. +func (mr *MockVirtualHostOptionWriterMockRecorder) UpdateVirtualHostOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteOption", reflect.TypeOf((*MockRouteOptionWriter)(nil).UpdateRouteOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionWriter)(nil).UpdateVirtualHostOption), varargs...) } -// UpsertRouteOption mocks base method. -func (m *MockRouteOptionWriter) UpsertRouteOption(ctx context.Context, obj *v1.RouteOption, transitionFuncs ...v1.RouteOptionTransitionFunction) error { +// UpsertVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionWriter) UpsertVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, transitionFuncs ...v1.VirtualHostOptionTransitionFunction) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range transitionFuncs { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpsertRouteOption", varargs...) + ret := m.ctrl.Call(m, "UpsertVirtualHostOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpsertRouteOption indicates an expected call of UpsertRouteOption. -func (mr *MockRouteOptionWriterMockRecorder) UpsertRouteOption(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { +// UpsertVirtualHostOption indicates an expected call of UpsertVirtualHostOption. +func (mr *MockVirtualHostOptionWriterMockRecorder) UpsertVirtualHostOption(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, transitionFuncs...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertRouteOption", reflect.TypeOf((*MockRouteOptionWriter)(nil).UpsertRouteOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionWriter)(nil).UpsertVirtualHostOption), varargs...) } -// MockRouteOptionStatusWriter is a mock of RouteOptionStatusWriter interface. -type MockRouteOptionStatusWriter struct { +// MockVirtualHostOptionStatusWriter is a mock of VirtualHostOptionStatusWriter interface. +type MockVirtualHostOptionStatusWriter struct { ctrl *gomock.Controller - recorder *MockRouteOptionStatusWriterMockRecorder + recorder *MockVirtualHostOptionStatusWriterMockRecorder } -// MockRouteOptionStatusWriterMockRecorder is the mock recorder for MockRouteOptionStatusWriter. -type MockRouteOptionStatusWriterMockRecorder struct { - mock *MockRouteOptionStatusWriter +// MockVirtualHostOptionStatusWriterMockRecorder is the mock recorder for MockVirtualHostOptionStatusWriter. +type MockVirtualHostOptionStatusWriterMockRecorder struct { + mock *MockVirtualHostOptionStatusWriter } -// NewMockRouteOptionStatusWriter creates a new mock instance. -func NewMockRouteOptionStatusWriter(ctrl *gomock.Controller) *MockRouteOptionStatusWriter { - mock := &MockRouteOptionStatusWriter{ctrl: ctrl} - mock.recorder = &MockRouteOptionStatusWriterMockRecorder{mock} +// NewMockVirtualHostOptionStatusWriter creates a new mock instance. +func NewMockVirtualHostOptionStatusWriter(ctrl *gomock.Controller) *MockVirtualHostOptionStatusWriter { + mock := &MockVirtualHostOptionStatusWriter{ctrl: ctrl} + mock.recorder = &MockVirtualHostOptionStatusWriterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteOptionStatusWriter) EXPECT() *MockRouteOptionStatusWriterMockRecorder { +func (m *MockVirtualHostOptionStatusWriter) EXPECT() *MockVirtualHostOptionStatusWriterMockRecorder { return m.recorder } -// PatchRouteOptionStatus mocks base method. -func (m *MockRouteOptionStatusWriter) PatchRouteOptionStatus(ctx context.Context, obj *v1.RouteOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { +// PatchVirtualHostOptionStatus mocks base method. +func (m *MockVirtualHostOptionStatusWriter) PatchVirtualHostOptionStatus(ctx context.Context, obj *v1.VirtualHostOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchRouteOptionStatus", varargs...) + ret := m.ctrl.Call(m, "PatchVirtualHostOptionStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchRouteOptionStatus indicates an expected call of PatchRouteOptionStatus. -func (mr *MockRouteOptionStatusWriterMockRecorder) PatchRouteOptionStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchVirtualHostOptionStatus indicates an expected call of PatchVirtualHostOptionStatus. +func (mr *MockVirtualHostOptionStatusWriterMockRecorder) PatchVirtualHostOptionStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteOptionStatus", reflect.TypeOf((*MockRouteOptionStatusWriter)(nil).PatchRouteOptionStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualHostOptionStatus", reflect.TypeOf((*MockVirtualHostOptionStatusWriter)(nil).PatchVirtualHostOptionStatus), varargs...) } -// UpdateRouteOptionStatus mocks base method. -func (m *MockRouteOptionStatusWriter) UpdateRouteOptionStatus(ctx context.Context, obj *v1.RouteOption, opts ...client.SubResourceUpdateOption) error { +// UpdateVirtualHostOptionStatus mocks base method. +func (m *MockVirtualHostOptionStatusWriter) UpdateVirtualHostOptionStatus(ctx context.Context, obj *v1.VirtualHostOption, opts ...client.SubResourceUpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateRouteOptionStatus", varargs...) + ret := m.ctrl.Call(m, "UpdateVirtualHostOptionStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateRouteOptionStatus indicates an expected call of UpdateRouteOptionStatus. -func (mr *MockRouteOptionStatusWriterMockRecorder) UpdateRouteOptionStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateVirtualHostOptionStatus indicates an expected call of UpdateVirtualHostOptionStatus. +func (mr *MockVirtualHostOptionStatusWriterMockRecorder) UpdateVirtualHostOptionStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteOptionStatus", reflect.TypeOf((*MockRouteOptionStatusWriter)(nil).UpdateRouteOptionStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualHostOptionStatus", reflect.TypeOf((*MockVirtualHostOptionStatusWriter)(nil).UpdateVirtualHostOptionStatus), varargs...) } -// MockRouteOptionClient is a mock of RouteOptionClient interface. -type MockRouteOptionClient struct { +// MockVirtualHostOptionClient is a mock of VirtualHostOptionClient interface. +type MockVirtualHostOptionClient struct { ctrl *gomock.Controller - recorder *MockRouteOptionClientMockRecorder + recorder *MockVirtualHostOptionClientMockRecorder } -// MockRouteOptionClientMockRecorder is the mock recorder for MockRouteOptionClient. -type MockRouteOptionClientMockRecorder struct { - mock *MockRouteOptionClient +// MockVirtualHostOptionClientMockRecorder is the mock recorder for MockVirtualHostOptionClient. +type MockVirtualHostOptionClientMockRecorder struct { + mock *MockVirtualHostOptionClient } -// NewMockRouteOptionClient creates a new mock instance. -func NewMockRouteOptionClient(ctrl *gomock.Controller) *MockRouteOptionClient { - mock := &MockRouteOptionClient{ctrl: ctrl} - mock.recorder = &MockRouteOptionClientMockRecorder{mock} +// NewMockVirtualHostOptionClient creates a new mock instance. +func NewMockVirtualHostOptionClient(ctrl *gomock.Controller) *MockVirtualHostOptionClient { + mock := &MockVirtualHostOptionClient{ctrl: ctrl} + mock.recorder = &MockVirtualHostOptionClientMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteOptionClient) EXPECT() *MockRouteOptionClientMockRecorder { +func (m *MockVirtualHostOptionClient) EXPECT() *MockVirtualHostOptionClientMockRecorder { return m.recorder } -// CreateRouteOption mocks base method. -func (m *MockRouteOptionClient) CreateRouteOption(ctx context.Context, obj *v1.RouteOption, opts ...client.CreateOption) error { +// CreateVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionClient) CreateVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, opts ...client.CreateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateRouteOption", varargs...) + ret := m.ctrl.Call(m, "CreateVirtualHostOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// CreateRouteOption indicates an expected call of CreateRouteOption. -func (mr *MockRouteOptionClientMockRecorder) CreateRouteOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// CreateVirtualHostOption indicates an expected call of CreateVirtualHostOption. +func (mr *MockVirtualHostOptionClientMockRecorder) CreateVirtualHostOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).CreateRouteOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).CreateVirtualHostOption), varargs...) } -// DeleteAllOfRouteOption mocks base method. -func (m *MockRouteOptionClient) DeleteAllOfRouteOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { +// DeleteAllOfVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionClient) DeleteAllOfVirtualHostOption(ctx context.Context, opts ...client.DeleteAllOfOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteAllOfRouteOption", varargs...) + ret := m.ctrl.Call(m, "DeleteAllOfVirtualHostOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteAllOfRouteOption indicates an expected call of DeleteAllOfRouteOption. -func (mr *MockRouteOptionClientMockRecorder) DeleteAllOfRouteOption(ctx interface{}, opts ...interface{}) *gomock.Call { +// DeleteAllOfVirtualHostOption indicates an expected call of DeleteAllOfVirtualHostOption. +func (mr *MockVirtualHostOptionClientMockRecorder) DeleteAllOfVirtualHostOption(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).DeleteAllOfRouteOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOfVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).DeleteAllOfVirtualHostOption), varargs...) } -// DeleteRouteOption mocks base method. -func (m *MockRouteOptionClient) DeleteRouteOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { +// DeleteVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionClient) DeleteVirtualHostOption(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, key} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteRouteOption", varargs...) + ret := m.ctrl.Call(m, "DeleteVirtualHostOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// DeleteRouteOption indicates an expected call of DeleteRouteOption. -func (mr *MockRouteOptionClientMockRecorder) DeleteRouteOption(ctx, key interface{}, opts ...interface{}) *gomock.Call { +// DeleteVirtualHostOption indicates an expected call of DeleteVirtualHostOption. +func (mr *MockVirtualHostOptionClientMockRecorder) DeleteVirtualHostOption(ctx, key interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, key}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).DeleteRouteOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).DeleteVirtualHostOption), varargs...) } -// GetRouteOption mocks base method. -func (m *MockRouteOptionClient) GetRouteOption(ctx context.Context, key client.ObjectKey) (*v1.RouteOption, error) { +// GetVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionClient) GetVirtualHostOption(ctx context.Context, key client.ObjectKey) (*v1.VirtualHostOption, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetRouteOption", ctx, key) - ret0, _ := ret[0].(*v1.RouteOption) + ret := m.ctrl.Call(m, "GetVirtualHostOption", ctx, key) + ret0, _ := ret[0].(*v1.VirtualHostOption) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetRouteOption indicates an expected call of GetRouteOption. -func (mr *MockRouteOptionClientMockRecorder) GetRouteOption(ctx, key interface{}) *gomock.Call { +// GetVirtualHostOption indicates an expected call of GetVirtualHostOption. +func (mr *MockVirtualHostOptionClientMockRecorder) GetVirtualHostOption(ctx, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).GetRouteOption), ctx, key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).GetVirtualHostOption), ctx, key) } -// ListRouteOption mocks base method. -func (m *MockRouteOptionClient) ListRouteOption(ctx context.Context, opts ...client.ListOption) (*v1.RouteOptionList, error) { +// ListVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionClient) ListVirtualHostOption(ctx context.Context, opts ...client.ListOption) (*v1.VirtualHostOptionList, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ListRouteOption", varargs...) - ret0, _ := ret[0].(*v1.RouteOptionList) + ret := m.ctrl.Call(m, "ListVirtualHostOption", varargs...) + ret0, _ := ret[0].(*v1.VirtualHostOptionList) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListRouteOption indicates an expected call of ListRouteOption. -func (mr *MockRouteOptionClientMockRecorder) ListRouteOption(ctx interface{}, opts ...interface{}) *gomock.Call { +// ListVirtualHostOption indicates an expected call of ListVirtualHostOption. +func (mr *MockVirtualHostOptionClientMockRecorder) ListVirtualHostOption(ctx interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).ListRouteOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).ListVirtualHostOption), varargs...) } -// PatchRouteOption mocks base method. -func (m *MockRouteOptionClient) PatchRouteOption(ctx context.Context, obj *v1.RouteOption, patch client.Patch, opts ...client.PatchOption) error { +// PatchVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionClient) PatchVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, patch client.Patch, opts ...client.PatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchRouteOption", varargs...) + ret := m.ctrl.Call(m, "PatchVirtualHostOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchRouteOption indicates an expected call of PatchRouteOption. -func (mr *MockRouteOptionClientMockRecorder) PatchRouteOption(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchVirtualHostOption indicates an expected call of PatchVirtualHostOption. +func (mr *MockVirtualHostOptionClientMockRecorder) PatchVirtualHostOption(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).PatchRouteOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).PatchVirtualHostOption), varargs...) } -// PatchRouteOptionStatus mocks base method. -func (m *MockRouteOptionClient) PatchRouteOptionStatus(ctx context.Context, obj *v1.RouteOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { +// PatchVirtualHostOptionStatus mocks base method. +func (m *MockVirtualHostOptionClient) PatchVirtualHostOptionStatus(ctx context.Context, obj *v1.VirtualHostOption, patch client.Patch, opts ...client.SubResourcePatchOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj, patch} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PatchRouteOptionStatus", varargs...) + ret := m.ctrl.Call(m, "PatchVirtualHostOptionStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// PatchRouteOptionStatus indicates an expected call of PatchRouteOptionStatus. -func (mr *MockRouteOptionClientMockRecorder) PatchRouteOptionStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { +// PatchVirtualHostOptionStatus indicates an expected call of PatchVirtualHostOptionStatus. +func (mr *MockVirtualHostOptionClientMockRecorder) PatchVirtualHostOptionStatus(ctx, obj, patch interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj, patch}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchRouteOptionStatus", reflect.TypeOf((*MockRouteOptionClient)(nil).PatchRouteOptionStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchVirtualHostOptionStatus", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).PatchVirtualHostOptionStatus), varargs...) } -// UpdateRouteOption mocks base method. -func (m *MockRouteOptionClient) UpdateRouteOption(ctx context.Context, obj *v1.RouteOption, opts ...client.UpdateOption) error { +// UpdateVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionClient) UpdateVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, opts ...client.UpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateRouteOption", varargs...) + ret := m.ctrl.Call(m, "UpdateVirtualHostOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateRouteOption indicates an expected call of UpdateRouteOption. -func (mr *MockRouteOptionClientMockRecorder) UpdateRouteOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateVirtualHostOption indicates an expected call of UpdateVirtualHostOption. +func (mr *MockVirtualHostOptionClientMockRecorder) UpdateVirtualHostOption(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).UpdateRouteOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).UpdateVirtualHostOption), varargs...) } -// UpdateRouteOptionStatus mocks base method. -func (m *MockRouteOptionClient) UpdateRouteOptionStatus(ctx context.Context, obj *v1.RouteOption, opts ...client.SubResourceUpdateOption) error { +// UpdateVirtualHostOptionStatus mocks base method. +func (m *MockVirtualHostOptionClient) UpdateVirtualHostOptionStatus(ctx context.Context, obj *v1.VirtualHostOption, opts ...client.SubResourceUpdateOption) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateRouteOptionStatus", varargs...) + ret := m.ctrl.Call(m, "UpdateVirtualHostOptionStatus", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpdateRouteOptionStatus indicates an expected call of UpdateRouteOptionStatus. -func (mr *MockRouteOptionClientMockRecorder) UpdateRouteOptionStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { +// UpdateVirtualHostOptionStatus indicates an expected call of UpdateVirtualHostOptionStatus. +func (mr *MockVirtualHostOptionClientMockRecorder) UpdateVirtualHostOptionStatus(ctx, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRouteOptionStatus", reflect.TypeOf((*MockRouteOptionClient)(nil).UpdateRouteOptionStatus), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualHostOptionStatus", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).UpdateVirtualHostOptionStatus), varargs...) } -// UpsertRouteOption mocks base method. -func (m *MockRouteOptionClient) UpsertRouteOption(ctx context.Context, obj *v1.RouteOption, transitionFuncs ...v1.RouteOptionTransitionFunction) error { +// UpsertVirtualHostOption mocks base method. +func (m *MockVirtualHostOptionClient) UpsertVirtualHostOption(ctx context.Context, obj *v1.VirtualHostOption, transitionFuncs ...v1.VirtualHostOptionTransitionFunction) error { m.ctrl.T.Helper() varargs := []interface{}{ctx, obj} for _, a := range transitionFuncs { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpsertRouteOption", varargs...) + ret := m.ctrl.Call(m, "UpsertVirtualHostOption", varargs...) ret0, _ := ret[0].(error) return ret0 } -// UpsertRouteOption indicates an expected call of UpsertRouteOption. -func (mr *MockRouteOptionClientMockRecorder) UpsertRouteOption(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { +// UpsertVirtualHostOption indicates an expected call of UpsertVirtualHostOption. +func (mr *MockVirtualHostOptionClientMockRecorder) UpsertVirtualHostOption(ctx, obj interface{}, transitionFuncs ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, obj}, transitionFuncs...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertRouteOption", reflect.TypeOf((*MockRouteOptionClient)(nil).UpsertRouteOption), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertVirtualHostOption", reflect.TypeOf((*MockVirtualHostOptionClient)(nil).UpsertVirtualHostOption), varargs...) } -// MockMulticlusterRouteOptionClient is a mock of MulticlusterRouteOptionClient interface. -type MockMulticlusterRouteOptionClient struct { +// MockMulticlusterVirtualHostOptionClient is a mock of MulticlusterVirtualHostOptionClient interface. +type MockMulticlusterVirtualHostOptionClient struct { ctrl *gomock.Controller - recorder *MockMulticlusterRouteOptionClientMockRecorder + recorder *MockMulticlusterVirtualHostOptionClientMockRecorder } -// MockMulticlusterRouteOptionClientMockRecorder is the mock recorder for MockMulticlusterRouteOptionClient. -type MockMulticlusterRouteOptionClientMockRecorder struct { - mock *MockMulticlusterRouteOptionClient +// MockMulticlusterVirtualHostOptionClientMockRecorder is the mock recorder for MockMulticlusterVirtualHostOptionClient. +type MockMulticlusterVirtualHostOptionClientMockRecorder struct { + mock *MockMulticlusterVirtualHostOptionClient } -// NewMockMulticlusterRouteOptionClient creates a new mock instance. -func NewMockMulticlusterRouteOptionClient(ctrl *gomock.Controller) *MockMulticlusterRouteOptionClient { - mock := &MockMulticlusterRouteOptionClient{ctrl: ctrl} - mock.recorder = &MockMulticlusterRouteOptionClientMockRecorder{mock} +// NewMockMulticlusterVirtualHostOptionClient creates a new mock instance. +func NewMockMulticlusterVirtualHostOptionClient(ctrl *gomock.Controller) *MockMulticlusterVirtualHostOptionClient { + mock := &MockMulticlusterVirtualHostOptionClient{ctrl: ctrl} + mock.recorder = &MockMulticlusterVirtualHostOptionClientMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMulticlusterRouteOptionClient) EXPECT() *MockMulticlusterRouteOptionClientMockRecorder { +func (m *MockMulticlusterVirtualHostOptionClient) EXPECT() *MockMulticlusterVirtualHostOptionClientMockRecorder { return m.recorder } // Cluster mocks base method. -func (m *MockMulticlusterRouteOptionClient) Cluster(cluster string) (v1.RouteOptionClient, error) { +func (m *MockMulticlusterVirtualHostOptionClient) Cluster(cluster string) (v1.VirtualHostOptionClient, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Cluster", cluster) - ret0, _ := ret[0].(v1.RouteOptionClient) + ret0, _ := ret[0].(v1.VirtualHostOptionClient) ret1, _ := ret[1].(error) return ret0, ret1 } // Cluster indicates an expected call of Cluster. -func (mr *MockMulticlusterRouteOptionClientMockRecorder) Cluster(cluster interface{}) *gomock.Call { +func (mr *MockMulticlusterVirtualHostOptionClientMockRecorder) Cluster(cluster interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterRouteOptionClient)(nil).Cluster), cluster) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cluster", reflect.TypeOf((*MockMulticlusterVirtualHostOptionClient)(nil).Cluster), cluster) } diff --git a/pkg/api/gateway.solo.io/v1/proto_deepcopy.go b/pkg/api/gateway.solo.io/v1/proto_deepcopy.go index bb6adbd01..928dd4023 100644 --- a/pkg/api/gateway.solo.io/v1/proto_deepcopy.go +++ b/pkg/api/gateway.solo.io/v1/proto_deepcopy.go @@ -31,6 +31,50 @@ func (in *GatewayStatus) DeepCopyInto(out *GatewayStatus) { *out = *p } +// DeepCopyInto for the HttpListenerOption.Spec +func (in *HttpListenerOptionSpec) DeepCopyInto(out *HttpListenerOptionSpec) { + var p *HttpListenerOptionSpec + if h, ok := interface{}(in).(clone.Cloner); ok { + p = h.Clone().(*HttpListenerOptionSpec) + } else { + p = proto.Clone(in).(*HttpListenerOptionSpec) + } + *out = *p +} + +// DeepCopyInto for the HttpListenerOption.Status +func (in *HttpListenerOptionStatus) DeepCopyInto(out *HttpListenerOptionStatus) { + var p *HttpListenerOptionStatus + if h, ok := interface{}(in).(clone.Cloner); ok { + p = h.Clone().(*HttpListenerOptionStatus) + } else { + p = proto.Clone(in).(*HttpListenerOptionStatus) + } + *out = *p +} + +// DeepCopyInto for the ListenerOption.Spec +func (in *ListenerOptionSpec) DeepCopyInto(out *ListenerOptionSpec) { + var p *ListenerOptionSpec + if h, ok := interface{}(in).(clone.Cloner); ok { + p = h.Clone().(*ListenerOptionSpec) + } else { + p = proto.Clone(in).(*ListenerOptionSpec) + } + *out = *p +} + +// DeepCopyInto for the ListenerOption.Status +func (in *ListenerOptionStatus) DeepCopyInto(out *ListenerOptionStatus) { + var p *ListenerOptionStatus + if h, ok := interface{}(in).(clone.Cloner); ok { + p = h.Clone().(*ListenerOptionStatus) + } else { + p = proto.Clone(in).(*ListenerOptionStatus) + } + *out = *p +} + // DeepCopyInto for the MatchableHttpGateway.Spec func (in *MatchableHttpGatewaySpec) DeepCopyInto(out *MatchableHttpGatewaySpec) { var p *MatchableHttpGatewaySpec @@ -75,6 +119,28 @@ func (in *MatchableTcpGatewayStatus) DeepCopyInto(out *MatchableTcpGatewayStatus *out = *p } +// DeepCopyInto for the RouteOption.Spec +func (in *RouteOptionSpec) DeepCopyInto(out *RouteOptionSpec) { + var p *RouteOptionSpec + if h, ok := interface{}(in).(clone.Cloner); ok { + p = h.Clone().(*RouteOptionSpec) + } else { + p = proto.Clone(in).(*RouteOptionSpec) + } + *out = *p +} + +// DeepCopyInto for the RouteOption.Status +func (in *RouteOptionStatus) DeepCopyInto(out *RouteOptionStatus) { + var p *RouteOptionStatus + if h, ok := interface{}(in).(clone.Cloner); ok { + p = h.Clone().(*RouteOptionStatus) + } else { + p = proto.Clone(in).(*RouteOptionStatus) + } + *out = *p +} + // DeepCopyInto for the RouteTable.Spec func (in *RouteTableSpec) DeepCopyInto(out *RouteTableSpec) { var p *RouteTableSpec @@ -140,25 +206,3 @@ func (in *VirtualHostOptionStatus) DeepCopyInto(out *VirtualHostOptionStatus) { } *out = *p } - -// DeepCopyInto for the RouteOption.Spec -func (in *RouteOptionSpec) DeepCopyInto(out *RouteOptionSpec) { - var p *RouteOptionSpec - if h, ok := interface{}(in).(clone.Cloner); ok { - p = h.Clone().(*RouteOptionSpec) - } else { - p = proto.Clone(in).(*RouteOptionSpec) - } - *out = *p -} - -// DeepCopyInto for the RouteOption.Status -func (in *RouteOptionStatus) DeepCopyInto(out *RouteOptionStatus) { - var p *RouteOptionStatus - if h, ok := interface{}(in).(clone.Cloner); ok { - p = h.Clone().(*RouteOptionStatus) - } else { - p = proto.Clone(in).(*RouteOptionStatus) - } - *out = *p -} diff --git a/pkg/api/gateway.solo.io/v1/providers/client_providers.go b/pkg/api/gateway.solo.io/v1/providers/client_providers.go index b3510a6fb..98c0d9b32 100644 --- a/pkg/api/gateway.solo.io/v1/providers/client_providers.go +++ b/pkg/api/gateway.solo.io/v1/providers/client_providers.go @@ -45,6 +45,62 @@ func GatewayClientFromConfigFactoryProvider() GatewayClientFromConfigFactory { } } +// Provider for HttpListenerOptionClient from Clientset +func HttpListenerOptionClientFromClientsetProvider(clients gateway_solo_io_v1.Clientset) gateway_solo_io_v1.HttpListenerOptionClient { + return clients.HttpListenerOptions() +} + +// Provider for HttpListenerOption Client from Client +func HttpListenerOptionClientProvider(client client.Client) gateway_solo_io_v1.HttpListenerOptionClient { + return gateway_solo_io_v1.NewHttpListenerOptionClient(client) +} + +type HttpListenerOptionClientFactory func(client client.Client) gateway_solo_io_v1.HttpListenerOptionClient + +func HttpListenerOptionClientFactoryProvider() HttpListenerOptionClientFactory { + return HttpListenerOptionClientProvider +} + +type HttpListenerOptionClientFromConfigFactory func(cfg *rest.Config) (gateway_solo_io_v1.HttpListenerOptionClient, error) + +func HttpListenerOptionClientFromConfigFactoryProvider() HttpListenerOptionClientFromConfigFactory { + return func(cfg *rest.Config) (gateway_solo_io_v1.HttpListenerOptionClient, error) { + clients, err := gateway_solo_io_v1.NewClientsetFromConfig(cfg) + if err != nil { + return nil, err + } + return clients.HttpListenerOptions(), nil + } +} + +// Provider for ListenerOptionClient from Clientset +func ListenerOptionClientFromClientsetProvider(clients gateway_solo_io_v1.Clientset) gateway_solo_io_v1.ListenerOptionClient { + return clients.ListenerOptions() +} + +// Provider for ListenerOption Client from Client +func ListenerOptionClientProvider(client client.Client) gateway_solo_io_v1.ListenerOptionClient { + return gateway_solo_io_v1.NewListenerOptionClient(client) +} + +type ListenerOptionClientFactory func(client client.Client) gateway_solo_io_v1.ListenerOptionClient + +func ListenerOptionClientFactoryProvider() ListenerOptionClientFactory { + return ListenerOptionClientProvider +} + +type ListenerOptionClientFromConfigFactory func(cfg *rest.Config) (gateway_solo_io_v1.ListenerOptionClient, error) + +func ListenerOptionClientFromConfigFactoryProvider() ListenerOptionClientFromConfigFactory { + return func(cfg *rest.Config) (gateway_solo_io_v1.ListenerOptionClient, error) { + clients, err := gateway_solo_io_v1.NewClientsetFromConfig(cfg) + if err != nil { + return nil, err + } + return clients.ListenerOptions(), nil + } +} + // Provider for MatchableHttpGatewayClient from Clientset func MatchableHttpGatewayClientFromClientsetProvider(clients gateway_solo_io_v1.Clientset) gateway_solo_io_v1.MatchableHttpGatewayClient { return clients.MatchableHttpGateways() @@ -101,6 +157,34 @@ func MatchableTcpGatewayClientFromConfigFactoryProvider() MatchableTcpGatewayCli } } +// Provider for RouteOptionClient from Clientset +func RouteOptionClientFromClientsetProvider(clients gateway_solo_io_v1.Clientset) gateway_solo_io_v1.RouteOptionClient { + return clients.RouteOptions() +} + +// Provider for RouteOption Client from Client +func RouteOptionClientProvider(client client.Client) gateway_solo_io_v1.RouteOptionClient { + return gateway_solo_io_v1.NewRouteOptionClient(client) +} + +type RouteOptionClientFactory func(client client.Client) gateway_solo_io_v1.RouteOptionClient + +func RouteOptionClientFactoryProvider() RouteOptionClientFactory { + return RouteOptionClientProvider +} + +type RouteOptionClientFromConfigFactory func(cfg *rest.Config) (gateway_solo_io_v1.RouteOptionClient, error) + +func RouteOptionClientFromConfigFactoryProvider() RouteOptionClientFromConfigFactory { + return func(cfg *rest.Config) (gateway_solo_io_v1.RouteOptionClient, error) { + clients, err := gateway_solo_io_v1.NewClientsetFromConfig(cfg) + if err != nil { + return nil, err + } + return clients.RouteOptions(), nil + } +} + // Provider for RouteTableClient from Clientset func RouteTableClientFromClientsetProvider(clients gateway_solo_io_v1.Clientset) gateway_solo_io_v1.RouteTableClient { return clients.RouteTables() @@ -184,31 +268,3 @@ func VirtualHostOptionClientFromConfigFactoryProvider() VirtualHostOptionClientF return clients.VirtualHostOptions(), nil } } - -// Provider for RouteOptionClient from Clientset -func RouteOptionClientFromClientsetProvider(clients gateway_solo_io_v1.Clientset) gateway_solo_io_v1.RouteOptionClient { - return clients.RouteOptions() -} - -// Provider for RouteOption Client from Client -func RouteOptionClientProvider(client client.Client) gateway_solo_io_v1.RouteOptionClient { - return gateway_solo_io_v1.NewRouteOptionClient(client) -} - -type RouteOptionClientFactory func(client client.Client) gateway_solo_io_v1.RouteOptionClient - -func RouteOptionClientFactoryProvider() RouteOptionClientFactory { - return RouteOptionClientProvider -} - -type RouteOptionClientFromConfigFactory func(cfg *rest.Config) (gateway_solo_io_v1.RouteOptionClient, error) - -func RouteOptionClientFromConfigFactoryProvider() RouteOptionClientFromConfigFactory { - return func(cfg *rest.Config) (gateway_solo_io_v1.RouteOptionClient, error) { - clients, err := gateway_solo_io_v1.NewClientsetFromConfig(cfg) - if err != nil { - return nil, err - } - return clients.RouteOptions(), nil - } -} diff --git a/pkg/api/gateway.solo.io/v1/sets/mocks/sets.go b/pkg/api/gateway.solo.io/v1/sets/mocks/sets.go index da8c3fef9..c25a65379 100644 --- a/pkg/api/gateway.solo.io/v1/sets/mocks/sets.go +++ b/pkg/api/gateway.solo.io/v1/sets/mocks/sets.go @@ -271,6 +271,518 @@ func (mr *MockGatewaySetMockRecorder) UnsortedList(filterResource ...interface{} return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnsortedList", reflect.TypeOf((*MockGatewaySet)(nil).UnsortedList), filterResource...) } +// MockHttpListenerOptionSet is a mock of HttpListenerOptionSet interface. +type MockHttpListenerOptionSet struct { + ctrl *gomock.Controller + recorder *MockHttpListenerOptionSetMockRecorder +} + +// MockHttpListenerOptionSetMockRecorder is the mock recorder for MockHttpListenerOptionSet. +type MockHttpListenerOptionSetMockRecorder struct { + mock *MockHttpListenerOptionSet +} + +// NewMockHttpListenerOptionSet creates a new mock instance. +func NewMockHttpListenerOptionSet(ctrl *gomock.Controller) *MockHttpListenerOptionSet { + mock := &MockHttpListenerOptionSet{ctrl: ctrl} + mock.recorder = &MockHttpListenerOptionSetMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockHttpListenerOptionSet) EXPECT() *MockHttpListenerOptionSetMockRecorder { + return m.recorder +} + +// Clone mocks base method. +func (m *MockHttpListenerOptionSet) Clone() v1sets.HttpListenerOptionSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Clone") + ret0, _ := ret[0].(v1sets.HttpListenerOptionSet) + return ret0 +} + +// Clone indicates an expected call of Clone. +func (mr *MockHttpListenerOptionSetMockRecorder) Clone() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clone", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).Clone)) +} + +// Delete mocks base method. +func (m *MockHttpListenerOptionSet) Delete(httpListenerOption ezkube.ResourceId) { + m.ctrl.T.Helper() + m.ctrl.Call(m, "Delete", httpListenerOption) +} + +// Delete indicates an expected call of Delete. +func (mr *MockHttpListenerOptionSetMockRecorder) Delete(httpListenerOption interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).Delete), httpListenerOption) +} + +// Delta mocks base method. +func (m *MockHttpListenerOptionSet) Delta(newSet v1sets.HttpListenerOptionSet) sets.ResourceDelta { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Delta", newSet) + ret0, _ := ret[0].(sets.ResourceDelta) + return ret0 +} + +// Delta indicates an expected call of Delta. +func (mr *MockHttpListenerOptionSetMockRecorder) Delta(newSet interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delta", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).Delta), newSet) +} + +// Difference mocks base method. +func (m *MockHttpListenerOptionSet) Difference(set v1sets.HttpListenerOptionSet) v1sets.HttpListenerOptionSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Difference", set) + ret0, _ := ret[0].(v1sets.HttpListenerOptionSet) + return ret0 +} + +// Difference indicates an expected call of Difference. +func (mr *MockHttpListenerOptionSetMockRecorder) Difference(set interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Difference", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).Difference), set) +} + +// Equal mocks base method. +func (m *MockHttpListenerOptionSet) Equal(httpListenerOptionSet v1sets.HttpListenerOptionSet) bool { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Equal", httpListenerOptionSet) + ret0, _ := ret[0].(bool) + return ret0 +} + +// Equal indicates an expected call of Equal. +func (mr *MockHttpListenerOptionSetMockRecorder) Equal(httpListenerOptionSet interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Equal", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).Equal), httpListenerOptionSet) +} + +// Find mocks base method. +func (m *MockHttpListenerOptionSet) Find(id ezkube.ResourceId) (*v1.HttpListenerOption, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Find", id) + ret0, _ := ret[0].(*v1.HttpListenerOption) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Find indicates an expected call of Find. +func (mr *MockHttpListenerOptionSetMockRecorder) Find(id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).Find), id) +} + +// Generic mocks base method. +func (m *MockHttpListenerOptionSet) Generic() sets.ResourceSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Generic") + ret0, _ := ret[0].(sets.ResourceSet) + return ret0 +} + +// Generic indicates an expected call of Generic. +func (mr *MockHttpListenerOptionSetMockRecorder) Generic() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Generic", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).Generic)) +} + +// Has mocks base method. +func (m *MockHttpListenerOptionSet) Has(httpListenerOption ezkube.ResourceId) bool { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Has", httpListenerOption) + ret0, _ := ret[0].(bool) + return ret0 +} + +// Has indicates an expected call of Has. +func (mr *MockHttpListenerOptionSetMockRecorder) Has(httpListenerOption interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Has", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).Has), httpListenerOption) +} + +// Insert mocks base method. +func (m *MockHttpListenerOptionSet) Insert(httpListenerOption ...*v1.HttpListenerOption) { + m.ctrl.T.Helper() + varargs := []interface{}{} + for _, a := range httpListenerOption { + varargs = append(varargs, a) + } + m.ctrl.Call(m, "Insert", varargs...) +} + +// Insert indicates an expected call of Insert. +func (mr *MockHttpListenerOptionSetMockRecorder) Insert(httpListenerOption ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).Insert), httpListenerOption...) +} + +// Intersection mocks base method. +func (m *MockHttpListenerOptionSet) Intersection(set v1sets.HttpListenerOptionSet) v1sets.HttpListenerOptionSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Intersection", set) + ret0, _ := ret[0].(v1sets.HttpListenerOptionSet) + return ret0 +} + +// Intersection indicates an expected call of Intersection. +func (mr *MockHttpListenerOptionSetMockRecorder) Intersection(set interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Intersection", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).Intersection), set) +} + +// Keys mocks base method. +func (m *MockHttpListenerOptionSet) Keys() sets0.String { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Keys") + ret0, _ := ret[0].(sets0.String) + return ret0 +} + +// Keys indicates an expected call of Keys. +func (mr *MockHttpListenerOptionSetMockRecorder) Keys() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Keys", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).Keys)) +} + +// Length mocks base method. +func (m *MockHttpListenerOptionSet) Length() int { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Length") + ret0, _ := ret[0].(int) + return ret0 +} + +// Length indicates an expected call of Length. +func (mr *MockHttpListenerOptionSetMockRecorder) Length() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Length", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).Length)) +} + +// List mocks base method. +func (m *MockHttpListenerOptionSet) List(filterResource ...func(*v1.HttpListenerOption) bool) []*v1.HttpListenerOption { + m.ctrl.T.Helper() + varargs := []interface{}{} + for _, a := range filterResource { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "List", varargs...) + ret0, _ := ret[0].([]*v1.HttpListenerOption) + return ret0 +} + +// List indicates an expected call of List. +func (mr *MockHttpListenerOptionSetMockRecorder) List(filterResource ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).List), filterResource...) +} + +// Map mocks base method. +func (m *MockHttpListenerOptionSet) Map() map[string]*v1.HttpListenerOption { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Map") + ret0, _ := ret[0].(map[string]*v1.HttpListenerOption) + return ret0 +} + +// Map indicates an expected call of Map. +func (mr *MockHttpListenerOptionSetMockRecorder) Map() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Map", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).Map)) +} + +// Union mocks base method. +func (m *MockHttpListenerOptionSet) Union(set v1sets.HttpListenerOptionSet) v1sets.HttpListenerOptionSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Union", set) + ret0, _ := ret[0].(v1sets.HttpListenerOptionSet) + return ret0 +} + +// Union indicates an expected call of Union. +func (mr *MockHttpListenerOptionSetMockRecorder) Union(set interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Union", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).Union), set) +} + +// UnsortedList mocks base method. +func (m *MockHttpListenerOptionSet) UnsortedList(filterResource ...func(*v1.HttpListenerOption) bool) []*v1.HttpListenerOption { + m.ctrl.T.Helper() + varargs := []interface{}{} + for _, a := range filterResource { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UnsortedList", varargs...) + ret0, _ := ret[0].([]*v1.HttpListenerOption) + return ret0 +} + +// UnsortedList indicates an expected call of UnsortedList. +func (mr *MockHttpListenerOptionSetMockRecorder) UnsortedList(filterResource ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnsortedList", reflect.TypeOf((*MockHttpListenerOptionSet)(nil).UnsortedList), filterResource...) +} + +// MockListenerOptionSet is a mock of ListenerOptionSet interface. +type MockListenerOptionSet struct { + ctrl *gomock.Controller + recorder *MockListenerOptionSetMockRecorder +} + +// MockListenerOptionSetMockRecorder is the mock recorder for MockListenerOptionSet. +type MockListenerOptionSetMockRecorder struct { + mock *MockListenerOptionSet +} + +// NewMockListenerOptionSet creates a new mock instance. +func NewMockListenerOptionSet(ctrl *gomock.Controller) *MockListenerOptionSet { + mock := &MockListenerOptionSet{ctrl: ctrl} + mock.recorder = &MockListenerOptionSetMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockListenerOptionSet) EXPECT() *MockListenerOptionSetMockRecorder { + return m.recorder +} + +// Clone mocks base method. +func (m *MockListenerOptionSet) Clone() v1sets.ListenerOptionSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Clone") + ret0, _ := ret[0].(v1sets.ListenerOptionSet) + return ret0 +} + +// Clone indicates an expected call of Clone. +func (mr *MockListenerOptionSetMockRecorder) Clone() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clone", reflect.TypeOf((*MockListenerOptionSet)(nil).Clone)) +} + +// Delete mocks base method. +func (m *MockListenerOptionSet) Delete(listenerOption ezkube.ResourceId) { + m.ctrl.T.Helper() + m.ctrl.Call(m, "Delete", listenerOption) +} + +// Delete indicates an expected call of Delete. +func (mr *MockListenerOptionSetMockRecorder) Delete(listenerOption interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockListenerOptionSet)(nil).Delete), listenerOption) +} + +// Delta mocks base method. +func (m *MockListenerOptionSet) Delta(newSet v1sets.ListenerOptionSet) sets.ResourceDelta { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Delta", newSet) + ret0, _ := ret[0].(sets.ResourceDelta) + return ret0 +} + +// Delta indicates an expected call of Delta. +func (mr *MockListenerOptionSetMockRecorder) Delta(newSet interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delta", reflect.TypeOf((*MockListenerOptionSet)(nil).Delta), newSet) +} + +// Difference mocks base method. +func (m *MockListenerOptionSet) Difference(set v1sets.ListenerOptionSet) v1sets.ListenerOptionSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Difference", set) + ret0, _ := ret[0].(v1sets.ListenerOptionSet) + return ret0 +} + +// Difference indicates an expected call of Difference. +func (mr *MockListenerOptionSetMockRecorder) Difference(set interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Difference", reflect.TypeOf((*MockListenerOptionSet)(nil).Difference), set) +} + +// Equal mocks base method. +func (m *MockListenerOptionSet) Equal(listenerOptionSet v1sets.ListenerOptionSet) bool { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Equal", listenerOptionSet) + ret0, _ := ret[0].(bool) + return ret0 +} + +// Equal indicates an expected call of Equal. +func (mr *MockListenerOptionSetMockRecorder) Equal(listenerOptionSet interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Equal", reflect.TypeOf((*MockListenerOptionSet)(nil).Equal), listenerOptionSet) +} + +// Find mocks base method. +func (m *MockListenerOptionSet) Find(id ezkube.ResourceId) (*v1.ListenerOption, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Find", id) + ret0, _ := ret[0].(*v1.ListenerOption) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Find indicates an expected call of Find. +func (mr *MockListenerOptionSetMockRecorder) Find(id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockListenerOptionSet)(nil).Find), id) +} + +// Generic mocks base method. +func (m *MockListenerOptionSet) Generic() sets.ResourceSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Generic") + ret0, _ := ret[0].(sets.ResourceSet) + return ret0 +} + +// Generic indicates an expected call of Generic. +func (mr *MockListenerOptionSetMockRecorder) Generic() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Generic", reflect.TypeOf((*MockListenerOptionSet)(nil).Generic)) +} + +// Has mocks base method. +func (m *MockListenerOptionSet) Has(listenerOption ezkube.ResourceId) bool { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Has", listenerOption) + ret0, _ := ret[0].(bool) + return ret0 +} + +// Has indicates an expected call of Has. +func (mr *MockListenerOptionSetMockRecorder) Has(listenerOption interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Has", reflect.TypeOf((*MockListenerOptionSet)(nil).Has), listenerOption) +} + +// Insert mocks base method. +func (m *MockListenerOptionSet) Insert(listenerOption ...*v1.ListenerOption) { + m.ctrl.T.Helper() + varargs := []interface{}{} + for _, a := range listenerOption { + varargs = append(varargs, a) + } + m.ctrl.Call(m, "Insert", varargs...) +} + +// Insert indicates an expected call of Insert. +func (mr *MockListenerOptionSetMockRecorder) Insert(listenerOption ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockListenerOptionSet)(nil).Insert), listenerOption...) +} + +// Intersection mocks base method. +func (m *MockListenerOptionSet) Intersection(set v1sets.ListenerOptionSet) v1sets.ListenerOptionSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Intersection", set) + ret0, _ := ret[0].(v1sets.ListenerOptionSet) + return ret0 +} + +// Intersection indicates an expected call of Intersection. +func (mr *MockListenerOptionSetMockRecorder) Intersection(set interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Intersection", reflect.TypeOf((*MockListenerOptionSet)(nil).Intersection), set) +} + +// Keys mocks base method. +func (m *MockListenerOptionSet) Keys() sets0.String { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Keys") + ret0, _ := ret[0].(sets0.String) + return ret0 +} + +// Keys indicates an expected call of Keys. +func (mr *MockListenerOptionSetMockRecorder) Keys() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Keys", reflect.TypeOf((*MockListenerOptionSet)(nil).Keys)) +} + +// Length mocks base method. +func (m *MockListenerOptionSet) Length() int { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Length") + ret0, _ := ret[0].(int) + return ret0 +} + +// Length indicates an expected call of Length. +func (mr *MockListenerOptionSetMockRecorder) Length() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Length", reflect.TypeOf((*MockListenerOptionSet)(nil).Length)) +} + +// List mocks base method. +func (m *MockListenerOptionSet) List(filterResource ...func(*v1.ListenerOption) bool) []*v1.ListenerOption { + m.ctrl.T.Helper() + varargs := []interface{}{} + for _, a := range filterResource { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "List", varargs...) + ret0, _ := ret[0].([]*v1.ListenerOption) + return ret0 +} + +// List indicates an expected call of List. +func (mr *MockListenerOptionSetMockRecorder) List(filterResource ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockListenerOptionSet)(nil).List), filterResource...) +} + +// Map mocks base method. +func (m *MockListenerOptionSet) Map() map[string]*v1.ListenerOption { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Map") + ret0, _ := ret[0].(map[string]*v1.ListenerOption) + return ret0 +} + +// Map indicates an expected call of Map. +func (mr *MockListenerOptionSetMockRecorder) Map() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Map", reflect.TypeOf((*MockListenerOptionSet)(nil).Map)) +} + +// Union mocks base method. +func (m *MockListenerOptionSet) Union(set v1sets.ListenerOptionSet) v1sets.ListenerOptionSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Union", set) + ret0, _ := ret[0].(v1sets.ListenerOptionSet) + return ret0 +} + +// Union indicates an expected call of Union. +func (mr *MockListenerOptionSetMockRecorder) Union(set interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Union", reflect.TypeOf((*MockListenerOptionSet)(nil).Union), set) +} + +// UnsortedList mocks base method. +func (m *MockListenerOptionSet) UnsortedList(filterResource ...func(*v1.ListenerOption) bool) []*v1.ListenerOption { + m.ctrl.T.Helper() + varargs := []interface{}{} + for _, a := range filterResource { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UnsortedList", varargs...) + ret0, _ := ret[0].([]*v1.ListenerOption) + return ret0 +} + +// UnsortedList indicates an expected call of UnsortedList. +func (mr *MockListenerOptionSetMockRecorder) UnsortedList(filterResource ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnsortedList", reflect.TypeOf((*MockListenerOptionSet)(nil).UnsortedList), filterResource...) +} + // MockMatchableHttpGatewaySet is a mock of MatchableHttpGatewaySet interface. type MockMatchableHttpGatewaySet struct { ctrl *gomock.Controller @@ -783,6 +1295,262 @@ func (mr *MockMatchableTcpGatewaySetMockRecorder) UnsortedList(filterResource .. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnsortedList", reflect.TypeOf((*MockMatchableTcpGatewaySet)(nil).UnsortedList), filterResource...) } +// MockRouteOptionSet is a mock of RouteOptionSet interface. +type MockRouteOptionSet struct { + ctrl *gomock.Controller + recorder *MockRouteOptionSetMockRecorder +} + +// MockRouteOptionSetMockRecorder is the mock recorder for MockRouteOptionSet. +type MockRouteOptionSetMockRecorder struct { + mock *MockRouteOptionSet +} + +// NewMockRouteOptionSet creates a new mock instance. +func NewMockRouteOptionSet(ctrl *gomock.Controller) *MockRouteOptionSet { + mock := &MockRouteOptionSet{ctrl: ctrl} + mock.recorder = &MockRouteOptionSetMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockRouteOptionSet) EXPECT() *MockRouteOptionSetMockRecorder { + return m.recorder +} + +// Clone mocks base method. +func (m *MockRouteOptionSet) Clone() v1sets.RouteOptionSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Clone") + ret0, _ := ret[0].(v1sets.RouteOptionSet) + return ret0 +} + +// Clone indicates an expected call of Clone. +func (mr *MockRouteOptionSetMockRecorder) Clone() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clone", reflect.TypeOf((*MockRouteOptionSet)(nil).Clone)) +} + +// Delete mocks base method. +func (m *MockRouteOptionSet) Delete(routeOption ezkube.ResourceId) { + m.ctrl.T.Helper() + m.ctrl.Call(m, "Delete", routeOption) +} + +// Delete indicates an expected call of Delete. +func (mr *MockRouteOptionSetMockRecorder) Delete(routeOption interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRouteOptionSet)(nil).Delete), routeOption) +} + +// Delta mocks base method. +func (m *MockRouteOptionSet) Delta(newSet v1sets.RouteOptionSet) sets.ResourceDelta { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Delta", newSet) + ret0, _ := ret[0].(sets.ResourceDelta) + return ret0 +} + +// Delta indicates an expected call of Delta. +func (mr *MockRouteOptionSetMockRecorder) Delta(newSet interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delta", reflect.TypeOf((*MockRouteOptionSet)(nil).Delta), newSet) +} + +// Difference mocks base method. +func (m *MockRouteOptionSet) Difference(set v1sets.RouteOptionSet) v1sets.RouteOptionSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Difference", set) + ret0, _ := ret[0].(v1sets.RouteOptionSet) + return ret0 +} + +// Difference indicates an expected call of Difference. +func (mr *MockRouteOptionSetMockRecorder) Difference(set interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Difference", reflect.TypeOf((*MockRouteOptionSet)(nil).Difference), set) +} + +// Equal mocks base method. +func (m *MockRouteOptionSet) Equal(routeOptionSet v1sets.RouteOptionSet) bool { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Equal", routeOptionSet) + ret0, _ := ret[0].(bool) + return ret0 +} + +// Equal indicates an expected call of Equal. +func (mr *MockRouteOptionSetMockRecorder) Equal(routeOptionSet interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Equal", reflect.TypeOf((*MockRouteOptionSet)(nil).Equal), routeOptionSet) +} + +// Find mocks base method. +func (m *MockRouteOptionSet) Find(id ezkube.ResourceId) (*v1.RouteOption, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Find", id) + ret0, _ := ret[0].(*v1.RouteOption) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Find indicates an expected call of Find. +func (mr *MockRouteOptionSetMockRecorder) Find(id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockRouteOptionSet)(nil).Find), id) +} + +// Generic mocks base method. +func (m *MockRouteOptionSet) Generic() sets.ResourceSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Generic") + ret0, _ := ret[0].(sets.ResourceSet) + return ret0 +} + +// Generic indicates an expected call of Generic. +func (mr *MockRouteOptionSetMockRecorder) Generic() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Generic", reflect.TypeOf((*MockRouteOptionSet)(nil).Generic)) +} + +// Has mocks base method. +func (m *MockRouteOptionSet) Has(routeOption ezkube.ResourceId) bool { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Has", routeOption) + ret0, _ := ret[0].(bool) + return ret0 +} + +// Has indicates an expected call of Has. +func (mr *MockRouteOptionSetMockRecorder) Has(routeOption interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Has", reflect.TypeOf((*MockRouteOptionSet)(nil).Has), routeOption) +} + +// Insert mocks base method. +func (m *MockRouteOptionSet) Insert(routeOption ...*v1.RouteOption) { + m.ctrl.T.Helper() + varargs := []interface{}{} + for _, a := range routeOption { + varargs = append(varargs, a) + } + m.ctrl.Call(m, "Insert", varargs...) +} + +// Insert indicates an expected call of Insert. +func (mr *MockRouteOptionSetMockRecorder) Insert(routeOption ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockRouteOptionSet)(nil).Insert), routeOption...) +} + +// Intersection mocks base method. +func (m *MockRouteOptionSet) Intersection(set v1sets.RouteOptionSet) v1sets.RouteOptionSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Intersection", set) + ret0, _ := ret[0].(v1sets.RouteOptionSet) + return ret0 +} + +// Intersection indicates an expected call of Intersection. +func (mr *MockRouteOptionSetMockRecorder) Intersection(set interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Intersection", reflect.TypeOf((*MockRouteOptionSet)(nil).Intersection), set) +} + +// Keys mocks base method. +func (m *MockRouteOptionSet) Keys() sets0.String { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Keys") + ret0, _ := ret[0].(sets0.String) + return ret0 +} + +// Keys indicates an expected call of Keys. +func (mr *MockRouteOptionSetMockRecorder) Keys() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Keys", reflect.TypeOf((*MockRouteOptionSet)(nil).Keys)) +} + +// Length mocks base method. +func (m *MockRouteOptionSet) Length() int { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Length") + ret0, _ := ret[0].(int) + return ret0 +} + +// Length indicates an expected call of Length. +func (mr *MockRouteOptionSetMockRecorder) Length() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Length", reflect.TypeOf((*MockRouteOptionSet)(nil).Length)) +} + +// List mocks base method. +func (m *MockRouteOptionSet) List(filterResource ...func(*v1.RouteOption) bool) []*v1.RouteOption { + m.ctrl.T.Helper() + varargs := []interface{}{} + for _, a := range filterResource { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "List", varargs...) + ret0, _ := ret[0].([]*v1.RouteOption) + return ret0 +} + +// List indicates an expected call of List. +func (mr *MockRouteOptionSetMockRecorder) List(filterResource ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockRouteOptionSet)(nil).List), filterResource...) +} + +// Map mocks base method. +func (m *MockRouteOptionSet) Map() map[string]*v1.RouteOption { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Map") + ret0, _ := ret[0].(map[string]*v1.RouteOption) + return ret0 +} + +// Map indicates an expected call of Map. +func (mr *MockRouteOptionSetMockRecorder) Map() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Map", reflect.TypeOf((*MockRouteOptionSet)(nil).Map)) +} + +// Union mocks base method. +func (m *MockRouteOptionSet) Union(set v1sets.RouteOptionSet) v1sets.RouteOptionSet { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Union", set) + ret0, _ := ret[0].(v1sets.RouteOptionSet) + return ret0 +} + +// Union indicates an expected call of Union. +func (mr *MockRouteOptionSetMockRecorder) Union(set interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Union", reflect.TypeOf((*MockRouteOptionSet)(nil).Union), set) +} + +// UnsortedList mocks base method. +func (m *MockRouteOptionSet) UnsortedList(filterResource ...func(*v1.RouteOption) bool) []*v1.RouteOption { + m.ctrl.T.Helper() + varargs := []interface{}{} + for _, a := range filterResource { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UnsortedList", varargs...) + ret0, _ := ret[0].([]*v1.RouteOption) + return ret0 +} + +// UnsortedList indicates an expected call of UnsortedList. +func (mr *MockRouteOptionSetMockRecorder) UnsortedList(filterResource ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnsortedList", reflect.TypeOf((*MockRouteOptionSet)(nil).UnsortedList), filterResource...) +} + // MockRouteTableSet is a mock of RouteTableSet interface. type MockRouteTableSet struct { ctrl *gomock.Controller @@ -1550,259 +2318,3 @@ func (mr *MockVirtualHostOptionSetMockRecorder) UnsortedList(filterResource ...i mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnsortedList", reflect.TypeOf((*MockVirtualHostOptionSet)(nil).UnsortedList), filterResource...) } - -// MockRouteOptionSet is a mock of RouteOptionSet interface. -type MockRouteOptionSet struct { - ctrl *gomock.Controller - recorder *MockRouteOptionSetMockRecorder -} - -// MockRouteOptionSetMockRecorder is the mock recorder for MockRouteOptionSet. -type MockRouteOptionSetMockRecorder struct { - mock *MockRouteOptionSet -} - -// NewMockRouteOptionSet creates a new mock instance. -func NewMockRouteOptionSet(ctrl *gomock.Controller) *MockRouteOptionSet { - mock := &MockRouteOptionSet{ctrl: ctrl} - mock.recorder = &MockRouteOptionSetMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRouteOptionSet) EXPECT() *MockRouteOptionSetMockRecorder { - return m.recorder -} - -// Clone mocks base method. -func (m *MockRouteOptionSet) Clone() v1sets.RouteOptionSet { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Clone") - ret0, _ := ret[0].(v1sets.RouteOptionSet) - return ret0 -} - -// Clone indicates an expected call of Clone. -func (mr *MockRouteOptionSetMockRecorder) Clone() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clone", reflect.TypeOf((*MockRouteOptionSet)(nil).Clone)) -} - -// Delete mocks base method. -func (m *MockRouteOptionSet) Delete(routeOption ezkube.ResourceId) { - m.ctrl.T.Helper() - m.ctrl.Call(m, "Delete", routeOption) -} - -// Delete indicates an expected call of Delete. -func (mr *MockRouteOptionSetMockRecorder) Delete(routeOption interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRouteOptionSet)(nil).Delete), routeOption) -} - -// Delta mocks base method. -func (m *MockRouteOptionSet) Delta(newSet v1sets.RouteOptionSet) sets.ResourceDelta { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delta", newSet) - ret0, _ := ret[0].(sets.ResourceDelta) - return ret0 -} - -// Delta indicates an expected call of Delta. -func (mr *MockRouteOptionSetMockRecorder) Delta(newSet interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delta", reflect.TypeOf((*MockRouteOptionSet)(nil).Delta), newSet) -} - -// Difference mocks base method. -func (m *MockRouteOptionSet) Difference(set v1sets.RouteOptionSet) v1sets.RouteOptionSet { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Difference", set) - ret0, _ := ret[0].(v1sets.RouteOptionSet) - return ret0 -} - -// Difference indicates an expected call of Difference. -func (mr *MockRouteOptionSetMockRecorder) Difference(set interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Difference", reflect.TypeOf((*MockRouteOptionSet)(nil).Difference), set) -} - -// Equal mocks base method. -func (m *MockRouteOptionSet) Equal(routeOptionSet v1sets.RouteOptionSet) bool { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Equal", routeOptionSet) - ret0, _ := ret[0].(bool) - return ret0 -} - -// Equal indicates an expected call of Equal. -func (mr *MockRouteOptionSetMockRecorder) Equal(routeOptionSet interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Equal", reflect.TypeOf((*MockRouteOptionSet)(nil).Equal), routeOptionSet) -} - -// Find mocks base method. -func (m *MockRouteOptionSet) Find(id ezkube.ResourceId) (*v1.RouteOption, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Find", id) - ret0, _ := ret[0].(*v1.RouteOption) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Find indicates an expected call of Find. -func (mr *MockRouteOptionSetMockRecorder) Find(id interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockRouteOptionSet)(nil).Find), id) -} - -// Generic mocks base method. -func (m *MockRouteOptionSet) Generic() sets.ResourceSet { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Generic") - ret0, _ := ret[0].(sets.ResourceSet) - return ret0 -} - -// Generic indicates an expected call of Generic. -func (mr *MockRouteOptionSetMockRecorder) Generic() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Generic", reflect.TypeOf((*MockRouteOptionSet)(nil).Generic)) -} - -// Has mocks base method. -func (m *MockRouteOptionSet) Has(routeOption ezkube.ResourceId) bool { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Has", routeOption) - ret0, _ := ret[0].(bool) - return ret0 -} - -// Has indicates an expected call of Has. -func (mr *MockRouteOptionSetMockRecorder) Has(routeOption interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Has", reflect.TypeOf((*MockRouteOptionSet)(nil).Has), routeOption) -} - -// Insert mocks base method. -func (m *MockRouteOptionSet) Insert(routeOption ...*v1.RouteOption) { - m.ctrl.T.Helper() - varargs := []interface{}{} - for _, a := range routeOption { - varargs = append(varargs, a) - } - m.ctrl.Call(m, "Insert", varargs...) -} - -// Insert indicates an expected call of Insert. -func (mr *MockRouteOptionSetMockRecorder) Insert(routeOption ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockRouteOptionSet)(nil).Insert), routeOption...) -} - -// Intersection mocks base method. -func (m *MockRouteOptionSet) Intersection(set v1sets.RouteOptionSet) v1sets.RouteOptionSet { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Intersection", set) - ret0, _ := ret[0].(v1sets.RouteOptionSet) - return ret0 -} - -// Intersection indicates an expected call of Intersection. -func (mr *MockRouteOptionSetMockRecorder) Intersection(set interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Intersection", reflect.TypeOf((*MockRouteOptionSet)(nil).Intersection), set) -} - -// Keys mocks base method. -func (m *MockRouteOptionSet) Keys() sets0.String { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Keys") - ret0, _ := ret[0].(sets0.String) - return ret0 -} - -// Keys indicates an expected call of Keys. -func (mr *MockRouteOptionSetMockRecorder) Keys() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Keys", reflect.TypeOf((*MockRouteOptionSet)(nil).Keys)) -} - -// Length mocks base method. -func (m *MockRouteOptionSet) Length() int { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Length") - ret0, _ := ret[0].(int) - return ret0 -} - -// Length indicates an expected call of Length. -func (mr *MockRouteOptionSetMockRecorder) Length() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Length", reflect.TypeOf((*MockRouteOptionSet)(nil).Length)) -} - -// List mocks base method. -func (m *MockRouteOptionSet) List(filterResource ...func(*v1.RouteOption) bool) []*v1.RouteOption { - m.ctrl.T.Helper() - varargs := []interface{}{} - for _, a := range filterResource { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "List", varargs...) - ret0, _ := ret[0].([]*v1.RouteOption) - return ret0 -} - -// List indicates an expected call of List. -func (mr *MockRouteOptionSetMockRecorder) List(filterResource ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockRouteOptionSet)(nil).List), filterResource...) -} - -// Map mocks base method. -func (m *MockRouteOptionSet) Map() map[string]*v1.RouteOption { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Map") - ret0, _ := ret[0].(map[string]*v1.RouteOption) - return ret0 -} - -// Map indicates an expected call of Map. -func (mr *MockRouteOptionSetMockRecorder) Map() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Map", reflect.TypeOf((*MockRouteOptionSet)(nil).Map)) -} - -// Union mocks base method. -func (m *MockRouteOptionSet) Union(set v1sets.RouteOptionSet) v1sets.RouteOptionSet { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Union", set) - ret0, _ := ret[0].(v1sets.RouteOptionSet) - return ret0 -} - -// Union indicates an expected call of Union. -func (mr *MockRouteOptionSetMockRecorder) Union(set interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Union", reflect.TypeOf((*MockRouteOptionSet)(nil).Union), set) -} - -// UnsortedList mocks base method. -func (m *MockRouteOptionSet) UnsortedList(filterResource ...func(*v1.RouteOption) bool) []*v1.RouteOption { - m.ctrl.T.Helper() - varargs := []interface{}{} - for _, a := range filterResource { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "UnsortedList", varargs...) - ret0, _ := ret[0].([]*v1.RouteOption) - return ret0 -} - -// UnsortedList indicates an expected call of UnsortedList. -func (mr *MockRouteOptionSetMockRecorder) UnsortedList(filterResource ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnsortedList", reflect.TypeOf((*MockRouteOptionSet)(nil).UnsortedList), filterResource...) -} diff --git a/pkg/api/gateway.solo.io/v1/sets/sets.go b/pkg/api/gateway.solo.io/v1/sets/sets.go index 6d8b86ac5..6980646a0 100644 --- a/pkg/api/gateway.solo.io/v1/sets/sets.go +++ b/pkg/api/gateway.solo.io/v1/sets/sets.go @@ -236,6 +236,452 @@ func (s *gatewaySet) Clone() GatewaySet { return &gatewaySet{set: sksets.NewResourceSet(s.Generic().Clone().List()...)} } +type HttpListenerOptionSet interface { + // Get the set stored keys + Keys() sets.String + // List of resources stored in the set. Pass an optional filter function to filter on the list. + // The filter function should return false to keep the resource, true to drop it. + List(filterResource ...func(*gateway_solo_io_v1.HttpListenerOption) bool) []*gateway_solo_io_v1.HttpListenerOption + // Unsorted list of resources stored in the set. Pass an optional filter function to filter on the list. + // The filter function should return false to keep the resource, true to drop it. + UnsortedList(filterResource ...func(*gateway_solo_io_v1.HttpListenerOption) bool) []*gateway_solo_io_v1.HttpListenerOption + // Return the Set as a map of key to resource. + Map() map[string]*gateway_solo_io_v1.HttpListenerOption + // Insert a resource into the set. + Insert(httpListenerOption ...*gateway_solo_io_v1.HttpListenerOption) + // Compare the equality of the keys in two sets (not the resources themselves) + Equal(httpListenerOptionSet HttpListenerOptionSet) bool + // Check if the set contains a key matching the resource (not the resource itself) + Has(httpListenerOption ezkube.ResourceId) bool + // Delete the key matching the resource + Delete(httpListenerOption ezkube.ResourceId) + // Return the union with the provided set + Union(set HttpListenerOptionSet) HttpListenerOptionSet + // Return the difference with the provided set + Difference(set HttpListenerOptionSet) HttpListenerOptionSet + // Return the intersection with the provided set + Intersection(set HttpListenerOptionSet) HttpListenerOptionSet + // Find the resource with the given ID + Find(id ezkube.ResourceId) (*gateway_solo_io_v1.HttpListenerOption, error) + // Get the length of the set + Length() int + // returns the generic implementation of the set + Generic() sksets.ResourceSet + // returns the delta between this and and another HttpListenerOptionSet + Delta(newSet HttpListenerOptionSet) sksets.ResourceDelta + // Create a deep copy of the current HttpListenerOptionSet + Clone() HttpListenerOptionSet +} + +func makeGenericHttpListenerOptionSet(httpListenerOptionList []*gateway_solo_io_v1.HttpListenerOption) sksets.ResourceSet { + var genericResources []ezkube.ResourceId + for _, obj := range httpListenerOptionList { + genericResources = append(genericResources, obj) + } + return sksets.NewResourceSet(genericResources...) +} + +type httpListenerOptionSet struct { + set sksets.ResourceSet +} + +func NewHttpListenerOptionSet(httpListenerOptionList ...*gateway_solo_io_v1.HttpListenerOption) HttpListenerOptionSet { + return &httpListenerOptionSet{set: makeGenericHttpListenerOptionSet(httpListenerOptionList)} +} + +func NewHttpListenerOptionSetFromList(httpListenerOptionList *gateway_solo_io_v1.HttpListenerOptionList) HttpListenerOptionSet { + list := make([]*gateway_solo_io_v1.HttpListenerOption, 0, len(httpListenerOptionList.Items)) + for idx := range httpListenerOptionList.Items { + list = append(list, &httpListenerOptionList.Items[idx]) + } + return &httpListenerOptionSet{set: makeGenericHttpListenerOptionSet(list)} +} + +func (s *httpListenerOptionSet) Keys() sets.String { + if s == nil { + return sets.String{} + } + return s.Generic().Keys() +} + +func (s *httpListenerOptionSet) List(filterResource ...func(*gateway_solo_io_v1.HttpListenerOption) bool) []*gateway_solo_io_v1.HttpListenerOption { + if s == nil { + return nil + } + var genericFilters []func(ezkube.ResourceId) bool + for _, filter := range filterResource { + filter := filter + genericFilters = append(genericFilters, func(obj ezkube.ResourceId) bool { + return filter(obj.(*gateway_solo_io_v1.HttpListenerOption)) + }) + } + + objs := s.Generic().List(genericFilters...) + httpListenerOptionList := make([]*gateway_solo_io_v1.HttpListenerOption, 0, len(objs)) + for _, obj := range objs { + httpListenerOptionList = append(httpListenerOptionList, obj.(*gateway_solo_io_v1.HttpListenerOption)) + } + return httpListenerOptionList +} + +func (s *httpListenerOptionSet) UnsortedList(filterResource ...func(*gateway_solo_io_v1.HttpListenerOption) bool) []*gateway_solo_io_v1.HttpListenerOption { + if s == nil { + return nil + } + var genericFilters []func(ezkube.ResourceId) bool + for _, filter := range filterResource { + filter := filter + genericFilters = append(genericFilters, func(obj ezkube.ResourceId) bool { + return filter(obj.(*gateway_solo_io_v1.HttpListenerOption)) + }) + } + + var httpListenerOptionList []*gateway_solo_io_v1.HttpListenerOption + for _, obj := range s.Generic().UnsortedList(genericFilters...) { + httpListenerOptionList = append(httpListenerOptionList, obj.(*gateway_solo_io_v1.HttpListenerOption)) + } + return httpListenerOptionList +} + +func (s *httpListenerOptionSet) Map() map[string]*gateway_solo_io_v1.HttpListenerOption { + if s == nil { + return nil + } + + newMap := map[string]*gateway_solo_io_v1.HttpListenerOption{} + for k, v := range s.Generic().Map() { + newMap[k] = v.(*gateway_solo_io_v1.HttpListenerOption) + } + return newMap +} + +func (s *httpListenerOptionSet) Insert( + httpListenerOptionList ...*gateway_solo_io_v1.HttpListenerOption, +) { + if s == nil { + panic("cannot insert into nil set") + } + + for _, obj := range httpListenerOptionList { + s.Generic().Insert(obj) + } +} + +func (s *httpListenerOptionSet) Has(httpListenerOption ezkube.ResourceId) bool { + if s == nil { + return false + } + return s.Generic().Has(httpListenerOption) +} + +func (s *httpListenerOptionSet) Equal( + httpListenerOptionSet HttpListenerOptionSet, +) bool { + if s == nil { + return httpListenerOptionSet == nil + } + return s.Generic().Equal(httpListenerOptionSet.Generic()) +} + +func (s *httpListenerOptionSet) Delete(HttpListenerOption ezkube.ResourceId) { + if s == nil { + return + } + s.Generic().Delete(HttpListenerOption) +} + +func (s *httpListenerOptionSet) Union(set HttpListenerOptionSet) HttpListenerOptionSet { + if s == nil { + return set + } + return NewHttpListenerOptionSet(append(s.List(), set.List()...)...) +} + +func (s *httpListenerOptionSet) Difference(set HttpListenerOptionSet) HttpListenerOptionSet { + if s == nil { + return set + } + newSet := s.Generic().Difference(set.Generic()) + return &httpListenerOptionSet{set: newSet} +} + +func (s *httpListenerOptionSet) Intersection(set HttpListenerOptionSet) HttpListenerOptionSet { + if s == nil { + return nil + } + newSet := s.Generic().Intersection(set.Generic()) + var httpListenerOptionList []*gateway_solo_io_v1.HttpListenerOption + for _, obj := range newSet.List() { + httpListenerOptionList = append(httpListenerOptionList, obj.(*gateway_solo_io_v1.HttpListenerOption)) + } + return NewHttpListenerOptionSet(httpListenerOptionList...) +} + +func (s *httpListenerOptionSet) Find(id ezkube.ResourceId) (*gateway_solo_io_v1.HttpListenerOption, error) { + if s == nil { + return nil, eris.Errorf("empty set, cannot find HttpListenerOption %v", sksets.Key(id)) + } + obj, err := s.Generic().Find(&gateway_solo_io_v1.HttpListenerOption{}, id) + if err != nil { + return nil, err + } + + return obj.(*gateway_solo_io_v1.HttpListenerOption), nil +} + +func (s *httpListenerOptionSet) Length() int { + if s == nil { + return 0 + } + return s.Generic().Length() +} + +func (s *httpListenerOptionSet) Generic() sksets.ResourceSet { + if s == nil { + return nil + } + return s.set +} + +func (s *httpListenerOptionSet) Delta(newSet HttpListenerOptionSet) sksets.ResourceDelta { + if s == nil { + return sksets.ResourceDelta{ + Inserted: newSet.Generic(), + } + } + return s.Generic().Delta(newSet.Generic()) +} + +func (s *httpListenerOptionSet) Clone() HttpListenerOptionSet { + if s == nil { + return nil + } + return &httpListenerOptionSet{set: sksets.NewResourceSet(s.Generic().Clone().List()...)} +} + +type ListenerOptionSet interface { + // Get the set stored keys + Keys() sets.String + // List of resources stored in the set. Pass an optional filter function to filter on the list. + // The filter function should return false to keep the resource, true to drop it. + List(filterResource ...func(*gateway_solo_io_v1.ListenerOption) bool) []*gateway_solo_io_v1.ListenerOption + // Unsorted list of resources stored in the set. Pass an optional filter function to filter on the list. + // The filter function should return false to keep the resource, true to drop it. + UnsortedList(filterResource ...func(*gateway_solo_io_v1.ListenerOption) bool) []*gateway_solo_io_v1.ListenerOption + // Return the Set as a map of key to resource. + Map() map[string]*gateway_solo_io_v1.ListenerOption + // Insert a resource into the set. + Insert(listenerOption ...*gateway_solo_io_v1.ListenerOption) + // Compare the equality of the keys in two sets (not the resources themselves) + Equal(listenerOptionSet ListenerOptionSet) bool + // Check if the set contains a key matching the resource (not the resource itself) + Has(listenerOption ezkube.ResourceId) bool + // Delete the key matching the resource + Delete(listenerOption ezkube.ResourceId) + // Return the union with the provided set + Union(set ListenerOptionSet) ListenerOptionSet + // Return the difference with the provided set + Difference(set ListenerOptionSet) ListenerOptionSet + // Return the intersection with the provided set + Intersection(set ListenerOptionSet) ListenerOptionSet + // Find the resource with the given ID + Find(id ezkube.ResourceId) (*gateway_solo_io_v1.ListenerOption, error) + // Get the length of the set + Length() int + // returns the generic implementation of the set + Generic() sksets.ResourceSet + // returns the delta between this and and another ListenerOptionSet + Delta(newSet ListenerOptionSet) sksets.ResourceDelta + // Create a deep copy of the current ListenerOptionSet + Clone() ListenerOptionSet +} + +func makeGenericListenerOptionSet(listenerOptionList []*gateway_solo_io_v1.ListenerOption) sksets.ResourceSet { + var genericResources []ezkube.ResourceId + for _, obj := range listenerOptionList { + genericResources = append(genericResources, obj) + } + return sksets.NewResourceSet(genericResources...) +} + +type listenerOptionSet struct { + set sksets.ResourceSet +} + +func NewListenerOptionSet(listenerOptionList ...*gateway_solo_io_v1.ListenerOption) ListenerOptionSet { + return &listenerOptionSet{set: makeGenericListenerOptionSet(listenerOptionList)} +} + +func NewListenerOptionSetFromList(listenerOptionList *gateway_solo_io_v1.ListenerOptionList) ListenerOptionSet { + list := make([]*gateway_solo_io_v1.ListenerOption, 0, len(listenerOptionList.Items)) + for idx := range listenerOptionList.Items { + list = append(list, &listenerOptionList.Items[idx]) + } + return &listenerOptionSet{set: makeGenericListenerOptionSet(list)} +} + +func (s *listenerOptionSet) Keys() sets.String { + if s == nil { + return sets.String{} + } + return s.Generic().Keys() +} + +func (s *listenerOptionSet) List(filterResource ...func(*gateway_solo_io_v1.ListenerOption) bool) []*gateway_solo_io_v1.ListenerOption { + if s == nil { + return nil + } + var genericFilters []func(ezkube.ResourceId) bool + for _, filter := range filterResource { + filter := filter + genericFilters = append(genericFilters, func(obj ezkube.ResourceId) bool { + return filter(obj.(*gateway_solo_io_v1.ListenerOption)) + }) + } + + objs := s.Generic().List(genericFilters...) + listenerOptionList := make([]*gateway_solo_io_v1.ListenerOption, 0, len(objs)) + for _, obj := range objs { + listenerOptionList = append(listenerOptionList, obj.(*gateway_solo_io_v1.ListenerOption)) + } + return listenerOptionList +} + +func (s *listenerOptionSet) UnsortedList(filterResource ...func(*gateway_solo_io_v1.ListenerOption) bool) []*gateway_solo_io_v1.ListenerOption { + if s == nil { + return nil + } + var genericFilters []func(ezkube.ResourceId) bool + for _, filter := range filterResource { + filter := filter + genericFilters = append(genericFilters, func(obj ezkube.ResourceId) bool { + return filter(obj.(*gateway_solo_io_v1.ListenerOption)) + }) + } + + var listenerOptionList []*gateway_solo_io_v1.ListenerOption + for _, obj := range s.Generic().UnsortedList(genericFilters...) { + listenerOptionList = append(listenerOptionList, obj.(*gateway_solo_io_v1.ListenerOption)) + } + return listenerOptionList +} + +func (s *listenerOptionSet) Map() map[string]*gateway_solo_io_v1.ListenerOption { + if s == nil { + return nil + } + + newMap := map[string]*gateway_solo_io_v1.ListenerOption{} + for k, v := range s.Generic().Map() { + newMap[k] = v.(*gateway_solo_io_v1.ListenerOption) + } + return newMap +} + +func (s *listenerOptionSet) Insert( + listenerOptionList ...*gateway_solo_io_v1.ListenerOption, +) { + if s == nil { + panic("cannot insert into nil set") + } + + for _, obj := range listenerOptionList { + s.Generic().Insert(obj) + } +} + +func (s *listenerOptionSet) Has(listenerOption ezkube.ResourceId) bool { + if s == nil { + return false + } + return s.Generic().Has(listenerOption) +} + +func (s *listenerOptionSet) Equal( + listenerOptionSet ListenerOptionSet, +) bool { + if s == nil { + return listenerOptionSet == nil + } + return s.Generic().Equal(listenerOptionSet.Generic()) +} + +func (s *listenerOptionSet) Delete(ListenerOption ezkube.ResourceId) { + if s == nil { + return + } + s.Generic().Delete(ListenerOption) +} + +func (s *listenerOptionSet) Union(set ListenerOptionSet) ListenerOptionSet { + if s == nil { + return set + } + return NewListenerOptionSet(append(s.List(), set.List()...)...) +} + +func (s *listenerOptionSet) Difference(set ListenerOptionSet) ListenerOptionSet { + if s == nil { + return set + } + newSet := s.Generic().Difference(set.Generic()) + return &listenerOptionSet{set: newSet} +} + +func (s *listenerOptionSet) Intersection(set ListenerOptionSet) ListenerOptionSet { + if s == nil { + return nil + } + newSet := s.Generic().Intersection(set.Generic()) + var listenerOptionList []*gateway_solo_io_v1.ListenerOption + for _, obj := range newSet.List() { + listenerOptionList = append(listenerOptionList, obj.(*gateway_solo_io_v1.ListenerOption)) + } + return NewListenerOptionSet(listenerOptionList...) +} + +func (s *listenerOptionSet) Find(id ezkube.ResourceId) (*gateway_solo_io_v1.ListenerOption, error) { + if s == nil { + return nil, eris.Errorf("empty set, cannot find ListenerOption %v", sksets.Key(id)) + } + obj, err := s.Generic().Find(&gateway_solo_io_v1.ListenerOption{}, id) + if err != nil { + return nil, err + } + + return obj.(*gateway_solo_io_v1.ListenerOption), nil +} + +func (s *listenerOptionSet) Length() int { + if s == nil { + return 0 + } + return s.Generic().Length() +} + +func (s *listenerOptionSet) Generic() sksets.ResourceSet { + if s == nil { + return nil + } + return s.set +} + +func (s *listenerOptionSet) Delta(newSet ListenerOptionSet) sksets.ResourceDelta { + if s == nil { + return sksets.ResourceDelta{ + Inserted: newSet.Generic(), + } + } + return s.Generic().Delta(newSet.Generic()) +} + +func (s *listenerOptionSet) Clone() ListenerOptionSet { + if s == nil { + return nil + } + return &listenerOptionSet{set: sksets.NewResourceSet(s.Generic().Clone().List()...)} +} + type MatchableHttpGatewaySet interface { // Get the set stored keys Keys() sets.String @@ -617,56 +1063,279 @@ func (s *matchableTcpGatewaySet) Union(set MatchableTcpGatewaySet) MatchableTcpG if s == nil { return set } - return NewMatchableTcpGatewaySet(append(s.List(), set.List()...)...) + return NewMatchableTcpGatewaySet(append(s.List(), set.List()...)...) +} + +func (s *matchableTcpGatewaySet) Difference(set MatchableTcpGatewaySet) MatchableTcpGatewaySet { + if s == nil { + return set + } + newSet := s.Generic().Difference(set.Generic()) + return &matchableTcpGatewaySet{set: newSet} +} + +func (s *matchableTcpGatewaySet) Intersection(set MatchableTcpGatewaySet) MatchableTcpGatewaySet { + if s == nil { + return nil + } + newSet := s.Generic().Intersection(set.Generic()) + var matchableTcpGatewayList []*gateway_solo_io_v1.MatchableTcpGateway + for _, obj := range newSet.List() { + matchableTcpGatewayList = append(matchableTcpGatewayList, obj.(*gateway_solo_io_v1.MatchableTcpGateway)) + } + return NewMatchableTcpGatewaySet(matchableTcpGatewayList...) +} + +func (s *matchableTcpGatewaySet) Find(id ezkube.ResourceId) (*gateway_solo_io_v1.MatchableTcpGateway, error) { + if s == nil { + return nil, eris.Errorf("empty set, cannot find MatchableTcpGateway %v", sksets.Key(id)) + } + obj, err := s.Generic().Find(&gateway_solo_io_v1.MatchableTcpGateway{}, id) + if err != nil { + return nil, err + } + + return obj.(*gateway_solo_io_v1.MatchableTcpGateway), nil +} + +func (s *matchableTcpGatewaySet) Length() int { + if s == nil { + return 0 + } + return s.Generic().Length() +} + +func (s *matchableTcpGatewaySet) Generic() sksets.ResourceSet { + if s == nil { + return nil + } + return s.set +} + +func (s *matchableTcpGatewaySet) Delta(newSet MatchableTcpGatewaySet) sksets.ResourceDelta { + if s == nil { + return sksets.ResourceDelta{ + Inserted: newSet.Generic(), + } + } + return s.Generic().Delta(newSet.Generic()) +} + +func (s *matchableTcpGatewaySet) Clone() MatchableTcpGatewaySet { + if s == nil { + return nil + } + return &matchableTcpGatewaySet{set: sksets.NewResourceSet(s.Generic().Clone().List()...)} +} + +type RouteOptionSet interface { + // Get the set stored keys + Keys() sets.String + // List of resources stored in the set. Pass an optional filter function to filter on the list. + // The filter function should return false to keep the resource, true to drop it. + List(filterResource ...func(*gateway_solo_io_v1.RouteOption) bool) []*gateway_solo_io_v1.RouteOption + // Unsorted list of resources stored in the set. Pass an optional filter function to filter on the list. + // The filter function should return false to keep the resource, true to drop it. + UnsortedList(filterResource ...func(*gateway_solo_io_v1.RouteOption) bool) []*gateway_solo_io_v1.RouteOption + // Return the Set as a map of key to resource. + Map() map[string]*gateway_solo_io_v1.RouteOption + // Insert a resource into the set. + Insert(routeOption ...*gateway_solo_io_v1.RouteOption) + // Compare the equality of the keys in two sets (not the resources themselves) + Equal(routeOptionSet RouteOptionSet) bool + // Check if the set contains a key matching the resource (not the resource itself) + Has(routeOption ezkube.ResourceId) bool + // Delete the key matching the resource + Delete(routeOption ezkube.ResourceId) + // Return the union with the provided set + Union(set RouteOptionSet) RouteOptionSet + // Return the difference with the provided set + Difference(set RouteOptionSet) RouteOptionSet + // Return the intersection with the provided set + Intersection(set RouteOptionSet) RouteOptionSet + // Find the resource with the given ID + Find(id ezkube.ResourceId) (*gateway_solo_io_v1.RouteOption, error) + // Get the length of the set + Length() int + // returns the generic implementation of the set + Generic() sksets.ResourceSet + // returns the delta between this and and another RouteOptionSet + Delta(newSet RouteOptionSet) sksets.ResourceDelta + // Create a deep copy of the current RouteOptionSet + Clone() RouteOptionSet +} + +func makeGenericRouteOptionSet(routeOptionList []*gateway_solo_io_v1.RouteOption) sksets.ResourceSet { + var genericResources []ezkube.ResourceId + for _, obj := range routeOptionList { + genericResources = append(genericResources, obj) + } + return sksets.NewResourceSet(genericResources...) +} + +type routeOptionSet struct { + set sksets.ResourceSet +} + +func NewRouteOptionSet(routeOptionList ...*gateway_solo_io_v1.RouteOption) RouteOptionSet { + return &routeOptionSet{set: makeGenericRouteOptionSet(routeOptionList)} +} + +func NewRouteOptionSetFromList(routeOptionList *gateway_solo_io_v1.RouteOptionList) RouteOptionSet { + list := make([]*gateway_solo_io_v1.RouteOption, 0, len(routeOptionList.Items)) + for idx := range routeOptionList.Items { + list = append(list, &routeOptionList.Items[idx]) + } + return &routeOptionSet{set: makeGenericRouteOptionSet(list)} +} + +func (s *routeOptionSet) Keys() sets.String { + if s == nil { + return sets.String{} + } + return s.Generic().Keys() +} + +func (s *routeOptionSet) List(filterResource ...func(*gateway_solo_io_v1.RouteOption) bool) []*gateway_solo_io_v1.RouteOption { + if s == nil { + return nil + } + var genericFilters []func(ezkube.ResourceId) bool + for _, filter := range filterResource { + filter := filter + genericFilters = append(genericFilters, func(obj ezkube.ResourceId) bool { + return filter(obj.(*gateway_solo_io_v1.RouteOption)) + }) + } + + objs := s.Generic().List(genericFilters...) + routeOptionList := make([]*gateway_solo_io_v1.RouteOption, 0, len(objs)) + for _, obj := range objs { + routeOptionList = append(routeOptionList, obj.(*gateway_solo_io_v1.RouteOption)) + } + return routeOptionList +} + +func (s *routeOptionSet) UnsortedList(filterResource ...func(*gateway_solo_io_v1.RouteOption) bool) []*gateway_solo_io_v1.RouteOption { + if s == nil { + return nil + } + var genericFilters []func(ezkube.ResourceId) bool + for _, filter := range filterResource { + filter := filter + genericFilters = append(genericFilters, func(obj ezkube.ResourceId) bool { + return filter(obj.(*gateway_solo_io_v1.RouteOption)) + }) + } + + var routeOptionList []*gateway_solo_io_v1.RouteOption + for _, obj := range s.Generic().UnsortedList(genericFilters...) { + routeOptionList = append(routeOptionList, obj.(*gateway_solo_io_v1.RouteOption)) + } + return routeOptionList +} + +func (s *routeOptionSet) Map() map[string]*gateway_solo_io_v1.RouteOption { + if s == nil { + return nil + } + + newMap := map[string]*gateway_solo_io_v1.RouteOption{} + for k, v := range s.Generic().Map() { + newMap[k] = v.(*gateway_solo_io_v1.RouteOption) + } + return newMap +} + +func (s *routeOptionSet) Insert( + routeOptionList ...*gateway_solo_io_v1.RouteOption, +) { + if s == nil { + panic("cannot insert into nil set") + } + + for _, obj := range routeOptionList { + s.Generic().Insert(obj) + } +} + +func (s *routeOptionSet) Has(routeOption ezkube.ResourceId) bool { + if s == nil { + return false + } + return s.Generic().Has(routeOption) +} + +func (s *routeOptionSet) Equal( + routeOptionSet RouteOptionSet, +) bool { + if s == nil { + return routeOptionSet == nil + } + return s.Generic().Equal(routeOptionSet.Generic()) +} + +func (s *routeOptionSet) Delete(RouteOption ezkube.ResourceId) { + if s == nil { + return + } + s.Generic().Delete(RouteOption) +} + +func (s *routeOptionSet) Union(set RouteOptionSet) RouteOptionSet { + if s == nil { + return set + } + return NewRouteOptionSet(append(s.List(), set.List()...)...) } -func (s *matchableTcpGatewaySet) Difference(set MatchableTcpGatewaySet) MatchableTcpGatewaySet { +func (s *routeOptionSet) Difference(set RouteOptionSet) RouteOptionSet { if s == nil { return set } newSet := s.Generic().Difference(set.Generic()) - return &matchableTcpGatewaySet{set: newSet} + return &routeOptionSet{set: newSet} } -func (s *matchableTcpGatewaySet) Intersection(set MatchableTcpGatewaySet) MatchableTcpGatewaySet { +func (s *routeOptionSet) Intersection(set RouteOptionSet) RouteOptionSet { if s == nil { return nil } newSet := s.Generic().Intersection(set.Generic()) - var matchableTcpGatewayList []*gateway_solo_io_v1.MatchableTcpGateway + var routeOptionList []*gateway_solo_io_v1.RouteOption for _, obj := range newSet.List() { - matchableTcpGatewayList = append(matchableTcpGatewayList, obj.(*gateway_solo_io_v1.MatchableTcpGateway)) + routeOptionList = append(routeOptionList, obj.(*gateway_solo_io_v1.RouteOption)) } - return NewMatchableTcpGatewaySet(matchableTcpGatewayList...) + return NewRouteOptionSet(routeOptionList...) } -func (s *matchableTcpGatewaySet) Find(id ezkube.ResourceId) (*gateway_solo_io_v1.MatchableTcpGateway, error) { +func (s *routeOptionSet) Find(id ezkube.ResourceId) (*gateway_solo_io_v1.RouteOption, error) { if s == nil { - return nil, eris.Errorf("empty set, cannot find MatchableTcpGateway %v", sksets.Key(id)) + return nil, eris.Errorf("empty set, cannot find RouteOption %v", sksets.Key(id)) } - obj, err := s.Generic().Find(&gateway_solo_io_v1.MatchableTcpGateway{}, id) + obj, err := s.Generic().Find(&gateway_solo_io_v1.RouteOption{}, id) if err != nil { return nil, err } - return obj.(*gateway_solo_io_v1.MatchableTcpGateway), nil + return obj.(*gateway_solo_io_v1.RouteOption), nil } -func (s *matchableTcpGatewaySet) Length() int { +func (s *routeOptionSet) Length() int { if s == nil { return 0 } return s.Generic().Length() } -func (s *matchableTcpGatewaySet) Generic() sksets.ResourceSet { +func (s *routeOptionSet) Generic() sksets.ResourceSet { if s == nil { return nil } return s.set } -func (s *matchableTcpGatewaySet) Delta(newSet MatchableTcpGatewaySet) sksets.ResourceDelta { +func (s *routeOptionSet) Delta(newSet RouteOptionSet) sksets.ResourceDelta { if s == nil { return sksets.ResourceDelta{ Inserted: newSet.Generic(), @@ -675,11 +1344,11 @@ func (s *matchableTcpGatewaySet) Delta(newSet MatchableTcpGatewaySet) sksets.Res return s.Generic().Delta(newSet.Generic()) } -func (s *matchableTcpGatewaySet) Clone() MatchableTcpGatewaySet { +func (s *routeOptionSet) Clone() RouteOptionSet { if s == nil { return nil } - return &matchableTcpGatewaySet{set: sksets.NewResourceSet(s.Generic().Clone().List()...)} + return &routeOptionSet{set: sksets.NewResourceSet(s.Generic().Clone().List()...)} } type RouteTableSet interface { @@ -1350,226 +2019,3 @@ func (s *virtualHostOptionSet) Clone() VirtualHostOptionSet { } return &virtualHostOptionSet{set: sksets.NewResourceSet(s.Generic().Clone().List()...)} } - -type RouteOptionSet interface { - // Get the set stored keys - Keys() sets.String - // List of resources stored in the set. Pass an optional filter function to filter on the list. - // The filter function should return false to keep the resource, true to drop it. - List(filterResource ...func(*gateway_solo_io_v1.RouteOption) bool) []*gateway_solo_io_v1.RouteOption - // Unsorted list of resources stored in the set. Pass an optional filter function to filter on the list. - // The filter function should return false to keep the resource, true to drop it. - UnsortedList(filterResource ...func(*gateway_solo_io_v1.RouteOption) bool) []*gateway_solo_io_v1.RouteOption - // Return the Set as a map of key to resource. - Map() map[string]*gateway_solo_io_v1.RouteOption - // Insert a resource into the set. - Insert(routeOption ...*gateway_solo_io_v1.RouteOption) - // Compare the equality of the keys in two sets (not the resources themselves) - Equal(routeOptionSet RouteOptionSet) bool - // Check if the set contains a key matching the resource (not the resource itself) - Has(routeOption ezkube.ResourceId) bool - // Delete the key matching the resource - Delete(routeOption ezkube.ResourceId) - // Return the union with the provided set - Union(set RouteOptionSet) RouteOptionSet - // Return the difference with the provided set - Difference(set RouteOptionSet) RouteOptionSet - // Return the intersection with the provided set - Intersection(set RouteOptionSet) RouteOptionSet - // Find the resource with the given ID - Find(id ezkube.ResourceId) (*gateway_solo_io_v1.RouteOption, error) - // Get the length of the set - Length() int - // returns the generic implementation of the set - Generic() sksets.ResourceSet - // returns the delta between this and and another RouteOptionSet - Delta(newSet RouteOptionSet) sksets.ResourceDelta - // Create a deep copy of the current RouteOptionSet - Clone() RouteOptionSet -} - -func makeGenericRouteOptionSet(routeOptionList []*gateway_solo_io_v1.RouteOption) sksets.ResourceSet { - var genericResources []ezkube.ResourceId - for _, obj := range routeOptionList { - genericResources = append(genericResources, obj) - } - return sksets.NewResourceSet(genericResources...) -} - -type routeOptionSet struct { - set sksets.ResourceSet -} - -func NewRouteOptionSet(routeOptionList ...*gateway_solo_io_v1.RouteOption) RouteOptionSet { - return &routeOptionSet{set: makeGenericRouteOptionSet(routeOptionList)} -} - -func NewRouteOptionSetFromList(routeOptionList *gateway_solo_io_v1.RouteOptionList) RouteOptionSet { - list := make([]*gateway_solo_io_v1.RouteOption, 0, len(routeOptionList.Items)) - for idx := range routeOptionList.Items { - list = append(list, &routeOptionList.Items[idx]) - } - return &routeOptionSet{set: makeGenericRouteOptionSet(list)} -} - -func (s *routeOptionSet) Keys() sets.String { - if s == nil { - return sets.String{} - } - return s.Generic().Keys() -} - -func (s *routeOptionSet) List(filterResource ...func(*gateway_solo_io_v1.RouteOption) bool) []*gateway_solo_io_v1.RouteOption { - if s == nil { - return nil - } - var genericFilters []func(ezkube.ResourceId) bool - for _, filter := range filterResource { - filter := filter - genericFilters = append(genericFilters, func(obj ezkube.ResourceId) bool { - return filter(obj.(*gateway_solo_io_v1.RouteOption)) - }) - } - - objs := s.Generic().List(genericFilters...) - routeOptionList := make([]*gateway_solo_io_v1.RouteOption, 0, len(objs)) - for _, obj := range objs { - routeOptionList = append(routeOptionList, obj.(*gateway_solo_io_v1.RouteOption)) - } - return routeOptionList -} - -func (s *routeOptionSet) UnsortedList(filterResource ...func(*gateway_solo_io_v1.RouteOption) bool) []*gateway_solo_io_v1.RouteOption { - if s == nil { - return nil - } - var genericFilters []func(ezkube.ResourceId) bool - for _, filter := range filterResource { - filter := filter - genericFilters = append(genericFilters, func(obj ezkube.ResourceId) bool { - return filter(obj.(*gateway_solo_io_v1.RouteOption)) - }) - } - - var routeOptionList []*gateway_solo_io_v1.RouteOption - for _, obj := range s.Generic().UnsortedList(genericFilters...) { - routeOptionList = append(routeOptionList, obj.(*gateway_solo_io_v1.RouteOption)) - } - return routeOptionList -} - -func (s *routeOptionSet) Map() map[string]*gateway_solo_io_v1.RouteOption { - if s == nil { - return nil - } - - newMap := map[string]*gateway_solo_io_v1.RouteOption{} - for k, v := range s.Generic().Map() { - newMap[k] = v.(*gateway_solo_io_v1.RouteOption) - } - return newMap -} - -func (s *routeOptionSet) Insert( - routeOptionList ...*gateway_solo_io_v1.RouteOption, -) { - if s == nil { - panic("cannot insert into nil set") - } - - for _, obj := range routeOptionList { - s.Generic().Insert(obj) - } -} - -func (s *routeOptionSet) Has(routeOption ezkube.ResourceId) bool { - if s == nil { - return false - } - return s.Generic().Has(routeOption) -} - -func (s *routeOptionSet) Equal( - routeOptionSet RouteOptionSet, -) bool { - if s == nil { - return routeOptionSet == nil - } - return s.Generic().Equal(routeOptionSet.Generic()) -} - -func (s *routeOptionSet) Delete(RouteOption ezkube.ResourceId) { - if s == nil { - return - } - s.Generic().Delete(RouteOption) -} - -func (s *routeOptionSet) Union(set RouteOptionSet) RouteOptionSet { - if s == nil { - return set - } - return NewRouteOptionSet(append(s.List(), set.List()...)...) -} - -func (s *routeOptionSet) Difference(set RouteOptionSet) RouteOptionSet { - if s == nil { - return set - } - newSet := s.Generic().Difference(set.Generic()) - return &routeOptionSet{set: newSet} -} - -func (s *routeOptionSet) Intersection(set RouteOptionSet) RouteOptionSet { - if s == nil { - return nil - } - newSet := s.Generic().Intersection(set.Generic()) - var routeOptionList []*gateway_solo_io_v1.RouteOption - for _, obj := range newSet.List() { - routeOptionList = append(routeOptionList, obj.(*gateway_solo_io_v1.RouteOption)) - } - return NewRouteOptionSet(routeOptionList...) -} - -func (s *routeOptionSet) Find(id ezkube.ResourceId) (*gateway_solo_io_v1.RouteOption, error) { - if s == nil { - return nil, eris.Errorf("empty set, cannot find RouteOption %v", sksets.Key(id)) - } - obj, err := s.Generic().Find(&gateway_solo_io_v1.RouteOption{}, id) - if err != nil { - return nil, err - } - - return obj.(*gateway_solo_io_v1.RouteOption), nil -} - -func (s *routeOptionSet) Length() int { - if s == nil { - return 0 - } - return s.Generic().Length() -} - -func (s *routeOptionSet) Generic() sksets.ResourceSet { - if s == nil { - return nil - } - return s.set -} - -func (s *routeOptionSet) Delta(newSet RouteOptionSet) sksets.ResourceDelta { - if s == nil { - return sksets.ResourceDelta{ - Inserted: newSet.Generic(), - } - } - return s.Generic().Delta(newSet.Generic()) -} - -func (s *routeOptionSet) Clone() RouteOptionSet { - if s == nil { - return nil - } - return &routeOptionSet{set: sksets.NewResourceSet(s.Generic().Clone().List()...)} -} diff --git a/pkg/api/gateway.solo.io/v1/type_helpers.go b/pkg/api/gateway.solo.io/v1/type_helpers.go index c9a086401..3ad4e64de 100644 --- a/pkg/api/gateway.solo.io/v1/type_helpers.go +++ b/pkg/api/gateway.solo.io/v1/type_helpers.go @@ -6,12 +6,21 @@ package v1 // GatewaySlice represents a slice of *Gateway type GatewaySlice []*Gateway +// HttpListenerOptionSlice represents a slice of *HttpListenerOption +type HttpListenerOptionSlice []*HttpListenerOption + +// ListenerOptionSlice represents a slice of *ListenerOption +type ListenerOptionSlice []*ListenerOption + // MatchableHttpGatewaySlice represents a slice of *MatchableHttpGateway type MatchableHttpGatewaySlice []*MatchableHttpGateway // MatchableTcpGatewaySlice represents a slice of *MatchableTcpGateway type MatchableTcpGatewaySlice []*MatchableTcpGateway +// RouteOptionSlice represents a slice of *RouteOption +type RouteOptionSlice []*RouteOption + // RouteTableSlice represents a slice of *RouteTable type RouteTableSlice []*RouteTable @@ -20,6 +29,3 @@ type VirtualServiceSlice []*VirtualService // VirtualHostOptionSlice represents a slice of *VirtualHostOption type VirtualHostOptionSlice []*VirtualHostOption - -// RouteOptionSlice represents a slice of *RouteOption -type RouteOptionSlice []*RouteOption diff --git a/pkg/api/gateway.solo.io/v1/types.go b/pkg/api/gateway.solo.io/v1/types.go index d2791539f..6cb8f087d 100644 --- a/pkg/api/gateway.solo.io/v1/types.go +++ b/pkg/api/gateway.solo.io/v1/types.go @@ -48,6 +48,76 @@ type GatewayList struct { // +k8s:openapi-gen=true // +kubebuilder:subresource:status +// GroupVersionKind for HttpListenerOption +var HttpListenerOptionGVK = schema.GroupVersionKind{ + Group: "gateway.solo.io", + Version: "v1", + Kind: "HttpListenerOption", +} + +// HttpListenerOption is the Schema for the httpListenerOption API +type HttpListenerOption struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec HttpListenerOptionSpec `json:"spec,omitempty"` + Status HttpListenerOptionStatus `json:"status,omitempty"` +} + +// GVK returns the GroupVersionKind associated with the resource type. +func (HttpListenerOption) GVK() schema.GroupVersionKind { + return HttpListenerOptionGVK +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// HttpListenerOptionList contains a list of HttpListenerOption +type HttpListenerOptionList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []HttpListenerOption `json:"items"` +} + +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +k8s:openapi-gen=true +// +kubebuilder:subresource:status + +// GroupVersionKind for ListenerOption +var ListenerOptionGVK = schema.GroupVersionKind{ + Group: "gateway.solo.io", + Version: "v1", + Kind: "ListenerOption", +} + +// ListenerOption is the Schema for the listenerOption API +type ListenerOption struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec ListenerOptionSpec `json:"spec,omitempty"` + Status ListenerOptionStatus `json:"status,omitempty"` +} + +// GVK returns the GroupVersionKind associated with the resource type. +func (ListenerOption) GVK() schema.GroupVersionKind { + return ListenerOptionGVK +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// ListenerOptionList contains a list of ListenerOption +type ListenerOptionList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []ListenerOption `json:"items"` +} + +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +k8s:openapi-gen=true +// +kubebuilder:subresource:status + // GroupVersionKind for MatchableHttpGateway var MatchableHttpGatewayGVK = schema.GroupVersionKind{ Group: "gateway.solo.io", @@ -118,6 +188,41 @@ type MatchableTcpGatewayList struct { // +k8s:openapi-gen=true // +kubebuilder:subresource:status +// GroupVersionKind for RouteOption +var RouteOptionGVK = schema.GroupVersionKind{ + Group: "gateway.solo.io", + Version: "v1", + Kind: "RouteOption", +} + +// RouteOption is the Schema for the routeOption API +type RouteOption struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec RouteOptionSpec `json:"spec,omitempty"` + Status RouteOptionStatus `json:"status,omitempty"` +} + +// GVK returns the GroupVersionKind associated with the resource type. +func (RouteOption) GVK() schema.GroupVersionKind { + return RouteOptionGVK +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// RouteOptionList contains a list of RouteOption +type RouteOptionList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []RouteOption `json:"items"` +} + +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +k8s:openapi-gen=true +// +kubebuilder:subresource:status + // GroupVersionKind for RouteTable var RouteTableGVK = schema.GroupVersionKind{ Group: "gateway.solo.io", @@ -218,47 +323,14 @@ type VirtualHostOptionList struct { Items []VirtualHostOption `json:"items"` } -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +k8s:openapi-gen=true -// +kubebuilder:subresource:status - -// GroupVersionKind for RouteOption -var RouteOptionGVK = schema.GroupVersionKind{ - Group: "gateway.solo.io", - Version: "v1", - Kind: "RouteOption", -} - -// RouteOption is the Schema for the routeOption API -type RouteOption struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec RouteOptionSpec `json:"spec,omitempty"` - Status RouteOptionStatus `json:"status,omitempty"` -} - -// GVK returns the GroupVersionKind associated with the resource type. -func (RouteOption) GVK() schema.GroupVersionKind { - return RouteOptionGVK -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// RouteOptionList contains a list of RouteOption -type RouteOptionList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []RouteOption `json:"items"` -} - func init() { SchemeBuilder.Register(&Gateway{}, &GatewayList{}) + SchemeBuilder.Register(&HttpListenerOption{}, &HttpListenerOptionList{}) + SchemeBuilder.Register(&ListenerOption{}, &ListenerOptionList{}) SchemeBuilder.Register(&MatchableHttpGateway{}, &MatchableHttpGatewayList{}) SchemeBuilder.Register(&MatchableTcpGateway{}, &MatchableTcpGatewayList{}) + SchemeBuilder.Register(&RouteOption{}, &RouteOptionList{}) SchemeBuilder.Register(&RouteTable{}, &RouteTableList{}) SchemeBuilder.Register(&VirtualService{}, &VirtualServiceList{}) SchemeBuilder.Register(&VirtualHostOption{}, &VirtualHostOptionList{}) - SchemeBuilder.Register(&RouteOption{}, &RouteOptionList{}) } diff --git a/pkg/api/gateway.solo.io/v1/zz_generated.deepcopy.go b/pkg/api/gateway.solo.io/v1/zz_generated.deepcopy.go index 181516071..7678ef60c 100644 --- a/pkg/api/gateway.solo.io/v1/zz_generated.deepcopy.go +++ b/pkg/api/gateway.solo.io/v1/zz_generated.deepcopy.go @@ -68,6 +68,126 @@ func (in *GatewayList) DeepCopyObject() runtime.Object { return nil } +// Generated Deepcopy methods for HttpListenerOption + +func (in *HttpListenerOption) DeepCopyInto(out *HttpListenerOption) { + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + + // deepcopy spec + in.Spec.DeepCopyInto(&out.Spec) + // deepcopy status + in.Status.DeepCopyInto(&out.Status) + + return +} + +func (in *HttpListenerOption) DeepCopy() *HttpListenerOption { + if in == nil { + return nil + } + out := new(HttpListenerOption) + in.DeepCopyInto(out) + return out +} + +func (in *HttpListenerOption) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +func (in *HttpListenerOptionList) DeepCopyInto(out *HttpListenerOptionList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]HttpListenerOption, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +func (in *HttpListenerOptionList) DeepCopy() *HttpListenerOptionList { + if in == nil { + return nil + } + out := new(HttpListenerOptionList) + in.DeepCopyInto(out) + return out +} + +func (in *HttpListenerOptionList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// Generated Deepcopy methods for ListenerOption + +func (in *ListenerOption) DeepCopyInto(out *ListenerOption) { + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + + // deepcopy spec + in.Spec.DeepCopyInto(&out.Spec) + // deepcopy status + in.Status.DeepCopyInto(&out.Status) + + return +} + +func (in *ListenerOption) DeepCopy() *ListenerOption { + if in == nil { + return nil + } + out := new(ListenerOption) + in.DeepCopyInto(out) + return out +} + +func (in *ListenerOption) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +func (in *ListenerOptionList) DeepCopyInto(out *ListenerOptionList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ListenerOption, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +func (in *ListenerOptionList) DeepCopy() *ListenerOptionList { + if in == nil { + return nil + } + out := new(ListenerOptionList) + in.DeepCopyInto(out) + return out +} + +func (in *ListenerOptionList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // Generated Deepcopy methods for MatchableHttpGateway func (in *MatchableHttpGateway) DeepCopyInto(out *MatchableHttpGateway) { @@ -188,9 +308,9 @@ func (in *MatchableTcpGatewayList) DeepCopyObject() runtime.Object { return nil } -// Generated Deepcopy methods for RouteTable +// Generated Deepcopy methods for RouteOption -func (in *RouteTable) DeepCopyInto(out *RouteTable) { +func (in *RouteOption) DeepCopyInto(out *RouteOption) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -202,29 +322,29 @@ func (in *RouteTable) DeepCopyInto(out *RouteTable) { return } -func (in *RouteTable) DeepCopy() *RouteTable { +func (in *RouteOption) DeepCopy() *RouteOption { if in == nil { return nil } - out := new(RouteTable) + out := new(RouteOption) in.DeepCopyInto(out) return out } -func (in *RouteTable) DeepCopyObject() runtime.Object { +func (in *RouteOption) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } -func (in *RouteTableList) DeepCopyInto(out *RouteTableList) { +func (in *RouteOptionList) DeepCopyInto(out *RouteOptionList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]RouteTable, len(*in)) + *out = make([]RouteOption, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -232,25 +352,25 @@ func (in *RouteTableList) DeepCopyInto(out *RouteTableList) { return } -func (in *RouteTableList) DeepCopy() *RouteTableList { +func (in *RouteOptionList) DeepCopy() *RouteOptionList { if in == nil { return nil } - out := new(RouteTableList) + out := new(RouteOptionList) in.DeepCopyInto(out) return out } -func (in *RouteTableList) DeepCopyObject() runtime.Object { +func (in *RouteOptionList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } -// Generated Deepcopy methods for VirtualService +// Generated Deepcopy methods for RouteTable -func (in *VirtualService) DeepCopyInto(out *VirtualService) { +func (in *RouteTable) DeepCopyInto(out *RouteTable) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -262,29 +382,29 @@ func (in *VirtualService) DeepCopyInto(out *VirtualService) { return } -func (in *VirtualService) DeepCopy() *VirtualService { +func (in *RouteTable) DeepCopy() *RouteTable { if in == nil { return nil } - out := new(VirtualService) + out := new(RouteTable) in.DeepCopyInto(out) return out } -func (in *VirtualService) DeepCopyObject() runtime.Object { +func (in *RouteTable) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } -func (in *VirtualServiceList) DeepCopyInto(out *VirtualServiceList) { +func (in *RouteTableList) DeepCopyInto(out *RouteTableList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]VirtualService, len(*in)) + *out = make([]RouteTable, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -292,25 +412,25 @@ func (in *VirtualServiceList) DeepCopyInto(out *VirtualServiceList) { return } -func (in *VirtualServiceList) DeepCopy() *VirtualServiceList { +func (in *RouteTableList) DeepCopy() *RouteTableList { if in == nil { return nil } - out := new(VirtualServiceList) + out := new(RouteTableList) in.DeepCopyInto(out) return out } -func (in *VirtualServiceList) DeepCopyObject() runtime.Object { +func (in *RouteTableList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } -// Generated Deepcopy methods for VirtualHostOption +// Generated Deepcopy methods for VirtualService -func (in *VirtualHostOption) DeepCopyInto(out *VirtualHostOption) { +func (in *VirtualService) DeepCopyInto(out *VirtualService) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -322,29 +442,29 @@ func (in *VirtualHostOption) DeepCopyInto(out *VirtualHostOption) { return } -func (in *VirtualHostOption) DeepCopy() *VirtualHostOption { +func (in *VirtualService) DeepCopy() *VirtualService { if in == nil { return nil } - out := new(VirtualHostOption) + out := new(VirtualService) in.DeepCopyInto(out) return out } -func (in *VirtualHostOption) DeepCopyObject() runtime.Object { +func (in *VirtualService) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } -func (in *VirtualHostOptionList) DeepCopyInto(out *VirtualHostOptionList) { +func (in *VirtualServiceList) DeepCopyInto(out *VirtualServiceList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]VirtualHostOption, len(*in)) + *out = make([]VirtualService, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -352,25 +472,25 @@ func (in *VirtualHostOptionList) DeepCopyInto(out *VirtualHostOptionList) { return } -func (in *VirtualHostOptionList) DeepCopy() *VirtualHostOptionList { +func (in *VirtualServiceList) DeepCopy() *VirtualServiceList { if in == nil { return nil } - out := new(VirtualHostOptionList) + out := new(VirtualServiceList) in.DeepCopyInto(out) return out } -func (in *VirtualHostOptionList) DeepCopyObject() runtime.Object { +func (in *VirtualServiceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } -// Generated Deepcopy methods for RouteOption +// Generated Deepcopy methods for VirtualHostOption -func (in *RouteOption) DeepCopyInto(out *RouteOption) { +func (in *VirtualHostOption) DeepCopyInto(out *VirtualHostOption) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -382,29 +502,29 @@ func (in *RouteOption) DeepCopyInto(out *RouteOption) { return } -func (in *RouteOption) DeepCopy() *RouteOption { +func (in *VirtualHostOption) DeepCopy() *VirtualHostOption { if in == nil { return nil } - out := new(RouteOption) + out := new(VirtualHostOption) in.DeepCopyInto(out) return out } -func (in *RouteOption) DeepCopyObject() runtime.Object { +func (in *VirtualHostOption) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } -func (in *RouteOptionList) DeepCopyInto(out *RouteOptionList) { +func (in *VirtualHostOptionList) DeepCopyInto(out *VirtualHostOptionList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]RouteOption, len(*in)) + *out = make([]VirtualHostOption, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -412,16 +532,16 @@ func (in *RouteOptionList) DeepCopyInto(out *RouteOptionList) { return } -func (in *RouteOptionList) DeepCopy() *RouteOptionList { +func (in *VirtualHostOptionList) DeepCopy() *VirtualHostOptionList { if in == nil { return nil } - out := new(RouteOptionList) + out := new(VirtualHostOptionList) in.DeepCopyInto(out) return out } -func (in *RouteOptionList) DeepCopyObject() runtime.Object { +func (in *VirtualHostOptionList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c }