279 lines
12 KiB
Erlang
279 lines
12 KiB
Erlang
%% -*- coding: utf-8 -*-
|
|
%% Automatically generated, do not edit
|
|
%% Generated by gpb_compile version 4.21.7
|
|
|
|
-ifndef(message_pb).
|
|
-define(message_pb, true).
|
|
|
|
-define(message_pb_gpb_version, "4.21.7").
|
|
|
|
|
|
-ifndef('REQUESTFRAME_PB_H').
|
|
-define('REQUESTFRAME_PB_H', true).
|
|
-record('RequestFrame',
|
|
{packet_id = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
body :: {auth_request, message_pb:'AuthRequest'()} | {container_request, message_pb:'ContainerRequest'()} | undefined % oneof
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('REPLYFRAME_PB_H').
|
|
-define('REPLYFRAME_PB_H', true).
|
|
-record('ReplyFrame',
|
|
{packet_id = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
reply :: {result, message_pb:'ReplyResult'()} | {error, message_pb:'ReplyError'()} | undefined % oneof
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('REPLYRESULT_PB_H').
|
|
-define('REPLYRESULT_PB_H', true).
|
|
-record('ReplyResult',
|
|
{data = <<>> :: iodata() | undefined % = 1, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('REPLYERROR_PB_H').
|
|
-define('REPLYERROR_PB_H', true).
|
|
-record('ReplyError',
|
|
{code = 0 :: integer() | undefined, % = 1, optional, 32 bits
|
|
message = <<>> :: unicode:chardata() | undefined % = 2, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('CASTFRAME_PB_H').
|
|
-define('CASTFRAME_PB_H', true).
|
|
-record('CastFrame',
|
|
{body :: {pub, message_pb:'Pub'()} | {command, message_pb:'Command'()} | {data, message_pb:'Data'()} | {event_stream, message_pb:'TaskEventStream'()} | undefined % oneof
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('AUTHREQUEST_PB_H').
|
|
-define('AUTHREQUEST_PB_H', true).
|
|
-record('AuthRequest',
|
|
{uuid = <<>> :: iodata() | undefined, % = 1, optional
|
|
username = <<>> :: iodata() | undefined, % = 2, optional
|
|
salt = <<>> :: iodata() | undefined, % = 3, optional
|
|
token = <<>> :: iodata() | undefined, % = 4, optional
|
|
timestamp = 0 :: integer() | undefined % = 5, optional, 32 bits
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('PUB_PB_H').
|
|
-define('PUB_PB_H', true).
|
|
-record('Pub',
|
|
{topic = <<>> :: iodata() | undefined, % = 1, optional
|
|
qos = 0 :: integer() | undefined, % = 2, optional, 32 bits
|
|
content = <<>> :: iodata() | undefined % = 3, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('COMMAND_PB_H').
|
|
-define('COMMAND_PB_H', true).
|
|
-record('Command',
|
|
{command_type = 0 :: integer() | undefined, % = 1, optional, 32 bits
|
|
command = <<>> :: iodata() | undefined % = 2, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('DATA_PB_H').
|
|
-define('DATA_PB_H', true).
|
|
-record('Data',
|
|
{route_key = <<>> :: iodata() | undefined, % = 1, optional
|
|
metric = <<>> :: iodata() | undefined % = 2, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('TASKEVENTSTREAM_PB_H').
|
|
-define('TASKEVENTSTREAM_PB_H', true).
|
|
-record('TaskEventStream',
|
|
{task_id = 0 :: integer() | undefined, % = 1, optional, 32 bits
|
|
type = <<>> :: iodata() | undefined, % = 2, optional
|
|
stream = <<>> :: iodata() | undefined % = 3, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('CONTAINERREF_PB_H').
|
|
-define('CONTAINERREF_PB_H', true).
|
|
-record('ContainerRef',
|
|
{id = <<>> :: unicode:chardata() | undefined, % = 1, optional
|
|
name = <<>> :: unicode:chardata() | undefined % = 2, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('CONTAINERREQUEST.LIST_PB_H').
|
|
-define('CONTAINERREQUEST.LIST_PB_H', true).
|
|
-record('ContainerRequest.List',
|
|
{all = false :: boolean() | 0 | 1 | undefined % = 1, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('CONTAINERREQUEST.DEPLOY_PB_H').
|
|
-define('CONTAINERREQUEST.DEPLOY_PB_H', true).
|
|
-record('ContainerRequest.Deploy',
|
|
{task_id = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
params = undefined :: message_pb:'ContainerDeployParams'() | undefined % = 2, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('CONTAINERREQUEST.START_PB_H').
|
|
-define('CONTAINERREQUEST.START_PB_H', true).
|
|
-record('ContainerRequest.Start',
|
|
{target = undefined :: message_pb:'ContainerRef'() | undefined % = 1, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('CONTAINERREQUEST.STOP_PB_H').
|
|
-define('CONTAINERREQUEST.STOP_PB_H', true).
|
|
-record('ContainerRequest.Stop',
|
|
{target = undefined :: message_pb:'ContainerRef'() | undefined, % = 1, optional
|
|
timeout_seconds = 0 :: non_neg_integer() | undefined % = 2, optional, 32 bits
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('CONTAINERREQUEST.KILL_PB_H').
|
|
-define('CONTAINERREQUEST.KILL_PB_H', true).
|
|
-record('ContainerRequest.Kill',
|
|
{target = undefined :: message_pb:'ContainerRef'() | undefined, % = 1, optional
|
|
signal = <<>> :: unicode:chardata() | undefined % = 2, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('CONTAINERREQUEST.REMOVE_PB_H').
|
|
-define('CONTAINERREQUEST.REMOVE_PB_H', true).
|
|
-record('ContainerRequest.Remove',
|
|
{target = undefined :: message_pb:'ContainerRef'() | undefined, % = 1, optional
|
|
force = false :: boolean() | 0 | 1 | undefined, % = 2, optional
|
|
remove_volumes = false :: boolean() | 0 | 1 | undefined % = 3, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('CONTAINERREQUEST.CONFIG_PB_H').
|
|
-define('CONTAINERREQUEST.CONFIG_PB_H', true).
|
|
-record('ContainerRequest.Config',
|
|
{target = undefined :: message_pb:'ContainerRef'() | undefined, % = 1, optional
|
|
config = <<>> :: iodata() | undefined % = 2, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('CONTAINERREQUEST_PB_H').
|
|
-define('CONTAINERREQUEST_PB_H', true).
|
|
-record('ContainerRequest',
|
|
{action :: {list, message_pb:'ContainerRequest.List'()} | {deploy, message_pb:'ContainerRequest.Deploy'()} | {start, message_pb:'ContainerRequest.Start'()} | {stop, message_pb:'ContainerRequest.Stop'()} | {kill, message_pb:'ContainerRequest.Kill'()} | {remove, message_pb:'ContainerRequest.Remove'()} | {config, message_pb:'ContainerRequest.Config'()} | undefined % oneof
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('CONTAINERDEPLOYPARAMS_PB_H').
|
|
-define('CONTAINERDEPLOYPARAMS_PB_H', true).
|
|
-record('ContainerDeployParams',
|
|
{container_name = <<>> :: unicode:chardata() | undefined, % = 1, optional
|
|
container_dir = <<>> :: unicode:chardata() | undefined, % = 2, optional
|
|
create = undefined :: message_pb:'DockerCreateOptions'() | undefined % = 3, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('DOCKERCREATEOPTIONS_PB_H').
|
|
-define('DOCKERCREATEOPTIONS_PB_H', true).
|
|
-record('DockerCreateOptions',
|
|
{config = undefined :: message_pb:'DockerContainerConfig'() | undefined, % = 1, optional
|
|
host_config = undefined :: message_pb:'DockerHostConfig'() | undefined, % = 2, optional
|
|
networking_config = undefined :: message_pb:'DockerNetworkingConfig'() | undefined % = 3, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('DOCKERCONTAINERCONFIG_PB_H').
|
|
-define('DOCKERCONTAINERCONFIG_PB_H', true).
|
|
-record('DockerContainerConfig',
|
|
{image = <<>> :: unicode:chardata() | undefined, % = 1, optional
|
|
cmd = [] :: [unicode:chardata()] | undefined, % = 2, repeated
|
|
entrypoint = [] :: [unicode:chardata()] | undefined, % = 3, repeated
|
|
env = [] :: [unicode:chardata()] | undefined, % = 4, repeated
|
|
labels = [] :: [{unicode:chardata(), unicode:chardata()}] | undefined, % = 5
|
|
volumes = [] :: [unicode:chardata()] | undefined, % = 6, repeated
|
|
user = <<>> :: unicode:chardata() | undefined, % = 7, optional
|
|
working_dir = <<>> :: unicode:chardata() | undefined, % = 8, optional
|
|
hostname = <<>> :: unicode:chardata() | undefined, % = 9, optional
|
|
exposed_ports = [] :: [message_pb:'DockerExposedPort'()] | undefined, % = 10, repeated
|
|
healthcheck = undefined :: message_pb:'Healthcheck'() | undefined % = 11, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('DOCKERHOSTCONFIG_PB_H').
|
|
-define('DOCKERHOSTCONFIG_PB_H', true).
|
|
-record('DockerHostConfig',
|
|
{binds = [] :: [unicode:chardata()] | undefined, % = 1, repeated
|
|
network_mode = <<>> :: unicode:chardata() | undefined, % = 2, optional
|
|
restart_policy = undefined :: message_pb:'RestartPolicy'() | undefined, % = 3, optional
|
|
privileged = false :: boolean() | 0 | 1 | undefined, % = 4, optional
|
|
cap_add = [] :: [unicode:chardata()] | undefined, % = 5, repeated
|
|
cap_drop = [] :: [unicode:chardata()] | undefined, % = 6, repeated
|
|
devices = [] :: [message_pb:'DeviceMapping'()] | undefined, % = 7, repeated
|
|
memory = 0 :: non_neg_integer() | undefined, % = 8, optional, 64 bits
|
|
memory_reservation = 0 :: non_neg_integer() | undefined, % = 9, optional, 64 bits
|
|
nano_cpus = 0 :: non_neg_integer() | undefined, % = 10, optional, 64 bits
|
|
cpu_shares = 0 :: non_neg_integer() | undefined, % = 11, optional, 64 bits
|
|
ulimits = [] :: [message_pb:'Ulimit'()] | undefined, % = 12, repeated
|
|
tmpfs = [] :: [{unicode:chardata(), unicode:chardata()}] | undefined, % = 13
|
|
sysctls = [] :: [{unicode:chardata(), unicode:chardata()}] | undefined, % = 14
|
|
extra_hosts = [] :: [unicode:chardata()] | undefined % = 15, repeated
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('DOCKERNETWORKINGCONFIG_PB_H').
|
|
-define('DOCKERNETWORKINGCONFIG_PB_H', true).
|
|
-record('DockerNetworkingConfig',
|
|
{endpoints = [] :: [message_pb:'DockerNetworkEndpoint'()] | undefined % = 1, repeated
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('DOCKERNETWORKENDPOINT_PB_H').
|
|
-define('DOCKERNETWORKENDPOINT_PB_H', true).
|
|
-record('DockerNetworkEndpoint',
|
|
{name = <<>> :: unicode:chardata() | undefined % = 1, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('DOCKEREXPOSEDPORT_PB_H').
|
|
-define('DOCKEREXPOSEDPORT_PB_H', true).
|
|
-record('DockerExposedPort',
|
|
{container_port = 0 :: non_neg_integer() | undefined, % = 1, optional, 32 bits
|
|
protocol = <<>> :: unicode:chardata() | undefined % = 2, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('HEALTHCHECK_PB_H').
|
|
-define('HEALTHCHECK_PB_H', true).
|
|
-record('Healthcheck',
|
|
{test = [] :: [unicode:chardata()] | undefined, % = 1, repeated
|
|
interval_ns = 0 :: non_neg_integer() | undefined, % = 2, optional, 64 bits
|
|
timeout_ns = 0 :: non_neg_integer() | undefined, % = 3, optional, 64 bits
|
|
retries = 0 :: non_neg_integer() | undefined % = 4, optional, 32 bits
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('RESTARTPOLICY_PB_H').
|
|
-define('RESTARTPOLICY_PB_H', true).
|
|
-record('RestartPolicy',
|
|
{name = <<>> :: unicode:chardata() | undefined, % = 1, optional
|
|
maximum_retry_count = 0 :: non_neg_integer() | undefined % = 2, optional, 32 bits
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('DEVICEMAPPING_PB_H').
|
|
-define('DEVICEMAPPING_PB_H', true).
|
|
-record('DeviceMapping',
|
|
{host_path = <<>> :: unicode:chardata() | undefined, % = 1, optional
|
|
container_path = <<>> :: unicode:chardata() | undefined, % = 2, optional
|
|
cgroup_permissions = <<>> :: unicode:chardata() | undefined % = 3, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('ULIMIT_PB_H').
|
|
-define('ULIMIT_PB_H', true).
|
|
-record('Ulimit',
|
|
{name = <<>> :: unicode:chardata() | undefined, % = 1, optional
|
|
soft = 0 :: non_neg_integer() | undefined, % = 2, optional, 64 bits
|
|
hard = 0 :: non_neg_integer() | undefined % = 3, optional, 64 bits
|
|
}).
|
|
-endif.
|
|
|
|
-endif.
|