repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/status.go
cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/status.go
// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 package telemetry // For the semantics of status codes see // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status type StatusCode int32 const ( // The default status. StatusCodeUn...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/id.go
cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/id.go
// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 package telemetry import ( "encoding/hex" "errors" "fmt" ) const ( traceIDSize = 16 spanIDSize = 8 ) // TraceID is a custom data type that is used for all trace IDs. type TraceID [traceIDSize]byte // String returns the hex string r...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/scope.go
cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/scope.go
// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 package telemetry import ( "bytes" "encoding/json" "errors" "fmt" "io" ) // Scope is the identifying values of the instrumentation scope. type Scope struct { Name string `json:"name,omitempty"` Version string `json:"ver...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/number.go
cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/number.go
// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 package telemetry import ( "encoding/json" "strconv" ) // protoInt64 represents the protobuf encoding of integers which can be either // strings or integers. type protoInt64 int64 // Int64 returns the protoInt64 as an int64. func (i *pr...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/resource.go
cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/resource.go
// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 package telemetry import ( "bytes" "encoding/json" "errors" "fmt" "io" ) // Resource information. type Resource struct { // Attrs are the set of attributes that describe the resource. Attribute // keys MUST be unique (it is not allo...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/value.go
cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/value.go
// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 //go:generate stringer -type=ValueKind -trimprefix=ValueKind package telemetry import ( "bytes" "cmp" "encoding/base64" "encoding/json" "errors" "fmt" "io" "math" "slices" "strconv" "unsafe" ) // A Value represents a structured...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/attr.go
cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/attr.go
// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 package telemetry // Attr is a key-value pair. type Attr struct { Key string `json:"key,omitempty"` Value Value `json:"value,omitempty"` } // String returns an Attr for a string value. func String(key, value string) Attr { return Att...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/doc.go
cmd/vsphere-xcopy-volume-populator/vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/doc.go
// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 /* Package telemetry provides a lightweight representations of OpenTelemetry telemetry that is compatible with the OTLP JSON protobuf encoding. */ package telemetry
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/main.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/main.go
package main import ( "certificate-tool/cmd" "log" ) func main() { if err := cmd.Execute(); err != nil { log.Fatal(err) } }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/pkg/storage/storage.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/pkg/storage/storage.go
package storage import ( "fmt" ) type Storage struct { Vendor string `yaml:"vendor"` VendorProduct string `yaml:"vendorProduct"` ProductVersion string `yaml:"productVersion"` ConnectionType string `yaml:"connectionType"` } type StorageCredentials struct { Hostname string Username string Pa...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/pkg/storage/primera3par.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/pkg/storage/primera3par.go
package storage import ( "bytes" "crypto/tls" "encoding/json" "fmt" "io" "net/http" "net/url" ) type SystemVersion struct { Id int `json:"id"` VersionString string `json:"versionString"` Name string `json:"name"` } type SystemInfo struct { SystemVersion string `json:"systemVersion"`...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/pkg/storage/ontap.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/pkg/storage/ontap.go
package storage import ( "crypto/tls" "encoding/json" "fmt" "io" "net/http" "net/url" ) type OntapSystem struct { Name string `json:"name"` Version struct { Full string `json:"full"` } } func getOntapSystemInfo(apiURL, username, password string, skipSSLVerify bool) (OntapSystem, error) { fullURL, err ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/pkg/vmware/vms.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/pkg/vmware/vms.go
package vmware import ( "certificate-tool/internal/utils/osutils" "context" "fmt" "log" "net/url" "os" "path" "path/filepath" "strings" "time" "github.com/vmware/govmomi/vmdk" "k8s.io/klog/v2" "github.com/vmware/govmomi" "github.com/vmware/govmomi/find" "github.com/vmware/govmomi/guest" "github.com/v...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/pkg/vmware/client.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/pkg/vmware/client.go
package vmware import ( "context" "fmt" "net/url" "time" "github.com/vmware/govmomi" "github.com/vmware/govmomi/find" "github.com/vmware/govmomi/object" ) func SetupVSphere(timeout time.Duration, vcURL, user, pass, dcName, dsName, poolName string, ) ( ctx context.Context, cancel context.CancelFunc, cli *go...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/pkg/config/config.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/pkg/config/config.go
package config import ( "bufio" "certificate-tool/internal/utils" "fmt" "os" "path/filepath" "strings" "syscall" "golang.org/x/term" "gopkg.in/yaml.v3" ) type Config struct { TestNamespace string `yaml:"test-namespace"` Kubeconfig string `yaml:"kubeconfig"` SecretName string `yaml:"secret-name"` P...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/cmd/root.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/cmd/root.go
package cmd import ( "certificate-tool/pkg/config" // Import the new config package "os" "time" // Import time package for Duration parsing "github.com/spf13/cobra" ) // RootCmd represents the base command var RootCmd = &cobra.Command{ Use: "certificate-tool", Short: "CLI tool to orchestrate xcopy offload te...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/cmd/test-xcopy.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/cmd/test-xcopy.go
package cmd import ( "certificate-tool/internal/testplan" "context" "fmt" "os" "github.com/spf13/cobra" "k8s.io/client-go/kubernetes" "k8s.io/client-go/tools/clientcmd" ) var ( planYamlPath string ) var createTestCmd = &cobra.Command{ Use: "test-xcopy", Short: "Creates the test environment: PVC and CR i...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/cmd/prepare.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/cmd/prepare.go
package cmd import ( "certificate-tool/internal/k8s" "k8s.io/klog/v2" "strings" "github.com/spf13/cobra" "k8s.io/client-go/kubernetes" "k8s.io/client-go/tools/clientcmd" ) var prepare = &cobra.Command{ Use: "prepare", Short: "Creates the controller environment (deployment, clusterRole and role bindings) ",...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/cmd/destroy-vm.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/cmd/destroy-vm.go
package cmd import ( "certificate-tool/internal/utils" "certificate-tool/pkg/vmware" "fmt" "time" "github.com/spf13/cobra" ) // TestCase defines a single test scenario. type TestCase struct { VMs []*utils.VM `yaml:"vms"` } var destroyVMCmd = &cobra.Command{ Use: "destroy-vms", RunE: func(cmd *cobra.Command,...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/k8s/polling.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/k8s/polling.go
package k8s import ( "context" "fmt" "time" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" wait "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/kubernetes" ) type PodResult struct { PodName string Container string ExitCode int32 Duration time.Duration Success bool Err ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/k8s/rbac.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/k8s/rbac.go
package k8s import ( "fmt" rbacv1 "k8s.io/api/rbac/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // NewRole returns a Role that allows managing PVCs in the given namespace. func NewRole(roleName, namespace string) *rbacv1.Role { return &rbacv1.Role{ ObjectMeta: metav1.ObjectMeta{ Name: roleName, ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/k8s/apply.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/k8s/apply.go
package k8s import ( "bytes" "fmt" "io" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" "k8s.io/apimachinery/pkg/util/yaml" "net/http" "os" "strings" "text/template" "k8s.io/client-go/kubernetes" ) type TemplateParams struct { TestNamespace string TestImageLabel string TestL...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/k8s/secret.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/k8s/secret.go
package k8s import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // NewPopulatorSecret creates a Kubernetes Secret for passing vSphere and storage credentials. func NewPopulatorSecret(namespace, storageSkipSSLVerification, storagePassword, storageUser, storageUrl, vspherePassword, vs...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/k8s/ensure.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/k8s/ensure.go
package k8s import ( "certificate-tool/internal/utils" "context" "fmt" corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "k8s.io/klog/v2" ) // EnsureNamespace makes sure a namespa...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/k8s/logs.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/k8s/logs.go
package k8s import ( "bytes" "context" "fmt" "io" corev1 "k8s.io/api/core/v1" "k8s.io/client-go/kubernetes" ) // GetPodLogs fetches the logs for a given pod and returns the last 'tailLines' lines. func GetPodLogs(ctx context.Context, clientset kubernetes.Interface, namespace, podName string, tailLines int64) (s...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/utils/types.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/utils/types.go
package utils // VM represents a VM configuration to be provisioned. type VM struct { // this name is known during the test case execution and is not serializable // perhaps we set that in the test case yaml to specify existing VMs? Name string NamePrefix string `yaml:"namePrefix"` Size strin...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/utils/osutils/os.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/utils/osutils/os.go
package osutils import ( "k8s.io/klog/v2" "os" "os/exec" ) func ExecCommand(name string, args ...string) error { klog.Infof("Executing: %s %v", name, args) cmd := exec.Command(name, args...) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr return cmd.Run() }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/utils/yaml/yaml.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/utils/yaml/yaml.go
package yaml import ( "bytes" "fmt" "io" "os" "os/exec" "text/template" ) func ApplyTemplatedYAML( kubeconfig, fileOrURL string, vars map[string]string, leftDelim, rightDelim string, ) error { raw, err := os.ReadFile(fileOrURL) if err != nil { return fmt.Errorf("read %s: %w", fileOrURL, err) } tmpl, e...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/testplan/plan.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/testplan/plan.go
package testplan import ( "certificate-tool/internal/utils" "certificate-tool/pkg/config" "certificate-tool/pkg/storage" "context" "fmt" "k8s.io/klog/v2" "time" "gopkg.in/yaml.v3" "k8s.io/client-go/kubernetes" ) // TestPlan aggregates multiple test cases under a VM image. type TestPlan struct { StorageVen...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/testplan/testcase.go
cmd/vsphere-xcopy-volume-populator/certificate-tool/internal/testplan/testcase.go
package testplan import ( "certificate-tool/internal/k8s" "certificate-tool/internal/utils" "certificate-tool/pkg/vmware" "context" "fmt" "time" "k8s.io/client-go/kubernetes" "k8s.io/klog/v2" ) type TestCaseForPrint struct { Name string `yaml:"name"` Success utils.SuccessCriteria `yaml:"s...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/powerstore/powerstore.go
cmd/vsphere-xcopy-volume-populator/internal/powerstore/powerstore.go
package powerstore import ( "context" "fmt" "strings" "github.com/dell/gopowerstore" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/fcutil" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator" "k8s.io/klog/v2" ) const ( hostIDContextKey string = "...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/ontap/ontap.go
cmd/vsphere-xcopy-volume-populator/internal/ontap/ontap.go
package ontap import ( "context" "fmt" "os" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator" drivers "github.com/netapp/trident/storage_drivers" "github.com/netapp/trident/storage_drivers/ontap/api" "k8s.io/klog/v2" ) const OntapProviderID = "600a0980" // Ensure NetappClonn...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/ontap/ontap_api_mock.go
cmd/vsphere-xcopy-volume-populator/internal/ontap/ontap_api_mock.go
// Code generated by MockGen. DO NOT EDIT. // Source: github.com/netapp/trident/storage_drivers/ontap/api (interfaces: OntapAPI) // // Generated by this command: // // mockgen -destination=internal/ontap/ontap_api_mock.go -package=ontap github.com/netapp/trident/storage_drivers/ontap/api OntapAPI // // Package ontap i...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
true
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/ontap/ontap_test.go
cmd/vsphere-xcopy-volume-populator/internal/ontap/ontap_test.go
package ontap import ( "fmt" "testing" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator" "github.com/netapp/trident/storage_drivers/ontap/api" "go.uber.org/mock/gomock" ) func TestNetappClonner_Map(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() mockAPI ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/vantara/vantara-storage.go
cmd/vsphere-xcopy-volume-populator/internal/vantara/vantara-storage.go
package vantara import ( "encoding/json" "errors" "fmt" "regexp" "strings" "k8s.io/klog/v2" ) const requiredMajorVersion = 1 const requiredMinorVersion = 9 type VantaraStorageAPI struct { StorageID string RestServerIP string RestSvrPort string UserID string Password string VantaraObj Van...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/vantara/vantara-api.go
cmd/vsphere-xcopy-volume-populator/internal/vantara/vantara-api.go
package vantara import ( "bytes" "crypto/tls" "encoding/base64" "encoding/json" "fmt" "io" "net/http" "strconv" "strings" "time" "k8s.io/klog/v2" ) type BlockStorageAPI struct { GumIPAddr string Port string StorageID string BaseURL string ObjectURL string ServiceURL string } func NewBlo...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/vantara/vantara.go
cmd/vsphere-xcopy-volume-populator/internal/vantara/vantara.go
package vantara import ( "encoding/json" "fmt" "os" "strings" "k8s.io/klog/v2" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator" ) const decode = true // Action types const ( GETLDEV = "getLdev" ADDPATH = "addPath" DELETEPATH = "deletePath" GETPORTDETAI...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/vantara/vantara-hgid.go
cmd/vsphere-xcopy-volume-populator/internal/vantara/vantara-hgid.go
package vantara import ( "strings" "k8s.io/klog/v2" ) type Logins struct { HostGroupId string `json:"hostGroupId"` Islogin string `json:"isLogin"` LoginWWN string `json:"loginWwn"` WWNNickName string `json:"wwnNickName"` IscsiNickName string `json:"iscsiNickName"` IscsiTargetName str...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/vmware/client.go
cmd/vsphere-xcopy-volume-populator/internal/vmware/client.go
package vmware import ( "context" "encoding/xml" "net/url" "strings" "fmt" "github.com/vmware/govmomi" "github.com/vmware/govmomi/cli/esx" "github.com/vmware/govmomi/find" "github.com/vmware/govmomi/object" "github.com/vmware/govmomi/vim25/mo" "github.com/vmware/govmomi/vim25/soap" "github.com/vmware/gov...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/vmware/ssh_client.go
cmd/vsphere-xcopy-volume-populator/internal/vmware/ssh_client.go
package vmware import ( "context" "fmt" "net" "strings" "time" "github.com/kubev2v/forklift/pkg/lib/logging" "github.com/kubev2v/forklift/pkg/lib/util" "github.com/vmware/govmomi/object" "golang.org/x/crypto/ssh" "k8s.io/klog/v2" ) // SSHClient interface for SSH operations type SSHClient interface { Conne...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/vmware/client_test.go
cmd/vsphere-xcopy-volume-populator/internal/vmware/client_test.go
package vmware import ( "context" "testing" "github.com/vmware/govmomi/find" "github.com/vmware/govmomi/simulator" ) func TestNewClientWithSimulator(t *testing.T) { model := simulator.VPX() defer model.Remove() err := model.Create() if err != nil { t.Fatal(err) } s := model.Service.NewServer() defer s...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/vmware/mocks/vmware_mock_client.go
cmd/vsphere-xcopy-volume-populator/internal/vmware/mocks/vmware_mock_client.go
// Code generated by MockGen. DO NOT EDIT. // Source: github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/vmware (interfaces: Client) // // Generated by this command: // // mockgen -destination=mocks/vmware_mock_client.go -package=vmware_mocks . Client // // Package vmware_mocks is a generated GoMo...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/infinibox/infinibox.go
cmd/vsphere-xcopy-volume-populator/internal/infinibox/infinibox.go
package infinibox import ( "fmt" "strconv" "github.com/go-logr/logr" "github.com/infinidat/infinibox-csi-driver/iboxapi" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator" "k8s.io/klog/v2" ) const ( hostIDContextKey string = "hostID" esxLogicalHostNameKey string = "esxLo...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/fcutil/fcutil_test.go
cmd/vsphere-xcopy-volume-populator/internal/fcutil/fcutil_test.go
package fcutil import ( "strings" "testing" ) func TestParseFCAdapter(t *testing.T) { testCases := []struct { name string fcID string expectedWWNN string expectedWWPN string expectError bool errorContains string }{ { name: "valid FC adapter ID", fcID: "fc....
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/fcutil/fcutil.go
cmd/vsphere-xcopy-volume-populator/internal/fcutil/fcutil.go
package fcutil import ( "fmt" "regexp" "strings" ) // ParseFCAdapter parses an ESX FC adapter ID in format "fc.WWNN:WWPN" // and returns the WWNN and WWPN separately (unformatted hex strings). // // Example: // // input: "fc.2000000000000001:2100000000000001" // output: wwnn="2000000000000001", wwpn="2100000000000...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/pure/flashArray.go
cmd/vsphere-xcopy-volume-populator/internal/pure/flashArray.go
package pure import ( "context" "errors" "fmt" "path/filepath" "slices" "strings" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/fcutil" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populato...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/pure/flashArray_test.go
cmd/vsphere-xcopy-volume-populator/internal/pure/flashArray_test.go
package pure import ( "net/http" "net/http/httptest" "strings" "testing" ) func TestFcUIDToWWPN(t *testing.T) { testCases := []struct { name string fcUid string expectedWwpn string expectError bool errorContains string }{ { name: "valid fcUid", fcUid: "fc.202...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/pure/rest_client.go
cmd/vsphere-xcopy-volume-populator/internal/pure/rest_client.go
package pure import ( "bytes" "crypto/tls" "encoding/json" "fmt" "io" "net/http" "net/url" "sort" "strconv" "strings" "time" "k8s.io/klog/v2" ) // RestClient provides REST API access to Pure FlashArray type RestClient struct { hostname string httpClient *http.Client apiToken string authToken str...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/powermax/powermax.go
cmd/vsphere-xcopy-volume-populator/internal/powermax/powermax.go
package powermax //go:generate mockgen -destination=mock_powermax_client_test.go -package=powermax github.com/dell/gopowermax/v2 Pmax import ( "context" "crypto/rand" "encoding/hex" "fmt" "os" "slices" "strings" gopowermax "github.com/dell/gopowermax/v2" pmxtypes "github.com/dell/gopowermax/v2/types/v100" ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/powermax/mock_powermax_client_test.go
cmd/vsphere-xcopy-volume-populator/internal/powermax/mock_powermax_client_test.go
// Code generated by MockGen. DO NOT EDIT. // Source: github.com/dell/gopowermax/v2 (interfaces: Pmax) // // Generated by this command: // // mockgen -destination=mock_powermax_client_test.go -package=powermax github.com/dell/gopowermax/v2 Pmax // // Package powermax is a generated GoMock package. package powermax im...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
true
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/powermax/powermax_test.go
cmd/vsphere-xcopy-volume-populator/internal/powermax/powermax_test.go
package powermax import ( "context" "os" "testing" gopowermax "github.com/dell/gopowermax/v2" "github.com/dell/gopowermax/v2/types/v100" "github.com/onsi/gomega" "go.uber.org/mock/gomock" ) func TestNewPowermaxClonner(t *testing.T) { g := gomega.NewGomegaWithT(t) t.Run("should return error if POWERMAX_SYMM...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/secure_script.go
cmd/vsphere-xcopy-volume-populator/internal/populator/secure_script.go
package populator import ( "context" "fmt" "os" "time" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/vmware" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/vmkfstools-wrapper" "github.com/vmware/govmomi/object" "k8s.io/klog/v2" ) const ( secureScriptName = "secure...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/storage.go
cmd/vsphere-xcopy-volume-populator/internal/populator/storage.go
package populator import ( "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/vmware" ) const ( // CleanupXcopyInitiatorGroup is the key to signal cleanup of the initiator group. CleanupXcopyInitiatorGroup = "cleanupXcopyInitiatorGroup" ) //go:generate go run go.uber.org/mock/mockgen -destin...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/remote_esxcli.go
cmd/vsphere-xcopy-volume-populator/internal/populator/remote_esxcli.go
package populator import ( "context" "fmt" "slices" "strings" "time" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/vmware" "github.com/vmware/govmomi/object" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/klog/v2" ) var xcopyInitiatorGroup = "xcopy-esxs" const ( taskPollingInterva...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/ssh_executor.go
cmd/vsphere-xcopy-volume-populator/internal/populator/ssh_executor.go
package populator import ( "context" "fmt" "encoding/json" "encoding/xml" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/vmware" "github.com/vmware/govmomi/object" "k8s.io/klog/v2" ) // SSHTaskExecutor implements TaskExecutor for the SSH method type SSHTaskExecutor struct { sshCli...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/errors.go
cmd/vsphere-xcopy-volume-populator/internal/populator/errors.go
package populator import "fmt" // MapUnmapError represents a non-fatal error that occurs during map/unmap operations // These errors should not cause the populate container to restart type MapUnmapError struct { Operation string // "map" or "unmap" Message string Err error } func (e *MapUnmapError) Error(...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/disk_type.go
cmd/vsphere-xcopy-volume-populator/internal/populator/disk_type.go
package populator import ( "context" "fmt" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/vmware" "k8s.io/klog/v2" ) // DiskType represents the type of disk backing in vSphere type DiskType string const ( // DiskTypeVVol represents a Virtual Volume backed disk DiskTypeVVol DiskType =...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/populate.go
cmd/vsphere-xcopy-volume-populator/internal/populator/populate.go
package populator import ( "context" "fmt" "strings" ) type Populator interface { // Populate will populate the volume identified by volumeHanle with the content of // the sourceVMDKFile. // persistentVolume is a slim version of k8s PersistentVolume created by the CSI driver, // to help identify its underlying...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/host_lease.go
cmd/vsphere-xcopy-volume-populator/internal/populator/host_lease.go
package populator import ( "context" "errors" "fmt" "os" "time" "github.com/google/uuid" coordinationv1 "k8s.io/api/coordination/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/validation" "k8s.io/client-go/kubernetes" coordina...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/vib_executor.go
cmd/vsphere-xcopy-volume-populator/internal/populator/vib_executor.go
package populator import ( "context" "encoding/json" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/vmware" "github.com/vmware/govmomi/object" "k8s.io/klog/v2" ) // VIBTaskExecutor implements TaskExecutor for the VIB method type VIBTaskExecutor struct { VSphereClient vmware.Client } ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/factory.go
cmd/vsphere-xcopy-volume-populator/internal/populator/factory.go
package populator import ( "context" "fmt" "os" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/vmware" "k8s.io/klog/v2" ) var settings = populatorSettings{ VVolDisabled: os.Getenv("DISABLE_VVOL_METHOD") == "true", RDMDisabled: os.Getenv("DISABLE_RDM_METHOD") == "true", } // SSHConf...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/task_executor.go
cmd/vsphere-xcopy-volume-populator/internal/populator/task_executor.go
package populator import ( "context" "fmt" "regexp" "strconv" "time" "github.com/vmware/govmomi/object" "k8s.io/klog/v2" ) // Unified progress pattern that handles both VIB and SSH output formats var progressPattern = regexp.MustCompile(`(\d+)\%`) // TaskExecutor abstracts the transport-specific operations f...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/remote_esxcli_test.go
cmd/vsphere-xcopy-volume-populator/internal/populator/remote_esxcli_test.go
package populator import ( "context" "errors" "testing" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/vmware/govmomi/object" "go.uber.org/mock/gomock" vmware_mocks "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/vmware/mocks" ) func TestRemoteEsxcli(t *testing...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/rdm_populator.go
cmd/vsphere-xcopy-volume-populator/internal/populator/rdm_populator.go
package populator import ( "fmt" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/vmware" "k8s.io/klog/v2" ) // RDMPopulator handles population of RDM-backed disks type RDMPopulator struct { vSphereClient vmware.Client storageApi RDMCapable } // NewRDMPopulator creates a new RDM popu...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/populate_test.go
cmd/vsphere-xcopy-volume-populator/internal/populator/populate_test.go
package populator_test import ( "testing" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator" populator_mocks "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator/populator_mocks" "go.uber.org/mock/gomock" ) func TestVMDisk_Path(t *testing.T) { tests...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/vib.go
cmd/vsphere-xcopy-volume-populator/internal/populator/vib.go
package populator import ( "context" "fmt" "strings" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/vmware" "github.com/vmware/govmomi/find" "github.com/vmware/govmomi/object" "github.com/vmware/govmomi/property" "github.com/vmware/govmomi/vim25/mo" "k8s.io/klog/v2" ) const ( vibN...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/vvol_populator.go
cmd/vsphere-xcopy-volume-populator/internal/populator/vvol_populator.go
package populator import ( "fmt" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/vmware" "k8s.io/klog/v2" ) type VvolPopulator struct { vSphereClient vmware.Client storageApi VVolCapable } func NewVvolPopulator(storageApi VVolCapable, vmwareClient vmware.Client) (Populator, error) {...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/mocks/storage_mock_client.go
cmd/vsphere-xcopy-volume-populator/internal/populator/mocks/storage_mock_client.go
// Code generated by MockGen. DO NOT EDIT. // Source: github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator (interfaces: StorageApi) // // Generated by this command: // // mockgen -destination=mocks/storage_mock_client.go -package=mocks . StorageApi // // Package mocks is a generated GoMock...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/mocks/hostlocker_mock.go
cmd/vsphere-xcopy-volume-populator/internal/populator/mocks/hostlocker_mock.go
// Code generated by MockGen. DO NOT EDIT. // Source: github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator (interfaces: Hostlocker) // // Generated by this command: // // mockgen -destination=mocks/hostlocker_mock.go -package=mocks . Hostlocker // // Package mocks is a generated GoMock pac...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/populator/populator_mocks/populator_mock.go
cmd/vsphere-xcopy-volume-populator/internal/populator/populator_mocks/populator_mock.go
// Code generated by MockGen. DO NOT EDIT. // Source: github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator (interfaces: Populator) // // Generated by this command: // // mockgen -destination=internal/populator/mocks/populator_mock.go -package=mocks github.com/kubev2v/forklift/cmd/vsphere-xc...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/powerflex/powerflex.go
cmd/vsphere-xcopy-volume-populator/internal/powerflex/powerflex.go
package powerflex import ( "fmt" "slices" "time" "github.com/dell/goscaleio" siotypes "github.com/dell/goscaleio/types/v1" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator" "k8s.io/klog/v2" ) const ( SYSTEM_ID_ENV_KEY = "POWERFLEX_SYSTEM_ID" sdcIDContextKey string ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/primera3par/par3client.go
cmd/vsphere-xcopy-volume-populator/internal/primera3par/par3client.go
package primera3par import ( "bytes" "context" "crypto/tls" "encoding/json" "fmt" "io" "log" "net/http" "net/url" "strings" "time" "github.com/google/uuid" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/fcutil" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/int...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/primera3par/par3_test.go
cmd/vsphere-xcopy-volume-populator/internal/primera3par/par3_test.go
package primera3par import ( "testing" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator" "github.com/stretchr/testify/assert" ) func TestPrimera3ParClonner(t *testing.T) { mockClient := NewMockPrimera3ParClient() clonner := Primera3ParClonner{client: mockClient} targetLUN := ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/primera3par/clonner.go
cmd/vsphere-xcopy-volume-populator/internal/primera3par/clonner.go
package primera3par import ( "context" "fmt" "k8s.io/klog/v2" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator" ) const PROVIDER_ID = "60002ac" type Primera3ParClonner struct { client Primera3ParClient } func NewPrimera3ParClonner(storageHostname, storageUsername, storagePass...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/primera3par/par3clientmock.go
cmd/vsphere-xcopy-volume-populator/internal/primera3par/par3clientmock.go
package primera3par import ( "context" "fmt" "log" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator" ) type MockPrimera3ParClient struct { SessionKey string Volumes map[string]populator.LUN VLUNs map[string][]VLun Hosts map[string]string HostSets map[string][...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/internal/flashsystem/flashsystem.go
cmd/vsphere-xcopy-volume-populator/internal/flashsystem/flashsystem.go
package flashsystem import ( "bytes" "crypto/tls" "encoding/json" "fmt" "io" "net/http" "strings" "time" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/fcutil" "github.com/kubev2v/forklift/cmd/vsphere-xcopy-volume-populator/internal/populator" "k8s.io/klog/v2" ) // FlashSystemPro...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vmkfstools-wrapper/script.go
cmd/vsphere-xcopy-volume-populator/vmkfstools-wrapper/script.go
package vmkfstoolswrapper import _ "embed" //go:embed vmkfstools_wrapper.py var Script []byte
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-provider-server/main.go
cmd/ova-provider-server/main.go
package main import ( "fmt" "github.com/gin-gonic/gin" "github.com/kubev2v/forklift/cmd/ova-provider-server/api" "github.com/kubev2v/forklift/cmd/ova-provider-server/auth" "github.com/kubev2v/forklift/cmd/ova-provider-server/settings" "github.com/kubev2v/forklift/pkg/lib/logging" ) var Settings = &settings.Set...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-provider-server/auth/auth.go
cmd/ova-provider-server/auth/auth.go
package auth import ( "context" "strings" "sync" "time" "github.com/gin-gonic/gin" "github.com/kubev2v/forklift/pkg/lib/logging" authz "k8s.io/api/authorization/v1" "k8s.io/client-go/kubernetes/scheme" "k8s.io/client-go/rest" k8sclient "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-run...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-provider-server/settings/settings.go
cmd/ova-provider-server/settings/settings.go
package settings import ( "os" "strconv" ) // Environment variables. const ( EnvApplianceEndpoints = "APPLIANCE_ENDPOINTS" EnvAuthRequired = "AUTH_REQUIRED" EnvCatalogPath = "CATALOG_PATH" EnvPort = "PORT" EnvProviderNamespace = "PROVIDER_NAMESPACE" EnvProviderName = "PROVIDE...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-provider-server/inventory/uuid.go
cmd/ova-provider-server/inventory/uuid.go
package inventory import ( "bytes" "crypto/sha256" "encoding/hex" "log" "github.com/kubev2v/forklift/pkg/lib/gob" "github.com/google/uuid" ) type UUIDMap struct { m map[string]string } func NewUUIDMap() *UUIDMap { return &UUIDMap{ m: make(map[string]string), } } func (um *UUIDMap) GetUUID(object interf...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-provider-server/inventory/convert.go
cmd/ova-provider-server/inventory/convert.go
package inventory import ( "strconv" "strings" "unicode" "github.com/kubev2v/forklift/cmd/ova-provider-server/ova" ) var vmIDmap *UUIDMap var diskIDMap *UUIDMap var networkIDMap *UUIDMap func init() { vmIDmap = NewUUIDMap() diskIDMap = NewUUIDMap() networkIDMap = NewUUIDMap() } // ResourceTypes const ( Res...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-provider-server/inventory/scan.go
cmd/ova-provider-server/inventory/scan.go
package inventory import ( "fmt" "log" "os" "path/filepath" "strings" "time" "github.com/kubev2v/forklift/cmd/ova-provider-server/ova" ) func ScanForAppliances(path string) (envelopes []ova.Envelope, ovaPaths []string) { ovaFiles, ovfFiles, err := findOVAFiles(path) if err != nil { fmt.Println("Error find...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-provider-server/inventory/nfs_test.go
cmd/ova-provider-server/inventory/nfs_test.go
//nolint:errcheck package inventory import ( "os" "path/filepath" "testing" . "github.com/onsi/gomega" ) func TestFindOVAFiles(t *testing.T) { g := NewGomegaWithT(t) tests := []struct { name string setup func(directory string) expectedOVAs []string expectedOVFs []string expectError b...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-provider-server/api/base.go
cmd/ova-provider-server/api/base.go
package api import ( "errors" "net/http" "github.com/gin-gonic/gin" "github.com/kubev2v/forklift/pkg/lib/logging" ) var log = logging.WithName("ova|api") type BadRequestError struct { Reason string } func (r *BadRequestError) Error() string { return r.Reason } type ConflictError struct { Reason string } fu...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-provider-server/api/inventory.go
cmd/ova-provider-server/api/inventory.go
package api import ( "net/http" "github.com/gin-gonic/gin" "github.com/kubev2v/forklift/cmd/ova-provider-server/inventory" ) const ( VMsRoute = "/vms" NetworksRoute = "/networks" DisksRoute = "/disks" TestConnectionRoute = "/test_connection" ) // InventoryHandler serves routes consu...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-provider-server/api/appliance.go
cmd/ova-provider-server/api/appliance.go
package api import ( "crypto/sha256" "encoding/hex" "errors" "fmt" "io" "net/http" "os" pathlib "path/filepath" "strings" "time" "github.com/gin-gonic/gin" "github.com/kubev2v/forklift/cmd/ova-provider-server/auth" "github.com/kubev2v/forklift/cmd/ova-provider-server/ova" "github.com/kubev2v/forklift/cm...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-provider-server/ova/vm.go
cmd/ova-provider-server/ova/vm.go
package ova import "strconv" // vm struct type VM struct { Name string OvaPath string OvaSource string OsType string RevisionValidated int64 PolicyVersion int UUID string Firmware string SecureBoot ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-provider-server/ova/ova.go
cmd/ova-provider-server/ova/ova.go
package ova import ( "archive/tar" "encoding/xml" "errors" "io" "os" "strings" ) const ( SourceUnknown = "Unknown" SourceVMware = "VMware" SourceVirtualBox = "VirtualBox" SourceXen = "Xen" SourceOvirt = "oVirt" ) const ( ExtOVF = ".ovf" ExtOVA = ".ova" ) // ExtractEnvelope from an ap...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ovirt-populator/ovirt-populator.go
cmd/ovirt-populator/ovirt-populator.go
package main import ( "bufio" "encoding/json" "errors" "flag" "fmt" "os" "os/exec" "strconv" "github.com/kubev2v/forklift/pkg/metrics" "github.com/prometheus/client_golang/prometheus" dto "github.com/prometheus/client_model/go" "k8s.io/klog/v2" ) type engineConfig struct { URL string username stri...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/image-converter/image-converter.go
cmd/image-converter/image-converter.go
package main import ( "bufio" "bytes" "flag" "os/exec" "k8s.io/klog/v2" ) func main() { var srcVolPath, dstVolPath, srcFormat, dstFormat, volumeMode string flag.StringVar(&srcVolPath, "src-path", "", "Source volume path") flag.StringVar(&dstVolPath, "dst-path", "", "Target volume path") flag.StringVar(&src...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/openstack-populator/openstack-populator_test.go
cmd/openstack-populator/openstack-populator_test.go
package main import ( "fmt" "io" "net" "net/http" "net/http/httptest" "os" "testing" ) func setupMockServer() (*httptest.Server, string, int, error) { listener, err := net.Listen("tcp", ":0") if err != nil { return nil, "", 0, err } mux := http.NewServeMux() port := listener.Addr().(*net.TCPAddr).Port...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/openstack-populator/openstack-populator.go
cmd/openstack-populator/openstack-populator.go
package main import ( "flag" "io" "os" "strings" "time" libclient "github.com/kubev2v/forklift/pkg/lib/client/openstack" "github.com/kubev2v/forklift/pkg/metrics" "github.com/prometheus/client_golang/prometheus" dto "github.com/prometheus/client_model/go" "k8s.io/klog/v2" ) type AppConfig struct { identit...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/populator-controller/populator-controller.go
cmd/populator-controller/populator-controller.go
package main import ( "flag" "os" "os/signal" "syscall" "github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1" populator_machinery "github.com/kubev2v/forklift/pkg/lib-volume-populator/populator-machinery" "github.com/kubev2v/forklift/pkg/settings" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/apis/m...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-proxy/cache.go
cmd/ova-proxy/cache.go
package main import ( "net/http/httputil" "sync" "time" ) type CachedProxy struct { Proxy *httputil.ReverseProxy CachedAt time.Time } type ProxyCache struct { cache map[string]CachedProxy mutex sync.Mutex TTL time.Duration } func (r *ProxyCache) Add(key string, value *httputil.ReverseProxy) { r.mutex....
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-proxy/proxy_test.go
cmd/ova-proxy/proxy_test.go
package main import ( "context" "fmt" "net" "net/http" "net/http/httptest" "net/url" "path" "strings" "testing" "time" "github.com/gin-gonic/gin" "github.com/go-logr/logr" "github.com/kubev2v/forklift/pkg/apis" api "github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1" . "github.com/onsi/ginkgo/v2" ....
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-proxy/main.go
cmd/ova-proxy/main.go
package main import ( "errors" "fmt" "net/http" "net/http/httputil" "net/url" "path" "github.com/gin-gonic/gin" "github.com/go-logr/logr" "github.com/kubev2v/forklift/cmd/ova-proxy/settings" "github.com/kubev2v/forklift/pkg/apis" api "github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1" "github.com/kube...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/ova-proxy/settings/settings.go
cmd/ova-proxy/settings/settings.go
package settings import ( "errors" "os" "strconv" "strings" ) // k8s pod default. const ( ServiceCAFile = "/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt" ) // DefaultScheme is the default scheme for the inventory service. const ( DefaultScheme = "https" ) // Environment variables. const ( Port...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/virt-v2v/entrypoint.go
cmd/virt-v2v/entrypoint.go
package main import ( _ "embed" "fmt" "os" "github.com/kubev2v/forklift/pkg/virt-v2v/config" "github.com/kubev2v/forklift/pkg/virt-v2v/conversion" "github.com/kubev2v/forklift/pkg/virt-v2v/server" utils "github.com/kubev2v/forklift/pkg/virt-v2v/utils" ) func main() { env := &config.AppConfig{} err := env.Lo...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/vendor/github.com/hashicorp/go-uuid/uuid.go
vendor/github.com/hashicorp/go-uuid/uuid.go
package uuid import ( "crypto/rand" "encoding/hex" "fmt" "io" ) // GenerateRandomBytes is used to generate random bytes of given size. func GenerateRandomBytes(size int) ([]byte, error) { return GenerateRandomBytesWithReader(size, rand.Reader) } // GenerateRandomBytesWithReader is used to generate random bytes ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false