From 7a9175e735b35a1b75bc14acf4d6f3c15cbe69af Mon Sep 17 00:00:00 2001 From: visheshnp Date: Wed, 2 Aug 2017 18:59:21 -0700 Subject: [PATCH] clientv3 : Added licences to files --- clientv3/leasing/cache.go | 14 ++++++++++++++ clientv3/leasing/doc.go | 2 -- clientv3/leasing/txn.go | 14 ++++++++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/clientv3/leasing/cache.go b/clientv3/leasing/cache.go index b69fccac903d..ddb2d28d5b1b 100644 --- a/clientv3/leasing/cache.go +++ b/clientv3/leasing/cache.go @@ -1,3 +1,17 @@ +// Copyright 2017 The etcd Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package leasing import ( diff --git a/clientv3/leasing/doc.go b/clientv3/leasing/doc.go index 60465deb76e6..a5d04934bfcd 100644 --- a/clientv3/leasing/doc.go +++ b/clientv3/leasing/doc.go @@ -25,11 +25,9 @@ // // The first range request acquires the lease by adding the leasing key ("leasing-prefix"/key) on the server and stores the key locally. // Further linearized read requests using 'cli.leasing' will be served locally as long as the lease exists: -// // cli.Put(context.TODO(), "abc", "123") // // Lease Acquisition: -// // leasingCli.Get(context.TODO(), "abc") // // Local reads: diff --git a/clientv3/leasing/txn.go b/clientv3/leasing/txn.go index 0e8ac00d8702..da5b83a8abb9 100644 --- a/clientv3/leasing/txn.go +++ b/clientv3/leasing/txn.go @@ -1,3 +1,17 @@ +// Copyright 2017 The etcd Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package leasing import (