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/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/tool.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/tool.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package mcp
import (
"context"
"encoding/json"
"fmt"
"github.com/google/jsonschema-go/jsonschema"
)
// A ToolHandler handles a call to tools/cal... | 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/modelcontextprotocol/go-sdk/mcp/logging.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/logging.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package mcp
import (
"bytes"
"cmp"
"context"
"encoding/json"
"log/slog"
"sync"
"time"
)
// Logging levels.
const (
LevelDebug = slog.Leve... | 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/modelcontextprotocol/go-sdk/mcp/client.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/client.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package mcp
import (
"context"
"encoding/json"
"fmt"
"iter"
"slices"
"sync"
"time"
"github.com/google/jsonschema-go/jsonschema"
"github.com/... | 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/modelcontextprotocol/go-sdk/mcp/resource_go124.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/resource_go124.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
//go:build go1.24
package mcp
import (
"errors"
"os"
)
// withFile calls f on the file at join(dir, rel),
// protecting against path traversal att... | 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/modelcontextprotocol/go-sdk/mcp/sse.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/sse.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package mcp
import (
"bytes"
"context"
"fmt"
"io"
"net/http"
"net/url"
"sync"
"github.com/modelcontextprotocol/go-sdk/internal/jsonrpc2"
"gi... | 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/modelcontextprotocol/go-sdk/mcp/features.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/features.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package mcp
import (
"iter"
"maps"
"slices"
)
// This file contains implementations that are common to all features.
// A feature is an item provi... | 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/modelcontextprotocol/go-sdk/mcp/protocol.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/protocol.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package mcp
// Protocol types for version 2025-06-18.
// To see the schema changes from the previous version, run:
//
// prefix=https://raw.githubus... | go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/mcp.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/mcp.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
// The mcp package provides an SDK for writing model context protocol clients
// and servers.
//
// To get started, create either a [Client] or [Server... | 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/modelcontextprotocol/go-sdk/mcp/util.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/util.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package mcp
import (
"crypto/rand"
"encoding/json"
)
func assert(cond bool, msg string) {
if !cond {
panic(msg)
}
}
// Copied from crypto/rand... | 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/modelcontextprotocol/go-sdk/mcp/shared.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/shared.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
// This file contains code shared between client and server, including
// method handler and middleware definitions.
//
// Much of this is here so that... | 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/modelcontextprotocol/go-sdk/mcp/cmd.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/cmd.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package mcp
import (
"context"
"fmt"
"io"
"os/exec"
"syscall"
"time"
)
var defaultTerminateDuration = 5 * time.Second // mutable for testing
/... | 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/modelcontextprotocol/go-sdk/mcp/session.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/session.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package mcp
// hasSessionID is the interface which, if implemented by connections, informs
// the session about their session ID.
//
// TODO(rfindley)... | 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/modelcontextprotocol/go-sdk/mcp/server.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/server.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package mcp
import (
"bytes"
"context"
"encoding/base64"
"encoding/gob"
"encoding/json"
"fmt"
"iter"
"maps"
"net/url"
"path/filepath"
"refl... | go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/requests.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/requests.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
// This file holds the request types.
package mcp
type (
CallToolRequest = ServerRequest[*CallToolParamsRaw]
CompleteRequest ... | 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/modelcontextprotocol/go-sdk/mcp/resource.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/resource.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package mcp
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/url"
"os"
"path/filepath"
"strings"
"github.com/modelcontextprotoco... | 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/modelcontextprotocol/go-sdk/mcp/event.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/event.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
// This file is for SSE events.
// See https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events.
package mcp
impo... | 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/modelcontextprotocol/go-sdk/mcp/prompt.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/prompt.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package mcp
import (
"context"
)
// A PromptHandler handles a call to prompts/get.
type PromptHandler func(context.Context, *GetPromptRequest) (*Get... | 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/modelcontextprotocol/go-sdk/mcp/resource_pre_go124.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/resource_pre_go124.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
//go:build !go1.24
package mcp
import (
"errors"
"os"
"path/filepath"
)
// withFile calls f on the file at join(dir, rel).
// It does not protect... | 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/modelcontextprotocol/go-sdk/mcp/transport.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/transport.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package mcp
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
"log"
"net"
"os"
"sync"
"github.com/modelcontextprotocol/go-sdk/internal... | 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/modelcontextprotocol/go-sdk/mcp/content.go | cmd/kubectl-mtv/vendor/github.com/modelcontextprotocol/go-sdk/mcp/content.go | // Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
// TODO(findleyr): update JSON marshalling of all content types to preserve required fields.
// (See [TextContent.MarshalJSON], which handles this for ... | 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/kubev2v/forklift/pkg/lib/error/wrap.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/lib/error/wrap.go | package error
import (
"errors"
"fmt"
"math"
"runtime"
"strings"
)
// Create a new wrapped error.
func New(m string, kvpair ...interface{}) error {
return Wrap(
errors.New(m),
kvpair...)
}
// Wrap an error.
// Returns `err` when err is `nil` or *Error.
func Wrap(err error, kvpair ...interface{}) error {
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/kubev2v/forklift/pkg/lib/error/doc.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/lib/error/doc.go | /*
The error package provides practical wrap/unwrap features.
The Wrap() function will capture caller provided and the captured stack.
The stack is captured only on the first call to Wrap().
Subsequent calls to Wrap() will augment the description and key/value
pair context only. Wrap() may safely be called with `nil`.... | 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/kubev2v/forklift/pkg/lib/condition/zz_generated.deepcopy.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/lib/condition/condition.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/lib/condition/doc.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/lib/itinerary/simple.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/lib/itinerary/doc.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/hook.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/referenced.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/ovirtpopulator.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/plan.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/zz_generated.deepcopy.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/vsphere_xcopy_volumepopulator.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/register.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/openstackpopulator.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/host.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/provider.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/doc.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/mapping.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/migration.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/ovaserver.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/plan/vm.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/plan/zz_generated.deepcopy.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/plan/snapshot.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/plan/timed.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/plan/doc.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/plan/mapping.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/plan/migration.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/provider/pair.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/provider/zz_generated.deepcopy.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/provider/doc.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/ref/ref.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/ref/zz_generated.deepcopy.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1/ref/doc.go | cmd/kubectl-mtv/vendor/github.com/kubev2v/forklift/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/cmd/kubectl-mtv/vendor/github.com/moby/term/term_windows.go | cmd/kubectl-mtv/vendor/github.com/moby/term/term_windows.go | package term
import (
"fmt"
"io"
"os"
"os/signal"
windowsconsole "github.com/moby/term/windows"
"golang.org/x/sys/windows"
)
// terminalState holds the platform-specific state / console mode for the terminal.
type terminalState struct {
mode uint32
}
// vtInputSupported is true if winterm.ENABLE_VIRTUAL_TERM... | 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/moby/term/termios_nonbsd.go | cmd/kubectl-mtv/vendor/github.com/moby/term/termios_nonbsd.go | //go:build !darwin && !freebsd && !netbsd && !openbsd && !windows
// +build !darwin,!freebsd,!netbsd,!openbsd,!windows
package term
import (
"golang.org/x/sys/unix"
)
const (
getTermios = unix.TCGETS
setTermios = unix.TCSETS
)
| 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/moby/term/proxy.go | cmd/kubectl-mtv/vendor/github.com/moby/term/proxy.go | package term
import (
"io"
)
// EscapeError is special error which returned by a TTY proxy reader's Read()
// method in case its detach escape sequence is read.
type EscapeError struct{}
func (EscapeError) Error() string {
return "read escape sequence"
}
// escapeProxy is used only for attaches with a TTY. It is ... | 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/moby/term/termios_bsd.go | cmd/kubectl-mtv/vendor/github.com/moby/term/termios_bsd.go | //go:build darwin || freebsd || openbsd || netbsd
// +build darwin freebsd openbsd netbsd
package term
import (
"golang.org/x/sys/unix"
)
const (
getTermios = unix.TIOCGETA
setTermios = unix.TIOCSETA
)
| 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/moby/term/termios_windows.go | cmd/kubectl-mtv/vendor/github.com/moby/term/termios_windows.go | package term
import "golang.org/x/sys/windows"
func makeRaw(fd uintptr) (*State, error) {
state, err := SaveState(fd)
if err != nil {
return nil, err
}
mode := state.mode
// See
// -- https://msdn.microsoft.com/en-us/library/windows/desktop/ms686033(v=vs.85).aspx
// -- https://msdn.microsoft.com/en-us/libr... | 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/moby/term/ascii.go | cmd/kubectl-mtv/vendor/github.com/moby/term/ascii.go | package term
import (
"fmt"
"strings"
)
// ASCII list the possible supported ASCII key sequence
var ASCII = []string{
"ctrl-@",
"ctrl-a",
"ctrl-b",
"ctrl-c",
"ctrl-d",
"ctrl-e",
"ctrl-f",
"ctrl-g",
"ctrl-h",
"ctrl-i",
"ctrl-j",
"ctrl-k",
"ctrl-l",
"ctrl-m",
"ctrl-n",
"ctrl-o",
"ctrl-p",
"ctrl-q",
... | 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/moby/term/term.go | cmd/kubectl-mtv/vendor/github.com/moby/term/term.go | package term
import "io"
// State holds the platform-specific state / console mode for the terminal.
type State terminalState
// Winsize represents the size of the terminal window.
type Winsize struct {
Height uint16
Width uint16
// Only used on Unix
x uint16
y uint16
}
// StdStreams returns the standard str... | 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/moby/term/termios_unix.go | cmd/kubectl-mtv/vendor/github.com/moby/term/termios_unix.go | //go:build !windows
// +build !windows
package term
import (
"golang.org/x/sys/unix"
)
// Termios is the Unix API for terminal I/O.
//
// Deprecated: use [unix.Termios].
type Termios = unix.Termios
func makeRaw(fd uintptr) (*State, error) {
termios, err := tcget(fd)
if err != nil {
return nil, err
}
oldStat... | 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/moby/term/doc.go | cmd/kubectl-mtv/vendor/github.com/moby/term/doc.go | // Package term provides structures and helper functions to work with
// terminal (state, sizes).
package term
| 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/moby/term/term_unix.go | cmd/kubectl-mtv/vendor/github.com/moby/term/term_unix.go | //go:build !windows
// +build !windows
package term
import (
"errors"
"io"
"os"
"golang.org/x/sys/unix"
)
// ErrInvalidState is returned if the state of the terminal is invalid.
//
// Deprecated: ErrInvalidState is no longer used.
var ErrInvalidState = errors.New("Invalid terminal state")
// terminalState hold... | 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/moby/term/windows/ansi_reader.go | cmd/kubectl-mtv/vendor/github.com/moby/term/windows/ansi_reader.go | //go:build windows
// +build windows
package windowsconsole
import (
"bytes"
"errors"
"fmt"
"io"
"os"
"strings"
"unsafe"
ansiterm "github.com/Azure/go-ansiterm"
"github.com/Azure/go-ansiterm/winterm"
)
const (
escapeSequence = ansiterm.KEY_ESC_CSI
)
// ansiReader wraps a standard input file (e.g., os.Std... | 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/moby/term/windows/console.go | cmd/kubectl-mtv/vendor/github.com/moby/term/windows/console.go | //go:build windows
// +build windows
package windowsconsole
import (
"os"
"golang.org/x/sys/windows"
)
// GetHandleInfo returns file descriptor and bool indicating whether the file is a console.
func GetHandleInfo(in interface{}) (uintptr, bool) {
switch t := in.(type) {
case *ansiReader:
return t.Fd(), true
... | 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/moby/term/windows/ansi_writer.go | cmd/kubectl-mtv/vendor/github.com/moby/term/windows/ansi_writer.go | //go:build windows
// +build windows
package windowsconsole
import (
"io"
"os"
ansiterm "github.com/Azure/go-ansiterm"
"github.com/Azure/go-ansiterm/winterm"
)
// ansiWriter wraps a standard output file (e.g., os.Stdout) providing ANSI sequence translation.
type ansiWriter struct {
file *os.File
fd ... | 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/moby/term/windows/doc.go | cmd/kubectl-mtv/vendor/github.com/moby/term/windows/doc.go | // These files implement ANSI-aware input and output streams for use by the Docker Windows client.
// When asked for the set of standard streams (e.g., stdin, stdout, stderr), the code will create
// and return pseudo-streams that convert ANSI sequences to / from Windows Console API calls.
package windowsconsole
| 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/davecgh/go-spew/spew/config.go | cmd/kubectl-mtv/vendor/github.com/davecgh/go-spew/spew/config.go | /*
* Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 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/davecgh/go-spew/spew/format.go | cmd/kubectl-mtv/vendor/github.com/davecgh/go-spew/spew/format.go | /*
* Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 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/davecgh/go-spew/spew/bypass.go | cmd/kubectl-mtv/vendor/github.com/davecgh/go-spew/spew/bypass.go | // Copyright (c) 2015-2016 Dave Collins <dave@davec.name>
//
// Permission to use, copy, modify, and distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND ... | 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/davecgh/go-spew/spew/bypasssafe.go | cmd/kubectl-mtv/vendor/github.com/davecgh/go-spew/spew/bypasssafe.go | // Copyright (c) 2015-2016 Dave Collins <dave@davec.name>
//
// Permission to use, copy, modify, and distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND ... | 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/davecgh/go-spew/spew/doc.go | cmd/kubectl-mtv/vendor/github.com/davecgh/go-spew/spew/doc.go | /*
* Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 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/davecgh/go-spew/spew/dump.go | cmd/kubectl-mtv/vendor/github.com/davecgh/go-spew/spew/dump.go | /*
* Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 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/davecgh/go-spew/spew/spew.go | cmd/kubectl-mtv/vendor/github.com/davecgh/go-spew/spew/spew.go | /*
* Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 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/davecgh/go-spew/spew/common.go | cmd/kubectl-mtv/vendor/github.com/davecgh/go-spew/spew/common.go | /*
* Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 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/xlab/treeprint/treeprint.go | cmd/kubectl-mtv/vendor/github.com/xlab/treeprint/treeprint.go | // Package treeprint provides a simple ASCII tree composing tool.
package treeprint
import (
"bytes"
"fmt"
"io"
"reflect"
"strings"
)
// Value defines any value
type Value interface{}
// MetaValue defines any meta value
type MetaValue interface{}
// NodeVisitor function type for iterating over nodes
type NodeV... | 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/xlab/treeprint/struct.go | cmd/kubectl-mtv/vendor/github.com/xlab/treeprint/struct.go | package treeprint
import (
"fmt"
"reflect"
"strings"
)
type StructTreeOption int
const (
StructNameTree StructTreeOption = iota
StructValueTree
StructTagTree
StructTypeTree
StructTypeSizeTree
)
func FromStruct(v interface{}, opt ...StructTreeOption) (Tree, error) {
var treeOpt StructTreeOption
if len(opt)... | 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/xlab/treeprint/helpers.go | cmd/kubectl-mtv/vendor/github.com/xlab/treeprint/helpers.go | package treeprint
import (
"reflect"
"strings"
)
func isEmpty(v *reflect.Value) bool {
switch v.Kind() {
case reflect.Array, reflect.Map, reflect.Slice, reflect.String:
return v.Len() == 0
case reflect.Bool:
return !v.Bool()
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
retu... | 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/yaacov/kubectl-mtv/pkg/util/query/sort.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/query/sort.go | package query
import (
"fmt"
"sort"
"strconv"
)
// SortItems sorts the items based on the provided ordering options
func SortItems(items []map[string]interface{}, queryOpts *QueryOptions) ([]map[string]interface{}, error) {
orderOpts := queryOpts.OrderBy
selectOpts := queryOpts.Select
if len(orderOpts) == 0 {
... | 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/yaacov/kubectl-mtv/pkg/util/query/helper.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/query/helper.go | package query
// ApplyQueryInterface parses the query string and applies it to the data (interface{}).
// Accepts data as []map[string]interface{} or map[string]interface{}.
// Returns filtered data as interface{} and error.
func ApplyQueryInterface(data interface{}, query string) (interface{}, error) {
var items []m... | 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/yaacov/kubectl-mtv/pkg/util/query/jsonpath.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/query/jsonpath.go | package query
import (
"fmt"
"regexp"
"strconv"
"strings"
)
// GetValueByPathString gets a value from an object using a string path
// The path can use dot notation (e.g. "metadata.name") and array indexing (e.g. "spec.containers[0].name")
func GetValueByPathString(obj interface{}, path string) (interface{}, erro... | 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/yaacov/kubectl-mtv/pkg/util/query/validate.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/query/validate.go | package query
import (
"fmt"
"regexp"
"strings"
)
// QueryKeyword represents a SQL-like keyword in queries
type QueryKeyword struct {
Name string
Pattern *regexp.Regexp
Position int // Expected position order (1=SELECT, 2=WHERE, 3=ORDER BY, 4=LIMIT)
}
// Common query keywords with their expected positions... | 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/yaacov/kubectl-mtv/pkg/util/query/types.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/query/types.go | package query
// QueryOptions contains the parsed query string options
type QueryOptions struct {
Select []SelectOption
Where string
OrderBy []OrderOption
Limit int
HasSelect bool
HasOrderBy bool
HasLimit bool
}
// SelectOption represents a column to be selected and its optional alias
type ... | 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/yaacov/kubectl-mtv/pkg/util/query/filter.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/query/filter.go | package query
import (
"fmt"
"github.com/yaacov/tree-search-language/v6/pkg/tsl"
"github.com/yaacov/tree-search-language/v6/pkg/walkers/semantics"
)
// ParseWhereClause parses a WHERE clause string into a TSL tree
func ParseWhereClause(whereClause string) (*tsl.TSLNode, error) {
tree, err := tsl.ParseTSL(whereCl... | 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/yaacov/kubectl-mtv/pkg/util/query/apply.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/query/apply.go | package query
import (
"fmt"
)
// ApplyQuery filters, sorts, and limits the given items based on QueryOptions
func ApplyQuery(items []map[string]interface{}, queryOpts *QueryOptions) ([]map[string]interface{}, error) {
result := items
// Apply WHERE filtering if specified
if queryOpts.Where != "" {
var err err... | 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/yaacov/kubectl-mtv/pkg/util/query/parallel_filter.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/query/parallel_filter.go | package query
import (
"fmt"
"runtime"
"sync"
)
// CalculateBatchSize determines an appropriate batch size based on the total items
// and available CPU cores. If providedBatchSize > 0, it uses that instead.
func CalculateBatchSize(totalItems int, providedBatchSize int) int {
if providedBatchSize > 0 {
return p... | 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/yaacov/kubectl-mtv/pkg/util/query/reducer.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/query/reducer.go | package query
import (
"fmt"
)
// applyReducer runs sum/len/any/all on slice values.
func applyReducer(value interface{}, reducer string) (interface{}, error) {
arr, ok := value.([]interface{})
if !ok {
// not an array – no reduction
return value, nil
}
switch reducer {
case "sum":
var total float64
fo... | 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/yaacov/kubectl-mtv/pkg/util/query/parse.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/query/parse.go | package query
import (
"fmt"
"regexp"
"strconv"
"strings"
)
var selectRegexp = regexp.MustCompile(`(?i)^(?:(sum|len|any|all)\s*\(?\s*([^)\s]+)\s*\)?|(.+?))\s*(?:as\s+(.+))?$`)
// parseSelectClause splits and parses a select clause into SelectOptions entries.
func parseSelectClause(selectClause string) []SelectOp... | 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/yaacov/kubectl-mtv/pkg/util/flags/sdk_endpoint_type.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/flags/sdk_endpoint_type.go | package flags
import (
"fmt"
)
// SdkEndpointTypeFlag implements pflag.Value interface for SDK endpoint type validation
type SdkEndpointTypeFlag struct {
value string
}
func (s *SdkEndpointTypeFlag) String() string {
return s.value
}
func (s *SdkEndpointTypeFlag) Set(value string) error {
validTypes := []string... | 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/yaacov/kubectl-mtv/pkg/util/flags/provider_type.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/flags/provider_type.go | package flags
import (
"fmt"
forkliftv1beta1 "github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1"
)
// ProviderTypeFlag implements pflag.Value interface for provider type validation
type ProviderTypeFlag struct {
value string
}
func (p *ProviderTypeFlag) String() string {
return p.value
}
func (p *ProviderT... | 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/yaacov/kubectl-mtv/pkg/util/flags/output_format_type.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/flags/output_format_type.go | package flags
import (
"fmt"
)
// OutputFormatTypeFlag implements pflag.Value interface for output format type validation
type OutputFormatTypeFlag struct {
value string
validFormats []string
}
func (o *OutputFormatTypeFlag) String() string {
return o.value
}
func (o *OutputFormatTypeFlag) Set(value stri... | 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/yaacov/kubectl-mtv/pkg/util/flags/validation.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/flags/validation.go | package flags
import (
"fmt"
"github.com/spf13/cobra"
)
// ValidateAllFlagArgs validates arguments when --all flag is used.
// getAllFlagValue should return the current value of the --all flag.
// When the flag is true, no arguments should be provided.
// When the flag is false, at least minArgs arguments should b... | 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/yaacov/kubectl-mtv/pkg/util/flags/migration_type.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/flags/migration_type.go | package flags
import (
"fmt"
"github.com/kubev2v/forklift/pkg/apis/forklift/v1beta1"
)
// MigrationTypeFlag implements pflag.Value interface for migration type validation
type MigrationTypeFlag struct {
value v1beta1.MigrationType
}
func (m *MigrationTypeFlag) String() string {
return string(m.value)
}
func (m... | 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/yaacov/kubectl-mtv/pkg/util/flags/mapping_type.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/flags/mapping_type.go | package flags
import (
"fmt"
)
// MappingTypeFlag implements pflag.Value interface for mapping type validation
type MappingTypeFlag struct {
value string
}
func (m *MappingTypeFlag) String() string {
return m.value
}
func (m *MappingTypeFlag) Set(value string) error {
validTypes := []string{"network", "storage"... | 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/yaacov/kubectl-mtv/pkg/util/flags/vm_inventory_output_type.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/flags/vm_inventory_output_type.go | package flags
import (
"fmt"
)
// VMInventoryOutputTypeFlag implements pflag.Value interface for VM inventory output format validation
type VMInventoryOutputTypeFlag struct {
value string
}
func (v *VMInventoryOutputTypeFlag) String() string {
return v.value
}
func (v *VMInventoryOutputTypeFlag) Set(value string... | 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/yaacov/kubectl-mtv/pkg/util/client/client.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/client/client.go | package client
import (
"context"
"fmt"
"io"
"net/http"
"net/url"
"strings"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/cli-runtime/pkg/genericclioptions"
"k8s.io/client-go/dynamic"
"k8s.io/client-go/kub... | 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/yaacov/kubectl-mtv/pkg/util/client/inventory.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/client/inventory.go | package client
import (
"context"
"encoding/json"
"fmt"
"net/url"
"strings"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/cli-runtime/pkg/genericclioptions"
"k8s.io/klog/v2"
)
// FetchProvidersWithDetail fetches lists of providers from the inventor... | 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/yaacov/kubectl-mtv/pkg/util/client/namespace.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/client/namespace.go | package client
import (
"k8s.io/cli-runtime/pkg/genericclioptions"
)
// ForkliftMTVNamespace is the default namespace where Forklift MTV CRDs are deployed
const OpenShiftMTVNamespace = "openshift-mtv"
// ResolveNamespace determines the effective namespace with fallback logic:
// 1. Use namespace from command line f... | 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/yaacov/kubectl-mtv/pkg/util/client/operator.go | cmd/kubectl-mtv/vendor/github.com/yaacov/kubectl-mtv/pkg/util/client/operator.go | package client
import (
"context"
"strings"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/cli-runtime/pkg/genericclioptions"
)
// MTVOperatorInfo holds information about the MTV Operator installation
type MTVOp... | go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.