Documentation ¶
Index ¶
- Constants
- type BindingsManager
- func (r *BindingsManager) CreateBinding(bindingName, masterLevel, slaveLevel, masterGuid, slaveGuid, version string) error
- func (r *BindingsManager) DeleteBinding(slaveGuid, bindingName string) error
- func (r *BindingsManager) GetDevicesBindings(slaveGuid string) map[string]*bindings.Binding
- func (r *BindingsManager) GetDevicesMasterLevel(slaveGuid string) map[string]string
- func (r *BindingsManager) ListBindings() []*bindings.Binding
- type BindingsRecorder
Constants ¶
View Source
const ( //todo %v %v %v --> user deviceGuid bindingName BindingsSavePathPrefixFormat = "/spongeregister/superbahnManager/binding/%v/%v/%v" ListBindingsSavePathPrefixFormat = "/spongeregister/superbahnManager/binding/%v/" BindingsandClusterSavePathPrefixFormat = "/spongeregister/superbahnManager/binding/%v/%v/%v%v" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindingsManager ¶
type BindingsManager struct {
// contains filtered or unexported fields
}
func NewBindingsManager ¶
func NewBindingsManager(ctx context.Context, d BindingsRecorder, user, userToken string) *BindingsManager
func (*BindingsManager) CreateBinding ¶
func (r *BindingsManager) CreateBinding(bindingName, masterLevel, slaveLevel, masterGuid, slaveGuid, version string) error
func (*BindingsManager) DeleteBinding ¶
func (r *BindingsManager) DeleteBinding(slaveGuid, bindingName string) error
func (*BindingsManager) GetDevicesBindings ¶
func (r *BindingsManager) GetDevicesBindings(slaveGuid string) map[string]*bindings.Binding
func (*BindingsManager) GetDevicesMasterLevel ¶
func (r *BindingsManager) GetDevicesMasterLevel(slaveGuid string) map[string]string
func (*BindingsManager) ListBindings ¶
func (r *BindingsManager) ListBindings() []*bindings.Binding
Click to show internal directories.
Click to hide internal directories.