nmagentclient

package
v1.2.0-rc Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetNetworkContainerVersionURLFmt = "" /* 142-byte string literal not displayed */
)

Variables

View Source
var WireserverIP = "168.63.129.16"

Functions

func GetNetworkContainerVersion added in v1.1.6

func GetNetworkContainerVersion(
	networkContainerID,
	getNetworkContainerVersionURL string) (*http.Response, error)

GetNetworkContainerVersion :- Retrieves NC version from NMAgent

func JoinNetwork

func JoinNetwork(
	networkID string,
	joinNetworkURL string) (*http.Response, error)

JoinNetwork joins the given network

func PublishNetworkContainer

func PublishNetworkContainer(
	networkContainerID string,
	createNetworkContainerURL string,
	requestBodyData []byte) (*http.Response, error)

PublishNetworkContainer publishes given network container

func UnpublishNetworkContainer

func UnpublishNetworkContainer(
	networkContainerID string,
	deleteNetworkContainerURL string) (*http.Response, error)

UnpublishNetworkContainer unpublishes given network container

Types

type NMANetworkContainerResponse added in v1.1.6

type NMANetworkContainerResponse struct {
	ResponseCode       string `json:"httpStatusCode"`
	NetworkContainerID string `json:"networkContainerId"`
	Version            string `json:"version"`
}

NMANetworkContainerResponse - NMAgent response.

Jump to

Keyboard shortcuts

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