-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document all the grpc api and generate html documentation #375
Conversation
Codecov Report
@@ Coverage Diff @@
## master #375 +/- ##
=======================================
Coverage 34.34% 34.34%
=======================================
Files 46 46
Lines 2865 2865
=======================================
Hits 984 984
Misses 1794 1794
Partials 87 87 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few things that I noticed, but I think this is a great start to having documentation around the API.
protos/hardware/hardware.proto
Outdated
@@ -1,3 +1,7 @@ | |||
/* | |||
* Hardware represents a single device managed by Tinkerbell. | |||
* It can be identifed with its own UUID but more in general it can be everything that has a Mac address. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything anything that has a Mac MAC address.
protos/hardware/hardware.proto
Outdated
@@ -65,63 +71,162 @@ service HardwareService { | |||
}; | |||
} | |||
|
|||
/* | |||
* PushRequest is the body for the Push method. It contains information about | |||
* an hardware. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an a piece of hardware
protos/hardware/hardware.proto
Outdated
message PushRequest { | ||
/* | ||
* hardware describes how the hardware you want to register to Tinkerbell looks like. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hHardware describes how the hardware ..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to Tinkerbell "and what it" looks like.
protos/hardware/hardware.proto
Outdated
message PushRequest { | ||
/* | ||
* hardware describes how the hardware you want to register to Tinkerbell looks like. | ||
* Hostname, mac address, DHCP, network interfaces, metadata and so on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
macMAC
protos/hardware/hardware.proto
Outdated
Netboot netboot = 2; | ||
} | ||
reserved 1; // obsolete dhcp | ||
reserved 2; // obsolete netboot | ||
/* | ||
* Configure the network interfaces you have in your hardware and how their |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and how defines their
protos/workflow/workflow.proto
Outdated
@@ -7,33 +11,60 @@ package jackfan.us.kg.tinkerbell.tink.protos.workflow; | |||
import "google/api/annotations.proto"; | |||
import "google/protobuf/timestamp.proto"; | |||
|
|||
/* | |||
* WorkflowSerive exposese various capabilities when it comes to starting and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WorkflowSerive WorkflowService exposeses exposes
protos/workflow/workflow.proto
Outdated
service WorkflowService { | ||
/* | ||
* CreateWorkflow targets a specific hardware and it starts from a particular | ||
* template. From now one the selected hardware is capable of picking the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From now one the selected hardware
protos/hardware/hardware.proto
Outdated
string mac = 1; | ||
reserved 2; // obsolete ip | ||
reserved 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we keep the // obsolete
tombstones just so we have a clear record of what was deprecated / reason why the number is reserved?
protos/workflow/workflow.proto
Outdated
*/ | ||
repeated string on_timeout = 6 [deprecated = true]; | ||
/* | ||
* On failure used to be a way to execute an action if the current one timesout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timesout
should be times out
Signed-off-by: Gianluca Arbezzano <[email protected]>
Signed-off-by: Gianluca Arbezzano <[email protected]>
Not currently looking at this project anymore :(
Description
Document the grpc api and generate an HTML page that can be deployed somewhere
Why is this needed
Documentation is important.
Fixes: #219 probably many more
How Has This Been Tested?
make grpc/gen_doc
and looking at the generated HTML page indoc
folder