metathings_device_cloud_profile_storage_interface

package
v1.3.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile struct {
	Name    string `json:"name"`
	Driver  string `json:"driver"`
	Address string `json:"address"`
	Port    string `json:"port"`
}

type ProfileStorage

type ProfileStorage interface {
	CreateOrUpdateProfile(ctx context.Context, profile Profile) error
	DeleteProfile(ctx context.Context, profileName string) error
	GetProfile(ctx context.Context, profileName string) (Profile, error)
	GetProfileByDevice(ctx context.Context, deviceId string, opts ...option.ApplyOption) (Profile, error)
	BindDevices(ctx context.Context, deviceIds []string, profileName string) error
	UnbindDevices(ctx context.Context, deviceIds []string) error
}

Jump to

Keyboard shortcuts

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