Skip to content

Commit

Permalink
Change madmin-go license to AGPLv3 (#154)
Browse files Browse the repository at this point in the history
Also bump v2.0.0 version
  • Loading branch information
harshavardhana authored Nov 22, 2022
1 parent c0056dd commit 7e8fb56
Show file tree
Hide file tree
Showing 123 changed files with 3,531 additions and 1,004 deletions.
16 changes: 16 additions & 0 deletions .copyright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Copyright (c) ${years} ${owner}.

This file is part of ${projectname}

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
863 changes: 661 additions & 202 deletions LICENSE

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
MinIO Cloud Storage, (C) 2014-2020 MinIO, Inc.
MinIO Project, (C) 2015-2022 MinIO, Inc.

This product includes software developed at MinIO, Inc.
(https://min.io/).

The MinIO project contains unmodified/modified subcomponents too with
separate copyright notices and license terms. Your use of the source
code for these subcomponents is subject to the terms and conditions
of Apache License Version 2.0
of GNU Affero General Public License 3.0.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package main
import (
"fmt"

"github.com/minio/madmin-go"
"github.com/minio/madmin-go/v2"
)

func main() {
Expand Down Expand Up @@ -576,4 +576,5 @@ __Example__
```

## License
This SDK is distributed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0), see [LICENSE](https://github.com/minio/madmin-go/blob/master/LICENSE).
All versions of this SDK starting from [v2.0.0](https://github.com/minio/madmin-go/releases/tag/v2.0.0) are distributed under the GNU AGPLv3 license that can be found in the [LICENSE](https://github.com/minio/madmin-go/blob/master/LICENSE) file.

23 changes: 13 additions & 10 deletions anonymous-api.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
//
// MinIO Object Storage (c) 2022 MinIO, Inc.
// Copyright (c) 2015-2022 MinIO, Inc.
//
// 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 file is part of MinIO Object Storage stack
//
// http://www.apache.org/licenses/LICENSE-2.0
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// 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.
// 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 Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

package madmin
Expand Down
25 changes: 14 additions & 11 deletions api-error-response.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
//
// MinIO Object Storage (c) 2021 MinIO, Inc.
// Copyright (c) 2015-2022 MinIO, Inc.
//
// 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 file is part of MinIO Object Storage stack
//
// http://www.apache.org/licenses/LICENSE-2.0
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// 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.
// 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 Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

package madmin
Expand Down Expand Up @@ -110,7 +113,7 @@ func httpRespToErrorResponse(resp *http.Response) error {
//
// For example:
//
// import admin "github.com/minio/madmin-go"
// import admin "github.com/minio/madmin-go/v2"
// ...
// ...
// ss, err := adm.ServiceStatus(...)
Expand Down
23 changes: 13 additions & 10 deletions api-log-entry.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
//
// MinIO Object Storage (c) 2021 MinIO, Inc.
// Copyright (c) 2015-2022 MinIO, Inc.
//
// 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 file is part of MinIO Object Storage stack
//
// http://www.apache.org/licenses/LICENSE-2.0
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// 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.
// 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 Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

package madmin
Expand Down
23 changes: 13 additions & 10 deletions api-log.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
//
// MinIO Object Storage (c) 2021 MinIO, Inc.
// Copyright (c) 2015-2022 MinIO, Inc.
//
// 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 file is part of MinIO Object Storage stack
//
// http://www.apache.org/licenses/LICENSE-2.0
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// 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.
// 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 Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

package madmin
Expand Down
25 changes: 14 additions & 11 deletions api.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
//
// MinIO Object Storage (c) 2021 MinIO, Inc.
// Copyright (c) 2015-2022 MinIO, Inc.
//
// 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 file is part of MinIO Object Storage stack
//
// http://www.apache.org/licenses/LICENSE-2.0
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// 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.
// 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 Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

package madmin
Expand Down Expand Up @@ -75,7 +78,7 @@ type AdminClient struct {
// Global constants.
const (
libraryName = "madmin-go"
libraryVersion = "0.0.1"
libraryVersion = "2.0.0"

libraryAdminURLPrefix = "/minio/admin"
libraryKMSURLPrefix = "/minio/kms"
Expand Down
25 changes: 14 additions & 11 deletions api_test.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
//
// MinIO Object Storage (c) 2021 MinIO, Inc.
// Copyright (c) 2015-2022 MinIO, Inc.
//
// 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 file is part of MinIO Object Storage stack
//
// http://www.apache.org/licenses/LICENSE-2.0
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// 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.
// 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 Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

// Package madmin_test
Expand All @@ -20,7 +23,7 @@ package madmin_test
import (
"testing"

"github.com/minio/madmin-go"
"github.com/minio/madmin-go/v2"
)

func TestMinioAdminClient(t *testing.T) {
Expand Down
23 changes: 13 additions & 10 deletions auth.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
//
// MinIO Object Storage (c) 2021 MinIO, Inc.
// Copyright (c) 2015-2022 MinIO, Inc.
//
// 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 file is part of MinIO Object Storage stack
//
// http://www.apache.org/licenses/LICENSE-2.0
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// 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.
// 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 Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

package madmin
Expand Down
23 changes: 13 additions & 10 deletions bandwidth.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
//
// MinIO Object Storage (c) 2021 MinIO, Inc.
// Copyright (c) 2015-2022 MinIO, Inc.
//
// 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 file is part of MinIO Object Storage stack
//
// http://www.apache.org/licenses/LICENSE-2.0
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// 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.
// 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 Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

package madmin
Expand Down
23 changes: 13 additions & 10 deletions batch-job.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
//
// MinIO Object Storage (c) 2022 MinIO, Inc.
// Copyright (c) 2015-2022 MinIO, Inc.
//
// 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 file is part of MinIO Object Storage stack
//
// http://www.apache.org/licenses/LICENSE-2.0
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// 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.
// 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 Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

package madmin
Expand Down
23 changes: 13 additions & 10 deletions bucket-metadata.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
//
// MinIO Object Storage (c) 2022 MinIO, Inc.
// Copyright (c) 2015-2022 MinIO, Inc.
//
// 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 file is part of MinIO Object Storage stack
//
// http://www.apache.org/licenses/LICENSE-2.0
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// 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.
// 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 Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

package madmin
Expand Down
Loading

0 comments on commit 7e8fb56

Please sign in to comment.