Documentation ¶
Overview ¶
Package versioning contains utilities to convert types to/from CV API versions as well as tests to avoid regressions.
Index ¶
- func LegacyTryjobResultStatusV0(s tryjob.Result_Status) apiv0pb.Tryjob_Result_Status
- func LegacyTryjobStatusV0(s tryjob.Status) apiv0pb.Tryjob_Status
- func RunStatusV0(s run.Status) apiv0pb.Run_Status
- func RunStatusV1(s run.Status) apiv1pb.Run_Status
- func TryjobStatusV0(tjs tryjob.Status, tjrs tryjob.Result_Status) apiv0pb.TryjobStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LegacyTryjobResultStatusV0 ¶
func LegacyTryjobResultStatusV0(s tryjob.Result_Status) apiv0pb.Tryjob_Result_Status
LegacyTryjobResultStatusV0 converts internal Tryjob Result status to an APIv0 equivalent.
func LegacyTryjobStatusV0 ¶
func LegacyTryjobStatusV0(s tryjob.Status) apiv0pb.Tryjob_Status
LegacyTryjobStatusV0 converts internal Tryjob status to an APIv0 equivalent.
func RunStatusV0 ¶
func RunStatusV0(s run.Status) apiv0pb.Run_Status
RunStatusV0 converts internal Run status to an APIv0 equivalent.
func RunStatusV1 ¶
func RunStatusV1(s run.Status) apiv1pb.Run_Status
RunStatusV1 converts internal Run status to an APIv1 equivalent.
func TryjobStatusV0 ¶
func TryjobStatusV0(tjs tryjob.Status, tjrs tryjob.Result_Status) apiv0pb.TryjobStatus
TryjobStatusV0 converts internal Tryjob statuses to an APIv0 equivalent.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.