Documentation ¶
Index ¶
- func DescribeIntercepts(ctx context.Context, iis []*manager.InterceptInfo, igs []*rpc.IngestInfo, ...) string
- func PreviewURL(pu string) string
- func Result(r *connector.InterceptResult, err error) error
- func ValidArgs(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- type Command
- type Info
- type Ingress
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DescribeIntercepts ¶ added in v2.12.0
func DescribeIntercepts(ctx context.Context, iis []*manager.InterceptInfo, igs []*rpc.IngestInfo, volumeMountsPrevented error, debug bool) string
func PreviewURL ¶ added in v2.11.0
Types ¶
type Command ¶
type Command struct { EnvFlags env.Flags DockerFlags docker.Flags MountFlags mount.Flags Name string // Command[0] || `${Command[0]}-${--namespace}` // which depends on a combinationof --workload and --namespace AgentName string // --workload || Command[0] // only valid if !localOnly Port string // --port ServiceName string // --service ContainerName string // --container Address string // --address Replace bool // whether --replace was passed ToPod []string // --to-pod Cmdline []string // Command[1:] Mechanism string // --mechanism tcp MechanismArgs []string ExtendedInfo []byte WaitMessage string // Message printed when a containerized intercept handler is started and waiting for an interrupt FormattedOutput bool DetailedOutput bool Silent bool }
type Info ¶ added in v2.11.0
type Info struct { ID string `json:"id,omitempty" yaml:"id,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` Disposition string `json:"disposition,omitempty" yaml:"disposition,omitempty"` Message string `json:"message,omitempty" yaml:"message,omitempty"` WorkloadKind string `json:"workload_kind,omitempty" yaml:"workload_kind,omitempty"` TargetHost string `json:"target_host,omitempty" yaml:"target_host,omitempty"` TargetPort int32 `json:"target_port,omitempty" yaml:"target_port,omitempty"` ServiceUID string `json:"service_uid,omitempty" yaml:"service_uid,omitempty"` ServicePortID string `json:"service_port_id,omitempty" yaml:"service_port_id,omitempty"` // ServicePortID is deprecated. Use PortID PortID string `json:"port_id,omitempty" yaml:"port_id,omitempty"` ContainerPort int32 `json:"container_port,omitempty" yaml:"container_port,omitempty"` Environment map[string]string `json:"environment,omitempty" yaml:"environment,omitempty"` Mount *mount.Info `json:"mount,omitempty" yaml:"mount,omitempty"` FilterDesc string `json:"filter_desc,omitempty" yaml:"filter_desc,omitempty"` Metadata map[string]string `json:"metadata,omitempty" yaml:"metadata,omitempty"` HttpFilter []string `json:"http_filter,omitempty" yaml:"http_filter,omitempty"` Global bool `json:"global,omitempty" yaml:"global,omitempty"` PreviewURL string `json:"preview_url,omitempty" yaml:"preview_url,omitempty"` Ingress *Ingress `json:"ingress,omitempty" yaml:"ingress,omitempty"` PodIP string `json:"pod_ip,omitempty" yaml:"pod_ip,omitempty"` // contains filtered or unexported fields }
type Ingress ¶ added in v2.11.0
type Ingress struct { Host string `json:"host,omitempty" yaml:"host,omitempty"` Port int32 `json:"port,omitempty" yaml:"port,omitempty"` UseTLS bool `json:"use_tls,omitempty" yaml:"use_tls,omitempty"` L5Host string `json:"l5host,omitempty" yaml:"l5host,omitempty"` }
func NewIngress ¶ added in v2.11.0
func NewIngress(ps *manager.PreviewSpec) *Ingress
Click to show internal directories.
Click to hide internal directories.