Skip to content

Conversation

@smklein
Copy link
Collaborator

@smklein smklein commented Jul 22, 2021

This PR implements part of https://github.com/oxidecomputer/rfd/tree/0189/rfd/0189

It largely leaves the database types untouched, as they're significantly more complicated. As a result, the database types are (for the most part) still using the external API types.

bnaecker and others added 14 commits July 19, 2021 12:11
- Adds the `VPC`, `VPCSubnet` and `VNIC` types, including internal
control plane representations, client views, and database types.
- Implements some required traits for generating JSON schema and
serializing to/from PostgreSQL wire formats. Note that the MAC address
type is serialized in the database as a string, as CockroachDB doesn't
currently support the PostgreSQL MACADDR type.
@smklein smklein changed the title [api] Separate internal, external, and database interfaces [api] Separate internal, external interfaces Jul 26, 2021
@smklein smklein requested review from bnaecker and davepacheco July 26, 2021 22:18
@smklein smklein requested a review from david-crespo July 28, 2021 13:54
@smklein smklein changed the base branch from main to nexus/basic-networking-types July 28, 2021 14:15
@smklein
Copy link
Collaborator Author

smklein commented Jul 28, 2021

Merged with changes in #163 ; using that as upstream until it is merged

Base automatically changed from nexus/basic-networking-types to main July 28, 2021 14:52
pub trait Object {
type View: Serialize + Clone + Debug;
fn to_view(&self) -> Self::View;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 goodbye

@smklein smklein merged commit da2071a into main Jul 28, 2021
@smklein smklein deleted the api-separation branch July 28, 2021 21:53
citrus-it pushed a commit to citrus-it/omicron that referenced this pull request Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants