Documentation ¶
Index ¶
- Variables
- func RegisterUpdateServerServiceServer(s grpc.ServiceRegistrar, srv UpdateServerServiceServer)
- func RegisterUpdateServiceServer(s grpc.ServiceRegistrar, srv UpdateServiceServer)
- type ApplyUpdateRequest
- func (*ApplyUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyUpdateRequest) GetPackageName() string
- func (x *ApplyUpdateRequest) GetTargetVersion() string
- func (*ApplyUpdateRequest) ProtoMessage()
- func (x *ApplyUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *ApplyUpdateRequest) Reset()
- func (x *ApplyUpdateRequest) String() string
- type ApplyUpdateResponse
- func (*ApplyUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyUpdateResponse) GetMessage() string
- func (x *ApplyUpdateResponse) GetSuccess() bool
- func (*ApplyUpdateResponse) ProtoMessage()
- func (x *ApplyUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *ApplyUpdateResponse) Reset()
- func (x *ApplyUpdateResponse) String() string
- type DeletePackageRequest
- func (*DeletePackageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePackageRequest) GetBinaryArch() string
- func (x *DeletePackageRequest) GetBinaryOS() string
- func (x *DeletePackageRequest) GetChannel() string
- func (x *DeletePackageRequest) GetPackageName() string
- func (x *DeletePackageRequest) GetVersion() string
- func (*DeletePackageRequest) ProtoMessage()
- func (x *DeletePackageRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePackageRequest) Reset()
- func (x *DeletePackageRequest) String() string
- type DeletePackageResponse
- func (*DeletePackageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePackageResponse) GetSuccess() bool
- func (*DeletePackageResponse) ProtoMessage()
- func (x *DeletePackageResponse) ProtoReflect() protoreflect.Message
- func (x *DeletePackageResponse) Reset()
- func (x *DeletePackageResponse) String() string
- type ListPackagesRequest
- func (*ListPackagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPackagesRequest) GetChannel() string
- func (x *ListPackagesRequest) GetPackageName() string
- func (*ListPackagesRequest) ProtoMessage()
- func (x *ListPackagesRequest) ProtoReflect() protoreflect.Message
- func (x *ListPackagesRequest) Reset()
- func (x *ListPackagesRequest) String() string
- type ListPackagesResponse
- func (*ListPackagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPackagesResponse) GetPackages() []*Package
- func (*ListPackagesResponse) ProtoMessage()
- func (x *ListPackagesResponse) ProtoReflect() protoreflect.Message
- func (x *ListPackagesResponse) Reset()
- func (x *ListPackagesResponse) String() string
- type Package
- func (*Package) Descriptor() ([]byte, []int)deprecated
- func (x *Package) GetBinaryArch() string
- func (x *Package) GetBinaryChecksum() string
- func (x *Package) GetBinaryHashType() string
- func (x *Package) GetBinaryOS() string
- func (x *Package) GetBinarySignature() string
- func (x *Package) GetBinarySize() int64
- func (x *Package) GetBinaryURL() string
- func (x *Package) GetChangeLog() string
- func (x *Package) GetDescription() string
- func (x *Package) GetIsPatch() bool
- func (x *Package) GetLabel() string
- func (x *Package) GetLicense() string
- func (x *Package) GetPackageName() string
- func (x *Package) GetPatchAlgorithm() string
- func (x *Package) GetReleaseDate() int32
- func (x *Package) GetServiceName() string
- func (x *Package) GetStatus() Package_PackageStatus
- func (x *Package) GetVersion() string
- func (*Package) ProtoMessage()
- func (x *Package) ProtoReflect() protoreflect.Message
- func (x *Package) Reset()
- func (x *Package) String() string
- type Package_PackageStatus
- func (Package_PackageStatus) Descriptor() protoreflect.EnumDescriptor
- func (x Package_PackageStatus) Enum() *Package_PackageStatus
- func (Package_PackageStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x Package_PackageStatus) Number() protoreflect.EnumNumber
- func (x Package_PackageStatus) String() string
- func (Package_PackageStatus) Type() protoreflect.EnumType
- type PublishPackageRequest
- func (*PublishPackageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishPackageRequest) GetChannel() string
- func (x *PublishPackageRequest) GetNode() *tree.Node
- func (x *PublishPackageRequest) GetPackage() *Package
- func (*PublishPackageRequest) ProtoMessage()
- func (x *PublishPackageRequest) ProtoReflect() protoreflect.Message
- func (x *PublishPackageRequest) Reset()
- func (x *PublishPackageRequest) String() string
- type PublishPackageResponse
- func (*PublishPackageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PublishPackageResponse) GetPackage() *Package
- func (x *PublishPackageResponse) GetSuccess() bool
- func (*PublishPackageResponse) ProtoMessage()
- func (x *PublishPackageResponse) ProtoReflect() protoreflect.Message
- func (x *PublishPackageResponse) Reset()
- func (x *PublishPackageResponse) String() string
- type UnimplementedUpdateServerServiceServer
- func (UnimplementedUpdateServerServiceServer) CheckForUpdate(context.Context, *UpdateRequest) (*UpdateResponse, error)
- func (UnimplementedUpdateServerServiceServer) DeletePackage(context.Context, *DeletePackageRequest) (*DeletePackageResponse, error)
- func (UnimplementedUpdateServerServiceServer) ListPackages(context.Context, *ListPackagesRequest) (*ListPackagesResponse, error)
- func (UnimplementedUpdateServerServiceServer) PublishPackage(context.Context, *PublishPackageRequest) (*PublishPackageResponse, error)
- type UnimplementedUpdateServiceServer
- type UnsafeUpdateServerServiceServer
- type UnsafeUpdateServiceServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetChannel() string
- func (x *UpdateRequest) GetCurrentVersion() string
- func (x *UpdateRequest) GetGOARCH() string
- func (x *UpdateRequest) GetGOOS() string
- func (x *UpdateRequest) GetLicenseInfo() map[string]string
- func (x *UpdateRequest) GetPackageName() string
- func (x *UpdateRequest) GetServiceName() string
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateResponse) GetAvailableBinaries() []*Package
- func (x *UpdateResponse) GetChannel() string
- func (*UpdateResponse) ProtoMessage()
- func (x *UpdateResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateResponse) Reset()
- func (x *UpdateResponse) String() string
- type UpdateServerServiceClient
- type UpdateServerServiceServer
- type UpdateServiceClient
- type UpdateServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Package_PackageStatus_name = map[int32]string{ 0: "Draft", 1: "Pending", 2: "Released", } Package_PackageStatus_value = map[string]int32{ "Draft": 0, "Pending": 1, "Released": 2, } )
Enum value maps for Package_PackageStatus.
var File_cells_update_proto protoreflect.FileDescriptor
var UpdateServerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "update.UpdateServerService", HandlerType: (*UpdateServerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CheckForUpdate", Handler: _UpdateServerService_CheckForUpdate_Handler, }, { MethodName: "PublishPackage", Handler: _UpdateServerService_PublishPackage_Handler, }, { MethodName: "ListPackages", Handler: _UpdateServerService_ListPackages_Handler, }, { MethodName: "DeletePackage", Handler: _UpdateServerService_DeletePackage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cells-update.proto", }
UpdateServerService_ServiceDesc is the grpc.ServiceDesc for UpdateServerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UpdateService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "update.UpdateService", HandlerType: (*UpdateServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateRequired", Handler: _UpdateService_UpdateRequired_Handler, }, { MethodName: "ApplyUpdate", Handler: _UpdateService_ApplyUpdate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cells-update.proto", }
UpdateService_ServiceDesc is the grpc.ServiceDesc for UpdateService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUpdateServerServiceServer ¶
func RegisterUpdateServerServiceServer(s grpc.ServiceRegistrar, srv UpdateServerServiceServer)
func RegisterUpdateServiceServer ¶
func RegisterUpdateServiceServer(s grpc.ServiceRegistrar, srv UpdateServiceServer)
Types ¶
type ApplyUpdateRequest ¶
type ApplyUpdateRequest struct { // Version of the target binary TargetVersion string `protobuf:"bytes,1,opt,name=TargetVersion,proto3" json:"TargetVersion,omitempty"` // Name of the package if it's not the same as the current binary PackageName string `protobuf:"bytes,2,opt,name=PackageName,proto3" json:"PackageName,omitempty"` // contains filtered or unexported fields }
func (*ApplyUpdateRequest) Descriptor
deprecated
func (*ApplyUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplyUpdateRequest.ProtoReflect.Descriptor instead.
func (*ApplyUpdateRequest) GetPackageName ¶
func (x *ApplyUpdateRequest) GetPackageName() string
func (*ApplyUpdateRequest) GetTargetVersion ¶
func (x *ApplyUpdateRequest) GetTargetVersion() string
func (*ApplyUpdateRequest) ProtoMessage ¶
func (*ApplyUpdateRequest) ProtoMessage()
func (*ApplyUpdateRequest) ProtoReflect ¶
func (x *ApplyUpdateRequest) ProtoReflect() protoreflect.Message
func (*ApplyUpdateRequest) Reset ¶
func (x *ApplyUpdateRequest) Reset()
func (*ApplyUpdateRequest) String ¶
func (x *ApplyUpdateRequest) String() string
type ApplyUpdateResponse ¶
type ApplyUpdateResponse struct { Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*ApplyUpdateResponse) Descriptor
deprecated
func (*ApplyUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApplyUpdateResponse.ProtoReflect.Descriptor instead.
func (*ApplyUpdateResponse) GetMessage ¶
func (x *ApplyUpdateResponse) GetMessage() string
func (*ApplyUpdateResponse) GetSuccess ¶
func (x *ApplyUpdateResponse) GetSuccess() bool
func (*ApplyUpdateResponse) ProtoMessage ¶
func (*ApplyUpdateResponse) ProtoMessage()
func (*ApplyUpdateResponse) ProtoReflect ¶
func (x *ApplyUpdateResponse) ProtoReflect() protoreflect.Message
func (*ApplyUpdateResponse) Reset ¶
func (x *ApplyUpdateResponse) Reset()
func (*ApplyUpdateResponse) String ¶
func (x *ApplyUpdateResponse) String() string
type DeletePackageRequest ¶
type DeletePackageRequest struct { Channel string `protobuf:"bytes,1,opt,name=Channel,proto3" json:"Channel,omitempty"` PackageName string `protobuf:"bytes,2,opt,name=PackageName,proto3" json:"PackageName,omitempty"` Version string `protobuf:"bytes,3,opt,name=Version,proto3" json:"Version,omitempty"` BinaryOS string `protobuf:"bytes,4,opt,name=BinaryOS,proto3" json:"BinaryOS,omitempty"` BinaryArch string `protobuf:"bytes,5,opt,name=BinaryArch,proto3" json:"BinaryArch,omitempty"` // contains filtered or unexported fields }
func (*DeletePackageRequest) Descriptor
deprecated
func (*DeletePackageRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePackageRequest.ProtoReflect.Descriptor instead.
func (*DeletePackageRequest) GetBinaryArch ¶
func (x *DeletePackageRequest) GetBinaryArch() string
func (*DeletePackageRequest) GetBinaryOS ¶
func (x *DeletePackageRequest) GetBinaryOS() string
func (*DeletePackageRequest) GetChannel ¶
func (x *DeletePackageRequest) GetChannel() string
func (*DeletePackageRequest) GetPackageName ¶
func (x *DeletePackageRequest) GetPackageName() string
func (*DeletePackageRequest) GetVersion ¶
func (x *DeletePackageRequest) GetVersion() string
func (*DeletePackageRequest) ProtoMessage ¶
func (*DeletePackageRequest) ProtoMessage()
func (*DeletePackageRequest) ProtoReflect ¶
func (x *DeletePackageRequest) ProtoReflect() protoreflect.Message
func (*DeletePackageRequest) Reset ¶
func (x *DeletePackageRequest) Reset()
func (*DeletePackageRequest) String ¶
func (x *DeletePackageRequest) String() string
type DeletePackageResponse ¶
type DeletePackageResponse struct { Success bool `protobuf:"varint,2,opt,name=Success,proto3" json:"Success,omitempty"` // contains filtered or unexported fields }
func (*DeletePackageResponse) Descriptor
deprecated
func (*DeletePackageResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeletePackageResponse.ProtoReflect.Descriptor instead.
func (*DeletePackageResponse) GetSuccess ¶
func (x *DeletePackageResponse) GetSuccess() bool
func (*DeletePackageResponse) ProtoMessage ¶
func (*DeletePackageResponse) ProtoMessage()
func (*DeletePackageResponse) ProtoReflect ¶
func (x *DeletePackageResponse) ProtoReflect() protoreflect.Message
func (*DeletePackageResponse) Reset ¶
func (x *DeletePackageResponse) Reset()
func (*DeletePackageResponse) String ¶
func (x *DeletePackageResponse) String() string
type ListPackagesRequest ¶
type ListPackagesRequest struct { Channel string `protobuf:"bytes,1,opt,name=Channel,proto3" json:"Channel,omitempty"` PackageName string `protobuf:"bytes,2,opt,name=PackageName,proto3" json:"PackageName,omitempty"` // contains filtered or unexported fields }
func (*ListPackagesRequest) Descriptor
deprecated
func (*ListPackagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPackagesRequest.ProtoReflect.Descriptor instead.
func (*ListPackagesRequest) GetChannel ¶
func (x *ListPackagesRequest) GetChannel() string
func (*ListPackagesRequest) GetPackageName ¶
func (x *ListPackagesRequest) GetPackageName() string
func (*ListPackagesRequest) ProtoMessage ¶
func (*ListPackagesRequest) ProtoMessage()
func (*ListPackagesRequest) ProtoReflect ¶
func (x *ListPackagesRequest) ProtoReflect() protoreflect.Message
func (*ListPackagesRequest) Reset ¶
func (x *ListPackagesRequest) Reset()
func (*ListPackagesRequest) String ¶
func (x *ListPackagesRequest) String() string
type ListPackagesResponse ¶
type ListPackagesResponse struct { Packages []*Package `protobuf:"bytes,1,rep,name=Packages,proto3" json:"Packages,omitempty"` // contains filtered or unexported fields }
func (*ListPackagesResponse) Descriptor
deprecated
func (*ListPackagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPackagesResponse.ProtoReflect.Descriptor instead.
func (*ListPackagesResponse) GetPackages ¶
func (x *ListPackagesResponse) GetPackages() []*Package
func (*ListPackagesResponse) ProtoMessage ¶
func (*ListPackagesResponse) ProtoMessage()
func (*ListPackagesResponse) ProtoReflect ¶
func (x *ListPackagesResponse) ProtoReflect() protoreflect.Message
func (*ListPackagesResponse) Reset ¶
func (x *ListPackagesResponse) Reset()
func (*ListPackagesResponse) String ¶
func (x *ListPackagesResponse) String() string
type Package ¶
type Package struct { // Name of the application PackageName string `protobuf:"bytes,1,opt,name=PackageName,proto3" json:"PackageName,omitempty"` // Version of this new binary Version string `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"` // Release date of the binary ReleaseDate int32 `protobuf:"varint,3,opt,name=ReleaseDate,proto3" json:"ReleaseDate,omitempty"` // Short human-readable description Label string `protobuf:"bytes,4,opt,name=Label,proto3" json:"Label,omitempty"` // Long human-readable description (markdown) Description string `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"` // List or public URL of change logs ChangeLog string `protobuf:"bytes,6,opt,name=ChangeLog,proto3" json:"ChangeLog,omitempty"` // License of this package License string `protobuf:"bytes,16,opt,name=License,proto3" json:"License,omitempty"` // Https URL where to download the binary BinaryURL string `protobuf:"bytes,7,opt,name=BinaryURL,proto3" json:"BinaryURL,omitempty"` // Checksum of the binary to verify its integrity BinaryChecksum string `protobuf:"bytes,8,opt,name=BinaryChecksum,proto3" json:"BinaryChecksum,omitempty"` // Signature of the binary BinarySignature string `protobuf:"bytes,9,opt,name=BinarySignature,proto3" json:"BinarySignature,omitempty"` // Hash type used for the signature BinaryHashType string `protobuf:"bytes,10,opt,name=BinaryHashType,proto3" json:"BinaryHashType,omitempty"` // Size of the binary to download BinarySize int64 `protobuf:"varint,15,opt,name=BinarySize,proto3" json:"BinarySize,omitempty"` // GOOS value used at build time BinaryOS string `protobuf:"bytes,17,opt,name=BinaryOS,proto3" json:"BinaryOS,omitempty"` // GOARCH value used at build time BinaryArch string `protobuf:"bytes,18,opt,name=BinaryArch,proto3" json:"BinaryArch,omitempty"` // Not used : if binary is a patch IsPatch bool `protobuf:"varint,11,opt,name=IsPatch,proto3" json:"IsPatch,omitempty"` // Not used : if a patch, how to patch (bsdiff support) PatchAlgorithm string `protobuf:"bytes,12,opt,name=PatchAlgorithm,proto3" json:"PatchAlgorithm,omitempty"` // Not used : at a point we may deliver services only updates ServiceName string `protobuf:"bytes,13,opt,name=ServiceName,proto3" json:"ServiceName,omitempty"` Status Package_PackageStatus `protobuf:"varint,14,opt,name=Status,proto3,enum=update.Package_PackageStatus" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*Package) Descriptor
deprecated
func (*Package) GetBinaryArch ¶
func (*Package) GetBinaryChecksum ¶
func (*Package) GetBinaryHashType ¶
func (*Package) GetBinaryOS ¶
func (*Package) GetBinarySignature ¶
func (*Package) GetBinarySize ¶
func (*Package) GetBinaryURL ¶
func (*Package) GetChangeLog ¶
func (*Package) GetDescription ¶
func (*Package) GetIsPatch ¶
func (*Package) GetLicense ¶
func (*Package) GetPackageName ¶
func (*Package) GetPatchAlgorithm ¶
func (*Package) GetReleaseDate ¶
func (*Package) GetServiceName ¶
func (*Package) GetStatus ¶
func (x *Package) GetStatus() Package_PackageStatus
func (*Package) GetVersion ¶
func (*Package) ProtoMessage ¶
func (*Package) ProtoMessage()
func (*Package) ProtoReflect ¶
func (x *Package) ProtoReflect() protoreflect.Message
type Package_PackageStatus ¶
type Package_PackageStatus int32
const ( Package_Draft Package_PackageStatus = 0 Package_Pending Package_PackageStatus = 1 Package_Released Package_PackageStatus = 2 )
func (Package_PackageStatus) Descriptor ¶
func (Package_PackageStatus) Descriptor() protoreflect.EnumDescriptor
func (Package_PackageStatus) Enum ¶
func (x Package_PackageStatus) Enum() *Package_PackageStatus
func (Package_PackageStatus) EnumDescriptor
deprecated
func (Package_PackageStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use Package_PackageStatus.Descriptor instead.
func (Package_PackageStatus) Number ¶
func (x Package_PackageStatus) Number() protoreflect.EnumNumber
func (Package_PackageStatus) String ¶
func (x Package_PackageStatus) String() string
func (Package_PackageStatus) Type ¶
func (Package_PackageStatus) Type() protoreflect.EnumType
type PublishPackageRequest ¶
type PublishPackageRequest struct { Channel string `protobuf:"bytes,1,opt,name=Channel,proto3" json:"Channel,omitempty"` Package *Package `protobuf:"bytes,2,opt,name=Package,proto3" json:"Package,omitempty"` // Used internally to map to an existing file Node *tree.Node `protobuf:"bytes,3,opt,name=Node,proto3" json:"Node,omitempty"` // contains filtered or unexported fields }
func (*PublishPackageRequest) Descriptor
deprecated
func (*PublishPackageRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublishPackageRequest.ProtoReflect.Descriptor instead.
func (*PublishPackageRequest) GetChannel ¶
func (x *PublishPackageRequest) GetChannel() string
func (*PublishPackageRequest) GetNode ¶
func (x *PublishPackageRequest) GetNode() *tree.Node
func (*PublishPackageRequest) GetPackage ¶
func (x *PublishPackageRequest) GetPackage() *Package
func (*PublishPackageRequest) ProtoMessage ¶
func (*PublishPackageRequest) ProtoMessage()
func (*PublishPackageRequest) ProtoReflect ¶
func (x *PublishPackageRequest) ProtoReflect() protoreflect.Message
func (*PublishPackageRequest) Reset ¶
func (x *PublishPackageRequest) Reset()
func (*PublishPackageRequest) String ¶
func (x *PublishPackageRequest) String() string
type PublishPackageResponse ¶
type PublishPackageResponse struct { Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"` Package *Package `protobuf:"bytes,2,opt,name=Package,proto3" json:"Package,omitempty"` // contains filtered or unexported fields }
func (*PublishPackageResponse) Descriptor
deprecated
func (*PublishPackageResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublishPackageResponse.ProtoReflect.Descriptor instead.
func (*PublishPackageResponse) GetPackage ¶
func (x *PublishPackageResponse) GetPackage() *Package
func (*PublishPackageResponse) GetSuccess ¶
func (x *PublishPackageResponse) GetSuccess() bool
func (*PublishPackageResponse) ProtoMessage ¶
func (*PublishPackageResponse) ProtoMessage()
func (*PublishPackageResponse) ProtoReflect ¶
func (x *PublishPackageResponse) ProtoReflect() protoreflect.Message
func (*PublishPackageResponse) Reset ¶
func (x *PublishPackageResponse) Reset()
func (*PublishPackageResponse) String ¶
func (x *PublishPackageResponse) String() string
type UnimplementedUpdateServerServiceServer ¶
type UnimplementedUpdateServerServiceServer struct { }
UnimplementedUpdateServerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUpdateServerServiceServer) CheckForUpdate ¶
func (UnimplementedUpdateServerServiceServer) CheckForUpdate(context.Context, *UpdateRequest) (*UpdateResponse, error)
func (UnimplementedUpdateServerServiceServer) DeletePackage ¶
func (UnimplementedUpdateServerServiceServer) DeletePackage(context.Context, *DeletePackageRequest) (*DeletePackageResponse, error)
func (UnimplementedUpdateServerServiceServer) ListPackages ¶
func (UnimplementedUpdateServerServiceServer) ListPackages(context.Context, *ListPackagesRequest) (*ListPackagesResponse, error)
func (UnimplementedUpdateServerServiceServer) PublishPackage ¶
func (UnimplementedUpdateServerServiceServer) PublishPackage(context.Context, *PublishPackageRequest) (*PublishPackageResponse, error)
type UnimplementedUpdateServiceServer ¶
type UnimplementedUpdateServiceServer struct { }
UnimplementedUpdateServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUpdateServiceServer) ApplyUpdate ¶
func (UnimplementedUpdateServiceServer) ApplyUpdate(context.Context, *ApplyUpdateRequest) (*ApplyUpdateResponse, error)
func (UnimplementedUpdateServiceServer) UpdateRequired ¶
func (UnimplementedUpdateServiceServer) UpdateRequired(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeUpdateServerServiceServer ¶
type UnsafeUpdateServerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUpdateServerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UpdateServerServiceServer will result in compilation errors.
type UnsafeUpdateServiceServer ¶
type UnsafeUpdateServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUpdateServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UpdateServiceServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct { // Channel name Channel string `protobuf:"bytes,1,opt,name=Channel,proto3" json:"Channel,omitempty"` // Name of the currently running application PackageName string `protobuf:"bytes,2,opt,name=PackageName,proto3" json:"PackageName,omitempty"` // Current version of the application CurrentVersion string `protobuf:"bytes,3,opt,name=CurrentVersion,proto3" json:"CurrentVersion,omitempty"` // Current GOOS GOOS string `protobuf:"bytes,4,opt,name=GOOS,proto3" json:"GOOS,omitempty"` // Current GOARCH GOARCH string `protobuf:"bytes,5,opt,name=GOARCH,proto3" json:"GOARCH,omitempty"` // Not Used : specific service to get updates for ServiceName string `protobuf:"bytes,6,opt,name=ServiceName,proto3" json:"ServiceName,omitempty"` // For enterprise version, info about the current license LicenseInfo map[string]string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetChannel ¶
func (x *UpdateRequest) GetChannel() string
func (*UpdateRequest) GetCurrentVersion ¶
func (x *UpdateRequest) GetCurrentVersion() string
func (*UpdateRequest) GetGOARCH ¶
func (x *UpdateRequest) GetGOARCH() string
func (*UpdateRequest) GetGOOS ¶
func (x *UpdateRequest) GetGOOS() string
func (*UpdateRequest) GetLicenseInfo ¶
func (x *UpdateRequest) GetLicenseInfo() map[string]string
func (*UpdateRequest) GetPackageName ¶
func (x *UpdateRequest) GetPackageName() string
func (*UpdateRequest) GetServiceName ¶
func (x *UpdateRequest) GetServiceName() string
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct { Channel string `protobuf:"bytes,1,opt,name=Channel,proto3" json:"Channel,omitempty"` // List of available binaries AvailableBinaries []*Package `protobuf:"bytes,2,rep,name=AvailableBinaries,proto3" json:"AvailableBinaries,omitempty"` // contains filtered or unexported fields }
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) GetAvailableBinaries ¶
func (x *UpdateResponse) GetAvailableBinaries() []*Package
func (*UpdateResponse) GetChannel ¶
func (x *UpdateResponse) GetChannel() string
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string
type UpdateServerServiceClient ¶
type UpdateServerServiceClient interface { // Ask the update server if there are any available updates CheckForUpdate(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) PublishPackage(ctx context.Context, in *PublishPackageRequest, opts ...grpc.CallOption) (*PublishPackageResponse, error) ListPackages(ctx context.Context, in *ListPackagesRequest, opts ...grpc.CallOption) (*ListPackagesResponse, error) DeletePackage(ctx context.Context, in *DeletePackageRequest, opts ...grpc.CallOption) (*DeletePackageResponse, error) }
UpdateServerServiceClient is the client API for UpdateServerService 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 NewUpdateServerServiceClient ¶
func NewUpdateServerServiceClient(cc grpc.ClientConnInterface) UpdateServerServiceClient
type UpdateServerServiceServer ¶
type UpdateServerServiceServer interface { // Ask the update server if there are any available updates CheckForUpdate(context.Context, *UpdateRequest) (*UpdateResponse, error) PublishPackage(context.Context, *PublishPackageRequest) (*PublishPackageResponse, error) ListPackages(context.Context, *ListPackagesRequest) (*ListPackagesResponse, error) DeletePackage(context.Context, *DeletePackageRequest) (*DeletePackageResponse, error) // contains filtered or unexported methods }
UpdateServerServiceServer is the server API for UpdateServerService service. All implementations must embed UnimplementedUpdateServerServiceServer for forward compatibility
type UpdateServiceClient ¶
type UpdateServiceClient interface { UpdateRequired(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) ApplyUpdate(ctx context.Context, in *ApplyUpdateRequest, opts ...grpc.CallOption) (*ApplyUpdateResponse, error) }
UpdateServiceClient is the client API for UpdateService 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 NewUpdateServiceClient ¶
func NewUpdateServiceClient(cc grpc.ClientConnInterface) UpdateServiceClient
type UpdateServiceServer ¶
type UpdateServiceServer interface { UpdateRequired(context.Context, *UpdateRequest) (*UpdateResponse, error) ApplyUpdate(context.Context, *ApplyUpdateRequest) (*ApplyUpdateResponse, error) // contains filtered or unexported methods }
UpdateServiceServer is the server API for UpdateService service. All implementations must embed UnimplementedUpdateServiceServer for forward compatibility