models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	// Stringer returns a long form description/details of the mesh
	fmt.Stringer
	Details() *MeshInfo
	Type() EventType
}

Event represents a mesh agnostic event interface

type EventType

type EventType int

EventType identifies the type of event being processed

const (
	// Discovery event is the first stage to finding a deployed mesh
	Discovery EventType = iota
)

type MeshInfo

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

MeshInfo is the meshsync native, mesh agnostic representation of a deployed service-mesh and any related state information TODO (Nitish Malhotra) : Enhance this model

func NewMeshInfo

func NewMeshInfo() *MeshInfo

func (*MeshInfo) SetOpaque

func (mi *MeshInfo) SetOpaque(data interface{})

SetOpaque data unique to the deployed mesh

func (*MeshInfo) SetVersion

func (mi *MeshInfo) SetVersion(v *string)

SetVersion of the deployed mesh

Jump to

Keyboard shortcuts

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