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)
Click to show internal directories.
Click to hide internal directories.