Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework device subcommand and client APIs to support lookup by UUID #414

Merged
merged 27 commits into from
Jun 10, 2024

Commits on Jun 4, 2024

  1. client: Split out functions to for device

    Just part of our long term goal of making client.go smaller
    
    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    ef4a8cd View commit details
    Browse the repository at this point in the history
  2. client: Start moving to a "DeviceApi"

    This will allow us to later on make our CLI work with either UUID or names.
    It also makes the APIs a little more segregated and easier to read.
    
    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    851ac90 View commit details
    Browse the repository at this point in the history
  3. client: Use DeviceApi for rename operation

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    ad2bc10 View commit details
    Browse the repository at this point in the history
  4. client: Use DeviceApi for group configuration

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    dc0a726 View commit details
    Browse the repository at this point in the history
  5. client: Use DeviceAPI for Delete operation

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    e30ebc1 View commit details
    Browse the repository at this point in the history
  6. client: Move to DeviceApi for delete-denied

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    00c8d91 View commit details
    Browse the repository at this point in the history
  7. client: Move to DeviceApi for updates

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    c4d3617 View commit details
    Browse the repository at this point in the history
  8. client: Move to DeviceApi for update events

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    09122e6 View commit details
    Browse the repository at this point in the history
  9. client: Move to DeviceApi for apps-states

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    f2c90bf View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2024

  1. client: Use DeviceApi for config operations

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    a9b4e34 View commit details
    Browse the repository at this point in the history
  2. device: Remove deprecated updates_list

    We deprecated this in 2021. Should be safe now.
    
    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    4a734d9 View commit details
    Browse the repository at this point in the history
  3. device: Include name in show command

    The commits following this will allow showing a device using its device
     UUID. This means the name attribute will become important.
    
    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    7a3d9c0 View commit details
    Browse the repository at this point in the history
  4. Introduce foundation for consistent device look ups

    The changes that follow this will need a consistent way to determine the
    device it should target its operations against. This change makes a
    single place to look the device up from.
    
    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    351b78b View commit details
    Browse the repository at this point in the history
  5. devices: Move show to use getDevice API

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    c004e4a View commit details
    Browse the repository at this point in the history
  6. device: Move updates to getDeviceApi

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    ad4d697 View commit details
    Browse the repository at this point in the history
  7. device: Update rename to use getDeviceApi

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    6e38426 View commit details
    Browse the repository at this point in the history
  8. device: Update delete to use getDeviceApi

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    cc76a97 View commit details
    Browse the repository at this point in the history
  9. device: Update chown to use getDeviceApi

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    a2724b1 View commit details
    Browse the repository at this point in the history
  10. device: Update apps-states to use getDeviceApi

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    5707a61 View commit details
    Browse the repository at this point in the history
  11. device: Update config delete to use getDeviceApi

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    8a82460 View commit details
    Browse the repository at this point in the history
  12. device: Update config group to use getDeviceApi

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    323591d View commit details
    Browse the repository at this point in the history
  13. device: Update config log to use getDeviceApi

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    11983e5 View commit details
    Browse the repository at this point in the history
  14. device: Update config rotate-certs to use getDeviceApi

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    0998598 View commit details
    Browse the repository at this point in the history
  15. device: Update config set to use getDevice

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    c5e2546 View commit details
    Browse the repository at this point in the history
  16. device: Update config updates to use getDevice

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    d79811f View commit details
    Browse the repository at this point in the history
  17. device: Update config wireguard to use getDeviceApi

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    2645c52 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2024

  1. device: Add --by-uuid support to all subcommands

    Signed-off-by: Andy Doan <[email protected]>
    doanac committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    89be418 View commit details
    Browse the repository at this point in the history