Skip to content
Snippets Groups Projects
Commit 3242db60 authored by Steven Murray's avatar Steven Murray
Browse files

Added EOS->CTA interface file notification.proto

parent da9a8f6a
Branches
Tags
No related merge requests found
# The CERN Tape Archive (CTA) project
# Copyright (C) 2015 CERN
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
cmake_minimum_required (VERSION 2.6)
find_package(Protobuf REQUIRED)
file(GLOB ProtoFiles "${CMAKE_CURRENT_SOURCE_DIR}/*.proto")
PROTOBUF_GENERATE_CPP(ProtoSources ProtoHeaders ${ProtoFiles})
set (CTA_FRONT_END_MESSAGES_SRC_FILES
${ProtoSources})
add_library (ctafrontendmessages SHARED
${CTA_FRONT_END_MESSAGES_SRC_FILES})
target_link_libraries (ctafrontendmessages
protobuf)
install (TARGETS ctafrontendmessages DESTINATION usr/${CMAKE_INSTALL_LIBDIR})
syntax = "proto3";
package eos.wfe;
message id {
fixed64 n = 1; // identity number
string name = 2; // identity name
}
message checksum {
string value = 1; //< checksum value
string name = 2; //< checksum name
}
message clock {
fixed64 sec = 1; //< seconds of a clock
fixed64 nsec = 2; //< nanoseconds of a clock
}
message md {
fixed64 fid = 1; //< file/container id
fixed64 pid = 2; //< parent id
clock ctime = 3; //< change time
clock mtime = 4; //< modification time
clock btime = 5; //< birth time
clock ttime = 6; //< tree modification time
id owner = 7; //< ownership
fixed64 size = 8; //< size
checksum cks = 9; //< checksum information
sfixed32 mode = 10; //< mode
string lpath = 11; //< logical path
map<string, string> xattr = 12; //< xattribute map
};
message security {
string host = 1; //< client host
string app = 2; //< app string
string name = 3; //< sec name
string prot = 4; //< security protocol
string grps = 5; //< security grps
}
message client {
id user = 1; //< acting client
security sec = 2; //< client security information
}
message service {
string name = 1; //< name of the service
string url = 2; //< access url of the service
}
message workflow {
string event = 1; //< event
string queue = 2; //< queue
string wfname = 3; //< workflow
string vpath = 4; //< vpath
service instance = 5; //< instance information
fixed64 timestamp = 6; //< event timestamp
}
message notification {
workflow wf = 1; //< workflow
string turl = 2; //< transport URL
client cli = 3; //< client information
md file = 4; //< file meta data
md directory = 5; //< directory meta data
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment