Documentation ¶
Index ¶
- func Command() *cobra.Command
- func LeaveCommand() *cobra.Command
- func Result(r *connector.InterceptResult, err error) error
- func Run(ctx context.Context, sif State) error
- type Args
- func (a *Args) AddFlags(flags *pflag.FlagSet)
- func (a *Args) AutocompleteNamespace(cmd *cobra.Command, _ []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func (a *Args) GetMountPoint(ctx context.Context) (string, bool, error)
- func (a *Args) Run(cmd *cobra.Command, positional []string) error
- func (a *Args) ValidArgs(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func (a *Args) Validate(cmd *cobra.Command, positional []string) error
- func (a *Args) ValidateDockerArgs() error
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LeaveCommand ¶
Types ¶
type Args ¶
type Args struct { Name string // Args[0] || `${Args[0]}-${--namespace}` // which depends on a combinationof --workload and --namespace AgentName string // --workload || Args[0] // only valid if !localOnly Namespace string // --namespace Port string // --port // only valid if !localOnly ServiceName string // --service // only valid if !localOnly LocalOnly bool // --local-only EnvFile string // --env-file EnvJSON string // --env-json Mount string // --mount // "true", "false", or desired mount point // only valid if !localOnly MountSet bool // whether --mount was passed ToPod []string // --to-pod DockerRun bool // --docker-run DockerMount string // --docker-mount // where to mount in a docker container. Defaults to mount unless mount is "true" or "false". Cmdline []string // Args[1:] Mechanism string // --mechanism tcp MechanismArgs []string ExtendedInfo []byte }
func (*Args) AutocompleteNamespace ¶
func (*Args) GetMountPoint ¶
func (*Args) ValidateDockerArgs ¶
Click to show internal directories.
Click to hide internal directories.