packages

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package packages defines the RPC interface for the sansshell Packages actions.

Index

Constants

View Source
const (
	Packages_Install_FullMethodName       = "/Packages.Packages/Install"
	Packages_Remove_FullMethodName        = "/Packages.Packages/Remove"
	Packages_Update_FullMethodName        = "/Packages.Packages/Update"
	Packages_Search_FullMethodName        = "/Packages.Packages/Search"
	Packages_ListInstalled_FullMethodName = "/Packages.Packages/ListInstalled"
	Packages_RepoList_FullMethodName      = "/Packages.Packages/RepoList"
	Packages_Cleanup_FullMethodName       = "/Packages.Packages/Cleanup"
)

Variables

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

View Source
var (
	RebootRequired_name = map[int32]string{
		0: "REBOOT_REQUIRED_UNKNOWN",
		1: "REBOOT_REQUIRED_YES",
		2: "REBOOT_REQUIRED_NO",
	}
	RebootRequired_value = map[string]int32{
		"REBOOT_REQUIRED_UNKNOWN": 0,
		"REBOOT_REQUIRED_YES":     1,
		"REBOOT_REQUIRED_NO":      2,
	}
)

Enum value maps for RebootRequired.

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

View Source
var File_packages_proto protoreflect.FileDescriptor
View Source
var Packages_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Packages.Packages",
	HandlerType: (*PackagesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Install",
			Handler:    _Packages_Install_Handler,
		},
		{
			MethodName: "Remove",
			Handler:    _Packages_Remove_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Packages_Update_Handler,
		},
		{
			MethodName: "Search",
			Handler:    _Packages_Search_Handler,
		},
		{
			MethodName: "ListInstalled",
			Handler:    _Packages_ListInstalled_Handler,
		},
		{
			MethodName: "RepoList",
			Handler:    _Packages_RepoList_Handler,
		},
		{
			MethodName: "Cleanup",
			Handler:    _Packages_Cleanup_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 CleanupManyResponse added in v1.16.0

type CleanupManyResponse struct {
	Target string
	// As targets can be duplicated this is the index into the slice passed to proxy.Conn.
	Index int
	Resp  *CleanupResponse
	Error error
}

CleanupManyResponse encapsulates a proxy data packet. It includes the target, index, response and possible error returned.

type CleanupRequest added in v1.16.0

type CleanupRequest struct {
	PackageSystem PackageSystem `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CleanupRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use CleanupRequest.ProtoReflect.Descriptor instead.

func (*CleanupRequest) GetPackageSystem added in v1.16.0

func (x *CleanupRequest) GetPackageSystem() PackageSystem

func (*CleanupRequest) ProtoMessage added in v1.16.0

func (*CleanupRequest) ProtoMessage()

func (*CleanupRequest) ProtoReflect added in v1.16.0

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

func (*CleanupRequest) Reset added in v1.16.0

func (x *CleanupRequest) Reset()

func (*CleanupRequest) String added in v1.16.0

func (x *CleanupRequest) String() string

type CleanupResponse added in v1.16.0

type CleanupResponse struct {
	DebugOutput string `protobuf:"bytes,1,opt,name=debug_output,json=debugOutput,proto3" json:"debug_output,omitempty"`
	// contains filtered or unexported fields
}

func (*CleanupResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use CleanupResponse.ProtoReflect.Descriptor instead.

func (*CleanupResponse) GetDebugOutput added in v1.16.0

func (x *CleanupResponse) GetDebugOutput() string

func (*CleanupResponse) ProtoMessage added in v1.16.0

func (*CleanupResponse) ProtoMessage()

func (*CleanupResponse) ProtoReflect added in v1.16.0

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

func (*CleanupResponse) Reset added in v1.16.0

func (x *CleanupResponse) Reset()

func (*CleanupResponse) String added in v1.16.0

func (x *CleanupResponse) String() string

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"`
	RebootRequired RebootRequired `` /* 133-byte string literal not displayed */
	// 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) GetRebootRequired added in v1.20.4

func (x *InstallReply) GetRebootRequired() RebootRequired

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"`
	// If set disables this repo before resolving package/version.
	DisableRepo string `protobuf:"bytes,5,opt,name=disable_repo,json=disableRepo,proto3" json:"disable_repo,omitempty"`
	// contains filtered or unexported fields
}

func (*InstallRequest) Descriptor deprecated

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

Deprecated: Use InstallRequest.ProtoReflect.Descriptor instead.

func (*InstallRequest) GetDisableRepo added in v1.8.3

func (x *InstallRequest) GetDisableRepo() string

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"`
	Release      string `protobuf:"bytes,4,opt,name=release,proto3" json:"release,omitempty"`
	Architecture string `protobuf:"bytes,5,opt,name=architecture,proto3" json:"architecture,omitempty"`
	Epoch        uint32 `protobuf:"varint,6,opt,name=epoch,proto3" json:"epoch,omitempty"`
	// contains filtered or unexported fields
}

func (*PackageInfo) Descriptor deprecated

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

Deprecated: Use PackageInfo.ProtoReflect.Descriptor instead.

func (*PackageInfo) GetArchitecture added in v1.22.0

func (x *PackageInfo) GetArchitecture() string

func (*PackageInfo) GetEpoch added in v1.22.0

func (x *PackageInfo) GetEpoch() uint32

func (*PackageInfo) GetName

func (x *PackageInfo) GetName() string

func (*PackageInfo) GetRelease added in v1.22.0

func (x *PackageInfo) GetRelease() 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 PackageInfoList added in v1.22.0

type PackageInfoList struct {
	Packages []*PackageInfo `protobuf:"bytes,1,rep,name=packages,proto3" json:"packages,omitempty"`
	// contains filtered or unexported fields
}

func (*PackageInfoList) Descriptor deprecated added in v1.22.0

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

Deprecated: Use PackageInfoList.ProtoReflect.Descriptor instead.

func (*PackageInfoList) GetPackages added in v1.22.0

func (x *PackageInfoList) GetPackages() []*PackageInfo

func (*PackageInfoList) ProtoMessage added in v1.22.0

func (*PackageInfoList) ProtoMessage()

func (*PackageInfoList) ProtoReflect added in v1.22.0

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

func (*PackageInfoList) Reset added in v1.22.0

func (x *PackageInfoList) Reset()

func (*PackageInfoList) String added in v1.22.0

func (x *PackageInfoList) 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) Enum

func (x PackageSystem) Enum() *PackageSystem

func (PackageSystem) EnumDescriptor deprecated

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

Deprecated: Use PackageSystem.Descriptor instead.

func (PackageSystem) Number

func (PackageSystem) String

func (x PackageSystem) String() string

func (PackageSystem) Type

type PackagesClient

type PackagesClient interface {
	Install(ctx context.Context, in *InstallRequest, opts ...grpc.CallOption) (*InstallReply, error)
	Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveReply, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateReply, error)
	Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchReply, error)
	ListInstalled(ctx context.Context, in *ListInstalledRequest, opts ...grpc.CallOption) (*ListInstalledReply, error)
	RepoList(ctx context.Context, in *RepoListRequest, opts ...grpc.CallOption) (*RepoListReply, error)
	// Cleanup executes any package system specific cleanup such as
	// yum-complete-transaction for YUM systems. If a given package system doesn't
	// have this API this is a no-op.
	Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*CleanupResponse, 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)
	RemoveOneMany(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (<-chan *RemoveManyResponse, error)
	UpdateOneMany(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (<-chan *UpdateManyResponse, error)
	SearchOneMany(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (<-chan *SearchManyResponse, 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)
	CleanupOneMany(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (<-chan *CleanupManyResponse, 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)
	Remove(context.Context, *RemoveRequest) (*RemoveReply, error)
	Update(context.Context, *UpdateRequest) (*UpdateReply, error)
	Search(context.Context, *SearchRequest) (*SearchReply, error)
	ListInstalled(context.Context, *ListInstalledRequest) (*ListInstalledReply, error)
	RepoList(context.Context, *RepoListRequest) (*RepoListReply, error)
	// Cleanup executes any package system specific cleanup such as
	// yum-complete-transaction for YUM systems. If a given package system doesn't
	// have this API this is a no-op.
	Cleanup(context.Context, *CleanupRequest) (*CleanupResponse, error)
}

PackagesServer is the server API for Packages service. All implementations should embed UnimplementedPackagesServer for forward compatibility

type RebootRequired added in v1.20.4

type RebootRequired int32
const (
	// When https://man7.org/linux/man-pages/man1/needs-restarting.1.html is unavailable,
	// the status must be set to unknown
	RebootRequired_REBOOT_REQUIRED_UNKNOWN RebootRequired = 0
	RebootRequired_REBOOT_REQUIRED_YES     RebootRequired = 1
	RebootRequired_REBOOT_REQUIRED_NO      RebootRequired = 2
)

func (RebootRequired) Descriptor added in v1.20.4

func (RebootRequired) Enum added in v1.20.4

func (x RebootRequired) Enum() *RebootRequired

func (RebootRequired) EnumDescriptor deprecated added in v1.20.4

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

Deprecated: Use RebootRequired.Descriptor instead.

func (RebootRequired) Number added in v1.20.4

func (RebootRequired) String added in v1.20.4

func (x RebootRequired) String() string

func (RebootRequired) Type added in v1.20.4

type RemoveManyResponse added in v1.20.3

type RemoveManyResponse struct {
	Target string
	// As targets can be duplicated this is the index into the slice passed to proxy.Conn.
	Index int
	Resp  *RemoveReply
	Error error
}

RemoveManyResponse encapsulates a proxy data packet. It includes the target, index, response and possible error returned.

type RemoveReply added in v1.20.3

type RemoveReply struct {
	DebugOutput string `protobuf:"bytes,1,opt,name=debug_output,json=debugOutput,proto3" json:"debug_output,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveReply) Descriptor deprecated added in v1.20.3

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

Deprecated: Use RemoveReply.ProtoReflect.Descriptor instead.

func (*RemoveReply) GetDebugOutput added in v1.20.3

func (x *RemoveReply) GetDebugOutput() string

func (*RemoveReply) ProtoMessage added in v1.20.3

func (*RemoveReply) ProtoMessage()

func (*RemoveReply) ProtoReflect added in v1.20.3

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

func (*RemoveReply) Reset added in v1.20.3

func (x *RemoveReply) Reset()

func (*RemoveReply) String added in v1.20.3

func (x *RemoveReply) String() string

type RemoveRequest added in v1.20.3

type RemoveRequest 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"`
	// If set disables this repo before resolving package/version.
	DisableRepo string `protobuf:"bytes,5,opt,name=disable_repo,json=disableRepo,proto3" json:"disable_repo,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveRequest) Descriptor deprecated added in v1.20.3

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

Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.

func (*RemoveRequest) GetDisableRepo added in v1.27.0

func (x *RemoveRequest) GetDisableRepo() string

func (*RemoveRequest) GetName added in v1.20.3

func (x *RemoveRequest) GetName() string

func (*RemoveRequest) GetPackageSystem added in v1.20.3

func (x *RemoveRequest) GetPackageSystem() PackageSystem

func (*RemoveRequest) GetRepo added in v1.27.0

func (x *RemoveRequest) GetRepo() string

func (*RemoveRequest) GetVersion added in v1.20.3

func (x *RemoveRequest) GetVersion() string

func (*RemoveRequest) ProtoMessage added in v1.20.3

func (*RemoveRequest) ProtoMessage()

func (*RemoveRequest) ProtoReflect added in v1.20.3

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

func (*RemoveRequest) Reset added in v1.20.3

func (x *RemoveRequest) Reset()

func (*RemoveRequest) String added in v1.20.3

func (x *RemoveRequest) String() string

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

Deprecated: Use Repo.ProtoReflect.Descriptor instead.

func (*Repo) GetFilename

func (x *Repo) GetFilename() string

func (*Repo) GetId

func (x *Repo) GetId() string

func (*Repo) GetName

func (x *Repo) GetName() string

func (*Repo) GetStatus

func (x *Repo) GetStatus() RepoStatus

func (*Repo) GetUrl

func (x *Repo) GetUrl() string

func (*Repo) ProtoMessage

func (*Repo) ProtoMessage()

func (*Repo) ProtoReflect

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

func (*Repo) Reset

func (x *Repo) Reset()

func (*Repo) String

func (x *Repo) String() string

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

type SearchManyResponse added in v1.22.0

type SearchManyResponse struct {
	Target string
	// As targets can be duplicated this is the index into the slice passed to proxy.Conn.
	Index int
	Resp  *SearchReply
	Error error
}

SearchManyResponse encapsulates a proxy data packet. It includes the target, index, response and possible error returned.

type SearchReply added in v1.22.0

type SearchReply struct {
	InstalledPackages *PackageInfoList `protobuf:"bytes,1,opt,name=installed_packages,json=installedPackages,proto3" json:"installed_packages,omitempty"`
	AvailablePackages *PackageInfoList `protobuf:"bytes,2,opt,name=available_packages,json=availablePackages,proto3" json:"available_packages,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchReply) Descriptor deprecated added in v1.22.0

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

Deprecated: Use SearchReply.ProtoReflect.Descriptor instead.

func (*SearchReply) GetAvailablePackages added in v1.22.0

func (x *SearchReply) GetAvailablePackages() *PackageInfoList

func (*SearchReply) GetInstalledPackages added in v1.22.0

func (x *SearchReply) GetInstalledPackages() *PackageInfoList

func (*SearchReply) ProtoMessage added in v1.22.0

func (*SearchReply) ProtoMessage()

func (*SearchReply) ProtoReflect added in v1.22.0

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

func (*SearchReply) Reset added in v1.22.0

func (x *SearchReply) Reset()

func (*SearchReply) String added in v1.22.0

func (x *SearchReply) String() string

type SearchRequest added in v1.22.0

type SearchRequest struct {
	PackageSystem PackageSystem `` /* 129-byte string literal not displayed */
	// Specify the package name to search
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// If true: search installed package NEVRA for specified package name
	Installed bool `protobuf:"varint,3,opt,name=installed,proto3" json:"installed,omitempty"`
	// If true: search all available package NEVRAs for specified package name
	Available bool `protobuf:"varint,4,opt,name=available,proto3" json:"available,omitempty"`
	// contains filtered or unexported fields
}

Search package NEVRA based on the package name and search type If none of the search type is specified, server will return error

func (*SearchRequest) Descriptor deprecated added in v1.22.0

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

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetAvailable added in v1.22.0

func (x *SearchRequest) GetAvailable() bool

func (*SearchRequest) GetInstalled added in v1.22.0

func (x *SearchRequest) GetInstalled() bool

func (*SearchRequest) GetName added in v1.22.0

func (x *SearchRequest) GetName() string

func (*SearchRequest) GetPackageSystem added in v1.22.0

func (x *SearchRequest) GetPackageSystem() PackageSystem

func (*SearchRequest) ProtoMessage added in v1.22.0

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect added in v1.22.0

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

func (*SearchRequest) Reset added in v1.22.0

func (x *SearchRequest) Reset()

func (*SearchRequest) String added in v1.22.0

func (x *SearchRequest) String() string

type UnimplementedPackagesServer

type UnimplementedPackagesServer struct {
}

UnimplementedPackagesServer should be embedded to have forward compatible implementations.

func (UnimplementedPackagesServer) Cleanup added in v1.16.0

func (UnimplementedPackagesServer) Install

func (UnimplementedPackagesServer) ListInstalled

func (UnimplementedPackagesServer) Remove added in v1.20.3

func (UnimplementedPackagesServer) RepoList

func (UnimplementedPackagesServer) Search added in v1.22.0

func (UnimplementedPackagesServer) Update

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"`
	// If set disables this repo before resolving package/version.
	DisableRepo string `protobuf:"bytes,6,opt,name=disable_repo,json=disableRepo,proto3" json:"disable_repo,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetDisableRepo added in v1.8.3

func (x *UpdateRequest) GetDisableRepo() string

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

Directories

Path Synopsis
Package client provides the client interface for 'packages'
Package client provides the client interface for 'packages'
Package server implements the sansshell 'Packages' service.
Package server implements the sansshell 'Packages' service.

Jump to

Keyboard shortcuts

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