Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Builds #23

Merged
merged 2 commits into from
Oct 10, 2019
Merged

Builds #23

merged 2 commits into from
Oct 10, 2019

Conversation

perigrin
Copy link
Contributor

This PR closes #20 adding support for Builds. Builds are groups of devices that are added together.

$ bin/kosh builds

Usage: kosh builds COMMAND [arg...]

Work with builds
               
Commands:      
  get, ls      Get a list of all builds
  create       Create a new build
               
Run 'kosh builds COMMAND --help' for more information on a command.

You can manipulate individual Builds.

$ bin/kosh build
Error: incorrect usage

Usage: kosh build NAME COMMAND [arg...]

Work with a specific build
                        
Arguments:              
  NAME                  Name or ID of the build
                        
Commands:               
  get                   Get information about a single build by its name
  users                 Manage users in a specific build
  organizations, orgs   Manage organizations in a specific build
  devices, ds           Manage devices in a specific build
  racks                 Manage racks in a specific build
                        
Run 'kosh build COMMAND --help' for more information on a command.

You can add/remove and devices, racks, users and organizations with permissions (admin, ro, rw), on specific Builds.

$ bin/kosh build EXAMPLE users

Usage: kosh build users COMMAND [arg...]

Manage users in a specific build
               
Commands:      
  get, ls      Get a list of users in an build
  add          Add a user to an build
  remove, rm   remove a user from an build
               
Run 'kosh build users COMMAND --help' for more information on a command.

* fix issues raised by `go vet`
* remove extra debugging from integration test
A draft of builds, just the (unwired) CRUD.
@perigrin perigrin merged commit 5a526b0 into master Oct 10, 2019
@perigrin perigrin deleted the perigrin/20-builds branch October 10, 2019 20:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Builds
1 participant