Apache Mesos
values.hpp
Go to the documentation of this file.
1 // Licensed to the Apache Software Foundation (ASF) under one
2 // or more contributor license agreements. See the NOTICE file
3 // distributed with this work for additional information
4 // regarding copyright ownership. The ASF licenses this file
5 // to you under the Apache License, Version 2.0 (the
6 // "License"); you may not use this file except in compliance
7 // with the License. You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 
17 #ifndef __MESOS_V1_VALUES_HPP__
18 #define __MESOS_V1_VALUES_HPP__
19 
20 #include <iosfwd>
21 
22 #include <mesos/v1/mesos.hpp>
23 
24 #include <stout/try.hpp>
25 
26 namespace mesos {
27 namespace v1 {
28 
29 std::ostream& operator<<(std::ostream& stream, const Value::Scalar& scalar);
30 bool operator==(const Value::Scalar& left, const Value::Scalar& right);
31 bool operator<=(const Value::Scalar& left, const Value::Scalar& right);
32 Value::Scalar operator+(const Value::Scalar& left, const Value::Scalar& right);
33 Value::Scalar operator-(const Value::Scalar& left, const Value::Scalar& right);
34 Value::Scalar& operator+=(Value::Scalar& left, const Value::Scalar& right);
35 Value::Scalar& operator-=(Value::Scalar& left, const Value::Scalar& right);
36 
37 std::ostream& operator<<(std::ostream& stream, const Value::Ranges& ranges);
38 bool operator==(const Value::Ranges& left, const Value::Ranges& right);
39 bool operator<=(const Value::Ranges& left, const Value::Ranges& right);
40 Value::Ranges operator+(const Value::Ranges& left, const Value::Ranges& right);
41 Value::Ranges operator-(const Value::Ranges& left, const Value::Ranges& right);
42 Value::Ranges& operator+=(Value::Ranges& left, const Value::Ranges& right);
43 Value::Ranges& operator-=(Value::Ranges& left, const Value::Ranges& right);
44 
45 std::ostream& operator<<(std::ostream& stream, const Value::Set& set);
46 bool operator==(const Value::Set& left, const Value::Set& right);
47 bool operator<=(const Value::Set& left, const Value::Set& right);
48 Value::Set operator+(const Value::Set& left, const Value::Set& right);
49 Value::Set operator-(const Value::Set& left, const Value::Set& right);
50 Value::Set& operator+=(Value::Set& left, const Value::Set& right);
51 Value::Set& operator-=(Value::Set& left, const Value::Set& right);
52 
53 std::ostream& operator<<(std::ostream& stream, const Value::Text& value);
54 bool operator==(const Value::Text& left, const Value::Text& right);
55 
56 namespace internal {
57 namespace values {
58 
59 Try<Value> parse(const std::string& text);
60 
61 } // namespace values {
62 } // namespace internal {
63 
64 } // namespace v1 {
65 } // namespace mesos {
66 
67 #endif // __MESOS_V1_VALUES_HPP__
Try< Value > parse(const std::string &text)
Returns the OCI v1 descriptor, image index, image manifest and image configuration from the given str...
Definition: parse.hpp:36
Definition: try.hpp:34
Value::Scalar & operator-=(Value::Scalar &left, const Value::Scalar &right)
hashmap< Key, Resources > & operator+=(hashmap< Key, Resources > &left, const hashmap< Key, Resources > &right)
Definition: resources.hpp:672
bool operator==(const CommandInfo &left, const CommandInfo &right)
Resources operator-(const google::protobuf::RepeatedPtrField< Resource > &left, const Resources &right)
Definition: resources.hpp:655
Resources operator+(const google::protobuf::RepeatedPtrField< Resource > &left, const Resources &right)
Definition: resources.hpp:647
bool operator<=(const Value::Scalar &left, const Value::Scalar &right)
std::ostream & operator<<(std::ostream &stream, const Attribute &attribute)