From 0058b08eeb8c603c8c416588427553bcdef2d915 Mon Sep 17 00:00:00 2001 From: tgic Date: Tue, 28 Jul 2015 12:45:05 +0800 Subject: [PATCH] add include_oss build tag Signed-off-by: tgic --- registry/storage/driver/oss/doc.go | 3 +++ registry/storage/driver/oss/oss.go | 2 ++ registry/storage/driver/oss/oss_test.go | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 registry/storage/driver/oss/doc.go diff --git a/registry/storage/driver/oss/doc.go b/registry/storage/driver/oss/doc.go new file mode 100644 index 000000000..d1bc932f8 --- /dev/null +++ b/registry/storage/driver/oss/doc.go @@ -0,0 +1,3 @@ +// Package oss implements the Aliyun OSS Storage driver backend. Support can be +// enabled by including the "include_oss" build tag. +package oss diff --git a/registry/storage/driver/oss/oss.go b/registry/storage/driver/oss/oss.go index 2303ebd0d..cbda6d166 100644 --- a/registry/storage/driver/oss/oss.go +++ b/registry/storage/driver/oss/oss.go @@ -7,6 +7,8 @@ // Because OSS is a key, value store the Stat call does not support last modification // time for directories (directories are an abstraction for key, value stores) // +// +build include_oss + package oss import ( diff --git a/registry/storage/driver/oss/oss_test.go b/registry/storage/driver/oss/oss_test.go index 2749a3d01..56ec32085 100644 --- a/registry/storage/driver/oss/oss_test.go +++ b/registry/storage/driver/oss/oss_test.go @@ -1,3 +1,5 @@ +// +build include_oss + package oss import (