packages

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

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 (
	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: "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"`
	// 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"`
	// 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) 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)
	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

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

type UnimplementedPackagesServer struct {
}

UnimplementedPackagesServer should be embedded to have forward compatible implementations.

func (UnimplementedPackagesServer) Install

func (UnimplementedPackagesServer) ListInstalled

func (UnimplementedPackagesServer) RepoList

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