Documentation ¶
Index ¶
- Constants
- func LoadCurrentRaftIndex(tx *bbolt.Tx) uint64
- func NewStoreDefinition[E boltz.ExtEntity](strategy boltz.EntityStrategy[E]) boltz.StoreDefinition[E]
- func Open(path string) (boltz.Db, error)
- type Router
- type RouterStore
- type Service
- type ServiceStore
- type Stores
- func (store *Stores) AddCheckable(checkable boltz.Checkable)
- func (stores *Stores) CheckIntegrity(db boltz.Db, ctx context.Context, fix bool, errorHandler func(error, bool)) error
- func (stores *Stores) CheckIntegrityInTx(db boltz.Db, ctx boltz.MutateContext, fix bool, errorHandler func(error, bool)) error
- func (stores *Stores) GetStoreForEntity(entity boltz.Entity) boltz.Store
- func (stores *Stores) GetStoreForEntityType(entityType string) boltz.Store
- func (stores *Stores) GetStoreList() []boltz.Store
- type Terminator
- func (entity *Terminator) GetAddress() string
- func (entity *Terminator) GetBinding() string
- func (entity *Terminator) GetCost() uint16
- func (entity *Terminator) GetEntityType() string
- func (entity *Terminator) GetHostId() string
- func (entity *Terminator) GetInstanceId() string
- func (entity *Terminator) GetInstanceSecret() []byte
- func (entity *Terminator) GetPeerData() xt.PeerData
- func (entity *Terminator) GetPrecedence() xt.Precedence
- func (entity *Terminator) GetRouterId() string
- func (entity *Terminator) GetServiceId() string
- type TerminatorStore
- type TestContext
Constants ¶
View Source
const ( RootBucket = "ziti" MetadataBucket = "metadata" FieldRaftIndex = "raftIndex" )
View Source
const ( FieldServiceEgress = "egress" FieldServiceBinding = "binding" FieldServiceEndpoint = "endpoint" )
View Source
const ( EntityTypeRouters = "routers" FieldRouterFingerprint = "fingerprint" FieldRouterCost = "cost" FieldRouterNoTraversal = "noTraversal" FieldRouterDisabled = "disabled" )
View Source
const ( EntityTypeServices = "services" FieldServiceTerminatorStrategy = "terminatorStrategy" )
View Source
const ( EntityTypeTerminators = "terminators" FieldTerminatorService = "service" FieldTerminatorRouter = "router" FieldTerminatorBinding = "binding" FieldTerminatorAddress = "address" FieldTerminatorInstanceId = "instanceId" FieldTerminatorInstanceSecret = "instanceSecret" FieldTerminatorCost = "cost" FieldTerminatorPrecedence = "precedence" FieldServerPeerData = "peerData" FieldTerminatorHostId = "hostId" FieldTerminatorSavedPrecedence = "savedPrecedence" )
View Source
const CurrentDbVersion = 5
View Source
const (
FieldName = "name"
)
Variables ¶
This section is empty.
Functions ¶
func LoadCurrentRaftIndex ¶ added in v0.24.29
func NewStoreDefinition ¶ added in v0.23.0
func NewStoreDefinition[E boltz.ExtEntity](strategy boltz.EntityStrategy[E]) boltz.StoreDefinition[E]
Types ¶
type Router ¶
type Router struct { boltz.BaseExtEntity Name string `json:"name"` Fingerprint *string `json:"fingerprint"` Cost uint16 `json:"cost"` NoTraversal bool `json:"noTraversal"` Disabled bool `json:"disabled"` }
func (*Router) GetEntityType ¶
type RouterStore ¶
type Service ¶
type Service struct { boltz.BaseExtEntity Name string `json:"name"` TerminatorStrategy string `json:"terminatorStrategy"` }
func (*Service) GetEntityType ¶
type ServiceStore ¶
type Stores ¶
type Stores struct { Terminator TerminatorStore Router RouterStore Service ServiceStore // contains filtered or unexported fields }
func (*Stores) AddCheckable ¶ added in v0.17.62
func (*Stores) CheckIntegrity ¶ added in v0.17.62
func (*Stores) CheckIntegrityInTx ¶ added in v0.17.62
func (*Stores) GetStoreForEntity ¶
func (*Stores) GetStoreForEntityType ¶ added in v0.18.0
func (*Stores) GetStoreList ¶
type Terminator ¶
type Terminator struct { boltz.BaseExtEntity Service string `json:"service"` Router string `json:"router"` Binding string `json:"binding"` Address string `json:"address"` InstanceId string `json:"instanceId"` InstanceSecret []byte `json:"instanceSecret"` Cost uint16 `json:"cost"` Precedence string `json:"precedence"` PeerData xt.PeerData `json:"peerData"` HostId string `json:"hostId"` SavedPrecedence *string `json:"savedPrecedence"` }
func (*Terminator) GetAddress ¶
func (entity *Terminator) GetAddress() string
func (*Terminator) GetBinding ¶
func (entity *Terminator) GetBinding() string
func (*Terminator) GetCost ¶
func (entity *Terminator) GetCost() uint16
func (*Terminator) GetEntityType ¶
func (entity *Terminator) GetEntityType() string
func (*Terminator) GetHostId ¶ added in v0.20.0
func (entity *Terminator) GetHostId() string
func (*Terminator) GetInstanceId ¶ added in v0.19.0
func (entity *Terminator) GetInstanceId() string
func (*Terminator) GetInstanceSecret ¶ added in v0.19.0
func (entity *Terminator) GetInstanceSecret() []byte
func (*Terminator) GetPeerData ¶
func (entity *Terminator) GetPeerData() xt.PeerData
func (*Terminator) GetPrecedence ¶ added in v0.17.0
func (entity *Terminator) GetPrecedence() xt.Precedence
func (*Terminator) GetRouterId ¶
func (entity *Terminator) GetRouterId() string
func (*Terminator) GetServiceId ¶
func (entity *Terminator) GetServiceId() string
type TerminatorStore ¶
type TerminatorStore interface { boltz.EntityStore[*Terminator] GetTerminatorsInIdentityGroup(tx *bbolt.Tx, terminatorId string) ([]*Terminator, error) }
type TestContext ¶
type TestContext struct { *boltztest.BaseTestContext // contains filtered or unexported fields }
func NewTestContext ¶
func NewTestContext(t testing.TB) *TestContext
func (*TestContext) GetStoreForEntity ¶
func (ctx *TestContext) GetStoreForEntity(entity boltz.Entity) boltz.Store
func (*TestContext) Init ¶
func (ctx *TestContext) Init()
Click to show internal directories.
Click to hide internal directories.