MCPcopy
hub / github.com/kubevela/kubevela / VelaPortForwardOptions

Struct VelaPortForwardOptions

references/cli/portforward.go:51–77  ·  view source on GitHub ↗

VelaPortForwardOptions for vela port-forward

Source from the content-addressed store, hash-verified

49
50// VelaPortForwardOptions for vela port-forward
51type VelaPortForwardOptions struct {
52 Cmd *cobra.Command
53 Args []string
54 ioStreams util.IOStreams
55 ClusterName string
56 ComponentName string
57 ResourceName string
58 ResourceType string
59
60 Ctx context.Context
61 VelaC common.Args
62
63 namespace string
64 App *v1beta1.Application
65 targetResource struct {
66 kind string
67 name string
68 cluster string
69 namespace string
70 }
71 targetPort int
72
73 f k8scmdutil.Factory
74 kcPortForwardOptions *cmdpf.PortForwardOptions
75 ClientSet kubernetes.Interface
76 Client client.Client
77}
78
79// NewPortForwardCommand is vela port-forward command
80func NewPortForwardCommand(c common.Args, order string, ioStreams util.IOStreams) *cobra.Command {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected