Documentation
¶
Index ¶
- Variables
- type BuildInfo
- func (*BuildInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BuildInfo) GetImage() string
- func (x *BuildInfo) GetMaintainer() string
- func (x *BuildInfo) GetPath() string
- func (x *BuildInfo) GetTag() string
- func (*BuildInfo) ProtoMessage()
- func (x *BuildInfo) ProtoReflect() protoreflect.Message
- func (x *BuildInfo) Reset()
- func (x *BuildInfo) String() string
- type HttpMethod
- type Manifest
- func (*Manifest) Descriptor() ([]byte, []int)deprecated
- func (x *Manifest) GetBuildInfo() *BuildInfo
- func (x *Manifest) GetName() string
- func (x *Manifest) GetRoutes() []*Route
- func (x *Manifest) GetVersion() *Version
- func (*Manifest) ProtoMessage()
- func (x *Manifest) ProtoReflect() protoreflect.Message
- func (x *Manifest) Reset()
- func (x *Manifest) String() string
- type Route
- func (*Route) Descriptor() ([]byte, []int)deprecated
- func (x *Route) GetHandler() string
- func (x *Route) GetHttpMethod() HttpMethod
- func (x *Route) GetPathSpec() string
- func (*Route) ProtoMessage()
- func (x *Route) ProtoReflect() protoreflect.Message
- func (x *Route) Reset()
- func (x *Route) String() string
- type Version
- func (*Version) Descriptor() ([]byte, []int)deprecated
- func (x *Version) GetMajor() int32
- func (x *Version) GetMinor() int32
- func (x *Version) GetPatch() int32
- func (*Version) ProtoMessage()
- func (x *Version) ProtoReflect() protoreflect.Message
- func (x *Version) Reset()
- func (x *Version) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HttpMethod_name = map[int32]string{ 0: "GET", 1: "PUT", 2: "POST", 3: "DELETE", } HttpMethod_value = map[string]int32{ "GET": 0, "PUT": 1, "POST": 2, "DELETE": 3, } )
Enum value maps for HttpMethod.
View Source
var File_manifest_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct {
// The maintainer of the service.
Maintainer string `protobuf:"bytes,1,opt,name=maintainer,proto3" json:"maintainer,omitempty"`
// The image name.
Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
// The image tag.
Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
// The path to the service, relative to the project root.
Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
func (*BuildInfo) Descriptor
deprecated
func (*BuildInfo) GetMaintainer ¶
func (*BuildInfo) ProtoMessage ¶
func (*BuildInfo) ProtoMessage()
func (*BuildInfo) ProtoReflect ¶
func (x *BuildInfo) ProtoReflect() protoreflect.Message
type HttpMethod ¶
type HttpMethod int32
const ( HttpMethod_GET HttpMethod = 0 HttpMethod_PUT HttpMethod = 1 HttpMethod_POST HttpMethod = 2 HttpMethod_DELETE HttpMethod = 3 )
func HttpMethodFromString ¶
func HttpMethodFromString(method string) HttpMethod
func (HttpMethod) Descriptor ¶
func (HttpMethod) Descriptor() protoreflect.EnumDescriptor
func (HttpMethod) Enum ¶
func (x HttpMethod) Enum() *HttpMethod
func (HttpMethod) EnumDescriptor
deprecated
func (HttpMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use HttpMethod.Descriptor instead.
func (HttpMethod) Number ¶
func (x HttpMethod) Number() protoreflect.EnumNumber
func (HttpMethod) String ¶
func (x HttpMethod) String() string
func (HttpMethod) Type ¶
func (HttpMethod) Type() protoreflect.EnumType
type Manifest ¶
type Manifest struct {
// The name of the service.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The version of the service.
Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Information required to build the service. This will be filled in
// by the command line tool.
BuildInfo *BuildInfo `protobuf:"bytes,3,opt,name=build_info,json=buildInfo,proto3" json:"build_info,omitempty"`
// The routes defined by the router within the service.
Routes []*Route `protobuf:"bytes,4,rep,name=routes,proto3" json:"routes,omitempty"`
// contains filtered or unexported fields
}
A manifest describing everything required to build and deploy a service.
func (*Manifest) Descriptor
deprecated
func (*Manifest) GetBuildInfo ¶
func (*Manifest) GetVersion ¶
func (*Manifest) ProtoMessage ¶
func (*Manifest) ProtoMessage()
func (*Manifest) ProtoReflect ¶
func (x *Manifest) ProtoReflect() protoreflect.Message
type Route ¶
type Route struct {
// The HTTP method which this Route handles.
HttpMethod HttpMethod `protobuf:"varint,1,opt,name=http_method,json=httpMethod,proto3,enum=manifest.HttpMethod" json:"http_method,omitempty"`
// The identifier of the handler that will handle the route.
Handler string `protobuf:"bytes,2,opt,name=handler,proto3" json:"handler,omitempty"`
// The path pattern that will match this route.
PathSpec string `protobuf:"bytes,3,opt,name=path_spec,json=pathSpec,proto3" json:"path_spec,omitempty"`
// contains filtered or unexported fields
}
A route defined by a service.
func (*Route) Descriptor
deprecated
func (*Route) GetHandler ¶
func (*Route) GetHttpMethod ¶
func (x *Route) GetHttpMethod() HttpMethod
func (*Route) GetPathSpec ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) ProtoReflect ¶
func (x *Route) ProtoReflect() protoreflect.Message
type Version ¶
type Version struct {
// Major
Major int32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
// Minor
Minor int32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
// Patch
Patch int32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"`
// contains filtered or unexported fields
}
A SemVer version number.
func (*Version) Descriptor
deprecated
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) ProtoReflect ¶
func (x *Version) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.