Dobby  3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ContainerId Class Reference

A wrapper around a std::string, used to add some type definition to to an id and also to sanity check the characters that make up a container id. More...

#include <ContainerId.h>

Public Member Functions

 ContainerId (ContainerId &&)=default
 
 ContainerId (const ContainerId &)=default
 
ContainerIdoperator= (const ContainerId &)=default
 
ContainerIdoperator= (ContainerId &&)=default
 
bool isValid () const
 
const std::string & str () const
 
const char * c_str () const
 
bool operator== (const ContainerId &rhs) const
 
bool operator!= (const ContainerId &rhs) const
 
bool operator< (const ContainerId &rhs) const
 
bool operator> (const ContainerId &rhs) const
 

Static Public Member Functions

static ContainerId create (const std::string &s)
 
static ContainerId create (const char *s)
 
static ContainerId create (const char *s, size_t n)
 

Private Attributes

std::string mId
 

Detailed Description

A wrapper around a std::string, used to add some type definition to to an id and also to sanity check the characters that make up a container id.

This class is modelled on the AICommon::AppId, however wanted to distinguish because this daemon can be used to launch non-app processes.


The documentation for this class was generated from the following files: