Documentation ¶
Overview ¶
Package packages defines the RPC interface for the sansshell Packages actions.
Index ¶
- Variables
- func RegisterPackagesServer(s grpc.ServiceRegistrar, srv PackagesServer)
- type InstallManyResponse
- type InstallReply
- type InstallRequest
- func (*InstallRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InstallRequest) GetName() string
- func (x *InstallRequest) GetPackageSystem() PackageSystem
- func (x *InstallRequest) GetRepo() string
- func (x *InstallRequest) GetVersion() string
- func (*InstallRequest) ProtoMessage()
- func (x *InstallRequest) ProtoReflect() protoreflect.Message
- func (x *InstallRequest) Reset()
- func (x *InstallRequest) String() string
- type ListInstalledManyResponse
- type ListInstalledReply
- func (*ListInstalledReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListInstalledReply) GetPackages() []*PackageInfo
- func (*ListInstalledReply) ProtoMessage()
- func (x *ListInstalledReply) ProtoReflect() protoreflect.Message
- func (x *ListInstalledReply) Reset()
- func (x *ListInstalledReply) String() string
- type ListInstalledRequest
- func (*ListInstalledRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListInstalledRequest) GetPackageSystem() PackageSystem
- func (*ListInstalledRequest) ProtoMessage()
- func (x *ListInstalledRequest) ProtoReflect() protoreflect.Message
- func (x *ListInstalledRequest) Reset()
- func (x *ListInstalledRequest) String() string
- type PackageInfo
- func (*PackageInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PackageInfo) GetName() string
- func (x *PackageInfo) GetRepo() string
- func (x *PackageInfo) GetVersion() string
- func (*PackageInfo) ProtoMessage()
- func (x *PackageInfo) ProtoReflect() protoreflect.Message
- func (x *PackageInfo) Reset()
- func (x *PackageInfo) String() string
- type PackageSystem
- func (PackageSystem) Descriptor() protoreflect.EnumDescriptor
- func (x PackageSystem) Enum() *PackageSystem
- func (PackageSystem) EnumDescriptor() ([]byte, []int)deprecated
- func (x PackageSystem) Number() protoreflect.EnumNumber
- func (x PackageSystem) String() string
- func (PackageSystem) Type() protoreflect.EnumType
- type PackagesClient
- type PackagesClientProxy
- type PackagesServer
- type Repo
- func (*Repo) Descriptor() ([]byte, []int)deprecated
- func (x *Repo) GetFilename() string
- func (x *Repo) GetId() string
- func (x *Repo) GetName() string
- func (x *Repo) GetStatus() RepoStatus
- func (x *Repo) GetUrl() string
- func (*Repo) ProtoMessage()
- func (x *Repo) ProtoReflect() protoreflect.Message
- func (x *Repo) Reset()
- func (x *Repo) String() string
- type RepoListManyResponse
- type RepoListReply
- type RepoListRequest
- type RepoStatus
- type UnimplementedPackagesServer
- func (UnimplementedPackagesServer) Install(context.Context, *InstallRequest) (*InstallReply, error)
- func (UnimplementedPackagesServer) ListInstalled(context.Context, *ListInstalledRequest) (*ListInstalledReply, error)
- func (UnimplementedPackagesServer) RepoList(context.Context, *RepoListRequest) (*RepoListReply, error)
- func (UnimplementedPackagesServer) Update(context.Context, *UpdateRequest) (*UpdateReply, error)
- type UnsafePackagesServer
- type UpdateManyResponse
- type UpdateReply
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetName() string
- func (x *UpdateRequest) GetNewVersion() string
- func (x *UpdateRequest) GetOldVersion() string
- func (x *UpdateRequest) GetPackageSystem() PackageSystem
- func (x *UpdateRequest) GetRepo() string
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( PackageSystem_name = map[int32]string{ 0: "PACKAGE_SYSTEM_UNKNOWN", 1: "PACKAGE_SYSTEM_YUM", } PackageSystem_value = map[string]int32{ "PACKAGE_SYSTEM_UNKNOWN": 0, "PACKAGE_SYSTEM_YUM": 1, } )
Enum value maps for PackageSystem.
var ( RepoStatus_name = map[int32]string{ 0: "REPO_STATUS_UNKNOWN", 1: "REPO_STATUS_ENABLED", 2: "REPO_STATUS_DISABLED", } RepoStatus_value = map[string]int32{ "REPO_STATUS_UNKNOWN": 0, "REPO_STATUS_ENABLED": 1, "REPO_STATUS_DISABLED": 2, } )
Enum value maps for RepoStatus.
var File_packages_proto protoreflect.FileDescriptor
var Packages_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Packages.Packages", HandlerType: (*PackagesServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Install", Handler: _Packages_Install_Handler, }, { MethodName: "Update", Handler: _Packages_Update_Handler, }, { MethodName: "ListInstalled", Handler: _Packages_ListInstalled_Handler, }, { MethodName: "RepoList", Handler: _Packages_RepoList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "packages.proto", }
Packages_ServiceDesc is the grpc.ServiceDesc for Packages service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPackagesServer ¶
func RegisterPackagesServer(s grpc.ServiceRegistrar, srv PackagesServer)
Types ¶
type InstallManyResponse ¶
type InstallManyResponse struct { Target string // As targets can be duplicated this is the index into the slice passed to proxy.Conn. Index int Resp *InstallReply Error error }
InstallManyResponse encapsulates a proxy data packet. It includes the target, index, response and possible error returned.
type InstallReply ¶
type InstallReply struct { DebugOutput string `protobuf:"bytes,1,opt,name=debug_output,json=debugOutput,proto3" json:"debug_output,omitempty"` // contains filtered or unexported fields }
func (*InstallReply) Descriptor
deprecated
func (*InstallReply) Descriptor() ([]byte, []int)
Deprecated: Use InstallReply.ProtoReflect.Descriptor instead.
func (*InstallReply) GetDebugOutput ¶
func (x *InstallReply) GetDebugOutput() string
func (*InstallReply) ProtoMessage ¶
func (*InstallReply) ProtoMessage()
func (*InstallReply) ProtoReflect ¶
func (x *InstallReply) ProtoReflect() protoreflect.Message
func (*InstallReply) Reset ¶
func (x *InstallReply) Reset()
func (*InstallReply) String ¶
func (x *InstallReply) String() string
type InstallRequest ¶
type InstallRequest struct { PackageSystem PackageSystem `` /* 129-byte string literal not displayed */ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Version must be the full nevra version if this is YUM: // // i.e. epoch:version.arch Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // If set enables this repo for resolving package/version. Repo string `protobuf:"bytes,4,opt,name=repo,proto3" json:"repo,omitempty"` // contains filtered or unexported fields }
func (*InstallRequest) Descriptor
deprecated
func (*InstallRequest) Descriptor() ([]byte, []int)
Deprecated: Use InstallRequest.ProtoReflect.Descriptor instead.
func (*InstallRequest) GetName ¶
func (x *InstallRequest) GetName() string
func (*InstallRequest) GetPackageSystem ¶
func (x *InstallRequest) GetPackageSystem() PackageSystem
func (*InstallRequest) GetRepo ¶
func (x *InstallRequest) GetRepo() string
func (*InstallRequest) GetVersion ¶
func (x *InstallRequest) GetVersion() string
func (*InstallRequest) ProtoMessage ¶
func (*InstallRequest) ProtoMessage()
func (*InstallRequest) ProtoReflect ¶
func (x *InstallRequest) ProtoReflect() protoreflect.Message
func (*InstallRequest) Reset ¶
func (x *InstallRequest) Reset()
func (*InstallRequest) String ¶
func (x *InstallRequest) String() string
type ListInstalledManyResponse ¶
type ListInstalledManyResponse struct { Target string // As targets can be duplicated this is the index into the slice passed to proxy.Conn. Index int Resp *ListInstalledReply Error error }
ListInstalledManyResponse encapsulates a proxy data packet. It includes the target, index, response and possible error returned.
type ListInstalledReply ¶
type ListInstalledReply struct { Packages []*PackageInfo `protobuf:"bytes,1,rep,name=packages,proto3" json:"packages,omitempty"` // contains filtered or unexported fields }
func (*ListInstalledReply) Descriptor
deprecated
func (*ListInstalledReply) Descriptor() ([]byte, []int)
Deprecated: Use ListInstalledReply.ProtoReflect.Descriptor instead.
func (*ListInstalledReply) GetPackages ¶
func (x *ListInstalledReply) GetPackages() []*PackageInfo
func (*ListInstalledReply) ProtoMessage ¶
func (*ListInstalledReply) ProtoMessage()
func (*ListInstalledReply) ProtoReflect ¶
func (x *ListInstalledReply) ProtoReflect() protoreflect.Message
func (*ListInstalledReply) Reset ¶
func (x *ListInstalledReply) Reset()
func (*ListInstalledReply) String ¶
func (x *ListInstalledReply) String() string
type ListInstalledRequest ¶
type ListInstalledRequest struct { PackageSystem PackageSystem `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ListInstalledRequest) Descriptor
deprecated
func (*ListInstalledRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListInstalledRequest.ProtoReflect.Descriptor instead.
func (*ListInstalledRequest) GetPackageSystem ¶
func (x *ListInstalledRequest) GetPackageSystem() PackageSystem
func (*ListInstalledRequest) ProtoMessage ¶
func (*ListInstalledRequest) ProtoMessage()
func (*ListInstalledRequest) ProtoReflect ¶
func (x *ListInstalledRequest) ProtoReflect() protoreflect.Message
func (*ListInstalledRequest) Reset ¶
func (x *ListInstalledRequest) Reset()
func (*ListInstalledRequest) String ¶
func (x *ListInstalledRequest) String() string
type PackageInfo ¶
type PackageInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Repo string `protobuf:"bytes,3,opt,name=repo,proto3" json:"repo,omitempty"` // contains filtered or unexported fields }
func (*PackageInfo) Descriptor
deprecated
func (*PackageInfo) Descriptor() ([]byte, []int)
Deprecated: Use PackageInfo.ProtoReflect.Descriptor instead.
func (*PackageInfo) GetName ¶
func (x *PackageInfo) GetName() string
func (*PackageInfo) GetRepo ¶
func (x *PackageInfo) GetRepo() string
func (*PackageInfo) GetVersion ¶
func (x *PackageInfo) GetVersion() string
func (*PackageInfo) ProtoMessage ¶
func (*PackageInfo) ProtoMessage()
func (*PackageInfo) ProtoReflect ¶
func (x *PackageInfo) ProtoReflect() protoreflect.Message
func (*PackageInfo) Reset ¶
func (x *PackageInfo) Reset()
func (*PackageInfo) String ¶
func (x *PackageInfo) String() string
type PackageSystem ¶
type PackageSystem int32
Allow different package systems as future proofing.
const ( // The remote side will attempt to pick the appropriate one. PackageSystem_PACKAGE_SYSTEM_UNKNOWN PackageSystem = 0 PackageSystem_PACKAGE_SYSTEM_YUM PackageSystem = 1 )
func (PackageSystem) Descriptor ¶
func (PackageSystem) Descriptor() protoreflect.EnumDescriptor
func (PackageSystem) Enum ¶
func (x PackageSystem) Enum() *PackageSystem
func (PackageSystem) EnumDescriptor
deprecated
func (PackageSystem) EnumDescriptor() ([]byte, []int)
Deprecated: Use PackageSystem.Descriptor instead.
func (PackageSystem) Number ¶
func (x PackageSystem) Number() protoreflect.EnumNumber
func (PackageSystem) String ¶
func (x PackageSystem) String() string
func (PackageSystem) Type ¶
func (PackageSystem) Type() protoreflect.EnumType
type PackagesClient ¶
type PackagesClient interface { Install(ctx context.Context, in *InstallRequest, opts ...grpc.CallOption) (*InstallReply, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateReply, error) ListInstalled(ctx context.Context, in *ListInstalledRequest, opts ...grpc.CallOption) (*ListInstalledReply, error) RepoList(ctx context.Context, in *RepoListRequest, opts ...grpc.CallOption) (*RepoListReply, error) }
PackagesClient is the client API for Packages 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 NewPackagesClient ¶
func NewPackagesClient(cc grpc.ClientConnInterface) PackagesClient
type PackagesClientProxy ¶
type PackagesClientProxy interface { PackagesClient InstallOneMany(ctx context.Context, in *InstallRequest, opts ...grpc.CallOption) (<-chan *InstallManyResponse, error) UpdateOneMany(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (<-chan *UpdateManyResponse, error) ListInstalledOneMany(ctx context.Context, in *ListInstalledRequest, opts ...grpc.CallOption) (<-chan *ListInstalledManyResponse, error) RepoListOneMany(ctx context.Context, in *RepoListRequest, opts ...grpc.CallOption) (<-chan *RepoListManyResponse, error) }
PackagesClientProxy is the superset of PackagesClient which additionally includes the OneMany proxy methods
func NewPackagesClientProxy ¶
func NewPackagesClientProxy(cc *proxy.Conn) PackagesClientProxy
NewPackagesClientProxy creates a PackagesClientProxy for use in proxied connections. NOTE: This takes a proxy.Conn instead of a generic ClientConnInterface as the methods here are only valid in proxy.Conn contexts.
type PackagesServer ¶
type PackagesServer interface { Install(context.Context, *InstallRequest) (*InstallReply, error) Update(context.Context, *UpdateRequest) (*UpdateReply, error) ListInstalled(context.Context, *ListInstalledRequest) (*ListInstalledReply, error) RepoList(context.Context, *RepoListRequest) (*RepoListReply, error) }
PackagesServer is the server API for Packages service. All implementations should embed UnimplementedPackagesServer for forward compatibility
type Repo ¶
type Repo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Status RepoStatus `protobuf:"varint,3,opt,name=status,proto3,enum=Packages.RepoStatus" json:"status,omitempty"` Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"` Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Repo) Descriptor
deprecated
func (*Repo) GetFilename ¶
func (*Repo) GetStatus ¶
func (x *Repo) GetStatus() RepoStatus
func (*Repo) ProtoMessage ¶
func (*Repo) ProtoMessage()
func (*Repo) ProtoReflect ¶
func (x *Repo) ProtoReflect() protoreflect.Message
type RepoListManyResponse ¶
type RepoListManyResponse struct { Target string // As targets can be duplicated this is the index into the slice passed to proxy.Conn. Index int Resp *RepoListReply Error error }
RepoListManyResponse encapsulates a proxy data packet. It includes the target, index, response and possible error returned.
type RepoListReply ¶
type RepoListReply struct { Repos []*Repo `protobuf:"bytes,1,rep,name=repos,proto3" json:"repos,omitempty"` // contains filtered or unexported fields }
func (*RepoListReply) Descriptor
deprecated
func (*RepoListReply) Descriptor() ([]byte, []int)
Deprecated: Use RepoListReply.ProtoReflect.Descriptor instead.
func (*RepoListReply) GetRepos ¶
func (x *RepoListReply) GetRepos() []*Repo
func (*RepoListReply) ProtoMessage ¶
func (*RepoListReply) ProtoMessage()
func (*RepoListReply) ProtoReflect ¶
func (x *RepoListReply) ProtoReflect() protoreflect.Message
func (*RepoListReply) Reset ¶
func (x *RepoListReply) Reset()
func (*RepoListReply) String ¶
func (x *RepoListReply) String() string
type RepoListRequest ¶
type RepoListRequest struct { PackageSystem PackageSystem `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*RepoListRequest) Descriptor
deprecated
func (*RepoListRequest) Descriptor() ([]byte, []int)
Deprecated: Use RepoListRequest.ProtoReflect.Descriptor instead.
func (*RepoListRequest) GetPackageSystem ¶
func (x *RepoListRequest) GetPackageSystem() PackageSystem
func (*RepoListRequest) ProtoMessage ¶
func (*RepoListRequest) ProtoMessage()
func (*RepoListRequest) ProtoReflect ¶
func (x *RepoListRequest) ProtoReflect() protoreflect.Message
func (*RepoListRequest) Reset ¶
func (x *RepoListRequest) Reset()
func (*RepoListRequest) String ¶
func (x *RepoListRequest) String() string
type RepoStatus ¶
type RepoStatus int32
const ( RepoStatus_REPO_STATUS_UNKNOWN RepoStatus = 0 RepoStatus_REPO_STATUS_ENABLED RepoStatus = 1 RepoStatus_REPO_STATUS_DISABLED RepoStatus = 2 )
func (RepoStatus) Descriptor ¶
func (RepoStatus) Descriptor() protoreflect.EnumDescriptor
func (RepoStatus) Enum ¶
func (x RepoStatus) Enum() *RepoStatus
func (RepoStatus) EnumDescriptor
deprecated
func (RepoStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use RepoStatus.Descriptor instead.
func (RepoStatus) Number ¶
func (x RepoStatus) Number() protoreflect.EnumNumber
func (RepoStatus) String ¶
func (x RepoStatus) String() string
func (RepoStatus) Type ¶
func (RepoStatus) Type() protoreflect.EnumType
type UnimplementedPackagesServer ¶
type UnimplementedPackagesServer struct { }
UnimplementedPackagesServer should be embedded to have forward compatible implementations.
func (UnimplementedPackagesServer) Install ¶
func (UnimplementedPackagesServer) Install(context.Context, *InstallRequest) (*InstallReply, error)
func (UnimplementedPackagesServer) ListInstalled ¶
func (UnimplementedPackagesServer) ListInstalled(context.Context, *ListInstalledRequest) (*ListInstalledReply, error)
func (UnimplementedPackagesServer) RepoList ¶
func (UnimplementedPackagesServer) RepoList(context.Context, *RepoListRequest) (*RepoListReply, error)
func (UnimplementedPackagesServer) Update ¶
func (UnimplementedPackagesServer) Update(context.Context, *UpdateRequest) (*UpdateReply, error)
type UnsafePackagesServer ¶
type UnsafePackagesServer interface {
// contains filtered or unexported methods
}
UnsafePackagesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PackagesServer will result in compilation errors.
type UpdateManyResponse ¶
type UpdateManyResponse struct { Target string // As targets can be duplicated this is the index into the slice passed to proxy.Conn. Index int Resp *UpdateReply Error error }
UpdateManyResponse encapsulates a proxy data packet. It includes the target, index, response and possible error returned.
type UpdateReply ¶
type UpdateReply struct { DebugOutput string `protobuf:"bytes,1,opt,name=debug_output,json=debugOutput,proto3" json:"debug_output,omitempty"` // contains filtered or unexported fields }
func (*UpdateReply) Descriptor
deprecated
func (*UpdateReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateReply.ProtoReflect.Descriptor instead.
func (*UpdateReply) GetDebugOutput ¶
func (x *UpdateReply) GetDebugOutput() string
func (*UpdateReply) ProtoMessage ¶
func (*UpdateReply) ProtoMessage()
func (*UpdateReply) ProtoReflect ¶
func (x *UpdateReply) ProtoReflect() protoreflect.Message
func (*UpdateReply) Reset ¶
func (x *UpdateReply) Reset()
func (*UpdateReply) String ¶
func (x *UpdateReply) String() string
type UpdateRequest ¶
type UpdateRequest struct { PackageSystem PackageSystem `` /* 129-byte string literal not displayed */ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // This version must be installed for update to execute. // As with install above for YUM this must be a full nevra version. OldVersion string `protobuf:"bytes,3,opt,name=old_version,json=oldVersion,proto3" json:"old_version,omitempty"` NewVersion string `protobuf:"bytes,4,opt,name=new_version,json=newVersion,proto3" json:"new_version,omitempty"` // If set enables this repo as well for resolving package/version. Repo string `protobuf:"bytes,5,opt,name=repo,proto3" json:"repo,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetName ¶
func (x *UpdateRequest) GetName() string
func (*UpdateRequest) GetNewVersion ¶
func (x *UpdateRequest) GetNewVersion() string
func (*UpdateRequest) GetOldVersion ¶
func (x *UpdateRequest) GetOldVersion() string
func (*UpdateRequest) GetPackageSystem ¶
func (x *UpdateRequest) GetPackageSystem() PackageSystem
func (*UpdateRequest) GetRepo ¶
func (x *UpdateRequest) GetRepo() 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