Documentation
¶
Index ¶
- Constants
- type Client
- type ClientImpl
- func (c *ClientImpl) DeviceGroupHelper(token string, deviceIds []string, options *DeviceGroupHelperOptions) (result model.DeviceGroupHelperResult, code int, err error)
- func (c *ClientImpl) GetSelectables(token string, criteria []models.DeviceGroupFilterCriteria, ...) ([]model.Selectable, int, error)
- type DeviceGroupHelperOptions
- type GetSelectablesOptions
- type TestClient
- func (c *TestClient) DeviceGroupHelper(token string, deviceIds []string, options *DeviceGroupHelperOptions) (model.DeviceGroupHelperResult, int, error)
- func (c *TestClient) GetSelectables(token string, criteria []models.DeviceGroupFilterCriteria, ...) ([]model.Selectable, int, error)
- func (c *TestClient) SetDeviceGroupHelperResponse(value model.DeviceGroupHelperResult, code int, err error)
- func (c *TestClient) SetResponse(value []model.Selectable, code int, err error)
Constants ¶
View Source
const InternalAdminToken = `` /* 727-byte string literal not displayed */
InternalAdminToken is expired and invalid. but because this service does not validate the received tokens, it may be used by trusted internal services which are within the same network (kubernetes cluster). requests with this token may not be routed over an ingres with token validation
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
GetSelectables(token string, criteria []models.DeviceGroupFilterCriteria, options *GetSelectablesOptions) ([]model.Selectable, int, error)
DeviceGroupHelper(token string, deviceIds []string, options *DeviceGroupHelperOptions) (model.DeviceGroupHelperResult, int, error)
}
type ClientImpl ¶
type ClientImpl struct {
// contains filtered or unexported fields
}
func (*ClientImpl) DeviceGroupHelper ¶ added in v1.0.0
func (c *ClientImpl) DeviceGroupHelper(token string, deviceIds []string, options *DeviceGroupHelperOptions) (result model.DeviceGroupHelperResult, code int, err error)
func (*ClientImpl) GetSelectables ¶
func (c *ClientImpl) GetSelectables(token string, criteria []models.DeviceGroupFilterCriteria, options *GetSelectablesOptions) ([]model.Selectable, int, error)
type DeviceGroupHelperOptions ¶ added in v1.0.0
type GetSelectablesOptions ¶
type TestClient ¶
type TestClient struct {
// contains filtered or unexported fields
}
func NewTestClient ¶
func NewTestClient() *TestClient
func (*TestClient) DeviceGroupHelper ¶ added in v1.0.0
func (c *TestClient) DeviceGroupHelper(token string, deviceIds []string, options *DeviceGroupHelperOptions) (model.DeviceGroupHelperResult, int, error)
func (*TestClient) GetSelectables ¶
func (c *TestClient) GetSelectables(token string, criteria []models.DeviceGroupFilterCriteria, options *GetSelectablesOptions) ([]model.Selectable, int, error)
func (*TestClient) SetDeviceGroupHelperResponse ¶ added in v1.0.0
func (c *TestClient) SetDeviceGroupHelperResponse(value model.DeviceGroupHelperResult, code int, err error)
func (*TestClient) SetResponse ¶
func (c *TestClient) SetResponse(value []model.Selectable, code int, err error)
Click to show internal directories.
Click to hide internal directories.