models

package
v0.0.0-...-8797c35 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RemoteId = "#remote"
	LocalId  = "#local"

	ServiceTag = ".service"
	ClientTag  = ".client"

	ControllerTag = ".ctrl"
	RouterTag     = ".router"
	EdgeRouterTag = ".edge-router"
	SdkAppTag     = ".sdk-app"

	LoopListenerTag = ".loop-listener"
	LoopDialerTag   = ".loop-dialer"

	TerminatorTag = ".terminator"

	HasControllerComponent = "component.ctrl"
	HasRouterComponent     = "component.router"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ZitiDbBuilder

type ZitiDbBuilder struct {
	Strategy ZitiDbBuilderStrategy
	// contains filtered or unexported fields
}

func (*ZitiDbBuilder) Build

func (self *ZitiDbBuilder) Build(m *model.Model) error

func (*ZitiDbBuilder) CreateEdgeRouterHosts

func (self *ZitiDbBuilder) CreateEdgeRouterHosts(tx *bbolt.Tx, m *model.Model, erStrategy ZitiEdgeRouterStrategy) error

func (*ZitiDbBuilder) DefaultGetSite

func (self *ZitiDbBuilder) DefaultGetSite(er *db.EdgeRouter) (string, bool)

func (*ZitiDbBuilder) GetDb

func (self *ZitiDbBuilder) GetDb() boltz.Db

func (*ZitiDbBuilder) GetStores

func (self *ZitiDbBuilder) GetStores() *db.Stores

type ZitiDbBuilderStrategy

type ZitiDbBuilderStrategy interface {
	GetDbFile(m *model.Model) string
	ProcessDbModel(tx *bbolt.Tx, m *model.Model, builder *ZitiDbBuilder) error
}

type ZitiEdgeRouterStrategy

type ZitiEdgeRouterStrategy interface {
	GetSite(router *db.EdgeRouter) (string, bool)
	PostProcess(router *db.EdgeRouter, c *model.Component)
}

Jump to

Keyboard shortcuts

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