Skip to content

Commit

Permalink
rollback - Upgrade api version. (gravitational#7751)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger authored Jul 30, 2021
1 parent 185e5fd commit 9b8b9d6
Show file tree
Hide file tree
Showing 390 changed files with 790 additions and 790 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -744,8 +744,8 @@ update-vendor:
go mod vendor
# delete the vendored api package. In its place
# create a symlink to the the original api package
rm -r vendor/github.com/gravitational/teleport/api/v7
ln -s -r $(shell readlink -f api) vendor/github.com/gravitational/teleport/api/v7
rm -r vendor/github.com/gravitational/teleport/api
ln -s -r $(shell readlink -f api) vendor/github.com/gravitational/teleport

# update-webassets updates the minified code in the webassets repo using the latest webapps
# repo and creates a PR in the teleport repo to update webassets submodule.
Expand Down
4 changes: 2 additions & 2 deletions api/client/auditstreamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"context"
"sync"

"github.com/gravitational/teleport/api/v7/client/proto"
"github.com/gravitational/teleport/api/v7/types/events"
"github.com/gravitational/teleport/api/client/proto"
"github.com/gravitational/teleport/api/types/events"

"github.com/gravitational/trace"
"github.com/gravitational/trace/trail"
Expand Down
14 changes: 7 additions & 7 deletions api/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import (
"sync/atomic"
"time"

"github.com/gravitational/teleport/api/v7/client/proto"
"github.com/gravitational/teleport/api/v7/constants"
"github.com/gravitational/teleport/api/v7/defaults"
"github.com/gravitational/teleport/api/v7/metadata"
"github.com/gravitational/teleport/api/v7/types"
"github.com/gravitational/teleport/api/v7/types/events"
"github.com/gravitational/teleport/api/v7/utils"
"github.com/gravitational/teleport/api/client/proto"
"github.com/gravitational/teleport/api/constants"
"github.com/gravitational/teleport/api/defaults"
"github.com/gravitational/teleport/api/metadata"
"github.com/gravitational/teleport/api/types"
"github.com/gravitational/teleport/api/types/events"
"github.com/gravitational/teleport/api/utils"

"github.com/golang/protobuf/ptypes/empty"
"github.com/gravitational/trace"
Expand Down
6 changes: 3 additions & 3 deletions api/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (
"testing"
"time"

"github.com/gravitational/teleport/api/v7/client/proto"
"github.com/gravitational/teleport/api/v7/defaults"
"github.com/gravitational/teleport/api/v7/types"
"github.com/gravitational/teleport/api/client/proto"
"github.com/gravitational/teleport/api/defaults"
"github.com/gravitational/teleport/api/types"

"github.com/gravitational/trace"
"github.com/gravitational/trace/trail"
Expand Down
6 changes: 3 additions & 3 deletions api/client/contextdialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"net"
"time"

"github.com/gravitational/teleport/api/v7/client/webclient"
"github.com/gravitational/teleport/api/v7/constants"
"github.com/gravitational/teleport/api/v7/utils/sshutils"
"github.com/gravitational/teleport/api/client/webclient"
"github.com/gravitational/teleport/api/constants"
"github.com/gravitational/teleport/api/utils/sshutils"

"github.com/gravitational/trace"
"golang.org/x/crypto/ssh"
Expand Down
6 changes: 3 additions & 3 deletions api/client/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"crypto/x509"
"io/ioutil"

"github.com/gravitational/teleport/api/v7/constants"
"github.com/gravitational/teleport/api/v7/identityfile"
"github.com/gravitational/teleport/api/v7/profile"
"github.com/gravitational/teleport/api/constants"
"github.com/gravitational/teleport/api/identityfile"
"github.com/gravitational/teleport/api/profile"

"github.com/gravitational/trace"
"golang.org/x/crypto/ssh"
Expand Down
6 changes: 3 additions & 3 deletions api/client/credentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (

"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/gravitational/teleport/api/v7/identityfile"
"github.com/gravitational/teleport/api/v7/profile"
"github.com/gravitational/teleport/api/v7/utils/sshutils"
"github.com/gravitational/teleport/api/identityfile"
"github.com/gravitational/teleport/api/profile"
"github.com/gravitational/teleport/api/utils/sshutils"

"github.com/stretchr/testify/require"
"golang.org/x/crypto/ssh"
Expand Down
4 changes: 2 additions & 2 deletions api/client/doc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"log"
"time"

"github.com/gravitational/teleport/api/v7/client"
"github.com/gravitational/teleport/api/v7/types"
"github.com/gravitational/teleport/api/client"
"github.com/gravitational/teleport/api/types"
)

// Below is an example of creating a new Teleport Auth client with Profile credentials,
Expand Down
4 changes: 2 additions & 2 deletions api/client/keepaliver.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"context"
"sync"

"github.com/gravitational/teleport/api/v7/client/proto"
"github.com/gravitational/teleport/api/v7/types"
"github.com/gravitational/teleport/api/client/proto"
"github.com/gravitational/teleport/api/types"

"github.com/golang/protobuf/ptypes/empty"
"github.com/gravitational/trace/trail"
Expand Down
10 changes: 5 additions & 5 deletions api/client/proto/authservice.pb.go

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

2 changes: 1 addition & 1 deletion api/client/proto/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
package proto

import (
"github.com/gravitational/teleport/api/v7/types"
"github.com/gravitational/teleport/api/types"
)

// FromWatchKind converts the watch kind value between internal
Expand Down
2 changes: 1 addition & 1 deletion api/client/sessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package client
import (
"context"

"github.com/gravitational/teleport/api/v7/types"
"github.com/gravitational/teleport/api/types"

"github.com/gravitational/trace"
"github.com/gravitational/trace/trail"
Expand Down
4 changes: 2 additions & 2 deletions api/client/streamwatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"context"
"sync"

"github.com/gravitational/teleport/api/v7/client/proto"
"github.com/gravitational/teleport/api/v7/types"
"github.com/gravitational/teleport/api/client/proto"
"github.com/gravitational/teleport/api/types"

"github.com/gravitational/trace"
"github.com/gravitational/trace/trail"
Expand Down
2 changes: 1 addition & 1 deletion api/client/webclient/webclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"fmt"
"net/http"

"github.com/gravitational/teleport/api/v7/constants"
"github.com/gravitational/teleport/api/constants"
"github.com/gravitational/trace"
)

Expand Down
2 changes: 1 addition & 1 deletion api/defaults/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package defaults
import (
"time"

"github.com/gravitational/teleport/api/v7/constants"
"github.com/gravitational/teleport/api/constants"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion api/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/gravitational/teleport/api/v7
module github.com/gravitational/teleport/api

go 1.15

Expand Down
4 changes: 2 additions & 2 deletions api/identityfile/identityfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"io/ioutil"
"os"

"github.com/gravitational/teleport/api/v7/utils/keypaths"
"github.com/gravitational/teleport/api/v7/utils/sshutils"
"github.com/gravitational/teleport/api/utils/keypaths"
"github.com/gravitational/teleport/api/utils/sshutils"

"github.com/gravitational/trace"
"golang.org/x/crypto/ssh"
Expand Down
2 changes: 1 addition & 1 deletion api/identityfile/identityfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"path/filepath"
"testing"

"github.com/gravitational/teleport/api/v7/identityfile"
"github.com/gravitational/teleport/api/identityfile"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion api/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package metadata
import (
"context"

"github.com/gravitational/teleport/api/v7"
"github.com/gravitational/teleport/api"
"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
)
Expand Down
4 changes: 2 additions & 2 deletions api/profile/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"path/filepath"
"strings"

"github.com/gravitational/teleport/api/v7/utils/keypaths"
"github.com/gravitational/teleport/api/v7/utils/sshutils"
"github.com/gravitational/teleport/api/utils/keypaths"
"github.com/gravitational/teleport/api/utils/sshutils"

"github.com/gravitational/trace"
"golang.org/x/crypto/ssh"
Expand Down
2 changes: 1 addition & 1 deletion api/profile/profile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"path/filepath"
"testing"

"github.com/gravitational/teleport/api/v7/profile"
"github.com/gravitational/teleport/api/profile"
"github.com/gravitational/trace"

"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion api/types/access_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"sort"
"time"

"github.com/gravitational/teleport/api/v7/utils"
"github.com/gravitational/teleport/api/utils"

"github.com/gravitational/trace"
)
Expand Down
2 changes: 1 addition & 1 deletion api/types/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package types
import (
"time"

"github.com/gravitational/teleport/api/v7/defaults"
"github.com/gravitational/teleport/api/defaults"

"github.com/gravitational/trace"
)
Expand Down
4 changes: 2 additions & 2 deletions api/types/authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"fmt"
"time"

"github.com/gravitational/teleport/api/v7/constants"
"github.com/gravitational/teleport/api/v7/utils/tlsutils"
"github.com/gravitational/teleport/api/constants"
"github.com/gravitational/teleport/api/utils/tlsutils"

"github.com/gogo/protobuf/jsonpb"
"github.com/gravitational/trace"
Expand Down
4 changes: 2 additions & 2 deletions api/types/authority.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"fmt"
"time"

"github.com/gravitational/teleport/api/v7/constants"
"github.com/gravitational/teleport/api/v7/utils"
"github.com/gravitational/teleport/api/constants"
"github.com/gravitational/teleport/api/utils"

"github.com/gravitational/trace"
)
Expand Down
2 changes: 1 addition & 1 deletion api/types/duration.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"time"

"github.com/gravitational/teleport/api/v7/constants"
"github.com/gravitational/teleport/api/constants"

"github.com/gravitational/trace"
)
Expand Down
2 changes: 1 addition & 1 deletion api/types/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package types
import (
"time"

"github.com/gravitational/teleport/api/v7/utils"
"github.com/gravitational/teleport/api/utils"

"github.com/gravitational/trace"
)
Expand Down
2 changes: 1 addition & 1 deletion api/types/lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"strings"
"time"

"github.com/gravitational/teleport/api/v7/utils"
"github.com/gravitational/teleport/api/utils"

"github.com/gogo/protobuf/proto"
"github.com/google/go-cmp/cmp"
Expand Down
2 changes: 1 addition & 1 deletion api/types/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"regexp"
"time"

"github.com/gravitational/teleport/api/v7/defaults"
"github.com/gravitational/teleport/api/defaults"
"github.com/gravitational/trace"
)

Expand Down
2 changes: 1 addition & 1 deletion api/types/networking.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package types
import (
"time"

"github.com/gravitational/teleport/api/v7/defaults"
"github.com/gravitational/teleport/api/defaults"

"github.com/gravitational/trace"
)
Expand Down
4 changes: 2 additions & 2 deletions api/types/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package types
import (
"time"

"github.com/gravitational/teleport/api/v7/constants"
"github.com/gravitational/teleport/api/v7/utils"
"github.com/gravitational/teleport/api/constants"
"github.com/gravitational/teleport/api/utils"

"github.com/gravitational/trace"
)
Expand Down
4 changes: 2 additions & 2 deletions api/types/presence.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package types
import (
"time"

"github.com/gravitational/teleport/api/v7/constants"
"github.com/gravitational/teleport/api/v7/defaults"
"github.com/gravitational/teleport/api/constants"
"github.com/gravitational/teleport/api/defaults"

"github.com/gravitational/trace"
)
Expand Down
2 changes: 1 addition & 1 deletion api/types/provisioning.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"time"

"github.com/gravitational/teleport/api/v7/defaults"
"github.com/gravitational/teleport/api/defaults"

"github.com/gravitational/trace"
)
Expand Down
4 changes: 2 additions & 2 deletions api/types/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"regexp"
"time"

"github.com/gravitational/teleport/api/v7/defaults"
"github.com/gravitational/teleport/api/v7/utils"
"github.com/gravitational/teleport/api/defaults"
"github.com/gravitational/teleport/api/utils"

"github.com/gravitational/trace"
)
Expand Down
8 changes: 4 additions & 4 deletions api/types/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
"fmt"
"time"

"github.com/gravitational/teleport/api/v7/constants"
"github.com/gravitational/teleport/api/v7/defaults"
"github.com/gravitational/teleport/api/v7/types/wrappers"
"github.com/gravitational/teleport/api/v7/utils"
"github.com/gravitational/teleport/api/constants"
"github.com/gravitational/teleport/api/defaults"
"github.com/gravitational/teleport/api/types/wrappers"
"github.com/gravitational/teleport/api/utils"

"github.com/gogo/protobuf/proto"
"github.com/gravitational/trace"
Expand Down
4 changes: 2 additions & 2 deletions api/types/saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package types
import (
"time"

"github.com/gravitational/teleport/api/v7/constants"
"github.com/gravitational/teleport/api/v7/utils"
"github.com/gravitational/teleport/api/constants"
"github.com/gravitational/teleport/api/utils"

"github.com/gravitational/trace"
)
Expand Down
Loading

0 comments on commit 9b8b9d6

Please sign in to comment.