Documentation ¶
Index ¶
- func DeserializeContext(context string) map[string]string
- func DeserializeIPs(ips string) []string
- func DeserializeStatus(status int32) nspAPI.Target_Status
- func DeserializeType(t int32) nspAPI.Target_Type
- func GetTargetID(target *nspAPI.Target) string
- func SQLTConduitToNSPConduit(conduit *Conduit) *nspAPI.Conduit
- func SQLTStreamToNSPStream(stream *Stream) *nspAPI.Stream
- func SQLTTrenchToNSPTrench(trench *Trench) *nspAPI.Trench
- func SQLTargetToNSPTarget(target *Target) *nspAPI.Target
- func SerializeContext(context map[string]string) string
- func SerializeIPs(ips []string) string
- func SerializeStatus(status nspAPI.Target_Status) int32
- func SerializeType(t nspAPI.Target_Type) int32
- type Conduit
- type Stream
- type Target
- type TargetRegistrySQLite
- func (trsql *TargetRegistrySQLite) Close() error
- func (trsql *TargetRegistrySQLite) Get(ctx context.Context, target *nspAPI.Target) ([]*nspAPI.Target, error)
- func (trsql *TargetRegistrySQLite) Remove(ctx context.Context, target *nspAPI.Target) error
- func (trsql *TargetRegistrySQLite) Set(ctx context.Context, target *nspAPI.Target) error
- func (trsql *TargetRegistrySQLite) Watch(ctx context.Context, target *nspAPI.Target) (types.TargetWatcher, error)
- type Trench
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeserializeContext ¶
func DeserializeIPs ¶
func DeserializeStatus ¶
func DeserializeStatus(status int32) nspAPI.Target_Status
func DeserializeType ¶
func DeserializeType(t int32) nspAPI.Target_Type
func GetTargetID ¶
func SQLTConduitToNSPConduit ¶
func SQLTStreamToNSPStream ¶
func SQLTTrenchToNSPTrench ¶
func SQLTargetToNSPTarget ¶
func SerializeContext ¶
func SerializeIPs ¶
func SerializeStatus ¶
func SerializeStatus(status nspAPI.Target_Status) int32
func SerializeType ¶
func SerializeType(t nspAPI.Target_Type) int32
Types ¶
type Conduit ¶
type Conduit struct { Name string `gorm:"primaryKey"` TrenchName string Trench Trench `gorm:"foreignKey:TrenchName"` }
func NSPTConduitToSQLConduit ¶
type Stream ¶
type Stream struct { Name string `gorm:"primaryKey"` ConduitName string Conduit Conduit `gorm:"foreignKey:ConduitName"` }
func NSPTStreamToSQLStream ¶
type Target ¶
type Target struct { ID string `gorm:"primaryKey"` Ips string Context string Status int32 Type int32 StreamName string Stream Stream `gorm:"foreignKey:StreamName"` }
func NSPTargetToSQLTarget ¶
type TargetRegistrySQLite ¶
func New ¶
func New(datastore string) (*TargetRegistrySQLite, error)
func (*TargetRegistrySQLite) Close ¶ added in v1.0.1
func (trsql *TargetRegistrySQLite) Close() error
func (*TargetRegistrySQLite) Watch ¶
func (trsql *TargetRegistrySQLite) Watch(ctx context.Context, target *nspAPI.Target) (types.TargetWatcher, error)
Click to show internal directories.
Click to hide internal directories.