client

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package client implements REST client management functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clienter

type Clienter interface {
	cipher.Setter

	// for servicemgr
	DoExecuteRemoteDevice(appInfo map[string]interface{}, target string) (err error)
	DoNotifyAppStatusRemoteDevice(statusNotificationInfo map[string]interface{}, appID uint64, target string) (err error)

	// for scoringmgr
	DoGetScoreRemoteDevice(devID string, endpoint string) (scoreValue float64, err error)
	DoGetResourceRemoteDevice(devID string, endpoint string) (respMsg map[string]interface{}, err error)
	// for discoverymgr
	DoGetOrchestrationInfo(endpoint string) (platform string, executionType string, serviceList []string, err error)
	DoNotifyMNEDCBroadcastServer(endpoint string, port int, deviceID string, privateIP string, virtualIP string) error
}

Clienter interface

type HasClient

type HasClient struct {
	Clienter Clienter
}

HasClient struct

func (*HasClient) SetClient

func (c *HasClient) SetClient(api Clienter)

SetClient sets function

type Setter

type Setter interface {
	SetClient(clientAPI Clienter)
}

Setter interface

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package restclient implements REST client functions to send request to remote orchestration
Package restclient implements REST client functions to send request to remote orchestration

Jump to

Keyboard shortcuts

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