update

package
v4.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: AGPL-3.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_cells_update_proto protoreflect.FileDescriptor
View Source
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)

View Source
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 DeregisterUpdateServerServiceEnhancedServer

func DeregisterUpdateServerServiceEnhancedServer(s grpc.ServiceRegistrar, name string)

func DeregisterUpdateServiceEnhancedServer

func DeregisterUpdateServiceEnhancedServer(s grpc.ServiceRegistrar, name string)

func RegisterUpdateServerServiceEnhancedServer

func RegisterUpdateServerServiceEnhancedServer(s grpc.ServiceRegistrar, srv NamedUpdateServerServiceServer)

func RegisterUpdateServerServiceServer

func RegisterUpdateServerServiceServer(s grpc.ServiceRegistrar, srv UpdateServerServiceServer)

func RegisterUpdateServiceEnhancedServer

func RegisterUpdateServiceEnhancedServer(s grpc.ServiceRegistrar, srv NamedUpdateServiceServer)

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

func (*ApplyUpdateRequest) Validate

func (this *ApplyUpdateRequest) Validate() error

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

func (*ApplyUpdateResponse) Validate

func (this *ApplyUpdateResponse) Validate() error

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

func (*DeletePackageRequest) Validate

func (this *DeletePackageRequest) Validate() error

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

func (*DeletePackageResponse) Validate

func (this *DeletePackageResponse) Validate() error

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

func (*ListPackagesRequest) Validate

func (this *ListPackagesRequest) Validate() error

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

func (*ListPackagesResponse) Validate

func (this *ListPackagesResponse) Validate() error

type NamedUpdateServerServiceServer

type NamedUpdateServerServiceServer interface {
	UpdateServerServiceServer
	Name() string
}

type NamedUpdateServiceServer

type NamedUpdateServiceServer interface {
	UpdateServiceServer
	Name() 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) Descriptor() ([]byte, []int)

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetBinaryArch

func (x *Package) GetBinaryArch() string

func (*Package) GetBinaryChecksum

func (x *Package) GetBinaryChecksum() string

func (*Package) GetBinaryHashType

func (x *Package) GetBinaryHashType() string

func (*Package) GetBinaryOS

func (x *Package) GetBinaryOS() string

func (*Package) GetBinarySignature

func (x *Package) GetBinarySignature() string

func (*Package) GetBinarySize

func (x *Package) GetBinarySize() int64

func (*Package) GetBinaryURL

func (x *Package) GetBinaryURL() string

func (*Package) GetChangeLog

func (x *Package) GetChangeLog() string

func (*Package) GetDescription

func (x *Package) GetDescription() string

func (*Package) GetIsPatch

func (x *Package) GetIsPatch() bool

func (*Package) GetLabel

func (x *Package) GetLabel() string

func (*Package) GetLicense

func (x *Package) GetLicense() string

func (*Package) GetPackageName

func (x *Package) GetPackageName() string

func (*Package) GetPatchAlgorithm

func (x *Package) GetPatchAlgorithm() string

func (*Package) GetReleaseDate

func (x *Package) GetReleaseDate() int32

func (*Package) GetServiceName

func (x *Package) GetServiceName() string

func (*Package) GetStatus

func (x *Package) GetStatus() Package_PackageStatus

func (*Package) GetVersion

func (x *Package) GetVersion() string

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) ProtoReflect

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

func (*Package) Reset

func (x *Package) Reset()

func (*Package) String

func (x *Package) String() string

func (*Package) Validate

func (this *Package) Validate() error

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) Enum

func (Package_PackageStatus) EnumDescriptor deprecated

func (Package_PackageStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use Package_PackageStatus.Descriptor instead.

func (Package_PackageStatus) Number

func (Package_PackageStatus) String

func (x Package_PackageStatus) String() string

func (Package_PackageStatus) Type

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

func (*PublishPackageRequest) Validate

func (this *PublishPackageRequest) Validate() error

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

func (*PublishPackageResponse) Validate

func (this *PublishPackageResponse) Validate() error

type UnimplementedUpdateServerServiceServer

type UnimplementedUpdateServerServiceServer struct {
}

UnimplementedUpdateServerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUpdateServerServiceServer) CheckForUpdate

func (UnimplementedUpdateServerServiceServer) DeletePackage

func (UnimplementedUpdateServerServiceServer) ListPackages

func (UnimplementedUpdateServerServiceServer) PublishPackage

type UnimplementedUpdateServiceServer

type UnimplementedUpdateServiceServer struct {
}

UnimplementedUpdateServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUpdateServiceServer) ApplyUpdate

func (UnimplementedUpdateServiceServer) UpdateRequired

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

func (*UpdateRequest) Validate

func (this *UpdateRequest) Validate() error

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

func (*UpdateResponse) Validate

func (this *UpdateResponse) Validate() error

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.

type UpdateServerServiceEnhancedServer

type UpdateServerServiceEnhancedServer map[string]NamedUpdateServerServiceServer

func (UpdateServerServiceEnhancedServer) CheckForUpdate

func (UpdateServerServiceEnhancedServer) DeletePackage

func (UpdateServerServiceEnhancedServer) ListPackages

func (UpdateServerServiceEnhancedServer) PublishPackage

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.

type UpdateServiceEnhancedServer

type UpdateServiceEnhancedServer map[string]NamedUpdateServiceServer

func (UpdateServiceEnhancedServer) ApplyUpdate

func (UpdateServiceEnhancedServer) UpdateRequired

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

Jump to

Keyboard shortcuts

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