dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts@v1.0.2/clients/interfaces/common.go (about) 1 // 2 // Copyright (C) 2020-2021 IOTech Ltd 3 // 4 // SPDX-License-Identifier: Apache-2.0 5 6 package interfaces 7 8 import ( 9 "context" 10 11 "dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/dtos/common" 12 "dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/errors" 13 ) 14 15 type CommonClient interface { 16 // Configuration obtains configuration information from the target service. 17 Configuration(ctx context.Context) (common.ConfigResponse, errors.EdgeX) 18 // Ping tests whether the service is working 19 Ping(ctx context.Context) (common.PingResponse, errors.EdgeX) 20 // Version obtains version information from the target service. 21 Version(ctx context.Context) (common.VersionResponse, errors.EdgeX) 22 // AddSecret adds EdgeX Service exclusive secret to the Secret Store 23 AddSecret(ctx context.Context, request common.SecretRequest) (common.BaseResponse, errors.EdgeX) 24 }