Skip to content

Commit

Permalink
Change license from GNU GPL 3 to Apache 2.0.
Browse files Browse the repository at this point in the history
For compatibility with Grafana project.
  • Loading branch information
grafov committed Nov 13, 2016
1 parent c329952 commit be3ee6b
Show file tree
Hide file tree
Showing 17 changed files with 450 additions and 816 deletions.
875 changes: 201 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

23 changes: 11 additions & 12 deletions client/dashboard.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
package client

/*
Copyleft 2016 Alexander I.Grafov <grafov@gmail.com>
Copyright 2016 Alexander I.Grafov <grafov@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
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
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
http://www.apache.org/licenses/LICENSE-2.0
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
ॐ तारे तुत्तारे तुरे स्व
ॐ तारे तुत्तारे तुरे स्व
*/

import (
Expand Down
23 changes: 11 additions & 12 deletions client/datasource.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
package client

/*
Copyleft 2016 Alexander I.Grafov <grafov@gmail.com>
Copyright 2016 Alexander I.Grafov <grafov@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
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
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
http://www.apache.org/licenses/LICENSE-2.0
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
ॐ तारे तुत्तारे तुरे स्व
ॐ तारे तुत्तारे तुरे स्व
*/

import (
Expand Down
23 changes: 11 additions & 12 deletions client/request.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
package client

/*
Copyleft 2016 Alexander I.Grafov <grafov@gmail.com>
Copyright 2016 Alexander I.Grafov <grafov@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
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
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
http://www.apache.org/licenses/LICENSE-2.0
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
ॐ तारे तुत्तारे तुरे स्व
ॐ तारे तुत्तारे तुरे स्व
*/

import (
Expand Down
35 changes: 17 additions & 18 deletions client/user.go
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
package client

import (
"bytes"
"encoding/json"
"fmt"
)

/*
Copyleft 2016 Alexander I.Grafov <grafov@gmail.com>
Copyright 2016 Alexander I.Grafov <grafov@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
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
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
http://www.apache.org/licenses/LICENSE-2.0
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
ॐ तारे तुत्तारे तुरे स्व
ॐ तारे तुत्तारे तुरे स्व
*/

import (
"bytes"
"encoding/json"
"fmt"
)

type User struct {
Login string `json:"login"`
Name string `json:"name"`
Expand Down
32 changes: 24 additions & 8 deletions cmd/backup-dashboards/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
// This is a simple example of usage of Grafana client
// for copying dashboards and saving them to a disk.
// It really useful for Grafana backups!
//
// Usage:
// backup-dashboards http://grafana.host:3000 api-key-string-here
package main

/*
Copyright 2016 Alexander I.Grafov <grafov@gmail.com>
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.
ॐ तारे तुत्तारे तुरे स्व
*/

import (
"fmt"
"io/ioutil"
Expand All @@ -8,14 +32,6 @@ import (
"github.com/grafov/autograf/client"
)

/* This is a simple example of usage of Grafana client
for copying dashboards and saving them to a disk.
It really useful for Grafana backups!
Usage:
backup-dashboards http://grafana.host:3000 api-key-string-here
*/

func main() {
var (
boardLinks []client.FoundBoard
Expand Down
26 changes: 20 additions & 6 deletions cmd/backup-datasources/main.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
// This is a simple example of usage of Grafana client
// for copying dashboards and saving them to a disk.
// It really useful for Grafana backups!
//
// Usage:
// backup-dashboards http://grafana.host:3000 api-key-string-here
package main

/* This is a simple example of usage of Grafana client
for copying datasources and saving them to a disk.
It is useful for Grafana backups!
/*
Copyright 2016 Alexander I.Grafov <grafov@gmail.com>
Usage:
backup-datasources http://grafana.host:3000 api-key-string-here
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
You need get API key with Admin rights from your Grafana!
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.
ॐ तारे तुत्तारे तुरे स्व
*/

import (
Expand Down
30 changes: 23 additions & 7 deletions cmd/import-dashboards/main.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
// This is a simple example of usage of Grafana client
// for importing dashboards from a bunch of JSON files (current dir used).
// You are can export dashboards with backup-dashboards utitity.
// NOTE: old dashboards with same names will be silently overrided!
//
// Usage:
// import-dashboards http://grafana.host:3000 api-key-string-here
//
// You need get API key with Admin rights from your Grafana!
package main

/* This is a simple example of usage of Grafana client
for importing dashboards from a bunch of JSON files (current dir used).
You are can export dashboards with backup-dashboards utitity.
NOTE: old dashboards with same names will be silently overrided!
/*
Copyright 2016 Alexander I.Grafov <grafov@gmail.com>
Usage:
import-dashboards http://grafana.host:3000 api-key-string-here
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
You need get API key with Admin rights from your Grafana!
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.
ॐ तारे तुत्तारे तुरे स्व
*/

import (
Expand Down
30 changes: 23 additions & 7 deletions cmd/import-datasources/main.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
// This is a simple example of usage of Grafana client
// for importing datasources from a bunch of JSON files (current dir used).
// You are can export datasources with backup-datasources utitity.
// NOTE: old datasources with same names will be silently overrided!
//
// Usage:
// import-datasousces http://grafana.host:3000 api-key-string-here
//
// You need get API key with Admin rights from your Grafana!
package main

/* This is a simple example of usage of Grafana client
for importing datasources from a bunch of JSON files (current dir used).
You are can export datasources with backup-datasources utitity.
NOTE: old datasources with same names will be silently overrided!
/*
Copyright 2016 Alexander I.Grafov <grafov@gmail.com>
Usage:
import-datasousces http://grafana.host:3000 api-key-string-here
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
You need get API key with Admin rights from your Grafana!
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.
ॐ तारे तुत्तारे तुरे स्व
*/

import (
Expand Down
23 changes: 11 additions & 12 deletions grafana/board.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
package grafana

/*
Copyleft 2016 Alexander I.Grafov <grafov@gmail.com>
Copyright 2016 Alexander I.Grafov <grafov@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
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
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
http://www.apache.org/licenses/LICENSE-2.0
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
ॐ तारे तुत्तारे तुरे स्व
ॐ तारे तुत्तारे तुरे स्व
*/

import (
Expand Down
18 changes: 18 additions & 0 deletions grafana/board_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
package grafana

/*
Copyright 2016 Alexander I.Grafov <grafov@gmail.com>
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.
ॐ तारे तुत्तारे तुरे स्व
*/

import "testing"

func TestAddTags(t *testing.T) {
Expand Down
23 changes: 11 additions & 12 deletions grafana/custom-types.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
package grafana

/*
Copyleft 2016 Alexander I.Grafov <grafov@gmail.com>
Copyright 2016 Alexander I.Grafov <grafov@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
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
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
http://www.apache.org/licenses/LICENSE-2.0
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
ॐ तारे तुत्तारे तुरे स्व
ॐ तारे तुत्तारे तुरे स्व
*/

import (
Expand Down

0 comments on commit be3ee6b

Please sign in to comment.