libzypp: zypp-media/ng/private/providemessage_p.h Source File

libzypp 17.36.6

providemessage_p.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\----------------------------------------------------------------------/
9*
10* This file contains private API, this might break at any time between releases.
11* You have been warned!
12*/
13#ifndef ZYPP_MEDIA_PRIVATE_PROVIDE_MESSAGE_P_H_INCLUDED
14#define ZYPP_MEDIA_PRIVATE_PROVIDE_MESSAGE_P_H_INCLUDED
15
16#include <zypp-core/rpc/PluginFrame.h>
17#include <zypp-core/zyppng/pipelines/expected.h>
18
290
291#include <zypp-core/base/PtrTypes.h>
292#include <zypp-core/zyppng/pipelines/Expected>
293#include <zypp-core/zyppng/rpc/stompframestream.h>
294#include <zypp-media/ng/ProvideSpec> // for FieldType
295#include <zypp-media/ng/HeaderValueMap>
296
297#include <boost/iterator/iterator_adaptor.hpp>
298
299 namespace zypp::proto {
300 class Envelope;
301 class Configuration;
302 class Capabilities;
303 class ProvideMessage;
304}
305
306namespace zyppng {
307
308 enum MessageCodes : uint32_t {
309 NoCode = 0,
310 FirstInformalCode = 100,
311 ProvideStarted = 100,
312 LastInformalCode = 199,
313
314 FirstSuccessCode = 200,
315 ProvideFinished = 200,
316 AttachFinished = 201,
317 AuthInfo = 202,
318 MediaChanged = 203,
319 DetachFinished = 204,
320 LastSuccessCode = 299,
321
322 FirstRedirCode = 300,
323 Redirect = 300,
324 Metalink = 301,
325 LastRedirCode = 399,
326
327 FirstClientErrCode = 400,
328 BadRequest = 400,
329 Unauthorized = 401,
330 Forbidden = 402,
331 PeerCertificateInvalid = 403,
332 NotFound = 404,
333 ExpectedSizeExceeded = 405,
334 ConnectionFailed = 406,
335 Timeout = 407,
336 Cancelled = 408,
337 InvalidChecksum = 409,
338 MountFailed = 410,
339 Jammed = 411,
340 MediaChangeAbort = 412,
341 MediaChangeSkip = 413,
342 NoAuthData = 414,
343 NotAFile = 415,
344 MediumNotDesired = 416,
345 LastClientErrCode = 499,
346
347 FirstSrvErrCode = 500,
348 InternalError = 500,
349 ProtocolError = 501,
350 LastSrvErrCode = 599,
351
352 FirstControllerCode = 600,
353 Prov = 600,
354 Cancel = 601,
355 Attach = 602,
356 Detach = 603,
357 LastControllerCode = 699,
358
359 FirstWorkerCode = 700,
360 AuthDataRequest = 700,
361 MediaChangeRequest = 701,
362 LastWorkerCode = 799,
363 };
364
365 class ProviderConfiguration : public std::map<std::string, std::string>
366 {
367 public:
368 using map::map;
369
370 static constexpr std::string_view typeName = "ProviderConfiguration";
371 zyppng::expected<zypp::PluginFrame> toStompMessage() const;
372 static zyppng::expected<ProviderConfiguration> fromStompMessage( const zypp::PluginFrame &msg );
373 };
374
375 class WorkerCaps
376 {
377 public:
379 enum WorkerType : uint32_t {
380 Invalid = 0,
381 Downloading = 1,
382 SimpleMount = 2,
383 VolatileMount = 3,
384 CPUBound = 4,
385 };
386
387 enum Flags : uint32_t {
388 None = 0, // Just for completeness
389 SingleInstance = 1, // If this flag is set a worker can only be started once, this is implicit in some worker types.
390 Pipeline = 2, // The worker can handle multiple requests at the same time
391 ZyppLogFormat = 4, // The worker writes messages to stderr in zypp log format
392 FileArtifacts = 8, // The results of this worker are artifacts, which means they need to be cleaned up. This is implicit for all downloading workers. For all mounting workers this is ignored.
393 // CPU bound workers can use it to signal they leave artifact files behind that need to be cleaned up
394 };
395
396 explicit WorkerCaps();
397 ~WorkerCaps();
398
399 WorkerCaps(const WorkerCaps &) = default;
400 WorkerCaps(WorkerCaps &&) = default;
401 WorkerCaps &operator=(const WorkerCaps &) = default;
402 WorkerCaps &operator=(WorkerCaps &&) = default;
403
404 uint32_t protocol_version() const; // The workers should set this field to the protocol version they implement.
405 WorkerType worker_type() const;
406 Flags cfg_flags() const;
407 const std::string &worker_name() const;
408
409 void set_protocol_version( uint32_t v );
410 void set_worker_type( WorkerType t );
411 void set_cfg_flags( Flags f );
412 void set_worker_name( std::string name );
413
414 static constexpr std::string_view typeName = "WorkerCaps";
415 zyppng::expected<zypp::PluginFrame> toStompMessage() const;
416 static zyppng::expected<WorkerCaps> fromStompMessage( const zypp::PluginFrame &msg );
417
418 private:
419 uint32_t _protocolVersion = 1;
420 uint32_t _workerType = Invalid;
421 uint32_t _cfgFlags = None;
422 std::string _workerName;
423 };
424
425 namespace ProvideMessageFields {
426 constexpr std::string_view RequestCode("requestCode");
427 constexpr std::string_view RequestId("requestId");
428 }
429
430 namespace ProvideStartedMsgFields
431 {
432 constexpr std::string_view Url ("url");
433 constexpr std::string_view LocalFilename ("local_filename");
434 constexpr std::string_view StagingFilename ("staging_filename");
435 }
436
437 namespace ProvideFinishedMsgFields
438 {
439 constexpr std::string_view LocalFilename ("local_filename");
440 constexpr std::string_view CacheHit ("cacheHit");
441 }
442
443 namespace AuthInfoMsgFields
444 {
445 constexpr std::string_view Username ("username");
446 constexpr std::string_view Password ("password");
447 constexpr std::string_view AuthTimestamp ("auth_timestamp");
448 constexpr std::string_view AuthType ("authType");
449 }
450
451 namespace RedirectMsgFields
452 {
453 constexpr std::string_view NewUrl ("new_url");
454 }
455
456 namespace MetalinkRedirectMsgFields
457 {
458 constexpr std::string_view NewUrl ("new_url");
459 }
460
461 namespace ErrMsgFields
462 {
463 constexpr std::string_view Reason ("reason");
464 constexpr std::string_view Transient ("transient");
465 constexpr std::string_view History ("history");
466 }
467
468 namespace ProvideMsgFields
469 {
470 constexpr std::string_view Url ("url");
471 constexpr std::string_view Filename ("filename");
472 constexpr std::string_view DeltaFile ("delta_file");
473 constexpr std::string_view ExpectedFilesize ("expected_filesize");
474 constexpr std::string_view CheckExistOnly ("check_existance_only");
475 constexpr std::string_view MetalinkEnabled ("metalink_enabled");
476 }
477
478 namespace AttachMsgFields
479 {
480 constexpr std::string_view Url ("url");
481 constexpr std::string_view AttachId ("attach_id");
482 constexpr std::string_view VerifyType ("verify_type");
483 constexpr std::string_view VerifyData ("verify_data");
484 constexpr std::string_view MediaNr ("media_nr");
485 constexpr std::string_view Device ("device");
486 constexpr std::string_view Label ("label");
487 }
488
489 namespace AttachFinishedMsgFields
490 {
491 constexpr std::string_view LocalMountPoint ("local_mountpoint");
492 }
493
494 namespace DetachMsgFields
495 {
496 constexpr std::string_view Url ("url");
497 }
498
499 namespace AuthDataRequestMsgFields
500 {
501 constexpr std::string_view EffectiveUrl ("effective_url");
502 constexpr std::string_view LastAuthTimestamp ("last_auth_timestamp");
503 constexpr std::string_view LastUser ("username");
504 constexpr std::string_view AuthHint ("authHint");
505 }
506
507 namespace MediaChangeRequestMsgFields
508 {
509 constexpr std::string_view Label ("label");
510 constexpr std::string_view MediaNr ("media_nr");
511 constexpr std::string_view Device ("device");
512 constexpr std::string_view Desc ("desc");
513 }
514
515 namespace EjectMsgFields
516 {
517 constexpr std::string_view device ("device");
518 }
519
520 class ProvideMessage
521 {
522 public:
523 using Code = MessageCodes;
524
525 ProvideMessage(const ProvideMessage &) = default;
526 ProvideMessage(ProvideMessage &&) = default;
527 ProvideMessage &operator=(const ProvideMessage &) = default;
528 ProvideMessage &operator=(ProvideMessage &&) = default;
529 using FieldVal = HeaderValue;
530
531 static constexpr std::string_view typeName = "ProvideMessage";
532
533 static expected<ProvideMessage> create ( const zypp::PluginFrame &message );
534 expected<zypp::PluginFrame> toStompMessage() const;
535 static expected<ProvideMessage> fromStompMessage( const zypp::PluginFrame &msg );
536
537 static ProvideMessage createProvideStarted ( const uint32_t reqId, const zypp::Url &url , const std::optional<std::string> &localFilename = {}, const std::optional<std::string> &stagingFilename = {} );
538 static ProvideMessage createProvideFinished ( const uint32_t reqId, const std::string &localFilename , bool cacheHit );
539 static ProvideMessage createAttachFinished ( const uint32_t reqId, const std::optional<std::string> &localMountPoint = {} );
540 static ProvideMessage createDetachFinished ( const uint32_t reqId );
541 static ProvideMessage createAuthInfo ( const uint32_t reqId, const std::string &user, const std::string &pw, int64_t timestamp, const std::map<std::string, std::string> &extraValues = {} );
542 static ProvideMessage createMediaChanged ( const uint32_t reqId );
543 static ProvideMessage createRedirect ( const uint32_t reqId, const zypp::Url &newUrl );
544 static ProvideMessage createMetalinkRedir ( const uint32_t reqId, const std::vector<zypp::Url> &newUrls );
545 static ProvideMessage createErrorResponse (const uint32_t reqId, const Code code, const std::string &reason, bool transient = false );
546
547 static ProvideMessage createProvide ( const uint32_t reqId
548 , const zypp::Url &url
549 , const std::optional<std::string> &filename = {}
550 , const std::optional<std::string> &deltaFile = {}
551 , const std::optional<int64_t> &expFilesize = {}
552 , bool checkExistOnly = false );
553
554 static ProvideMessage createCancel ( const uint32_t reqId );
555
556 static ProvideMessage createAttach( const uint32_t reqId
557 , const zypp::Url &url
558 , const std::string attachId
559 , const std::string &label
560 , const std::optional<std::string> &verifyType = {}
561 , const std::optional<std::string> &verifyData = {}
562 , const std::optional<int32_t> &mediaNr = {} );
563
564 static ProvideMessage createDetach ( const uint32_t reqId, const zypp::Url &attachUrl );
565 static ProvideMessage createAuthDataRequest ( const uint32_t reqId, const zypp::Url &effectiveUrl, const std::string &lastTriedUser ="", const std::optional<int64_t> &lastAuthTimestamp = {}, const std::map<std::string, std::string> &extraValues = {} );
566 static ProvideMessage createMediaChangeRequest ( const uint32_t reqId, const std::string &label, int32_t mediaNr, const std::vector<std::string> &devices, const std::optional<std::string> &desc );
567
568 uint requestId () const;
569 void setRequestId ( const uint id );
570
571 Code code() const;
572 void setCode (const Code newCode );
573
574 const std::vector<ProvideMessage::FieldVal> &values ( const std::string_view &str ) const;
575 const std::vector<ProvideMessage::FieldVal> &values ( const std::string &str ) const;
576 const HeaderValueMap &headers() const;
581 FieldVal value ( const std::string_view &str, const FieldVal &defaultVal = FieldVal() ) const;
582 FieldVal value ( const std::string &str, const FieldVal &defaultVal = FieldVal() ) const;
583 void setValue ( const std::string &name, const FieldVal &value );
584 void setValue ( const std::string_view &name, const FieldVal &value );
585 void addValue ( const std::string &name, const FieldVal &value );
586 void addValue ( const std::string_view &name, const FieldVal &value );
587
588 private:
589 ProvideMessage();
590 uint _reqId = -1;
591 Code _code = NoCode;
592 HeaderValueMap _headers;
593 };
594}
595
596#endif
PluginFrame.h
zypp::Capabilities
Container of Capability (currently read only).
Definition Capabilities.h:36
zypp::PluginFrame
Command frame for communication with PluginScript.
Definition PluginFrame.h:42
zypp::Url
Url manipulation class.
Definition Url.h:93
zyppng::HeaderValueMap
Definition headervaluemap.h:67
zyppng::HeaderValue
Definition headervaluemap.h:21
zyppng::ProvideMessage::createProvideStarted
static ProvideMessage createProvideStarted(const uint32_t reqId, const zypp::Url &url, const std::optional< std::string > &localFilename={}, const std::optional< std::string > &stagingFilename={})
Definition providemessage.cc:458
zyppng::ProvideMessage::createAuthInfo
static ProvideMessage createAuthInfo(const uint32_t reqId, const std::string &user, const std::string &pw, int64_t timestamp, const std::map< std::string, std::string > &extraValues={})
Definition providemessage.cc:504
zyppng::ProvideMessage::toStompMessage
expected< zypp::PluginFrame > toStompMessage() const
Definition providemessage.cc:430
zyppng::ProvideMessage::fromStompMessage
static expected< ProvideMessage > fromStompMessage(const zypp::PluginFrame &msg)
Definition providemessage.cc:453
zyppng::ProvideMessage::operator=
ProvideMessage & operator=(ProvideMessage &&)=default
zyppng::ProvideMessage::createRedirect
static ProvideMessage createRedirect(const uint32_t reqId, const zypp::Url &newUrl)
Definition providemessage.cc:527
zyppng::ProvideMessage::_headers
HeaderValueMap _headers
Definition providemessage_p.h:592
zyppng::ProvideMessage::createMetalinkRedir
static ProvideMessage createMetalinkRedir(const uint32_t reqId, const std::vector< zypp::Url > &newUrls)
Definition providemessage.cc:537
zyppng::ProvideMessage::ProvideMessage
ProvideMessage(const ProvideMessage &)=default
zyppng::ProvideMessage::FieldVal
HeaderValue FieldVal
Definition providemessage_p.h:529
zyppng::ProvideMessage::createCancel
static ProvideMessage createCancel(const uint32_t reqId)
Definition providemessage.cc:578
zyppng::ProvideMessage::headers
const HeaderValueMap & headers() const
Definition providemessage.cc:682
zyppng::ProvideMessage::requestId
uint requestId() const
Definition providemessage.cc:647
zyppng::ProvideMessage::typeName
static constexpr std::string_view typeName
Definition providemessage_p.h:531
zyppng::ProvideMessage::createMediaChanged
static ProvideMessage createMediaChanged(const uint32_t reqId)
Definition providemessage.cc:518
zyppng::ProvideMessage::createProvideFinished
static ProvideMessage createProvideFinished(const uint32_t reqId, const std::string &localFilename, bool cacheHit)
Definition providemessage.cc:472
zyppng::ProvideMessage::operator=
ProvideMessage & operator=(const ProvideMessage &)=default
zyppng::ProvideMessage::Code
MessageCodes Code
Definition providemessage_p.h:523
zyppng::ProvideMessage::createMediaChangeRequest
static ProvideMessage createMediaChangeRequest(const uint32_t reqId, const std::string &label, int32_t mediaNr, const std::vector< std::string > &devices, const std::optional< std::string > &desc)
Definition providemessage.cc:632
zyppng::ProvideMessage::value
FieldVal value(const std::string_view &str, const FieldVal &defaultVal=FieldVal()) const
Definition providemessage.cc:677
zyppng::ProvideMessage::values
const std::vector< ProvideMessage::FieldVal > & values(const std::string_view &str) const
Definition providemessage.cc:667
zyppng::ProvideMessage::ProvideMessage
ProvideMessage(ProvideMessage &&)=default
zyppng::ProvideMessage::setValue
void setValue(const std::string &name, const FieldVal &value)
Definition providemessage.cc:692
zyppng::ProvideMessage::createAuthDataRequest
static ProvideMessage createAuthDataRequest(const uint32_t reqId, const zypp::Url &effectiveUrl, const std::string &lastTriedUser="", const std::optional< int64_t > &lastAuthTimestamp={}, const std::map< std::string, std::string > &extraValues={})
Definition providemessage.cc:618
zyppng::ProvideMessage::createErrorResponse
static ProvideMessage createErrorResponse(const uint32_t reqId, const Code code, const std::string &reason, bool transient=false)
Definition providemessage.cc:548
zyppng::ProvideMessage::createProvide
static ProvideMessage createProvide(const uint32_t reqId, const zypp::Url &url, const std::optional< std::string > &filename={}, const std::optional< std::string > &deltaFile={}, const std::optional< int64_t > &expFilesize={}, bool checkExistOnly=false)
Definition providemessage.cc:560
zyppng::ProvideMessage::_reqId
uint _reqId
Definition providemessage_p.h:590
zyppng::ProvideMessage::setRequestId
void setRequestId(const uint id)
Definition providemessage.cc:652
zyppng::ProvideMessage::code
Code code() const
Definition providemessage.cc:657
zyppng::ProvideMessage::createDetachFinished
static ProvideMessage createDetachFinished(const uint32_t reqId)
Definition providemessage.cc:495
zyppng::ProvideMessage::addValue
void addValue(const std::string &name, const FieldVal &value)
Definition providemessage.cc:702
zyppng::ProvideMessage::createDetach
static ProvideMessage createDetach(const uint32_t reqId, const zypp::Url &attachUrl)
Definition providemessage.cc:608
zyppng::ProvideMessage::setCode
void setCode(const Code newCode)
Definition providemessage.cc:662
zyppng::ProvideMessage::create
static expected< ProvideMessage > create(const zypp::PluginFrame &message)
Definition providemessage.cc:147
zyppng::ProvideMessage::createAttachFinished
static ProvideMessage createAttachFinished(const uint32_t reqId, const std::optional< std::string > &localMountPoint={})
Definition providemessage.cc:483
zyppng::ProvideMessage::ProvideMessage
ProvideMessage()
Definition providemessage.cc:144
zyppng::ProvideMessage::_code
Code _code
Definition providemessage_p.h:591
zyppng::ProvideMessage::createAttach
static ProvideMessage createAttach(const uint32_t reqId, const zypp::Url &url, const std::string attachId, const std::string &label, const std::optional< std::string > &verifyType={}, const std::optional< std::string > &verifyData={}, const std::optional< int32_t > &mediaNr={})
Definition providemessage.cc:587
zyppng::ProviderConfiguration
Definition providemessage_p.h:366
zyppng::ProviderConfiguration::fromStompMessage
static zyppng::expected< ProviderConfiguration > fromStompMessage(const zypp::PluginFrame &msg)
Definition providemessage.cc:28
zyppng::ProviderConfiguration::toStompMessage
zyppng::expected< zypp::PluginFrame > toStompMessage() const
Definition providemessage.cc:19
zyppng::ProviderConfiguration::typeName
static constexpr std::string_view typeName
Definition providemessage_p.h:370
zyppng::WorkerCaps::toStompMessage
zyppng::expected< zypp::PluginFrame > toStompMessage() const
Definition providemessage.cc:96
zyppng::WorkerCaps::worker_name
const std::string & worker_name() const
Definition providemessage.cc:71
zyppng::WorkerCaps::WorkerCaps
WorkerCaps(WorkerCaps &&)=default
zyppng::WorkerCaps::cfg_flags
Flags cfg_flags() const
Definition providemessage.cc:66
zyppng::WorkerCaps::WorkerCaps
WorkerCaps(const WorkerCaps &)=default
zyppng::WorkerCaps::_workerType
uint32_t _workerType
Definition providemessage_p.h:420
zyppng::WorkerCaps::_protocolVersion
uint32_t _protocolVersion
Definition providemessage_p.h:419
zyppng::WorkerCaps::set_worker_type
void set_worker_type(WorkerType t)
Definition providemessage.cc:81
zyppng::WorkerCaps::operator=
WorkerCaps & operator=(const WorkerCaps &)=default
zyppng::WorkerCaps::WorkerType
WorkerType
Definition providemessage_p.h:379
zyppng::WorkerCaps::Downloading
@ Downloading
Definition providemessage_p.h:381
zyppng::WorkerCaps::Invalid
@ Invalid
Definition providemessage_p.h:380
zyppng::WorkerCaps::SimpleMount
@ SimpleMount
Definition providemessage_p.h:382
zyppng::WorkerCaps::CPUBound
@ CPUBound
Definition providemessage_p.h:384
zyppng::WorkerCaps::VolatileMount
@ VolatileMount
Definition providemessage_p.h:383
zyppng::WorkerCaps::set_protocol_version
void set_protocol_version(uint32_t v)
Definition providemessage.cc:76
zyppng::WorkerCaps::worker_type
WorkerType worker_type() const
Definition providemessage.cc:61
zyppng::WorkerCaps::WorkerCaps
WorkerCaps()
Definition providemessage.cc:50
zyppng::WorkerCaps::protocol_version
uint32_t protocol_version() const
Definition providemessage.cc:56
zyppng::WorkerCaps::~WorkerCaps
~WorkerCaps()
Definition providemessage.cc:53
zyppng::WorkerCaps::operator=
WorkerCaps & operator=(WorkerCaps &&)=default
zyppng::WorkerCaps::Flags
Flags
Definition providemessage_p.h:387
zyppng::WorkerCaps::SingleInstance
@ SingleInstance
Definition providemessage_p.h:389
zyppng::WorkerCaps::None
@ None
Definition providemessage_p.h:388
zyppng::WorkerCaps::Pipeline
@ Pipeline
Definition providemessage_p.h:390
zyppng::WorkerCaps::ZyppLogFormat
@ ZyppLogFormat
Definition providemessage_p.h:391
zyppng::WorkerCaps::FileArtifacts
@ FileArtifacts
Definition providemessage_p.h:392
zyppng::WorkerCaps::typeName
static constexpr std::string_view typeName
Definition providemessage_p.h:414
zyppng::WorkerCaps::_workerName
std::string _workerName
Definition providemessage_p.h:422
zyppng::WorkerCaps::fromStompMessage
static zyppng::expected< WorkerCaps > fromStompMessage(const zypp::PluginFrame &msg)
Definition providemessage.cc:112
zyppng::WorkerCaps::_cfgFlags
uint32_t _cfgFlags
Definition providemessage_p.h:421
zyppng::WorkerCaps::set_worker_name
void set_worker_name(std::string name)
Definition providemessage.cc:91
zyppng::WorkerCaps::set_cfg_flags
void set_cfg_flags(Flags f)
Definition providemessage.cc:86
zyppng::expected
Definition expected.h:27
expected.h
zypp::proto
Definition providemessage_p.h:299
zypp::url
Url details namespace.
Definition UrlBase.cc:58
zyppng::AttachFinishedMsgFields
Definition providemessage_p.h:490
zyppng::AttachFinishedMsgFields::LocalMountPoint
constexpr std::string_view LocalMountPoint("local_mountpoint")
zyppng::AttachMsgFields
Definition providemessage_p.h:479
zyppng::AttachMsgFields::AttachId
constexpr std::string_view AttachId("attach_id")
zyppng::AttachMsgFields::Device
constexpr std::string_view Device("device")
zyppng::AttachMsgFields::VerifyData
constexpr std::string_view VerifyData("verify_data")
zyppng::AttachMsgFields::VerifyType
constexpr std::string_view VerifyType("verify_type")
zyppng::AttachMsgFields::Label
constexpr std::string_view Label("label")
zyppng::AttachMsgFields::MediaNr
constexpr std::string_view MediaNr("media_nr")
zyppng::AuthDataRequestMsgFields
Definition providemessage_p.h:500
zyppng::AuthDataRequestMsgFields::LastUser
constexpr std::string_view LastUser("username")
zyppng::AuthDataRequestMsgFields::AuthHint
constexpr std::string_view AuthHint("authHint")
zyppng::AuthDataRequestMsgFields::EffectiveUrl
constexpr std::string_view EffectiveUrl("effective_url")
zyppng::AuthDataRequestMsgFields::LastAuthTimestamp
constexpr std::string_view LastAuthTimestamp("last_auth_timestamp")
zyppng::AuthInfoMsgFields
Definition providemessage_p.h:444
zyppng::AuthInfoMsgFields::Password
constexpr std::string_view Password("password")
zyppng::AuthInfoMsgFields::AuthType
constexpr std::string_view AuthType("authType")
zyppng::AuthInfoMsgFields::Username
constexpr std::string_view Username("username")
zyppng::AuthInfoMsgFields::AuthTimestamp
constexpr std::string_view AuthTimestamp("auth_timestamp")
zyppng::DetachMsgFields
Definition providemessage_p.h:495
zyppng::EjectMsgFields
Definition providemessage_p.h:516
zyppng::EjectMsgFields::device
constexpr std::string_view device("device")
zyppng::ErrMsgFields
Definition providemessage_p.h:462
zyppng::ErrMsgFields::Reason
constexpr std::string_view Reason("reason")
zyppng::ErrMsgFields::History
constexpr std::string_view History("history")
zyppng::ErrMsgFields::Transient
constexpr std::string_view Transient("transient")
zyppng::MediaChangeRequestMsgFields
Definition providemessage_p.h:508
zyppng::MediaChangeRequestMsgFields::Label
constexpr std::string_view Label("label")
zyppng::MediaChangeRequestMsgFields::Desc
constexpr std::string_view Desc("desc")
zyppng::MediaChangeRequestMsgFields::MediaNr
constexpr std::string_view MediaNr("media_nr")
zyppng::MediaChangeRequestMsgFields::Device
constexpr std::string_view Device("device")
zyppng::MetalinkRedirectMsgFields
Definition providemessage_p.h:457
zyppng::MetalinkRedirectMsgFields::NewUrl
constexpr std::string_view NewUrl("new_url")
zyppng::ProvideFinishedMsgFields
Definition providemessage_p.h:438
zyppng::ProvideFinishedMsgFields::LocalFilename
constexpr std::string_view LocalFilename("local_filename")
zyppng::ProvideFinishedMsgFields::CacheHit
constexpr std::string_view CacheHit("cacheHit")
zyppng::ProvideMessageFields
Definition providemessage_p.h:425
zyppng::ProvideMessageFields::RequestId
constexpr std::string_view RequestId("requestId")
zyppng::ProvideMessageFields::RequestCode
constexpr std::string_view RequestCode("requestCode")
zyppng::ProvideMsgFields
Definition providemessage_p.h:469
zyppng::ProvideMsgFields::MetalinkEnabled
constexpr std::string_view MetalinkEnabled("metalink_enabled")
zyppng::ProvideMsgFields::ExpectedFilesize
constexpr std::string_view ExpectedFilesize("expected_filesize")
zyppng::ProvideMsgFields::DeltaFile
constexpr std::string_view DeltaFile("delta_file")
zyppng::ProvideMsgFields::CheckExistOnly
constexpr std::string_view CheckExistOnly("check_existance_only")
zyppng::ProvideMsgFields::Filename
constexpr std::string_view Filename("filename")
zyppng::ProvideStartedMsgFields
Definition providemessage_p.h:431
zyppng::ProvideStartedMsgFields::StagingFilename
constexpr std::string_view StagingFilename("staging_filename")
zyppng::ProvideStartedMsgFields::LocalFilename
constexpr std::string_view LocalFilename("local_filename")
zyppng::RedirectMsgFields
Definition providemessage_p.h:452
zyppng::RedirectMsgFields::NewUrl
constexpr std::string_view NewUrl("new_url")
zyppng
Definition MediaCurl2.h:22
zyppng::MessageCodes
MessageCodes
Definition providemessage_p.h:308
zyppng::ProvideStarted
@ ProvideStarted
Definition providemessage_p.h:311
zyppng::MediaChangeRequest
@ MediaChangeRequest
Definition providemessage_p.h:361
zyppng::InternalError
@ InternalError
Definition providemessage_p.h:348
zyppng::Redirect
@ Redirect
Definition providemessage_p.h:323
zyppng::Timeout
@ Timeout
Definition providemessage_p.h:335
zyppng::FirstControllerCode
@ FirstControllerCode
Definition providemessage_p.h:352
zyppng::LastSuccessCode
@ LastSuccessCode
Definition providemessage_p.h:320
zyppng::AttachFinished
@ AttachFinished
Definition providemessage_p.h:316
zyppng::MediaChanged
@ MediaChanged
Definition providemessage_p.h:318
zyppng::FirstWorkerCode
@ FirstWorkerCode
Definition providemessage_p.h:359
zyppng::ConnectionFailed
@ ConnectionFailed
Definition providemessage_p.h:334
zyppng::FirstRedirCode
@ FirstRedirCode
Definition providemessage_p.h:322
zyppng::AuthInfo
@ AuthInfo
Definition providemessage_p.h:317
zyppng::Prov
@ Prov
Definition providemessage_p.h:353
zyppng::NoCode
@ NoCode
Definition providemessage_p.h:309
zyppng::Cancel
@ Cancel
Definition providemessage_p.h:354
zyppng::ProvideFinished
@ ProvideFinished
Definition providemessage_p.h:315
zyppng::FirstSuccessCode
@ FirstSuccessCode
Definition providemessage_p.h:314
zyppng::FirstSrvErrCode
@ FirstSrvErrCode
Definition providemessage_p.h:347
zyppng::LastInformalCode
@ LastInformalCode
Definition providemessage_p.h:312
zyppng::NoAuthData
@ NoAuthData
Definition providemessage_p.h:342
zyppng::Attach
@ Attach
Definition providemessage_p.h:355
zyppng::Cancelled
@ Cancelled
Definition providemessage_p.h:336
zyppng::ProtocolError
@ ProtocolError
Definition providemessage_p.h:349
zyppng::PeerCertificateInvalid
@ PeerCertificateInvalid
Definition providemessage_p.h:331
zyppng::Unauthorized
@ Unauthorized
Definition providemessage_p.h:329
zyppng::FirstClientErrCode
@ FirstClientErrCode
Definition providemessage_p.h:327
zyppng::Forbidden
@ Forbidden
Definition providemessage_p.h:330
zyppng::DetachFinished
@ DetachFinished
Definition providemessage_p.h:319
zyppng::LastRedirCode
@ LastRedirCode
Definition providemessage_p.h:325
zyppng::BadRequest
@ BadRequest
Definition providemessage_p.h:328
zyppng::NotFound
@ NotFound
Definition providemessage_p.h:332
zyppng::Jammed
@ Jammed
Definition providemessage_p.h:339
zyppng::InvalidChecksum
@ InvalidChecksum
Definition providemessage_p.h:337
zyppng::LastControllerCode
@ LastControllerCode
Definition providemessage_p.h:357
zyppng::MediaChangeSkip
@ MediaChangeSkip
Definition providemessage_p.h:341
zyppng::FirstInformalCode
@ FirstInformalCode
Definition providemessage_p.h:310
zyppng::MountFailed
@ MountFailed
Definition providemessage_p.h:338
zyppng::AuthDataRequest
@ AuthDataRequest
Definition providemessage_p.h:360
zyppng::Detach
@ Detach
Definition providemessage_p.h:356
zyppng::ExpectedSizeExceeded
@ ExpectedSizeExceeded
Definition providemessage_p.h:333
zyppng::LastWorkerCode
@ LastWorkerCode
Definition providemessage_p.h:362
zyppng::LastSrvErrCode
@ LastSrvErrCode
Definition providemessage_p.h:350
zyppng::MediumNotDesired
@ MediumNotDesired
Definition providemessage_p.h:344
zyppng::MediaChangeAbort
@ MediaChangeAbort
Definition providemessage_p.h:340
zyppng::LastClientErrCode
@ LastClientErrCode
Definition providemessage_p.h:345
zyppng::NotAFile
@ NotAFile
Definition providemessage_p.h:343
zyppng::Metalink
@ Metalink
Definition providemessage_p.h:324
zyppng::Url
zypp::Url Url
Definition url.h:15
stompframestream.h
PtrTypes.h