Documentation
¶
Overview ¶
Package contract turns the entities of a workspace into protobuf contracts. It writes the .proto files and their Go code itself, so nobody needs protoc installed.
Index ¶
Constants ¶
View Source
const ( TypeString = descriptorpb.FieldDescriptorProto_TYPE_STRING TypeBool = descriptorpb.FieldDescriptorProto_TYPE_BOOL TypeInt32 = descriptorpb.FieldDescriptorProto_TYPE_INT32 TypeInt64 = descriptorpb.FieldDescriptorProto_TYPE_INT64 TypeFloat = descriptorpb.FieldDescriptorProto_TYPE_FLOAT TypeDouble = descriptorpb.FieldDescriptorProto_TYPE_DOUBLE TypeBytes = descriptorpb.FieldDescriptorProto_TYPE_BYTES TypeMessage = descriptorpb.FieldDescriptorProto_TYPE_MESSAGE )
View Source
const ( Timestamp = ".google.protobuf.Timestamp" Empty = ".google.protobuf.Empty" )
View Source
const ( CommonPackage = "common.v1" ProblemMessage = ".common.v1.Problem" ExistsResponse = ".common.v1.ExistsResponse" ContractsDir = "contracts" ContractRegistry = "contracts/codebuild.contracts.json" )
View Source
const Header = "// Code generated by codebuild. DO NOT EDIT."
View Source
const RegistryVersion = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FieldType ¶
type FieldType = descriptorpb.FieldDescriptorProto_Type
type File ¶
type MessageNumbers ¶
type Registry ¶
type Registry struct {
Version int `json:"version"`
Messages map[string]*MessageNumbers `json:"messages"`
// Renumbered describes the fields that changed type in this build and
// therefore received a new number.
Renumbered []string `json:"-"`
}
func NewRegistry ¶
func NewRegistry() *Registry
func UnmarshalRegistry ¶
type RelationRPC ¶
Click to show internal directories.
Click to hide internal directories.