Skip to content

Commit

Permalink
Merge pull request #326 from Venafi/vcert-5.0.0-bump
Browse files Browse the repository at this point in the history
fix(vcert5.0): bumped module version to v5
  • Loading branch information
rvelaVenafi authored Aug 1, 2023
2 parents 7945ab8 + db8a8e2 commit b05b094
Show file tree
Hide file tree
Showing 76 changed files with 206 additions and 187 deletions.
11 changes: 6 additions & 5 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ package vcert
import (
"crypto/x509"
"fmt"
"github.com/Venafi/vcert/v4/pkg/endpoint"
"github.com/Venafi/vcert/v4/pkg/venafi/cloud"
"github.com/Venafi/vcert/v4/pkg/venafi/fake"
"github.com/Venafi/vcert/v4/pkg/venafi/tpp"
"github.com/Venafi/vcert/v4/pkg/verror"
"log"

"github.com/Venafi/vcert/v5/pkg/endpoint"
"github.com/Venafi/vcert/v5/pkg/venafi/cloud"
"github.com/Venafi/vcert/v5/pkg/venafi/fake"
"github.com/Venafi/vcert/v5/pkg/venafi/tpp"
"github.com/Venafi/vcert/v5/pkg/verror"
)

type newClientArgs struct {
Expand Down
5 changes: 3 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ import (
"crypto/x509/pkix"
"encoding/json"
"fmt"
"github.com/Venafi/vcert/v4/pkg/certificate"
"github.com/Venafi/vcert/v4/pkg/endpoint"
"io/ioutil"
"net/http"
"os"
"testing"
"time"

"github.com/Venafi/vcert/v5/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/endpoint"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/vcert/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package main

import (
"github.com/Venafi/vcert/v4/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/certificate"
)

const (
Expand Down
21 changes: 10 additions & 11 deletions cmd/vcert/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,18 @@ import (
"strings"
"time"

"github.com/Venafi/vcert/v4/pkg/venafi/cloud"
"github.com/Venafi/vcert/v4/pkg/venafi/fake"
"github.com/Venafi/vcert/v4/pkg/venafi/tpp"

"github.com/Venafi/vcert/v4/pkg/policy"
"github.com/Venafi/vcert/v4/pkg/util"
"gopkg.in/yaml.v2"

"github.com/Venafi/vcert/v4"
"github.com/Venafi/vcert/v4/pkg/certificate"
"github.com/Venafi/vcert/v4/pkg/endpoint"
"github.com/urfave/cli/v2"
"golang.org/x/crypto/pkcs12"
"gopkg.in/yaml.v2"

"github.com/Venafi/vcert/v5"
"github.com/Venafi/vcert/v5/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/endpoint"
"github.com/Venafi/vcert/v5/pkg/policy"
"github.com/Venafi/vcert/v5/pkg/util"
"github.com/Venafi/vcert/v5/pkg/venafi/cloud"
"github.com/Venafi/vcert/v5/pkg/venafi/fake"
"github.com/Venafi/vcert/v5/pkg/venafi/tpp"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cmd/vcert/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (

"github.com/urfave/cli/v2"

"github.com/Venafi/vcert/v4"
"github.com/Venafi/vcert/v4/pkg/endpoint"
"github.com/Venafi/vcert/v5"
"github.com/Venafi/vcert/v5/pkg/endpoint"
)

func buildConfig(c *cli.Context, flags *commandFlags) (cfg vcert.Config, err error) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/vcert/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"os"
"testing"

"github.com/Venafi/vcert/v4/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/certificate"
)

func TestGenerateCsrForCommandGenCsr(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/vcert/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

"github.com/urfave/cli/v2"

"github.com/Venafi/vcert/v4"
"github.com/Venafi/vcert/v5"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cmd/vcert/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import (
"testing"
"time"

"github.com/Venafi/vcert/v4/pkg/certificate"
"github.com/Venafi/vcert/v4/pkg/endpoint"
"github.com/Venafi/vcert/v5/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/endpoint"
)

var testEmail = "[email protected]"
Expand Down
8 changes: 4 additions & 4 deletions cmd/vcert/playbook.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import (
"go.uber.org/zap"
"golang.org/x/crypto/pkcs12"

"github.com/Venafi/vcert/v4/pkg/playbook/app/domain"
"github.com/Venafi/vcert/v4/pkg/playbook/app/parser"
"github.com/Venafi/vcert/v4/pkg/playbook/app/service"
"github.com/Venafi/vcert/v4/pkg/playbook/util"
"github.com/Venafi/vcert/v5/pkg/playbook/app/domain"
"github.com/Venafi/vcert/v5/pkg/playbook/app/parser"
"github.com/Venafi/vcert/v5/pkg/playbook/app/service"
"github.com/Venafi/vcert/v5/pkg/playbook/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/vcert/playbook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"go.uber.org/zap/zapcore"
"golang.org/x/crypto/pkcs12"

"github.com/Venafi/vcert/v4/pkg/playbook/app/domain"
"github.com/Venafi/vcert/v5/pkg/playbook/app/domain"
)

type logLine struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/vcert/result_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
"github.com/pavel-v-chernykh/keystore-go/v4"
"software.sslmate.com/src/go-pkcs12"

"github.com/Venafi/vcert/v4/pkg/certificate"
"github.com/Venafi/vcert/v4/pkg/util"
"github.com/Venafi/vcert/v5/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/util"
)

type Config struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/vcert/result_writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package main
import (
"testing"

"github.com/Venafi/vcert/v4/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/certificate"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion cmd/vcert/test_utils.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package main

import (
"github.com/urfave/cli/v2"
"os"

"github.com/urfave/cli/v2"
)

const (
Expand Down
10 changes: 5 additions & 5 deletions cmd/vcert/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ import (
"strings"
"time"

"github.com/Venafi/vcert/v4"
"github.com/Venafi/vcert/v4/pkg/certificate"
"github.com/Venafi/vcert/v4/pkg/endpoint"
"github.com/Venafi/vcert/v4/pkg/util"

"github.com/Venafi/vcert/v5"
"github.com/spf13/viper"
"github.com/urfave/cli/v2"

"github.com/Venafi/vcert/v5/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/endpoint"
"github.com/Venafi/vcert/v5/pkg/util"
)

const (
Expand Down
5 changes: 2 additions & 3 deletions cmd/vcert/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ import (
"regexp"
"strings"

"github.com/Venafi/vcert/v4/pkg/util"

"github.com/Venafi/vcert/v4/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/util"
)

// RevocationReasonOptions is an array of strings containing reasons for certificate revocation
Expand Down
3 changes: 2 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ import (
"os/user"
"path/filepath"

"github.com/Venafi/vcert/v4/pkg/endpoint"
"gopkg.in/ini.v1"

"github.com/Venafi/vcert/v5/pkg/endpoint"
)

// Config is a basic structure for high level initiating connector to Trust Platform (TPP)/Venafi Cloud
Expand Down
5 changes: 3 additions & 2 deletions examples/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package main

import (
"fmt"
"github.com/Venafi/vcert/v4"
"github.com/Venafi/vcert/v4/pkg/endpoint"
"io/ioutil"
"log"
"net/http"
"os"

"github.com/Venafi/vcert/v5"
"github.com/Venafi/vcert/v5/pkg/endpoint"
)

func main() {
Expand Down
9 changes: 5 additions & 4 deletions examples/simple-cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,18 @@ import (
"crypto/x509/pkix"
"encoding/pem"
"fmt"
"github.com/Venafi/vcert/v4"
"github.com/Venafi/vcert/v4/pkg/certificate"
"github.com/Venafi/vcert/v4/pkg/endpoint"
"github.com/Venafi/vcert/v4/pkg/venafi/tpp"
"io/ioutil"
t "log"
"math/big"
"net"
"os"
"strings"
"time"

"github.com/Venafi/vcert/v5"
"github.com/Venafi/vcert/v5/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/endpoint"
"github.com/Venafi/vcert/v5/pkg/venafi/tpp"
)

func main() {
Expand Down
7 changes: 4 additions & 3 deletions examples/simple-cli/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ import (
"crypto/x509"
"crypto/x509/pkix"
"encoding/pem"
"github.com/Venafi/vcert/v4"
"github.com/Venafi/vcert/v4/pkg/certificate"
"github.com/Venafi/vcert/v4/test"
"net/http"
"testing"
"time"

"github.com/Venafi/vcert/v5"
"github.com/Venafi/vcert/v5/pkg/certificate"
"github.com/Venafi/vcert/v5/test"
)

var effectiveConfig *vcert.Config
Expand Down
5 changes: 3 additions & 2 deletions examples/simple-cli/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ package main
import (
"encoding/json"
"fmt"
"github.com/Venafi/vcert/v4"
"github.com/Venafi/vcert/v4/pkg/endpoint"
"io/ioutil"
"log"
"os"

"github.com/Venafi/vcert/v5"
"github.com/Venafi/vcert/v5/pkg/endpoint"
)

var mockConfig, cloudConfig, tppConfig *vcert.Config
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/Venafi/vcert/v4
module github.com/Venafi/vcert/v5

require (
github.com/google/uuid v1.3.0
Expand Down
7 changes: 4 additions & 3 deletions listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"crypto/tls"
"crypto/x509/pkix"
"fmt"
"github.com/Venafi/vcert/v4/pkg/certificate"
"github.com/Venafi/vcert/v4/pkg/endpoint"
"github.com/Venafi/vcert/v4/pkg/util"
"log"
"net"
"time"

"github.com/Venafi/vcert/v5/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/endpoint"
"github.com/Venafi/vcert/v5/pkg/util"
)

// NewListener returns a net.Listener that listens on the first port
Expand Down
5 changes: 3 additions & 2 deletions listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"crypto/tls"
"crypto/x509"
"fmt"
"github.com/Venafi/vcert/v4/pkg/endpoint"
"github.com/Venafi/vcert/v4/pkg/venafi/fake"
"io/ioutil"
"net/http"
"testing"
"time"

"github.com/Venafi/vcert/v5/pkg/endpoint"
"github.com/Venafi/vcert/v5/pkg/venafi/fake"
)

func TestConfig_NewListener(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/certificate/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import (

"github.com/youmark/pkcs8"

"github.com/Venafi/vcert/v4/pkg/util"
"github.com/Venafi/vcert/v4/pkg/verror"
"github.com/Venafi/vcert/v5/pkg/util"
"github.com/Venafi/vcert/v5/pkg/verror"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/certificate/certificateCollection.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"encoding/pem"
"fmt"

"github.com/Venafi/vcert/v4/pkg/verror"
"github.com/Venafi/vcert/v5/pkg/verror"
)

// PEMCollection represents a collection of PEM data
Expand Down
2 changes: 1 addition & 1 deletion pkg/certificate/certificate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"testing"
"time"

"github.com/Venafi/vcert/v4/pkg/util"
"github.com/Venafi/vcert/v5/pkg/util"
)

func getCertificateRequestForTest() *Request {
Expand Down
3 changes: 2 additions & 1 deletion pkg/certificate/keyType.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"fmt"
"strings"

"github.com/Venafi/vcert/v4/pkg/verror"
"gopkg.in/yaml.v3"

"github.com/Venafi/vcert/v5/pkg/verror"
)

// KeyType represents the types of supported keys
Expand Down
4 changes: 2 additions & 2 deletions pkg/certificate/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"strings"
"time"

"github.com/Venafi/vcert/v4/pkg/util"
"github.com/Venafi/vcert/v4/pkg/verror"
"github.com/Venafi/vcert/v5/pkg/util"
"github.com/Venafi/vcert/v5/pkg/verror"
)

// Request contains data needed to generate a certificate request
Expand Down
5 changes: 2 additions & 3 deletions pkg/endpoint/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ import (
"regexp"
"time"

"github.com/Venafi/vcert/v4/pkg/policy"

"github.com/Venafi/vcert/v4/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/policy"
)

const SDKName = "Venafi VCert-Go"
Expand Down
2 changes: 1 addition & 1 deletion pkg/endpoint/endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"strings"
"testing"

"github.com/Venafi/vcert/v4/pkg/certificate"
"github.com/Venafi/vcert/v5/pkg/certificate"
)

func TestNewZoneConfiguration(t *testing.T) {
Expand Down
Loading

0 comments on commit b05b094

Please sign in to comment.