manifest

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use BuildInfo.ProtoReflect.Descriptor instead.

func (*BuildInfo) GetImage

func (x *BuildInfo) GetImage() string

func (*BuildInfo) GetMaintainer

func (x *BuildInfo) GetMaintainer() string

func (*BuildInfo) GetPath

func (x *BuildInfo) GetPath() string

func (*BuildInfo) GetTag

func (x *BuildInfo) GetTag() string

func (*BuildInfo) ProtoMessage

func (*BuildInfo) ProtoMessage()

func (*BuildInfo) ProtoReflect

func (x *BuildInfo) ProtoReflect() protoreflect.Message

func (*BuildInfo) Reset

func (x *BuildInfo) Reset()

func (*BuildInfo) String

func (x *BuildInfo) String() string

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Manifest.ProtoReflect.Descriptor instead.

func (*Manifest) GetBuildInfo

func (x *Manifest) GetBuildInfo() *BuildInfo

func (*Manifest) GetName

func (x *Manifest) GetName() string

func (*Manifest) GetRoutes

func (x *Manifest) GetRoutes() []*Route

func (*Manifest) GetVersion

func (x *Manifest) GetVersion() *Version

func (*Manifest) ProtoMessage

func (*Manifest) ProtoMessage()

func (*Manifest) ProtoReflect

func (x *Manifest) ProtoReflect() protoreflect.Message

func (*Manifest) Reset

func (x *Manifest) Reset()

func (*Manifest) String

func (x *Manifest) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetHandler

func (x *Route) GetHandler() string

func (*Route) GetHttpMethod

func (x *Route) GetHttpMethod() HttpMethod

func (*Route) GetPathSpec

func (x *Route) GetPathSpec() string

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect

func (x *Route) ProtoReflect() protoreflect.Message

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetMajor

func (x *Version) GetMajor() int32

func (*Version) GetMinor

func (x *Version) GetMinor() int32

func (*Version) GetPatch

func (x *Version) GetPatch() int32

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

func (x *Version) ProtoReflect() protoreflect.Message

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL