proto

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_kiali_proto protoreflect.FileDescriptor
View Source
var Kiali_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "plugins.kiali.Kiali",
	HandlerType: (*KialiServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNamespaces",
			Handler:    _Kiali_GetNamespaces_Handler,
		},
		{
			MethodName: "GetGraph",
			Handler:    _Kiali_GetGraph_Handler,
		},
		{
			MethodName: "GetMetrics",
			Handler:    _Kiali_GetMetrics_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kiali.proto",
}

Kiali_ServiceDesc is the grpc.ServiceDesc for Kiali service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterKialiServer

func RegisterKialiServer(s grpc.ServiceRegistrar, srv KialiServer)

Types

type Data

type Data struct {
	X int64   `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

Data is a single datapoint for a metric.

func (*Data) DeepCopy

func (in *Data) DeepCopy() *Data

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Data. Required by controller-gen.

func (*Data) DeepCopyInterface

func (in *Data) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Data. Required by controller-gen.

func (*Data) DeepCopyInto

func (in *Data) DeepCopyInto(out *Data)

DeepCopyInto supports using Data within kubernetes types, where deepcopy-gen is used.

func (*Data) Descriptor deprecated

func (*Data) Descriptor() ([]byte, []int)

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetX

func (x *Data) GetX() int64

func (*Data) GetY

func (x *Data) GetY() float64

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

func (x *Data) ProtoReflect() protoreflect.Message

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type Edge

type Edge struct {
	Id              string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Source          string           `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	Target          string           `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
	DestPrincipal   string           `protobuf:"bytes,4,opt,name=destPrincipal,proto3" json:"destPrincipal,omitempty"`
	IsMTLS          string           `protobuf:"bytes,5,opt,name=isMTLS,proto3" json:"isMTLS,omitempty"`
	ResponseTime    string           `protobuf:"bytes,6,opt,name=responseTime,proto3" json:"responseTime,omitempty"`
	SourcePrincipal string           `protobuf:"bytes,7,opt,name=sourcePrincipal,proto3" json:"sourcePrincipal,omitempty"`
	Traffic         *ProtocolTraffic `protobuf:"bytes,8,opt,name=traffic,proto3" json:"traffic,omitempty"`
	EdgeLabel       string           `protobuf:"bytes,9,opt,name=edgeLabel,proto3" json:"edgeLabel,omitempty"`
	EdgeType        string           `protobuf:"bytes,10,opt,name=edgeType,proto3" json:"edgeType,omitempty"`
	// contains filtered or unexported fields
}

Edge is the format for a single edge from the Kiali API. We add the custom fields edgeLabel and edgeType to simplify the frontend logic.

func (*Edge) DeepCopy

func (in *Edge) DeepCopy() *Edge

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Edge. Required by controller-gen.

func (*Edge) DeepCopyInterface

func (in *Edge) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Edge. Required by controller-gen.

func (*Edge) DeepCopyInto

func (in *Edge) DeepCopyInto(out *Edge)

DeepCopyInto supports using Edge within kubernetes types, where deepcopy-gen is used.

func (*Edge) Descriptor deprecated

func (*Edge) Descriptor() ([]byte, []int)

Deprecated: Use Edge.ProtoReflect.Descriptor instead.

func (*Edge) GetDestPrincipal

func (x *Edge) GetDestPrincipal() string

func (*Edge) GetEdgeLabel

func (x *Edge) GetEdgeLabel() string

func (*Edge) GetEdgeType

func (x *Edge) GetEdgeType() string

func (*Edge) GetId

func (x *Edge) GetId() string

func (*Edge) GetIsMTLS

func (x *Edge) GetIsMTLS() string

func (*Edge) GetResponseTime

func (x *Edge) GetResponseTime() string

func (*Edge) GetSource

func (x *Edge) GetSource() string

func (*Edge) GetSourcePrincipal

func (x *Edge) GetSourcePrincipal() string

func (*Edge) GetTarget

func (x *Edge) GetTarget() string

func (*Edge) GetTraffic

func (x *Edge) GetTraffic() *ProtocolTraffic

func (*Edge) ProtoMessage

func (*Edge) ProtoMessage()

func (*Edge) ProtoReflect

func (x *Edge) ProtoReflect() protoreflect.Message

func (*Edge) Reset

func (x *Edge) Reset()

func (*Edge) String

func (x *Edge) String() string

type EdgeWrapper

type EdgeWrapper struct {
	Data *Edge `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*EdgeWrapper) DeepCopy

func (in *EdgeWrapper) DeepCopy() *EdgeWrapper

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeWrapper. Required by controller-gen.

func (*EdgeWrapper) DeepCopyInterface

func (in *EdgeWrapper) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EdgeWrapper. Required by controller-gen.

func (*EdgeWrapper) DeepCopyInto

func (in *EdgeWrapper) DeepCopyInto(out *EdgeWrapper)

DeepCopyInto supports using EdgeWrapper within kubernetes types, where deepcopy-gen is used.

func (*EdgeWrapper) Descriptor deprecated

func (*EdgeWrapper) Descriptor() ([]byte, []int)

Deprecated: Use EdgeWrapper.ProtoReflect.Descriptor instead.

func (*EdgeWrapper) GetData

func (x *EdgeWrapper) GetData() *Edge

func (*EdgeWrapper) ProtoMessage

func (*EdgeWrapper) ProtoMessage()

func (*EdgeWrapper) ProtoReflect

func (x *EdgeWrapper) ProtoReflect() protoreflect.Message

func (*EdgeWrapper) Reset

func (x *EdgeWrapper) Reset()

func (*EdgeWrapper) String

func (x *EdgeWrapper) String() string

type Elements

type Elements struct {
	Nodes []*NodeWrapper `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
	Edges []*EdgeWrapper `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"`
	// contains filtered or unexported fields
}

func (*Elements) DeepCopy

func (in *Elements) DeepCopy() *Elements

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Elements. Required by controller-gen.

func (*Elements) DeepCopyInterface

func (in *Elements) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Elements. Required by controller-gen.

func (*Elements) DeepCopyInto

func (in *Elements) DeepCopyInto(out *Elements)

DeepCopyInto supports using Elements within kubernetes types, where deepcopy-gen is used.

func (*Elements) Descriptor deprecated

func (*Elements) Descriptor() ([]byte, []int)

Deprecated: Use Elements.ProtoReflect.Descriptor instead.

func (*Elements) GetEdges

func (x *Elements) GetEdges() []*EdgeWrapper

func (*Elements) GetNodes

func (x *Elements) GetNodes() []*NodeWrapper

func (*Elements) ProtoMessage

func (*Elements) ProtoMessage()

func (*Elements) ProtoReflect

func (x *Elements) ProtoReflect() protoreflect.Message

func (*Elements) Reset

func (x *Elements) Reset()

func (*Elements) String

func (x *Elements) String() string

type GetGraphRequest

type GetGraphRequest struct {
	Name               string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Duration           int64    `protobuf:"varint,2,opt,name=duration,proto3" json:"duration,omitempty"`
	GraphType          string   `protobuf:"bytes,3,opt,name=graphType,proto3" json:"graphType,omitempty"`
	InjectServiceNodes bool     `protobuf:"varint,4,opt,name=injectServiceNodes,proto3" json:"injectServiceNodes,omitempty"`
	GroupBy            string   `protobuf:"bytes,5,opt,name=groupBy,proto3" json:"groupBy,omitempty"`
	Appenders          []string `protobuf:"bytes,6,rep,name=appenders,proto3" json:"appenders,omitempty"`
	Namespaces         []string `protobuf:"bytes,7,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	// contains filtered or unexported fields
}

GetGraphRequest is the request format to generate the graph for a list of namespaces.

func (*GetGraphRequest) DeepCopy

func (in *GetGraphRequest) DeepCopy() *GetGraphRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetGraphRequest. Required by controller-gen.

func (*GetGraphRequest) DeepCopyInterface

func (in *GetGraphRequest) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GetGraphRequest. Required by controller-gen.

func (*GetGraphRequest) DeepCopyInto

func (in *GetGraphRequest) DeepCopyInto(out *GetGraphRequest)

DeepCopyInto supports using GetGraphRequest within kubernetes types, where deepcopy-gen is used.

func (*GetGraphRequest) Descriptor deprecated

func (*GetGraphRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetGraphRequest.ProtoReflect.Descriptor instead.

func (*GetGraphRequest) GetAppenders

func (x *GetGraphRequest) GetAppenders() []string

func (*GetGraphRequest) GetDuration

func (x *GetGraphRequest) GetDuration() int64

func (*GetGraphRequest) GetGraphType

func (x *GetGraphRequest) GetGraphType() string

func (*GetGraphRequest) GetGroupBy

func (x *GetGraphRequest) GetGroupBy() string

func (*GetGraphRequest) GetInjectServiceNodes

func (x *GetGraphRequest) GetInjectServiceNodes() bool

func (*GetGraphRequest) GetName

func (x *GetGraphRequest) GetName() string

func (*GetGraphRequest) GetNamespaces

func (x *GetGraphRequest) GetNamespaces() []string

func (*GetGraphRequest) ProtoMessage

func (*GetGraphRequest) ProtoMessage()

func (*GetGraphRequest) ProtoReflect

func (x *GetGraphRequest) ProtoReflect() protoreflect.Message

func (*GetGraphRequest) Reset

func (x *GetGraphRequest) Reset()

func (*GetGraphRequest) String

func (x *GetGraphRequest) String() string

type GetGraphResponse

type GetGraphResponse struct {
	Timestamp int64     `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Duration  int64     `protobuf:"varint,2,opt,name=duration,proto3" json:"duration,omitempty"`
	GraphType string    `protobuf:"bytes,3,opt,name=graphType,proto3" json:"graphType,omitempty"`
	Elements  *Elements `protobuf:"bytes,4,opt,name=elements,proto3" json:"elements,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGraphResponse) DeepCopy

func (in *GetGraphResponse) DeepCopy() *GetGraphResponse

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetGraphResponse. Required by controller-gen.

func (*GetGraphResponse) DeepCopyInterface

func (in *GetGraphResponse) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GetGraphResponse. Required by controller-gen.

func (*GetGraphResponse) DeepCopyInto

func (in *GetGraphResponse) DeepCopyInto(out *GetGraphResponse)

DeepCopyInto supports using GetGraphResponse within kubernetes types, where deepcopy-gen is used.

func (*GetGraphResponse) Descriptor deprecated

func (*GetGraphResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetGraphResponse.ProtoReflect.Descriptor instead.

func (*GetGraphResponse) GetDuration

func (x *GetGraphResponse) GetDuration() int64

func (*GetGraphResponse) GetElements

func (x *GetGraphResponse) GetElements() *Elements

func (*GetGraphResponse) GetGraphType

func (x *GetGraphResponse) GetGraphType() string

func (*GetGraphResponse) GetTimestamp

func (x *GetGraphResponse) GetTimestamp() int64

func (*GetGraphResponse) ProtoMessage

func (*GetGraphResponse) ProtoMessage()

func (*GetGraphResponse) ProtoReflect

func (x *GetGraphResponse) ProtoReflect() protoreflect.Message

func (*GetGraphResponse) Reset

func (x *GetGraphResponse) Reset()

func (*GetGraphResponse) String

func (x *GetGraphResponse) String() string

type GetMetricsRequest

type GetMetricsRequest struct {
	Name            string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace       string   `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	NodeType        string   `protobuf:"bytes,3,opt,name=nodeType,proto3" json:"nodeType,omitempty"`
	NodeName        string   `protobuf:"bytes,4,opt,name=nodeName,proto3" json:"nodeName,omitempty"`
	QueryTime       int64    `protobuf:"varint,5,opt,name=queryTime,proto3" json:"queryTime,omitempty"`
	Duration        int64    `protobuf:"varint,6,opt,name=duration,proto3" json:"duration,omitempty"`
	Step            int64    `protobuf:"varint,7,opt,name=step,proto3" json:"step,omitempty"`
	RateInterval    string   `protobuf:"bytes,8,opt,name=rateInterval,proto3" json:"rateInterval,omitempty"`
	Filters         []string `protobuf:"bytes,9,rep,name=filters,proto3" json:"filters,omitempty"`
	ByLabels        []string `protobuf:"bytes,10,rep,name=byLabels,proto3" json:"byLabels,omitempty"`
	Direction       string   `protobuf:"bytes,11,opt,name=direction,proto3" json:"direction,omitempty"`
	Reporter        string   `protobuf:"bytes,12,opt,name=reporter,proto3" json:"reporter,omitempty"`
	RequestProtocol string   `protobuf:"bytes,13,opt,name=requestProtocol,proto3" json:"requestProtocol,omitempty"`
	// contains filtered or unexported fields
}

GetMetricsRequest it the request format to get the metrics for a workload/service (nodeType). For the request we also need the name and namespace of the workload/service and some other properties, which are used to filter the metrics.

func (*GetMetricsRequest) DeepCopy

func (in *GetMetricsRequest) DeepCopy() *GetMetricsRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetMetricsRequest. Required by controller-gen.

func (*GetMetricsRequest) DeepCopyInterface

func (in *GetMetricsRequest) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GetMetricsRequest. Required by controller-gen.

func (*GetMetricsRequest) DeepCopyInto

func (in *GetMetricsRequest) DeepCopyInto(out *GetMetricsRequest)

DeepCopyInto supports using GetMetricsRequest within kubernetes types, where deepcopy-gen is used.

func (*GetMetricsRequest) Descriptor deprecated

func (*GetMetricsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMetricsRequest.ProtoReflect.Descriptor instead.

func (*GetMetricsRequest) GetByLabels

func (x *GetMetricsRequest) GetByLabels() []string

func (*GetMetricsRequest) GetDirection

func (x *GetMetricsRequest) GetDirection() string

func (*GetMetricsRequest) GetDuration

func (x *GetMetricsRequest) GetDuration() int64

func (*GetMetricsRequest) GetFilters

func (x *GetMetricsRequest) GetFilters() []string

func (*GetMetricsRequest) GetName

func (x *GetMetricsRequest) GetName() string

func (*GetMetricsRequest) GetNamespace

func (x *GetMetricsRequest) GetNamespace() string

func (*GetMetricsRequest) GetNodeName

func (x *GetMetricsRequest) GetNodeName() string

func (*GetMetricsRequest) GetNodeType

func (x *GetMetricsRequest) GetNodeType() string

func (*GetMetricsRequest) GetQueryTime

func (x *GetMetricsRequest) GetQueryTime() int64

func (*GetMetricsRequest) GetRateInterval

func (x *GetMetricsRequest) GetRateInterval() string

func (*GetMetricsRequest) GetReporter

func (x *GetMetricsRequest) GetReporter() string

func (*GetMetricsRequest) GetRequestProtocol

func (x *GetMetricsRequest) GetRequestProtocol() string

func (*GetMetricsRequest) GetStep

func (x *GetMetricsRequest) GetStep() int64

func (*GetMetricsRequest) ProtoMessage

func (*GetMetricsRequest) ProtoMessage()

func (*GetMetricsRequest) ProtoReflect

func (x *GetMetricsRequest) ProtoReflect() protoreflect.Message

func (*GetMetricsRequest) Reset

func (x *GetMetricsRequest) Reset()

func (*GetMetricsRequest) String

func (x *GetMetricsRequest) String() string

type GetMetricsResponse

type GetMetricsResponse struct {
	Metrics []*Metric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// contains filtered or unexported fields
}

GetMetricsResponse is the response format for a GetMetrics call. It contains all the metrics for the requested workload/service.

func (*GetMetricsResponse) DeepCopy

func (in *GetMetricsResponse) DeepCopy() *GetMetricsResponse

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetMetricsResponse. Required by controller-gen.

func (*GetMetricsResponse) DeepCopyInterface

func (in *GetMetricsResponse) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GetMetricsResponse. Required by controller-gen.

func (*GetMetricsResponse) DeepCopyInto

func (in *GetMetricsResponse) DeepCopyInto(out *GetMetricsResponse)

DeepCopyInto supports using GetMetricsResponse within kubernetes types, where deepcopy-gen is used.

func (*GetMetricsResponse) Descriptor deprecated

func (*GetMetricsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetMetricsResponse.ProtoReflect.Descriptor instead.

func (*GetMetricsResponse) GetMetrics

func (x *GetMetricsResponse) GetMetrics() []*Metric

func (*GetMetricsResponse) ProtoMessage

func (*GetMetricsResponse) ProtoMessage()

func (*GetMetricsResponse) ProtoReflect

func (x *GetMetricsResponse) ProtoReflect() protoreflect.Message

func (*GetMetricsResponse) Reset

func (x *GetMetricsResponse) Reset()

func (*GetMetricsResponse) String

func (x *GetMetricsResponse) String() string

type GetNamespacesRequest

type GetNamespacesRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

GetNamespacesRequest is the request format to get all namespace. It just requires the name of the Kiali instance.

func (*GetNamespacesRequest) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetNamespacesRequest. Required by controller-gen.

func (*GetNamespacesRequest) DeepCopyInterface

func (in *GetNamespacesRequest) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GetNamespacesRequest. Required by controller-gen.

func (*GetNamespacesRequest) DeepCopyInto

func (in *GetNamespacesRequest) DeepCopyInto(out *GetNamespacesRequest)

DeepCopyInto supports using GetNamespacesRequest within kubernetes types, where deepcopy-gen is used.

func (*GetNamespacesRequest) Descriptor deprecated

func (*GetNamespacesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetNamespacesRequest.ProtoReflect.Descriptor instead.

func (*GetNamespacesRequest) GetName

func (x *GetNamespacesRequest) GetName() string

func (*GetNamespacesRequest) ProtoMessage

func (*GetNamespacesRequest) ProtoMessage()

func (*GetNamespacesRequest) ProtoReflect

func (x *GetNamespacesRequest) ProtoReflect() protoreflect.Message

func (*GetNamespacesRequest) Reset

func (x *GetNamespacesRequest) Reset()

func (*GetNamespacesRequest) String

func (x *GetNamespacesRequest) String() string

type GetNamespacesResponse

type GetNamespacesResponse struct {
	Namespaces []*Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	// contains filtered or unexported fields
}

GetNamespacesResponse is the response for a GetNamespaces call. It returns a list of namespaces in the same format as it is returned by the Kiali API.

func (*GetNamespacesResponse) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetNamespacesResponse. Required by controller-gen.

func (*GetNamespacesResponse) DeepCopyInterface

func (in *GetNamespacesResponse) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GetNamespacesResponse. Required by controller-gen.

func (*GetNamespacesResponse) DeepCopyInto

func (in *GetNamespacesResponse) DeepCopyInto(out *GetNamespacesResponse)

DeepCopyInto supports using GetNamespacesResponse within kubernetes types, where deepcopy-gen is used.

func (*GetNamespacesResponse) Descriptor deprecated

func (*GetNamespacesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetNamespacesResponse.ProtoReflect.Descriptor instead.

func (*GetNamespacesResponse) GetNamespaces

func (x *GetNamespacesResponse) GetNamespaces() []*Namespace

func (*GetNamespacesResponse) ProtoMessage

func (*GetNamespacesResponse) ProtoMessage()

func (*GetNamespacesResponse) ProtoReflect

func (x *GetNamespacesResponse) ProtoReflect() protoreflect.Message

func (*GetNamespacesResponse) Reset

func (x *GetNamespacesResponse) Reset()

func (*GetNamespacesResponse) String

func (x *GetNamespacesResponse) String() string

type KialiClient

type KialiClient interface {
	GetNamespaces(ctx context.Context, in *GetNamespacesRequest, opts ...grpc.CallOption) (*GetNamespacesResponse, error)
	GetGraph(ctx context.Context, in *GetGraphRequest, opts ...grpc.CallOption) (*GetGraphResponse, error)
	GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error)
}

KialiClient is the client API for Kiali service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewKialiClient

func NewKialiClient(cc grpc.ClientConnInterface) KialiClient

type KialiServer

type KialiServer interface {
	GetNamespaces(context.Context, *GetNamespacesRequest) (*GetNamespacesResponse, error)
	GetGraph(context.Context, *GetGraphRequest) (*GetGraphResponse, error)
	GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error)
	// contains filtered or unexported methods
}

KialiServer is the server API for Kiali service. All implementations must embed UnimplementedKialiServer for forward compatibility

type Metric

type Metric struct {
	Name  string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Label string  `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Stat  string  `protobuf:"bytes,3,opt,name=stat,proto3" json:"stat,omitempty"`
	Data  []*Data `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Metric is a single metrics for a workload/service. Each metric can be identified by the name, label and stat parameter. The metric also contains all datapoints.

func (*Metric) DeepCopy

func (in *Metric) DeepCopy() *Metric

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metric. Required by controller-gen.

func (*Metric) DeepCopyInterface

func (in *Metric) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Metric. Required by controller-gen.

func (*Metric) DeepCopyInto

func (in *Metric) DeepCopyInto(out *Metric)

DeepCopyInto supports using Metric within kubernetes types, where deepcopy-gen is used.

func (*Metric) Descriptor deprecated

func (*Metric) Descriptor() ([]byte, []int)

Deprecated: Use Metric.ProtoReflect.Descriptor instead.

func (*Metric) GetData

func (x *Metric) GetData() []*Data

func (*Metric) GetLabel

func (x *Metric) GetLabel() string

func (*Metric) GetName

func (x *Metric) GetName() string

func (*Metric) GetStat

func (x *Metric) GetStat() string

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) ProtoReflect

func (x *Metric) ProtoReflect() protoreflect.Message

func (*Metric) Reset

func (x *Metric) Reset()

func (*Metric) String

func (x *Metric) String() string

type Namespace

type Namespace struct {
	Name   string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Namespace) DeepCopy

func (in *Namespace) DeepCopy() *Namespace

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Namespace. Required by controller-gen.

func (*Namespace) DeepCopyInterface

func (in *Namespace) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Namespace. Required by controller-gen.

func (*Namespace) DeepCopyInto

func (in *Namespace) DeepCopyInto(out *Namespace)

DeepCopyInto supports using Namespace within kubernetes types, where deepcopy-gen is used.

func (*Namespace) Descriptor deprecated

func (*Namespace) Descriptor() ([]byte, []int)

Deprecated: Use Namespace.ProtoReflect.Descriptor instead.

func (*Namespace) GetLabels

func (x *Namespace) GetLabels() map[string]string

func (*Namespace) GetName

func (x *Namespace) GetName() string

func (*Namespace) ProtoMessage

func (*Namespace) ProtoMessage()

func (*Namespace) ProtoReflect

func (x *Namespace) ProtoReflect() protoreflect.Message

func (*Namespace) Reset

func (x *Namespace) Reset()

func (*Namespace) String

func (x *Namespace) String() string

type Node

type Node struct {
	Id              string             `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Parent          string             `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
	NodeType        string             `protobuf:"bytes,3,opt,name=nodeType,proto3" json:"nodeType,omitempty"`
	Cluster         string             `protobuf:"bytes,4,opt,name=cluster,proto3" json:"cluster,omitempty"`
	Namespace       string             `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Workload        string             `protobuf:"bytes,6,opt,name=workload,proto3" json:"workload,omitempty"`
	App             string             `protobuf:"bytes,7,opt,name=app,proto3" json:"app,omitempty"`
	Version         string             `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"`
	Service         string             `protobuf:"bytes,9,opt,name=service,proto3" json:"service,omitempty"`
	Aggregate       string             `protobuf:"bytes,10,opt,name=aggregate,proto3" json:"aggregate,omitempty"`
	DestServices    []*ServiceName     `protobuf:"bytes,11,rep,name=destServices,proto3" json:"destServices,omitempty"`
	Traffic         []*ProtocolTraffic `protobuf:"bytes,12,rep,name=traffic,proto3" json:"traffic,omitempty"`
	HasCB           bool               `protobuf:"varint,13,opt,name=hasCB,proto3" json:"hasCB,omitempty"`
	HasHealthConfig map[string]string  `` /* 172-byte string literal not displayed */
	HasMissingSC    bool               `protobuf:"varint,15,opt,name=hasMissingSC,proto3" json:"hasMissingSC,omitempty"`
	HasVS           bool               `protobuf:"varint,16,opt,name=hasVS,proto3" json:"hasVS,omitempty"`
	IsBox           string             `protobuf:"bytes,17,opt,name=isBox,proto3" json:"isBox,omitempty"`
	IsDead          bool               `protobuf:"varint,18,opt,name=isDead,proto3" json:"isDead,omitempty"`
	IsIdle          bool               `protobuf:"varint,19,opt,name=isIdle,proto3" json:"isIdle,omitempty"`
	IsInaccessible  bool               `protobuf:"varint,20,opt,name=isInaccessible,proto3" json:"isInaccessible,omitempty"`
	IsOutside       bool               `protobuf:"varint,21,opt,name=isOutside,proto3" json:"isOutside,omitempty"`
	IsRoot          bool               `protobuf:"varint,22,opt,name=isRoot,proto3" json:"isRoot,omitempty"`
	IsServiceEntry  *SEInfo            `protobuf:"bytes,23,opt,name=isServiceEntry,proto3" json:"isServiceEntry,omitempty"`
	NodeLabel       string             `protobuf:"bytes,24,opt,name=nodeLabel,proto3" json:"nodeLabel,omitempty"`
	NodeLabelFull   string             `protobuf:"bytes,25,opt,name=nodeLabelFull,proto3" json:"nodeLabelFull,omitempty"`
	NodeImage       string             `protobuf:"bytes,26,opt,name=nodeImage,proto3" json:"nodeImage,omitempty"`
	// contains filtered or unexported fields
}

Node is the format of a single node from the Kiali API. We add the custom fields nodeLabel, nodeLabelFull and nodeImage, which are generated by our backend to simplify the frontend logic.

func (*Node) DeepCopy

func (in *Node) DeepCopy() *Node

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node. Required by controller-gen.

func (*Node) DeepCopyInterface

func (in *Node) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Node. Required by controller-gen.

func (*Node) DeepCopyInto

func (in *Node) DeepCopyInto(out *Node)

DeepCopyInto supports using Node within kubernetes types, where deepcopy-gen is used.

func (*Node) Descriptor deprecated

func (*Node) Descriptor() ([]byte, []int)

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetAggregate

func (x *Node) GetAggregate() string

func (*Node) GetApp

func (x *Node) GetApp() string

func (*Node) GetCluster

func (x *Node) GetCluster() string

func (*Node) GetDestServices

func (x *Node) GetDestServices() []*ServiceName

func (*Node) GetHasCB

func (x *Node) GetHasCB() bool

func (*Node) GetHasHealthConfig

func (x *Node) GetHasHealthConfig() map[string]string

func (*Node) GetHasMissingSC

func (x *Node) GetHasMissingSC() bool

func (*Node) GetHasVS

func (x *Node) GetHasVS() bool

func (*Node) GetId

func (x *Node) GetId() string

func (*Node) GetIsBox

func (x *Node) GetIsBox() string

func (*Node) GetIsDead

func (x *Node) GetIsDead() bool

func (*Node) GetIsIdle

func (x *Node) GetIsIdle() bool

func (*Node) GetIsInaccessible

func (x *Node) GetIsInaccessible() bool

func (*Node) GetIsOutside

func (x *Node) GetIsOutside() bool

func (*Node) GetIsRoot

func (x *Node) GetIsRoot() bool

func (*Node) GetIsServiceEntry

func (x *Node) GetIsServiceEntry() *SEInfo

func (*Node) GetNamespace

func (x *Node) GetNamespace() string

func (*Node) GetNodeImage

func (x *Node) GetNodeImage() string

func (*Node) GetNodeLabel

func (x *Node) GetNodeLabel() string

func (*Node) GetNodeLabelFull

func (x *Node) GetNodeLabelFull() string

func (*Node) GetNodeType

func (x *Node) GetNodeType() string

func (*Node) GetParent

func (x *Node) GetParent() string

func (*Node) GetService

func (x *Node) GetService() string

func (*Node) GetTraffic

func (x *Node) GetTraffic() []*ProtocolTraffic

func (*Node) GetVersion

func (x *Node) GetVersion() string

func (*Node) GetWorkload

func (x *Node) GetWorkload() string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

func (x *Node) ProtoReflect() protoreflect.Message

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type NodeWrapper

type NodeWrapper struct {
	Data *Node `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeWrapper) DeepCopy

func (in *NodeWrapper) DeepCopy() *NodeWrapper

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeWrapper. Required by controller-gen.

func (*NodeWrapper) DeepCopyInterface

func (in *NodeWrapper) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new NodeWrapper. Required by controller-gen.

func (*NodeWrapper) DeepCopyInto

func (in *NodeWrapper) DeepCopyInto(out *NodeWrapper)

DeepCopyInto supports using NodeWrapper within kubernetes types, where deepcopy-gen is used.

func (*NodeWrapper) Descriptor deprecated

func (*NodeWrapper) Descriptor() ([]byte, []int)

Deprecated: Use NodeWrapper.ProtoReflect.Descriptor instead.

func (*NodeWrapper) GetData

func (x *NodeWrapper) GetData() *Node

func (*NodeWrapper) ProtoMessage

func (*NodeWrapper) ProtoMessage()

func (*NodeWrapper) ProtoReflect

func (x *NodeWrapper) ProtoReflect() protoreflect.Message

func (*NodeWrapper) Reset

func (x *NodeWrapper) Reset()

func (*NodeWrapper) String

func (x *NodeWrapper) String() string

type ProtocolTraffic

type ProtocolTraffic struct {
	Protocol  string               `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Rates     map[string]string    `` /* 151-byte string literal not displayed */
	Responses map[string]*Response `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ProtocolTraffic) DeepCopy

func (in *ProtocolTraffic) DeepCopy() *ProtocolTraffic

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProtocolTraffic. Required by controller-gen.

func (*ProtocolTraffic) DeepCopyInterface

func (in *ProtocolTraffic) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ProtocolTraffic. Required by controller-gen.

func (*ProtocolTraffic) DeepCopyInto

func (in *ProtocolTraffic) DeepCopyInto(out *ProtocolTraffic)

DeepCopyInto supports using ProtocolTraffic within kubernetes types, where deepcopy-gen is used.

func (*ProtocolTraffic) Descriptor deprecated

func (*ProtocolTraffic) Descriptor() ([]byte, []int)

Deprecated: Use ProtocolTraffic.ProtoReflect.Descriptor instead.

func (*ProtocolTraffic) GetProtocol

func (x *ProtocolTraffic) GetProtocol() string

func (*ProtocolTraffic) GetRates

func (x *ProtocolTraffic) GetRates() map[string]string

func (*ProtocolTraffic) GetResponses

func (x *ProtocolTraffic) GetResponses() map[string]*Response

func (*ProtocolTraffic) ProtoMessage

func (*ProtocolTraffic) ProtoMessage()

func (*ProtocolTraffic) ProtoReflect

func (x *ProtocolTraffic) ProtoReflect() protoreflect.Message

func (*ProtocolTraffic) Reset

func (x *ProtocolTraffic) Reset()

func (*ProtocolTraffic) String

func (x *ProtocolTraffic) String() string

type Response

type Response struct {
	Flags map[string]string `` /* 151-byte string literal not displayed */
	Hosts map[string]string `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Response) DeepCopy

func (in *Response) DeepCopy() *Response

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Response. Required by controller-gen.

func (*Response) DeepCopyInterface

func (in *Response) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Response. Required by controller-gen.

func (*Response) DeepCopyInto

func (in *Response) DeepCopyInto(out *Response)

DeepCopyInto supports using Response within kubernetes types, where deepcopy-gen is used.

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetFlags

func (x *Response) GetFlags() map[string]string

func (*Response) GetHosts

func (x *Response) GetHosts() map[string]string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type SEInfo

type SEInfo struct {
	Location string   `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	Hosts    []string `protobuf:"bytes,2,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// contains filtered or unexported fields
}

func (*SEInfo) DeepCopy

func (in *SEInfo) DeepCopy() *SEInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SEInfo. Required by controller-gen.

func (*SEInfo) DeepCopyInterface

func (in *SEInfo) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new SEInfo. Required by controller-gen.

func (*SEInfo) DeepCopyInto

func (in *SEInfo) DeepCopyInto(out *SEInfo)

DeepCopyInto supports using SEInfo within kubernetes types, where deepcopy-gen is used.

func (*SEInfo) Descriptor deprecated

func (*SEInfo) Descriptor() ([]byte, []int)

Deprecated: Use SEInfo.ProtoReflect.Descriptor instead.

func (*SEInfo) GetHosts

func (x *SEInfo) GetHosts() []string

func (*SEInfo) GetLocation

func (x *SEInfo) GetLocation() string

func (*SEInfo) ProtoMessage

func (*SEInfo) ProtoMessage()

func (*SEInfo) ProtoReflect

func (x *SEInfo) ProtoReflect() protoreflect.Message

func (*SEInfo) Reset

func (x *SEInfo) Reset()

func (*SEInfo) String

func (x *SEInfo) String() string

type ServiceName

type ServiceName struct {
	Cluster   string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name      string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceName) DeepCopy

func (in *ServiceName) DeepCopy() *ServiceName

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceName. Required by controller-gen.

func (*ServiceName) DeepCopyInterface

func (in *ServiceName) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ServiceName. Required by controller-gen.

func (*ServiceName) DeepCopyInto

func (in *ServiceName) DeepCopyInto(out *ServiceName)

DeepCopyInto supports using ServiceName within kubernetes types, where deepcopy-gen is used.

func (*ServiceName) Descriptor deprecated

func (*ServiceName) Descriptor() ([]byte, []int)

Deprecated: Use ServiceName.ProtoReflect.Descriptor instead.

func (*ServiceName) GetCluster

func (x *ServiceName) GetCluster() string

func (*ServiceName) GetName

func (x *ServiceName) GetName() string

func (*ServiceName) GetNamespace

func (x *ServiceName) GetNamespace() string

func (*ServiceName) ProtoMessage

func (*ServiceName) ProtoMessage()

func (*ServiceName) ProtoReflect

func (x *ServiceName) ProtoReflect() protoreflect.Message

func (*ServiceName) Reset

func (x *ServiceName) Reset()

func (*ServiceName) String

func (x *ServiceName) String() string

type UnimplementedKialiServer

type UnimplementedKialiServer struct {
}

UnimplementedKialiServer must be embedded to have forward compatible implementations.

func (UnimplementedKialiServer) GetGraph

func (UnimplementedKialiServer) GetMetrics

func (UnimplementedKialiServer) GetNamespaces

type UnsafeKialiServer

type UnsafeKialiServer interface {
	// contains filtered or unexported methods
}

UnsafeKialiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KialiServer will result in compilation errors.

Jump to

Keyboard shortcuts

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