Move api/types/client.go and api/types/backend to a more appropriate package #36337
Labels
area/api
kind/enhancement
Enhancements are not bugs or new features but can improve usability or performance.
The
api/types
package should only contain the types used to serialize/deserialize requests and responses for the HTTP API. This is the case for most of the types in this package and sub packages.There are two exceptions:
api/types/client.go
contains types that are used byAPIClient
interface in theclient
packageapi/types/backend
contains types that are used by the backend interfaces between the API routers and the server implementationThese two categories of types are never used for serialization/deserialization.
I propose we move these types to a more appropriate place:
api/types/client.go
should move toclient/types
api/types/backend
could be split up and moved toapi/server/router/<component>
or moved toapi/server/backend/types
cc @tiborvass @vdemeester @cpuguy83
The text was updated successfully, but these errors were encountered: