Code Monkey home page Code Monkey logo

Comments (8)

vieux avatar vieux commented on July 28, 2024

👍

from engine-api.

dnephin avatar dnephin commented on July 28, 2024

CustomStatus is not very descriptive. Wouldn't it make sense to use something more descriptive about the values it contains? I assume it's about the node status, so maybe NodeStatus? or ClusterStatus ?

from engine-api.

nishanttotla avatar nishanttotla commented on July 28, 2024

@dnephin The idea is that Docker Engine isn't tied to Swarm only, so we want a more generic "extra info" field that could be used by other tools also. What do you think?

from engine-api.

dnephin avatar dnephin commented on July 28, 2024

I think it would still be better to be descriptive, engine can just return nil for the value and it will be omitted from the response.

from engine-api.

nishanttotla avatar nishanttotla commented on July 28, 2024

Fair point, but it bloats the API, and depending on how Swarm evolves, may not be needed later. A general [][2]string field on the other hand will be more flexible.

@calavera what do you think?

from engine-api.

dongluochen avatar dongluochen commented on July 28, 2024

@nishanttotla Can you provide examples how this field will be used?

from engine-api.

nishanttotla avatar nishanttotla commented on July 28, 2024

The current use case is only for Swarm (as per this issue docker-archive/classicswarm#1625). An example for what this field might contain is as follows:

[][]string{
{"Role", "primary"},
{"Strategy", "spread"},
{"Nodes", "2"},
{" agent-01", "x.x.x.x:2375"},
{" └ Status", "Healthy"},
...
{" agent-02", "x.x.x.x:2375"},
{" └ Status", "Healthy"},
...
}

Essentially the entire cluster-related information with the right formatting, with the understanding that the Engine API will print the list as is.

from engine-api.

calavera avatar calavera commented on July 28, 2024

This has been fixed in #46

from engine-api.

Related Issues (20)

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.