GithubHelp home page GithubHelp logo

tencent / tat-agent Goto Github PK

View Code? Open in Web Editor NEW
116.0 10.0 28.0 408 KB

TAT agent is an agent written in Rust, which run in CVM, Lighthouse or CPM 2.0 instances. Its role is to run commands remotely without ssh login, invoked from TencentCloud Console/API. Commands include but not limited to: Shell, PowerShell, Python. TAT stands for TencentCloud Automation Tools. See more info at https://cloud.tencent.com/product/tat.

License: Other

Dockerfile 0.04% Makefile 0.85% Batchfile 0.82% Shell 3.20% Rust 92.18% PowerShell 0.63% HTML 2.28%
rust agent tencentcloud tat

tat-agent's People

Contributors

hustclf avatar lixiaofei123 avatar m0renet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tat-agent's Issues

I think we should support Mac OS

When I fork local the following errors occur when compiling locally. The error log probably means that my cargo source cannot find the corresponding os

   Compiling procfs v0.12.0
error[E0433]: failed to resolve: could not find `linux` in `os`
  --> /Users/jameszow/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.12.0/src/process/mod.rs:66:14
   |
66 | use std::os::linux::fs::MetadataExt;
   |              ^^^^^ could not find `linux` in `os`

error[E0425]: cannot find function `stat64` in crate `libc`
   --> /Users/jameszow/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.12.0/src/process/namespaces.rs:25:31
    |
25  |             if unsafe { libc::stat64(cstr.as_ptr(), &mut stat) } != 0 {
    |                               ^^^^^^ help: a function with a similar name exists: `stat`
    |
   ::: /Users/jameszow/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.126/src/unix/mod.rs:726:5
    |
726 |     pub fn stat(path: *const c_char, buf: *mut stat) -> ::c_int;
    |     ----------------------------------------------------------- similarly named function `stat` defined here

   Compiling http-body v0.1.0
error[E0599]: no method named `st_mode` found for struct `Metadata` in the current scope
   --> /Users/jameszow/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.12.0/src/process/mod.rs:701:23
    |
701 |             mode: (md.st_mode() as libc::mode_t) & libc::S_IRWXU,
    |                       ^^^^^^^ method not found in `Metadata`
    |
   ::: /Users/jameszow/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/os/macos/fs.rs:34:8
    |
34  |     fn st_mode(&self) -> u32;
    |        ------- the method is available for `Metadata` here
    |
    = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
    |
55  | use std::os::macos::fs::MetadataExt;
    |

error[E0599]: no method named `st_uid` found for struct `Metadata` in the current scope
   --> /Users/jameszow/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.12.0/src/process/mod.rs:759:23
    |
759 |             owner: md.st_uid(),
    |                       ^^^^^^ method not found in `Metadata`
    |
   ::: /Users/jameszow/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/os/macos/fs.rs:38:8
    |
38  |     fn st_uid(&self) -> u32;
    |        ------ the method is available for `Metadata` here
    |
    = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
    |
55  | use std::os::macos::fs::MetadataExt;
    |

error[E0599]: no method named `st_mode` found for struct `Metadata` in the current scope
   --> /Users/jameszow/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.12.0/src/process/mod.rs:994:31
    |
994 |                     mode: (md.st_mode() as libc::mode_t) & libc::S_IRWXU,
    |                               ^^^^^^^ method not found in `Metadata`
    |
   ::: /Users/jameszow/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/os/macos/fs.rs:34:8
    |
34  |     fn st_mode(&self) -> u32;
    |        ------- the method is available for `Metadata` here
    |
    = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
    |
55  | use std::os::macos::fs::MetadataExt;
    |

Some errors have detailed explanations: E0425, E0433, E0599.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `procfs` due to 5 previous errors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.