# Packages
No description provided by the author
No description provided by the author
go:generate bash -c "protoc -I .
No description provided by the author
Package storage defines the storage interfaces and implementations for the configurator service.
No description provided by the author
No description provided by the author
# Functions
ClearMconfigBuilders exists ONLY for testing - this the required but unused *testing.T parameter.
CreateEntities registers the given entities and returns the created network entities.
No description provided by the author
CreateInternalEntity is a loose wrapper around CreateEntity to create an entity in the internal network structure.
No description provided by the author
No description provided by the author
CreateNetworks registers the given list of Networks and returns the created networks.
No description provided by the author
No description provided by the author
DeleteEntity deletes the entity specified by networkID, type, key We also have cascading deletes to delete foreign keys for assocs.
No description provided by the author
No description provided by the author
DeleteInternalEntity is a loose wrapper around DeleteEntities to delete an entity in the internal network structure.
DeleteNetwork deletes a network.
No description provided by the author
DeleteNetworks deletes the network specified by networkID.
DoEntitiesExist returns a boolean that indicated whether all entities specified exist in the network.
DoesEntityExist returns a boolean that indicated whether the entity specified exists in the network.
DoesInternalEntityExist calls DoesEntityExist with the internal networkID.
DoesNetworkExist returns a boolean that indicates whether the networkID.
FullEntityLoadCriteria returns an EntityLoadCriteria that loads everything possible on an entity.
No description provided by the author
GetNetworkAndEntityIDForPhysicalID gets the network ID and entity ID for the associated physical ID.
No description provided by the author
GetPhysicalIDOfEntity gets the physicalID associated with the entity identified by (networkID, entityType, entityKey) If not found, returns ErrNotFound from "github.com/go-magma/magma/lib/go/errors.
ListEntityKeys returns all keys for an entity type in a network.
ListInternalEntityKeys calls ListEntityKeys with the internal networkID.
ListNetworkIDs loads a list of all networkIDs registered.
ListNetworksOfType returns a list of all network IDs which match the given type.
LoadAllEntitiesInNetwork fetches all entities of specified type in a network.
LoadEntities loads entities specified by the parameters.
LoadEntity loads the network entity identified by (network ID, entity type, entity key).
LoadEntityConfig loads the config for the entity identified by (network ID, entity type, entity key).
LoadEntityForPhysicalID loads the network entity identified by the physical ID.
LoadInternalEntity calls LoadEntity with the internal network ID.
LoadNetwork loads the network identified by the network ID.
LoadNetworkConfig loads network config of type configType registered under the network ID.
LoadNetworks loads networks specified by networks according to criteria specified and returns the result.
No description provided by the author
NewNetworkConfigSerde returns a network config domain Serde implementation for a pointer to a structure implementing both BinaryMarshaler and BinaryUnmarshaler.
NewNetworkEntityConfigSerde returns a network entity config domain Serde implementation/ for a pointer to a structure implementing both BinaryMarshaler and BinaryUnmarshaler.
RegisterMconfigBuilders registers a collection of MconfigBuilders to make available to the southbound configurator servicer to call when gateways request mconfigs.
UpdateEntities updates the registered entities and returns the updated entities.
No description provided by the author
UpdateInternalEntity is a loose wrapper around UpdateEntity to update an entity in the internal network structure.
No description provided by the author
UpdateNetworks updates the specified networks and returns the updated networks.
WriteEntities executes a series of entity writes (creation or update) to be executed in order within a single transaction.
# Constants
No description provided by the author
NetworkConfigSerdeDomain is the Serde domain for network configs.
NetworkEntitySerdeDomain is the Serde domain for network entity configs.
ServiceName is the name of this service.
# Structs
EntityGraph represents a DAG of associated network entities.
EntityLoadCriteria specifies how much of an entity to load.
EntityLoadFilter specifies which entities to load from storage.
EntityLoadResult encapsulates the result of a LoadEntities call.
EntityUpdateCriteria specifies a patch operation on a network entity.
No description provided by the author
A network represents a tenant.
NetworkEntity is the storage representation of a logical component of a network.
NetworkUpdateCriteria specifies how to update a network.
# Interfaces
EntityWriteOperation is an interface around entity creation/update for the generic multi-operation configurator endpoint.
MconfigBuilder fills in a partial mconfig for a given gateway within a network.
# Type aliases
No description provided by the author