Documentation ¶
Index ¶
- Variables
- type Destination
- type DestinationKind
- type Net3
- func (n *Net3) AddProxy(namespace, serviceName, containerName, image string, port int32) error
- func (n *Net3) ListProxies(namespace string, allNamespaces bool, service string) error
- func (n *Net3) RemoveProxy(namespace, serviceName string, port int32) error
- func (n *Net3) Topo(namespace, src, dest string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupported = errors.New("unsupported") ErrNotFound = errors.New("not found") )
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type Destination struct { Kind DestinationKind Name string Namespace string Protocol string Domain string Port int32 }
Destination is a destination for a request.
func NewDestination ¶
func NewDestination(address, defaultNamespace string) (*Destination, error)
NewDestination creates a new destination from an address.
func (*Destination) FullPort ¶
func (d *Destination) FullPort() string
FullPort returns the protocol and port of the destionation.
type DestinationKind ¶
type DestinationKind string
DestinationKind is a type of destination.
const (
DestinationKindService DestinationKind = "service"
)
type Net3 ¶
type Net3 struct {
// contains filtered or unexported fields
}
func (*Net3) AddProxy ¶
AddProxy redeploys pods with a proxy container which logs all requests to the specified port.
func (*Net3) ListProxies ¶
Logs redeploys pods with a proxy container which logs all requests to the specified port.
func (*Net3) RemoveProxy ¶
RemoveProxy removes an existing net3 proxy from a service.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.