Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Rook
Commits
110085e7
Commit
110085e7
authored
8 years ago
by
Bassam Tabbara
Committed by
GitHub
8 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #151 from bassamtabbara/docs-and-licensing
initial docs and licensing
parents
3ab8958e
b3c4f18c
Changes
163
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
cmd/rook/pool.go
+15
-0
cmd/rook/pool.go
cmd/rook/rook.go
+15
-0
cmd/rook/rook.go
cmd/rook/status.go
+15
-0
cmd/rook/status.go
cmd/rook/status_test.go
+15
-0
cmd/rook/status_test.go
cmd/rookd/daemon.go
+15
-0
cmd/rookd/daemon.go
cmd/rookd/main.go
+15
-0
cmd/rookd/main.go
cmd/rookd/version.go
+16
-0
cmd/rookd/version.go
demo/vagrant/Vagrantfile
+14
-0
demo/vagrant/Vagrantfile
demo/vagrant/util.rb
+14
-0
demo/vagrant/util.rb
main.go
+15
-0
main.go
pkg/api/device.go
+15
-0
pkg/api/device.go
pkg/api/handlers.go
+15
-0
pkg/api/handlers.go
pkg/api/handlers_test.go
+15
-0
pkg/api/handlers_test.go
pkg/api/image.go
+15
-0
pkg/api/image.go
pkg/api/logger.go
+15
-0
pkg/api/logger.go
pkg/api/node.go
+15
-0
pkg/api/node.go
pkg/api/pool.go
+15
-0
pkg/api/pool.go
pkg/api/router.go
+15
-0
pkg/api/router.go
pkg/api/routes.go
+15
-0
pkg/api/routes.go
pkg/api/status.go
+15
-0
pkg/api/status.go
with
299 additions
and
0 deletions
+299
-0
cmd/rook/pool.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
rook
package
rook
import
"github.com/spf13/cobra"
import
"github.com/spf13/cobra"
...
...
This diff is collapsed.
Click to expand it.
cmd/rook/rook.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
rook
package
rook
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
cmd/rook/status.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
rook
package
rook
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
cmd/rook/status_test.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
rook
package
rook
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
cmd/rookd/daemon.go
+
15
-
0
View file @
110085e7
// +build linux,amd64 linux,arm64
// +build linux,amd64 linux,arm64
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
main
package
main
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
cmd/rookd/main.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
main
package
main
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
cmd/rookd/version.go
+
16
-
0
View file @
110085e7
// +build linux,amd64 linux,arm64
// +build linux,amd64 linux,arm64
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
main
package
main
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
demo/vagrant/Vagrantfile
+
14
-
0
View file @
110085e7
# Copyright 2016 The Rook Authors. All rights reserved.
#
# 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.
VAGRANTFILE_API_VERSION
=
"2"
VAGRANTFILE_API_VERSION
=
"2"
$channel
=
"alpha"
$channel
=
"alpha"
...
...
This diff is collapsed.
Click to expand it.
demo/vagrant/util.rb
+
14
-
0
View file @
110085e7
# Copyright 2016 The Rook Authors. All rights reserved.
#
# 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.
def
set_coreos_box
(
config
,
channel
)
def
set_coreos_box
(
config
,
channel
)
config
.
vm
.
box
=
"coreos-%s"
%
channel
config
.
vm
.
box
=
"coreos-%s"
%
channel
config
.
vm
.
box_url
=
"http://%s.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json"
%
$channel
config
.
vm
.
box_url
=
"http://%s.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json"
%
$channel
...
...
This diff is collapsed.
Click to expand it.
main.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
main
package
main
import
"github.com/rook/rook/cmd/rook"
import
"github.com/rook/rook/cmd/rook"
...
...
This diff is collapsed.
Click to expand it.
pkg/api/device.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
api
package
api
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
pkg/api/handlers.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
api
package
api
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
pkg/api/handlers_test.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
api
package
api
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
pkg/api/image.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
api
package
api
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
pkg/api/logger.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
api
package
api
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
pkg/api/node.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
api
package
api
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
pkg/api/pool.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
api
package
api
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
pkg/api/router.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
api
package
api
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
pkg/api/routes.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
api
package
api
func
(
h
*
Handler
)
GetRoutes
()
[]
Route
{
func
(
h
*
Handler
)
GetRoutes
()
[]
Route
{
...
...
This diff is collapsed.
Click to expand it.
pkg/api/status.go
+
15
-
0
View file @
110085e7
/*
Copyright 2016 The Rook Authors. All rights reserved.
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
api
package
api
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
6
7
…
9
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment