Skip to content

(*System) Shutdown signature && bigmachine.Machine unique IDs #13

@DazWilkin

Description

@DazWilkin

The signature of Start is:

(*System) Start(ctx context.Context, count int) ([]*bigmachine.Machine, error)

Whereas (its converse) Shutdown is:

(*System) Shutdown()

It feels as though it would be more consistent , if Shutdown's signature included both context.Context and []*bigmachine.Machine, also returning an error.

Even then, bigmachine.Machine's type does not include a unique ID for the machine (beyond an IP address; often not used as a key), would it make sense to add one?

I'm not retaining the list of machines created by (Start in) the GCE implementation and so, conversely when asked to Shutdown, I must first enumerate all the instances that (I think) have been created (I'm doing this by tag, could potentially use IP) and then make a call to delete these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions