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/pkg/lib/client/openshift/client_test.go
pkg/lib/client/openshift/client_test.go
//nolint:errcheck package ocp import ( "os" "testing" api "github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1" core "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) func setupKubeConfig(t *testing.T) (cleanupFunc func()) { tempFile, err := os.CreateTemp("", "kubeconfig") if err != nil { t...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/client/openshift/util_test.go
pkg/lib/client/openshift/util_test.go
package ocp import ( "testing" "github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/ref" ) func TestGetNetworkNameAndNamespace(t *testing.T) { tests := []struct { name string networkName string vmRef *ref.Ref expectedName string expectedNS string }{ { name: "no slash in...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/client/openstack/client.go
pkg/lib/client/openstack/client.go
package openstack import ( "crypto/tls" "crypto/x509" "fmt" "io" "net" "net/http" "net/url" "strconv" "time" "github.com/gophercloud/gophercloud" "github.com/gophercloud/gophercloud/openstack" "github.com/gophercloud/gophercloud/openstack/blockstorage/extensions/volumeactions" "github.com/gophercloud/gop...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
true
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/client/openstack/model.go
pkg/lib/client/openstack/model.go
package openstack import ( "time" "github.com/gophercloud/gophercloud/openstack/blockstorage/v3/snapshots" "github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumes" "github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumetypes" "github.com/gophercloud/gophercloud/openstack/compute/v2/fla...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/condition/zz_generated.deepcopy.go
pkg/lib/condition/zz_generated.deepcopy.go
//go:build !ignore_autogenerated // +build !ignore_autogenerated /* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unle...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/condition/condition.go
pkg/lib/condition/condition.go
package condition import ( "reflect" "time" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // Types const ( ReconcileFailed = "ReconcileFailed" Ready = "Ready" ) // Status const ( True = "True" False = "False" ) // Category const ( // Errors that block Reconcile() and the `Ready` condition. Critic...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/condition/condition_test.go
pkg/lib/condition/condition_test.go
package condition import ( "testing" "time" "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) func TestCondition_Equal(t *testing.T) { g := gomega.NewGomegaWithT(t) // Setup condA := Condition{ Type: "ThingNotFound", Status: True, Reason: "NotFound", Category: Error, M...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/condition/doc.go
pkg/lib/condition/doc.go
package condition // +k8s:deepcopy-gen=package
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/ref/ref.go
pkg/lib/ref/ref.go
package ref import ( "reflect" "github.com/kubev2v/forklift/pkg/lib/logging" v1 "k8s.io/api/core/v1" ) // Global var Map *RefMap var Mapper *EventMapper var log = logging.WithName("ref") // Build globals. func init() { Map = &RefMap{ Content: map[Target]map[Owner]bool{}, } Mapper = &EventMapper{ Map: Map...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/ref/predicate.go
pkg/lib/ref/predicate.go
package ref import ( "reflect" v1 "k8s.io/api/core/v1" "sigs.k8s.io/controller-runtime/pkg/event" ) const ( Tag = "ref" ) // Predicate Event Mapper // All ObjectReference fields with the `ref` tag will be mapped. // // Example (CRD): // // type Resource struct { // ThingRef *v1.ObjectReference `json:"thingR...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/ref/labels.go
pkg/lib/ref/labels.go
package ref import ( "strings" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // Labels const ( // = Application PartOfLabel = "app.kubernetes.io/part-of" ) var ( // Application identifier included in reference labels. // **Must set be by the using application. Application = "" ) // Build unique reference labe...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/ref/ref_test.go
pkg/lib/ref/ref_test.go
package ref import ( "testing" "github.com/onsi/gomega" v1 "k8s.io/api/core/v1" meta "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" "sigs.k8s.io/controller-runtime/pkg/event" ) type _ThingSpec struct { RefD *v1.ObjectReference `json:"refD" re...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/ref/handler.go
pkg/lib/ref/handler.go
package ref import ( "context" "reflect" "strings" "github.com/kubev2v/forklift/pkg/lib/logging" "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/handler" "sigs.k8s.io/controller-runtime/pkg/reconcile" ) // Build an event handler. // Example: // ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/ref/mapping.go
pkg/lib/ref/mapping.go
package ref import ( "sync" v1 "k8s.io/api/core/v1" ) // A resource that contains an ObjectReference. type Owner v1.ObjectReference // The resource that is the target of an ObjectReference. type Target v1.ObjectReference // A 1-n mapping of Target => [Owner, ...]. type RefMap struct { Content map[Target]map[Own...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/itinerary/simple_test.go
pkg/lib/itinerary/simple_test.go
package itinerary import ( "errors" "testing" "github.com/onsi/gomega" ) var ( p1 Flag = 0x01 p2 Flag = 0x02 p3 Flag = 0x04 ) type TestPredicate struct { } func (p *TestPredicate) Evaluate(f Flag) (bool, error) { switch f { case p1: return false, nil case p2: return true, nil case p3: return true, ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/itinerary/simple.go
pkg/lib/itinerary/simple.go
package itinerary import ( "errors" liberr "github.com/kubev2v/forklift/pkg/lib/error" ) // List of steps. type Pipeline []Step // Predicate flag. type Flag = int16 // Predicate. // Flags delegated to the predicate. type Predicate interface { // Evaluate the condition. // Returns (true) when the step should be...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/itinerary/doc.go
pkg/lib/itinerary/doc.go
package itinerary
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/filebacked/file.go
pkg/lib/filebacked/file.go
/* File backing for collections. File format: | kind: 2 (uint16) | size: 8 (uint64) | object: n (gob encoded) | ... */ package filebacked import ( "bytes" "encoding/binary" "encoding/gob" "io" "os" pathlib "path" "runtime" "github.com/google/uuid" liberr "github.com/kubev2v/forklift/pkg/lib/error" "git...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/filebacked/catalog.go
pkg/lib/filebacked/catalog.go
package filebacked import ( "reflect" "sync" ) // Catalog (singleton). var catalog = Catalog{} // Type catalog. type Catalog struct { sync.Mutex content []interface{} } // Add object (proto) to the catalog. func (r *Catalog) add(object interface{}) (kind uint16) { if object == nil { return } r.Lock() defe...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/filebacked/iterator.go
pkg/lib/filebacked/iterator.go
package filebacked // Iterator. // Read-only collection with stateful iteration. type Iterator interface { // Number of items. Len() int // Reverse. Reverse() // Object at index. At(index int) interface{} // Object at index (with). AtWith(int, interface{}) // Next object. Next() (interface{}, bool) // Next ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/filebacked/list_test.go
pkg/lib/filebacked/list_test.go
package filebacked import ( "fmt" "testing" "time" "github.com/onsi/gomega" ) func TestList(t *testing.T) { g := gomega.NewGomegaWithT(t) type Ref struct { ID string } type Person struct { ID int Name string Age int List []string Ref []Ref } type User struct { ID int Name string }...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/filebacked/list.go
pkg/lib/filebacked/list.go
/* Provides file-backed list. // // New list. list := fb.NewList() // // Append an object. list.Append(object) // // Iterate the list. itr := list.Iter() for i := 0; i < itr.Len(); i++ { person := itr.At(i) ... } // // Iterate the list. itr := list.Iter() for i := 0; i < itr.Len(); i++ { person ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/filebacked/doc.go
pkg/lib/filebacked/doc.go
/* Provides file-backed collections. */ package filebacked import "encoding/gob" func init() { gob.Register(map[string]interface{}{}) gob.Register([]interface{}{}) }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/gob/enc_helpers.go
pkg/lib/gob/enc_helpers.go
// Code generated by go run encgen.go -output enc_helpers.go; DO NOT EDIT. // Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gob import ( "reflect" ) var encArrayHelper = map[reflect.Kind]encHelper{...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/gob/error.go
pkg/lib/gob/error.go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gob import "fmt" // Errors in decoding and encoding are handled using panic and recover. // Panics caused by user error (that is, everything except ru...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/gob/decoder.go
pkg/lib/gob/decoder.go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gob // tooBig provides a sanity check for sizes; used in several places. Upper limit // of is 1GB on 32-bit systems, 8GB on 64-bit, allowing room to gr...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/gob/encode.go
pkg/lib/gob/encode.go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:generate go run encgen.go -output enc_helpers.go package gob import ( "encoding" "encoding/binary" "math" "math/bits" "reflect" "sync" ) const uin...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/gob/type.go
pkg/lib/gob/type.go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gob import ( "encoding" "errors" "fmt" "os" "reflect" "sync" "sync/atomic" "unicode" "unicode/utf8" ) // userTypeInfo stores the information ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/lib/gob/encoder.go
pkg/lib/gob/encoder.go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gob import ( "errors" "io" "reflect" "sync" ) // An Encoder manages the transmission of type and data information to the // other side of a connec...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/apis.go
pkg/apis/apis.go
/* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/group.go
pkg/apis/forklift/group.go
/* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/hook.go
pkg/apis/forklift/v1beta1/hook.go
package v1beta1 import ( libcnd "github.com/kubev2v/forklift/pkg/lib/condition" meta "k8s.io/apimachinery/pkg/apis/meta/v1" ) // Hook specification. type HookSpec struct { // Service account. ServiceAccount string `json:"serviceAccount,omitempty"` // Image to run. Image string `json:"image"` // A base64 encode...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/referenced.go
pkg/apis/forklift/v1beta1/referenced.go
package v1beta1 import core "k8s.io/api/core/v1" // Referenced resources. // Holds resources fetched during validation. // +k8s:deepcopy-gen=false type Referenced struct { // Provider. Provider struct { Source *Provider Destination *Provider } // Secret. Secret *core.Secret // Plan Plan *Plan // Map ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/ovirtpopulator.go
pkg/apis/forklift/v1beta1/ovirtpopulator.go
package v1beta1 import ( core "k8s.io/api/core/v1" meta "k8s.io/apimachinery/pkg/apis/meta/v1" ) var OvirtVolumePopulatorKind = "OvirtVolumePopulator" // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:openapi-gen=true // +kubebuilder:resource:shortName={ovvp,ovvps} type O...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/plan.go
pkg/apis/forklift/v1beta1/plan.go
/* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/zz_generated.deepcopy.go
pkg/apis/forklift/v1beta1/zz_generated.deepcopy.go
//go:build !ignore_autogenerated /* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
true
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/vsphere_xcopy_volumepopulator.go
pkg/apis/forklift/v1beta1/vsphere_xcopy_volumepopulator.go
package v1beta1 import ( meta "k8s.io/apimachinery/pkg/apis/meta/v1" ) var VSphereXcopyVolumePopulatorKind = "VSphereXcopyVolumePopulator" var VSphereXcopyVolumePopulatorResource = "vspherexcopyvolumepopulators" // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:openapi-gen...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/register.go
pkg/apis/forklift/v1beta1/register.go
/* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/openstackpopulator.go
pkg/apis/forklift/v1beta1/openstackpopulator.go
package v1beta1 import ( core "k8s.io/api/core/v1" meta "k8s.io/apimachinery/pkg/apis/meta/v1" ) var OpenstackVolumePopulatorKind = "OpenstackVolumePopulator" // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:openapi-gen=true // +kubebuilder:resource:shortName={osvp,osvps...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/host.go
pkg/apis/forklift/v1beta1/host.go
/* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/provider.go
pkg/apis/forklift/v1beta1/provider.go
/* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/doc.go
pkg/apis/forklift/v1beta1/doc.go
/* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/mapping.go
pkg/apis/forklift/v1beta1/mapping.go
/* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/migration.go
pkg/apis/forklift/v1beta1/migration.go
/* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/ovaserver.go
pkg/apis/forklift/v1beta1/ovaserver.go
package v1beta1 import ( libcnd "github.com/kubev2v/forklift/pkg/lib/condition" v1 "k8s.io/api/core/v1" meta "k8s.io/apimachinery/pkg/apis/meta/v1" ) type OVAProviderServerSpec struct { // Reference to a Provider resource. // +kubebuilder:validation:XValidation:message="spec.provider is immutable",rule="oldSelf ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/plan/vm.go
pkg/apis/forklift/v1beta1/plan/vm.go
package plan import ( "fmt" "path" "github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/ref" libcnd "github.com/kubev2v/forklift/pkg/lib/condition" core "k8s.io/api/core/v1" meta "k8s.io/apimachinery/pkg/apis/meta/v1" ) // Plan hook. type HookRef struct { // Pipeline step. Step string `json:"step"` // Hoo...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/plan/zz_generated.deepcopy.go
pkg/apis/forklift/v1beta1/plan/zz_generated.deepcopy.go
//go:build !ignore_autogenerated /* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/plan/snapshot.go
pkg/apis/forklift/v1beta1/plan/snapshot.go
package plan import ( libcnd "github.com/kubev2v/forklift/pkg/lib/condition" meta "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" ) // Snapshot object reference. type SnapshotRef struct { Namespace string `json:"namespace"` Name string `json:"name"` UID types.UID `json...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/plan/timed.go
pkg/apis/forklift/v1beta1/plan/timed.go
package plan import meta "k8s.io/apimachinery/pkg/apis/meta/v1" // Resources that record started and completed timestamps. type Timed struct { // Started timestamp. Started *meta.Time `json:"started,omitempty"` // Completed timestamp. Completed *meta.Time `json:"completed,omitempty"` } // Reset. func (r *Timed) ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/plan/doc.go
pkg/apis/forklift/v1beta1/plan/doc.go
package plan // +k8s:deepcopy-gen=package
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/plan/mapping.go
pkg/apis/forklift/v1beta1/plan/mapping.go
package plan import core "k8s.io/api/core/v1" // Maps. type Map struct { // Network. Network core.ObjectReference `json:"network" ref:"NetworkMap"` // Storage. Storage core.ObjectReference `json:"storage" ref:"StorageMap"` }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/plan/migration.go
pkg/apis/forklift/v1beta1/plan/migration.go
package plan import ( "github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/ref" libitr "github.com/kubev2v/forklift/pkg/lib/itinerary" "k8s.io/apimachinery/pkg/types" ) // Error. type Error struct { Phase string `json:"phase"` Reasons []string `json:"reasons"` } // Add. func (e *Error) Add(reason ...strin...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/provider/pair.go
pkg/apis/forklift/v1beta1/provider/pair.go
package provider import core "k8s.io/api/core/v1" // Referenced Provider pair. type Pair struct { // Source. Source core.ObjectReference `json:"source" ref:"Provider"` // Destination. Destination core.ObjectReference `json:"destination" ref:"Provider"` }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/provider/zz_generated.deepcopy.go
pkg/apis/forklift/v1beta1/provider/zz_generated.deepcopy.go
//go:build !ignore_autogenerated /* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/provider/doc.go
pkg/apis/forklift/v1beta1/provider/doc.go
package provider // +k8s:deepcopy-gen=package
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/ref/ref.go
pkg/apis/forklift/v1beta1/ref/ref.go
package ref import "fmt" // Source reference. // Either the ID or Name must be specified. type Ref struct { // The object ID. // vsphere: // The managed object ID. ID string `json:"id,omitempty"` // An object Name. // vsphere: // A qualified name. Name string `json:"name,omitempty"` // The VM Namespace ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/ref/zz_generated.deepcopy.go
pkg/apis/forklift/v1beta1/ref/zz_generated.deepcopy.go
//go:build !ignore_autogenerated /* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/apis/forklift/v1beta1/ref/doc.go
pkg/apis/forklift/v1beta1/ref/doc.go
package ref // +k8s:deepcopy-gen=package
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/customize/customize.go
pkg/virt-v2v/customize/customize.go
package customize import ( "bytes" "embed" "fmt" "os" "path/filepath" "reflect" "regexp" "strings" "text/template" "github.com/kubev2v/forklift/pkg/virt-v2v/config" "github.com/kubev2v/forklift/pkg/virt-v2v/utils" ) const ( WinFirstbootPath = "/Program Files/Guestfs/Firstboot" WinFirstbootScripts...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/customize/embed_tool.go
pkg/virt-v2v/customize/embed_tool.go
package customize import ( "embed" "fmt" "io/fs" "os" "path/filepath" "regexp" ) //go:generate mockgen -source=embed_tool.go -package=customize -destination=mock_embed_tool.go type EmbedTool interface { CreateFilesFromFS(dstDir string) error } // EmbedToolImpl for manipulating the embedded Filesystem type Emb...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/customize/customize_test.go
pkg/virt-v2v/customize/customize_test.go
package customize import ( "errors" "fmt" "io/fs" "os" "path/filepath" "testing" "github.com/kubev2v/forklift/pkg/virt-v2v/config" "github.com/kubev2v/forklift/pkg/virt-v2v/utils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "go.uber.org/mock/gomock" ) func TestCustomize(t *testing.T) { Regis...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/customize/mock_embed_tool.go
pkg/virt-v2v/customize/mock_embed_tool.go
// Code generated by MockGen. DO NOT EDIT. // Source: embed_tool.go // Package customize is a generated GoMock package. package customize import ( reflect "reflect" gomock "go.uber.org/mock/gomock" ) // MockEmbedTool is a mock of EmbedTool interface. type MockEmbedTool struct { ctrl *gomock.Controller recor...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/utils/mock_filesystem.go
pkg/virt-v2v/utils/mock_filesystem.go
// Code generated by MockGen. DO NOT EDIT. // Source: filesystem.go // // Generated by this command: // // mockgen -source=filesystem.go -package=utils -destination=mock_filesystem.go // // Package utils is a generated GoMock package. package utils import ( os "os" reflect "reflect" gomock "go.uber.org/mock/gomoc...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/utils/utils.go
pkg/virt-v2v/utils/utils.go
package utils import ( "fmt" "os" "strings" ) // AddLUKSKeys checks the LUKS directory for key files and returns the appropriate // arguments for a 'virt-' command to add these keys. // // Returns a slice of strings representing the LUKS key arguments, or an error if // there's an issue accessing the directory or ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/utils/mock_command.go
pkg/virt-v2v/utils/mock_command.go
// Code generated by MockGen. DO NOT EDIT. // Source: command.go // Package utils is a generated GoMock package. package utils import ( io "io" reflect "reflect" gomock "go.uber.org/mock/gomock" ) // MockCommandExecutor is a mock of CommandExecutor interface. type MockCommandExecutor struct { ctrl *gomock.C...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/utils/filesystem.go
pkg/virt-v2v/utils/filesystem.go
package utils import ( "os" "time" ) //go:generate mockgen -source=filesystem.go -package=utils -destination=mock_filesystem.go type FileSystem interface { Symlink(oldname, newname string) error Stat(name string) (os.FileInfo, error) WriteFile(name string, data []byte, perm os.FileMode) error ReadDir(name strin...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/utils/xml-reader.go
pkg/virt-v2v/utils/xml-reader.go
package utils import ( "encoding/xml" "fmt" "os" "strings" ) type InspectionOS struct { Name string `xml:"name"` Distro string `xml:"distro"` Osinfo string `xml:"osinfo"` Arch string `xml:"arch"` } type InspectionV2V struct { OS InspectionOS `xml:"operatingsystem"` } func GetInspectionV2vFromFile(xmlFi...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/utils/command.go
pkg/virt-v2v/utils/command.go
package utils import ( "fmt" "io" "os/exec" ) //go:generate mockgen -source=command.go -package=utils -destination=mock_command.go type CommandExecutor interface { Run() error Start() error Wait() error SetStdout(io.Writer) SetStderr(io.Writer) SetStdin(read io.Reader) } // RealCommand wraps exec.Cmd. type ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/conversion/conversion_test.go
pkg/virt-v2v/conversion/conversion_test.go
package conversion import ( "os" "testing" "github.com/kubev2v/forklift/pkg/virt-v2v/config" "github.com/kubev2v/forklift/pkg/virt-v2v/utils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "go.uber.org/mock/gomock" ) func TestConversion(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "Conver...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/conversion/conversion.go
pkg/virt-v2v/conversion/conversion.go
package conversion import ( "errors" "fmt" "io" "net/url" "os" "path/filepath" "strings" "github.com/kubev2v/forklift/pkg/virt-v2v/config" "github.com/kubev2v/forklift/pkg/virt-v2v/customize" "github.com/kubev2v/forklift/pkg/virt-v2v/utils" "libvirt.org/go/libvirt" libvirtxml "libvirt.org/go/libvirtxml" )...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/conversion/disk.go
pkg/virt-v2v/conversion/disk.go
package conversion import ( "fmt" "path/filepath" "regexp" "strconv" "github.com/kubev2v/forklift/pkg/virt-v2v/config" "github.com/kubev2v/forklift/pkg/virt-v2v/utils" ) const ( Letters = "abcdefghijklmnopqrstuvwxyz" LettersLength = len(Letters) ) type Disk struct { // The path to the connected disk ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/conversion/disk_test.go
pkg/virt-v2v/conversion/disk_test.go
package conversion import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "go.uber.org/mock/gomock" "github.com/kubev2v/forklift/pkg/virt-v2v/config" "github.com/kubev2v/forklift/pkg/virt-v2v/utils" ) var _ = Describe("Disks", func() { var disk *Disk var mockCtrl *gomock.Controller var mockFileSys...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/server/server.go
pkg/virt-v2v/server/server.go
package server import ( "context" "encoding/json" "errors" "fmt" "net/http" "os" "path/filepath" "github.com/kubev2v/forklift/pkg/virt-v2v/config" ) var ( server *http.Server warnings []Warning ) // Warning represents a non-fatal issue that occurred during migration type Warning struct { Reason string...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/virt-v2v/config/variables.go
pkg/virt-v2v/config/variables.go
package config import ( "encoding/json" "flag" "fmt" "os" "strconv" "strings" ) type MountPath string // Enviroment variables const ( EnvLibvirtUrlName = "V2V_libvirtURL" EnvFingerprintName = "V2V_fingerprint" EnvInPlaceName = "V2V_inPlace" EnvExtraArgsName ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/pkg/labeler/labeler.go
pkg/labeler/labeler.go
package labeler import ( liberr "github.com/kubev2v/forklift/pkg/lib/error" "k8s.io/apimachinery/pkg/runtime" "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" ) type Labeler struct{} func (r *Labeler) SetLabel(object client.Object, key string, value strin...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/forklift-controller/main.go
cmd/forklift-controller/main.go
/* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/main.go
cmd/kubectl-mtv/main.go
package main import ( "os" "github.com/yaacov/kubectl-mtv/cmd" ) func main() { if err := cmd.Execute(); err != nil { os.Exit(1) } }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/iter_int.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/iter_int.go
package jsoniter import ( "math" "strconv" ) var intDigits []int8 const uint32SafeToMultiply10 = uint32(0xffffffff)/10 - 1 const uint64SafeToMultiple10 = uint64(0xffffffffffffffff)/10 - 1 const maxFloat64 = 1<<53 - 1 func init() { intDigits = make([]int8, 256) for i := 0; i < len(intDigits); i++ { intDigits[i...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any_number.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any_number.go
package jsoniter import ( "io" "unsafe" ) type numberLazyAny struct { baseAny cfg *frozenConfig buf []byte err error } func (any *numberLazyAny) ValueType() ValueType { return NumberValue } func (any *numberLazyAny) MustBeValid() Any { return any } func (any *numberLazyAny) LastError() error { return any....
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any.go
package jsoniter import ( "errors" "fmt" "github.com/modern-go/reflect2" "io" "reflect" "strconv" "unsafe" ) // Any generic object representation. // The lazy json implementation holds []byte and parse lazily. type Any interface { LastError() error ValueType() ValueType MustBeValid() Any ToBool() bool ToI...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any_bool.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any_bool.go
package jsoniter type trueAny struct { baseAny } func (any *trueAny) LastError() error { return nil } func (any *trueAny) ToBool() bool { return true } func (any *trueAny) ToInt() int { return 1 } func (any *trueAny) ToInt32() int32 { return 1 } func (any *trueAny) ToInt64() int64 { return 1 } func (any *t...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/stream_float.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/stream_float.go
package jsoniter import ( "fmt" "math" "strconv" ) var pow10 []uint64 func init() { pow10 = []uint64{1, 10, 100, 1000, 10000, 100000, 1000000} } // WriteFloat32 write float32 to stream func (stream *Stream) WriteFloat32(val float32) { if math.IsInf(float64(val), 0) || math.IsNaN(float64(val)) { stream.Error ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/reflect_slice.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/reflect_slice.go
package jsoniter import ( "fmt" "github.com/modern-go/reflect2" "io" "unsafe" ) func decoderOfSlice(ctx *ctx, typ reflect2.Type) ValDecoder { sliceType := typ.(*reflect2.UnsafeSliceType) decoder := decoderOfType(ctx.append("[sliceElem]"), sliceType.Elem()) return &sliceDecoder{sliceType, decoder} } func encod...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/iter_skip_sloppy.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/iter_skip_sloppy.go
//+build jsoniter_sloppy package jsoniter // sloppy but faster implementation, do not validate the input json func (iter *Iterator) skipNumber() { for { for i := iter.head; i < iter.tail; i++ { c := iter.buf[i] switch c { case ' ', '\n', '\r', '\t', ',', '}', ']': iter.head = i return } } ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any_int32.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any_int32.go
package jsoniter import ( "strconv" ) type int32Any struct { baseAny val int32 } func (any *int32Any) LastError() error { return nil } func (any *int32Any) ValueType() ValueType { return NumberValue } func (any *int32Any) MustBeValid() Any { return any } func (any *int32Any) ToBool() bool { return any.val ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/stream.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/stream.go
package jsoniter import ( "io" ) // stream is a io.Writer like object, with JSON specific write functions. // Error is not returned as return value, but stored as Error member on this stream instance. type Stream struct { cfg *frozenConfig out io.Writer buf []byte Error error indention...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/reflect_json_raw_message.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/reflect_json_raw_message.go
package jsoniter import ( "encoding/json" "github.com/modern-go/reflect2" "unsafe" ) var jsonRawMessageType = reflect2.TypeOfPtr((*json.RawMessage)(nil)).Elem() var jsoniterRawMessageType = reflect2.TypeOfPtr((*RawMessage)(nil)).Elem() func createEncoderOfJsonRawMessage(ctx *ctx, typ reflect2.Type) ValEncoder { ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/iter_array.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/iter_array.go
package jsoniter // ReadArray read array element, tells if the array has more element to read. func (iter *Iterator) ReadArray() (ret bool) { c := iter.nextToken() switch c { case 'n': iter.skipThreeBytes('u', 'l', 'l') return false // null case '[': c = iter.nextToken() if c != ']' { iter.unreadByte() ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/stream_int.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/stream_int.go
package jsoniter var digits []uint32 func init() { digits = make([]uint32, 1000) for i := uint32(0); i < 1000; i++ { digits[i] = (((i / 100) + '0') << 16) + ((((i / 10) % 10) + '0') << 8) + i%10 + '0' if i < 10 { digits[i] += 2 << 24 } else if i < 100 { digits[i] += 1 << 24 } } } func writeFirstBuf(...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/reflect_extension.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/reflect_extension.go
package jsoniter import ( "fmt" "github.com/modern-go/reflect2" "reflect" "sort" "strings" "unicode" "unsafe" ) var typeDecoders = map[string]ValDecoder{} var fieldDecoders = map[string]ValDecoder{} var typeEncoders = map[string]ValEncoder{} var fieldEncoders = map[string]ValEncoder{} var extensions = []Extens...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/reflect_native.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/reflect_native.go
package jsoniter import ( "encoding/base64" "reflect" "strconv" "unsafe" "github.com/modern-go/reflect2" ) const ptrSize = 32 << uintptr(^uintptr(0)>>63) func createEncoderOfNative(ctx *ctx, typ reflect2.Type) ValEncoder { if typ.Kind() == reflect.Slice && typ.(reflect2.SliceType).Elem().Kind() == reflect.Uin...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any_int64.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any_int64.go
package jsoniter import ( "strconv" ) type int64Any struct { baseAny val int64 } func (any *int64Any) LastError() error { return nil } func (any *int64Any) ValueType() ValueType { return NumberValue } func (any *int64Any) MustBeValid() Any { return any } func (any *int64Any) ToBool() bool { return any.val ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/iter.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/iter.go
package jsoniter import ( "encoding/json" "fmt" "io" ) // ValueType the type for JSON element type ValueType int const ( // InvalidValue invalid JSON element InvalidValue ValueType = iota // StringValue JSON element "string" StringValue // NumberValue JSON element 100 or 0.10 NumberValue // NilValue JSON e...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any_float.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any_float.go
package jsoniter import ( "strconv" ) type floatAny struct { baseAny val float64 } func (any *floatAny) Parse() *Iterator { return nil } func (any *floatAny) ValueType() ValueType { return NumberValue } func (any *floatAny) MustBeValid() Any { return any } func (any *floatAny) LastError() error { return ni...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/config.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/config.go
package jsoniter import ( "encoding/json" "io" "reflect" "sync" "unsafe" "github.com/modern-go/concurrent" "github.com/modern-go/reflect2" ) // Config customize how the API should behave. // The API is created from Config by Froze. type Config struct { IndentionStep int MarshalFloatWith6Digi...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/iter_float.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/iter_float.go
package jsoniter import ( "encoding/json" "io" "math/big" "strconv" "strings" "unsafe" ) var floatDigits []int8 const invalidCharForNumber = int8(-1) const endOfNumber = int8(-2) const dotInNumber = int8(-3) func init() { floatDigits = make([]int8, 256) for i := 0; i < len(floatDigits); i++ { floatDigits[...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any_object.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any_object.go
package jsoniter import ( "reflect" "unsafe" ) type objectLazyAny struct { baseAny cfg *frozenConfig buf []byte err error } func (any *objectLazyAny) ValueType() ValueType { return ObjectValue } func (any *objectLazyAny) MustBeValid() Any { return any } func (any *objectLazyAny) LastError() error { return...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/reflect_optional.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/reflect_optional.go
package jsoniter import ( "github.com/modern-go/reflect2" "unsafe" ) func decoderOfOptional(ctx *ctx, typ reflect2.Type) ValDecoder { ptrType := typ.(*reflect2.UnsafePtrType) elemType := ptrType.Elem() decoder := decoderOfType(ctx, elemType) return &OptionalDecoder{elemType, decoder} } func encoderOfOptional(c...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/reflect_struct_decoder.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/reflect_struct_decoder.go
package jsoniter import ( "fmt" "io" "strings" "unsafe" "github.com/modern-go/reflect2" ) func decoderOfStruct(ctx *ctx, typ reflect2.Type) ValDecoder { bindings := map[string]*Binding{} structDescriptor := describeStruct(ctx, typ) for _, binding := range structDescriptor.Fields { for _, fromName := range ...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any_str.go
cmd/kubectl-mtv/vendor/github.com/json-iterator/go/any_str.go
package jsoniter import ( "fmt" "strconv" ) type stringAny struct { baseAny val string } func (any *stringAny) Get(path ...interface{}) Any { if len(path) == 0 { return any } return &invalidAny{baseAny{}, fmt.Errorf("GetIndex %v from simple value", path)} } func (any *stringAny) Parse() *Iterator { return...
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false