status

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigDumpAddr

func GetConfigDumpAddr(mode string) string

func GetLoggerURL

func GetLoggerURL() string

Types

type ApplicationTunnel

type ApplicationTunnel struct {
	Protocol string `json:"protocol"`
	Port     uint32 `json:"port,omitempty"`
}

type LoadBalancer

type LoadBalancer struct {
	Mode               string   `json:"mode"`
	RoutingPreferences []string `json:"routingPreferences"`
}

type Locality

type Locality struct {
	Region  string `json:"region,omitempty"`
	Zone    string `json:"zone,omitempty"`
	Subzone string `json:"subzone,omitempty"`
}

type LoggerInfo

type LoggerInfo struct {
	Name  string `json:"name,omitempty"`
	Level string `json:"level,omitempty"`
}

type NetworkAddress

type NetworkAddress struct {
	// Network represents the network this address is on.
	Network string
	// Address presents the IP (v4 or v6).
	Address net.IP
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(c *controller.XdsClient, configs *options.BootstrapConfigs, bpfLogLevel *ebpf.Map) *Server

func (*Server) StartServer

func (s *Server) StartServer()

func (*Server) StopServer

func (s *Server) StopServer() error

type Service

type Service struct {
	Name         string              `json:"name"`
	Namespace    string              `json:"namespace"`
	Hostname     string              `json:"hostname"`
	Addresses    []string            `json:"vips"`
	Ports        []*workloadapi.Port `json:"ports"`
	LoadBalancer *LoadBalancer       `json:"loadBalancer"`
	Waypoint     *Waypoint           `json:"waypoint"`
}

func ConvertService

func ConvertService(s *workloadapi.Service) *Service

type Waypoint

type Waypoint struct {
	Destination string `json:"destination"`
}

type Workload

type Workload struct {
	Uid                   string            `json:"uid,omitempty"`
	Addresses             []string          `json:"addresses"`
	Waypoint              string            `json:"waypoint,omitempty"`
	Protocol              string            `json:"protocol"`
	Name                  string            `json:"name"`
	Namespace             string            `json:"namespace"`
	ServiceAccount        string            `json:"serviceAccount"`
	WorkloadName          string            `json:"workloadName"`
	WorkloadType          string            `json:"workloadType"`
	CanonicalName         string            `json:"canonicalName"`
	CanonicalRevision     string            `json:"canonicalRevision"`
	ClusterID             string            `json:"clusterId"`
	TrustDomain           string            `json:"trustDomain,omitempty"`
	Locality              Locality          `json:"locality,omitempty"`
	Node                  string            `json:"node"`
	Network               string            `json:"network,omitempty"`
	Status                string            `json:"status"`
	ApplicationTunnel     ApplicationTunnel `json:"applicationTunnel,omitempty"`
	Services              []string          `json:"services,omitempty"`
	AuthorizationPolicies []string          `json:"authorizationPolicies,omitempty"`
}

func ConvertWorkload

func ConvertWorkload(w *workloadapi.Workload) *Workload

type WorkloadBpfDump

type WorkloadBpfDump struct {
	WorkloadPolicies []bpfcache.WorkloadPolicyValue
	Backends         []bpfcache.BackendValue
	Endpoints        []bpfcache.EndpointValue
	Frontends        []bpfcache.FrontendValue
	Services         []bpfcache.ServiceValue
}

type WorkloadDump

type WorkloadDump struct {
	Workloads []*Workload
	Services  []*Service
	// TODO: add authorization
	Policies []*security.Authorization
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL