version

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_version_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "falco.version.service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "version",
			Handler:    _Service_Version_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "version.proto",
}

Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type Request

type Request struct {
	// contains filtered or unexported fields
}

The `request` message is an empty one.

func (*Request) Descriptor deprecated

func (*Request) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect added in v0.3.0

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {

	// falco version
	Version    string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Major      uint32 `protobuf:"varint,2,opt,name=major,proto3" json:"major,omitempty"`
	Minor      uint32 `protobuf:"varint,3,opt,name=minor,proto3" json:"minor,omitempty"`
	Patch      uint32 `protobuf:"varint,4,opt,name=patch,proto3" json:"patch,omitempty"`
	Prerelease string `protobuf:"bytes,5,opt,name=prerelease,proto3" json:"prerelease,omitempty"`
	Build      string `protobuf:"bytes,6,opt,name=build,proto3" json:"build,omitempty"`
	// falco engine version
	EngineVersion        uint32 `protobuf:"varint,7,opt,name=engine_version,json=engineVersion,proto3" json:"engine_version,omitempty"`
	EngineFieldsChecksum string `protobuf:"bytes,8,opt,name=engine_fields_checksum,json=engineFieldsChecksum,proto3" json:"engine_fields_checksum,omitempty"`
	// contains filtered or unexported fields
}

The `response` message contains the version of Falco. It provides the whole version as a string and also its parts as per semver 2.0 specification (https://semver.org).

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetBuild

func (x *Response) GetBuild() string

func (*Response) GetEngineFieldsChecksum added in v0.3.0

func (x *Response) GetEngineFieldsChecksum() string

func (*Response) GetEngineVersion added in v0.3.0

func (x *Response) GetEngineVersion() uint32

func (*Response) GetMajor

func (x *Response) GetMajor() uint32

func (*Response) GetMinor

func (x *Response) GetMinor() uint32

func (*Response) GetPatch

func (x *Response) GetPatch() uint32

func (*Response) GetPrerelease

func (x *Response) GetPrerelease() string

func (*Response) GetVersion

func (x *Response) GetVersion() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect added in v0.3.0

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type ServiceClient

type ServiceClient interface {
	Version(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

ServiceClient is the client API for Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

type ServiceServer interface {
	Version(context.Context, *Request) (*Response, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) Version

type UnsafeServiceServer added in v0.4.0

type UnsafeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.

Directories

Path Synopsis
Package mock_version is a generated GoMock package.
Package mock_version is a generated GoMock package.

Jump to

Keyboard shortcuts

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