service

package
v0.0.0-...-8b3bf69 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdsFromFlowProto

func IdsFromFlowProto(f *pbFlow.Flow) (string, string)

Types

type Map

type Map map[string]*Service

func (Map) Has

func (m Map) Has(key string) bool

func (Map) HasService

func (m Map) HasService(svc *Service) bool

func (Map) Insert

func (m Map) Insert(svc *Service) *Service

func (Map) InsertMany

func (m Map) InsertMany(svcs ...*Service)

func (Map) ProtoValues

func (m Map) ProtoValues() []*ui.Service

func (Map) Values

func (m Map) Values() []*Service

type Service

type Service struct {
	LabelProps *labels.LabelProps
	// contains filtered or unexported fields
}

func FromEndpointProtoAndDNS

func FromEndpointProtoAndDNS(
	f *pbFlow.Flow,
	ep *pbFlow.Endpoint,
	dnsNames []string,
) *Service

func (*Service) FlowRef

func (s *Service) FlowRef() *pbFlow.Flow

func (*Service) Id

func (s *Service) Id() string

func (*Service) IsEnrichedWith

func (l *Service) IsEnrichedWith(r *Service) bool

func (*Service) Name

func (s *Service) Name() string

func (*Service) SetIsReceiver

func (s *Service) SetIsReceiver(state bool)

func (*Service) SetIsSender

func (s *Service) SetIsSender(state bool)

func (*Service) Side

func (s *Service) Side() string

func (*Service) String

func (s *Service) String() string

func (*Service) ToProto

func (s *Service) ToProto() *pbUi.Service

TODO: its not ok to have this code here

Jump to

Keyboard shortcuts

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