Skip to content

Commit

Permalink
added counterfeiter licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
Kostov6 committed Nov 17, 2021
1 parent 11439ec commit ce966bb
Show file tree
Hide file tree
Showing 22 changed files with 65 additions and 1,078 deletions.
3 changes: 3 additions & 0 deletions license_prefix.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors
//
// SPDX-License-Identifier: Apache-2.0
2 changes: 1 addition & 1 deletion pkg/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package git

//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate -header ../../license_prefix.txt

import (
"context"
Expand Down
3 changes: 3 additions & 0 deletions pkg/git/gitfakes/fake_git.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/git/gitfakes/fake_repository.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/git/gitfakes/fake_repository_worktree.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pkg/reactor/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@

package reactor

//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate -header ../../license_prefix.txt

import (
"context"
"errors"
"fmt"
"github.com/gardener/docforge/pkg/jobs"
"io"
"net/http"
"os"
"strings"
"sync"
"text/template"

"github.com/gardener/docforge/pkg/jobs"

"github.com/gardener/docforge/pkg/processors"
"k8s.io/klog/v2"

Expand Down
3 changes: 3 additions & 0 deletions pkg/reactor/reactorfakes/fake_download_scheduler.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/reactor/reactorfakes/fake_git_hub_info.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/reactor/reactorfakes/fake_reader.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/reactor/reactorfakes/fake_validator.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

510 changes: 3 additions & 507 deletions pkg/resourcehandlers/git/gitGinko_resource_handler_test.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/resourcehandlers/git/git_resource_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: Apache-2.0

//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate -header ../../../license_prefix.txt

//counterfeiter:generate os.FileInfo

Expand Down
3 changes: 3 additions & 0 deletions pkg/resourcehandlers/git/gitfakes/fake_file_info.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/resourcehandlers/git/gitfakes/fake_file_reader.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

573 changes: 10 additions & 563 deletions pkg/resourcehandlers/github/githubGinko_resource_handler_test.go

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions pkg/resourcehandlers/resource_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@

package resourcehandlers

//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate -header ../../license_prefix.txt

import (
"context"
"fmt"
"reflect"

"github.com/gardener/docforge/pkg/api"
"github.com/gardener/docforge/pkg/util/httpclient"
"reflect"
)

// ErrResourceNotFound indicated that a resource was not found
Expand Down
3 changes: 3 additions & 0 deletions pkg/resourcehandlers/resourcehandlersfakes/fake_registry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/util/httpclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package httpclient

//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate -header ../../../license_prefix.txt

import "net/http"

Expand Down
3 changes: 3 additions & 0 deletions pkg/util/httpclient/httpclientfakes/fake_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/writers/writers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package writers

//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate -header ../../license_prefix.txt

import "github.com/gardener/docforge/pkg/api"

Expand Down
3 changes: 3 additions & 0 deletions pkg/writers/writersfakes/fake_writer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ce966bb

Please sign in to comment.