commatrixcreator

package
v0.0.0-...-3ef458c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommunicationMatrixCreator

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

func New

func New(exporter *endpointslices.EndpointSlicesExporter, customEntriesPath string, customEntriesFormat string, e types.Env, d types.Deployment) (*CommunicationMatrixCreator, error)

func (*CommunicationMatrixCreator) CreateEndpointMatrix

func (cm *CommunicationMatrixCreator) CreateEndpointMatrix() (*types.ComMatrix, error)

CreateEndpointMatrix initializes a ComMatrix using Kubernetes cluster data. It takes kubeconfigPath for cluster access to fetch EndpointSlice objects, detailing open ports for ingress traffic. Custom entries from a JSON file can be added to the matrix by setting `customEntriesPath`. Returns a pointer to ComMatrix and error. Entries include traffic direction, protocol, port number, namespace, service name, pod, container, node role, and flow optionality for OpenShift.

func (*CommunicationMatrixCreator) GetComDetailsListFromFile

func (cm *CommunicationMatrixCreator) GetComDetailsListFromFile() ([]types.ComDetails, error)

Jump to

Keyboard shortcuts

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