[lxc-devel] [lxd/master] shared/api: Consistent file names

stgraber on Github lxc-bot at linuxcontainers.org
Fri Oct 6 15:09:46 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 600 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171006/101f9dd7/attachment.bin>
-------------- next part --------------
From 65cb526627897a5bd0e9338eaee21d917d27e250 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 6 Oct 2017 11:07:53 -0400
Subject: [PATCH] shared/api: Consistent file names
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The files under shared/api should be named after their API paths with
the one difference that when a collection, the singular should be used.

/1.0/storage-pools => storage_pool.go
/1.0/storage-pools/POOL/volumes => storage_pool_volume.go

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 shared/api/{storage_pools.go => storage_pool.go}          | 0
 shared/api/{storage_volumes.go => storage_pool_volume.go} | 0
 2 files changed, 0 insertions(+), 0 deletions(-)
 rename shared/api/{storage_pools.go => storage_pool.go} (100%)
 rename shared/api/{storage_volumes.go => storage_pool_volume.go} (100%)

diff --git a/shared/api/storage_pools.go b/shared/api/storage_pool.go
similarity index 100%
rename from shared/api/storage_pools.go
rename to shared/api/storage_pool.go
diff --git a/shared/api/storage_volumes.go b/shared/api/storage_pool_volume.go
similarity index 100%
rename from shared/api/storage_volumes.go
rename to shared/api/storage_pool_volume.go


More information about the lxc-devel mailing list