1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/dtstack_dev_0-easyagent

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
protoc.md 4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
gitlife-traslator Отправлено 30.11.2024 12:15 d453f44

messages define

Register

// Register
message RegisterRequest {
    SidecarRequestHeader H = 1 [(gogoproto.nullable) = false, (gogoproto.embed) = true];

    string osType = 2;
    string osPlatform = 3;
    string osVersion = 4;
    string cpuSerial = 5;
    uint32 cpuCores = 6;
    uint64 memSize = 7;
    uint64 swapSize = 8;
    string host = 9;
    string localIp = 10;
    repeated string callBack = 11;
}

message RegisterResponse {

}

Controlling

// Controlling
message ControlRequest {
    SidecarRequestHeader H = 1 [(gogoproto.nullable) = false, (gogoproto.embed) = true];
}

message ControlResponse {

    enum ControlCmd {
        INSTALL_AGENT = 0;
        UNINSTALL_AGENT = 1;
        UPDATE_AGENT = 2;
        START_AGENT = 3;
        STOP_AGENT = 4;
        UPDATE_AGENT_CONFIG = 5;
        UPDATE_SIDECAR = 6;
        UPDATE_SIDECAR_CONFIG = 7;
        EXEC_SCRIPT = 8;
        CANCEL_AGENTS = 9;
        EXEC_REST = 10;
    }

    ControlCmd cmd = 1;

    uint32 seqno = 2;

    oneof options {
        InstallAgentOptions installAgentOptions = 100;
        UninstallAgentOptions uninstallAgentOptions = 101;
        UpdateAgentOptions updateAgentOptions = 102;
        StartAgentOptions startAgentOptions = 103;
        StopAgentOptions stopAgentOptions = 104;
        UpdateAgentConfigOptions updateAgentConfigOptions = 105;
        UpdateSidecarOptions updateSidecarOptions = 106;
        UpdateSidecarConfigOptions updateSidecarConfigOptions = 107;
        ExecScriptOptions execScriptOptions = 108;
        CancelOptions cancelOptions = 109;
        ExecRestOptions execRestOptions = 110;
    }

    message InstallAgentOptions {
        bytes agentId = 1 [(gogoproto.customtype) = "Uuid", (gogoproto.nullable) = false];
        string configurationPath = 2;
        string binaryPath = 3;
        repeated string parameter = 4;
        string name = 5;

        repeated string installParameter = 6;
        string installScript = 7;
        string workdir = 8;

        string healthShell = 9;
        google.protobuf.Duration healthPeriod = 10 [(gogoproto.stdduration) = true, (gogoproto.nullable) = false];

        google.protobuf.Duration timeout = 11 [(gogoproto.stdduration) = true, (gogoproto.nullable) = false];
        google.protobuf.Duration healthStartPeriod = 12 [(gogoproto.stdduration) = true, (gogoproto.nullable) = false];
        google.protobuf.Duration healthTimeout = 13 [(gogoproto.stdduration) = true, (gogoproto.nullable) = false];
        uint64 healthRetries = 14;
        string runUser = 15;
    }

    message UninstallAgentOptions {
        bytes agentId = 1 [(gogoproto.customtype) = "Uuid", (gogoproto.nullable) = false];
        repeated string parameter = 2;
        string uninstallScript = 3;

        google.protobuf.Duration timeout = 4 [(gogoproto.stdduration) = true, (gogoproto.nullable) = false];
    }

    message UpdateAgentOptions {
        bytes agentId = 1 [(gogoproto.customtype) = "Uuid", (gogoproto.nullable) = false];
        repeated string parameter = 2;
        string updateScript = 3;

        google.protobuf.Duration timeout = 4 [(gogoproto.stdduration) = true, (gogoproto.nullable) = false];
    }

    message StartAgentOptions {
        bytes agentId = 1 [(gogoproto.customtype) = "Uuid", (gogoproto.nullable) = false];
        float cpuLimit = 2;
        uint64 memLimit = 3;
        uint64 netLimit = 4;
        map<string, string> environment = 5;
    }

    message StopAgentOptions {
        bytes agentId = 1 [(gogoproto.customtype) = "Uuid", (gogoproto.nullable) = false];

        enum StopAgentOptionsType {
            STOP_UNRECOVER = 0;
            STOP_RECOVER = 1;
        }

        StopAgentOptionsType stopAgentOptionsType = 2;
    }

    message UpdateAgentConfigOptions {
        bytes agentId = 1 [(gogoproto.customtype) = "Uuid", (gogoproto.nullable) = false];
        string configContent = 2;
        string configPath = 3;
    }

    message UpdateSidecarOptions {
    }

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/dtstack_dev_0-easyagent.git
git@api.gitlife.ru:oschina-mirror/dtstack_dev_0-easyagent.git
oschina-mirror
dtstack_dev_0-easyagent
dtstack_dev_0-easyagent
master