Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonClient ¶
type CommonClient interface {
// Configuration obtains configuration information from the target service.
Configuration(ctx context.Context) (common.ConfigResponse, errors.EdgeX)
// Metrics obtains metrics information from the target service.
Metrics(ctx context.Context) (common.MetricsResponse, errors.EdgeX)
// Ping tests whether the service is working
Ping(ctx context.Context) (common.PingResponse, errors.EdgeX)
// Version obtains version information from the target service.
Version(ctx context.Context) (common.VersionResponse, errors.EdgeX)
}
type DeviceProfileClient ¶ added in v0.1.123
type DeviceProfileClient interface {
// Add adds new profiles
Add(ctx context.Context, reqs []requests.DeviceProfileRequest) ([]common.BaseWithIdResponse, errors.EdgeX)
// Update updates profiles
Update(ctx context.Context, reqs []requests.DeviceProfileRequest) ([]common.BaseResponse, errors.EdgeX)
// AddByYaml adds new profile by uploading a file in YAML format
AddByYaml(ctx context.Context, yamlFilePath string) (common.BaseWithIdResponse, errors.EdgeX)
// UpdateByYaml updates profile by uploading a file in YAML format
UpdateByYaml(ctx context.Context, yamlFilePath string) (common.BaseResponse, errors.EdgeX)
// DeleteByName deletes profile by name
DeleteByName(ctx context.Context, name string) (common.BaseResponse, errors.EdgeX)
// Query profile by name
DeviceProfileByName(ctx context.Context, name string) (responses.DeviceProfileResponse, errors.EdgeX)
// Query all profiles
AllDeviceProfiles(ctx context.Context, labels []string, offset int, limit int) (responses.MultiDeviceProfilesResponse, errors.EdgeX)
// Query profiles by model
DeviceProfilesByModel(ctx context.Context, model string, offset int, limit int) (responses.MultiDeviceProfilesResponse, errors.EdgeX)
// Query profiles by manufacturer
DeviceProfilesByManufacturer(ctx context.Context, manufacturer string, offset int, limit int) (responses.MultiDeviceProfilesResponse, errors.EdgeX)
// Query profiles by manufacturer and model
DeviceProfilesByManufacturerAndModel(ctx context.Context, manufacturer string, model string, offset int, limit int) (responses.MultiDeviceProfilesResponse, errors.EdgeX)
}
DeviceProfileClient defines the interface for interactions with the DeviceProfile endpoint on the EdgeX Foundry core-metadata service.
type EventClient ¶ added in v0.1.115
type EventClient interface {
// Add adds new events
Add(ctx context.Context, reqs []requests.AddEventRequest) ([]common.BaseWithIdResponse, errors.EdgeX)
}
EventClient defines the interface for interactions with the Event endpoint on the EdgeX Foundry core-data service.
Click to show internal directories.
Click to hide internal directories.