dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts@v1.0.2/clients/interfaces/application.go (about)

     1  //
     2  // Copyright (C) 2020 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/responses"
    12  	"dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/errors"
    13  )
    14  
    15  // ApplicationClient defines the interface for interactions with the Device endpoint on the EdgeX Foundry core-metadata service.
    16  type ApplicationClient interface {
    17  	// AllDevices returns all devices. Devices can also be filtered by labels.
    18  	// The result can be limited in a certain range by specifying the offset and limit parameters.
    19  	// offset: The number of items to skip before starting to collect the result set. Default is 0.
    20  	// limit: The number of items to return. Specify -1 will return all remaining items after offset. The maximum will be the MaxResultCount as defined in the configuration of service. Default is 20.
    21  	AllApplications(ctx context.Context, labels []string, offset int, limit int) (responses.MultiApplicationsResponse, errors.EdgeX)
    22  }