VelaPortForwardOptions for vela port-forward
| 49 | |
| 50 | // VelaPortForwardOptions for vela port-forward |
| 51 | type 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 |
| 80 | func NewPortForwardCommand(c common.Args, order string, ioStreams util.IOStreams) *cobra.Command { |
nothing calls this directly
no outgoing calls
no test coverage detected