OLD

package
v0.0.0-...-c4bd2fe Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const COMPONENT_API string = "/api/v1/node/%s/component"
View Source
const CONFIGURATION_API string = "/api/v1/node/%s/config"
View Source
const ORCHESTRATOR_URI string = "http://arcadia-sc.euprojects.net"

Variables

View Source
var WaitGroup sync.WaitGroup

Threading variable

Functions

func Logger

func Logger(inner http.Handler, name string) http.Handler

func SaveFileAsJson

func SaveFileAsJson(l LinkInfo, dir string)

Types

type ComponentInfo

type ComponentInfo struct {
	ClassName                    string              `json:"className"`
	CNID                         string              `json:"CNID"`
	NativeComponent              bool                `json:"nativeComponent"`
	LifecycleInitMethod          string              `json:"omitempty"`
	LifecycleStartMethod         string              `json:"omitempty"`
	LifecycleStopMethod          string              `json:"omitempty"`
	DependencyResolutionHandlers map[string][]string `json:"dependencyResolutionHandlers,omitempty"`
	DependencyBindingHandlers    map[string][]string `json:"dependencyBindingHandlers,omitempty"`
	Metrics                      map[string][]string `json:"metrics,omitempty"`
	ConfigurationParameters      map[string][]string `json:"configurationParameters,omitempty"`
	BehavioralProfile            map[string][]string `json:"behavioralProfile,omitempty"`
	ExecutionRequirements        map[string][]string `json:"executionRequirements,omitempty"`
	ContainerParameters          map[string][]string `json:"containerParameters,omitempty"`
}

type GroundInfo

type GroundInfo struct {
	PublicIP         string `json:"publicIP,omitempty"`
	PrivateIP        string `json:"privateIP,omitempty"`
	AgentPort        string `json:"agentPort,omitempty"`
	OrchestratorIP   string `json:"orchestratorIP,omitempty"`
	OrchestratorPort string `json:"orchestratorPort,omitempty"`
	GNID             string `json:"GNID,omitempty"`
	GSGID            string `json:"GSGID,omitempty"`
	CNID             string `json:"CNID,omitempty"`
	NID              string `json:"NID,omitempty"`
}

type LinkInfo

type LinkInfo struct {
	Title string
	Link  string
}

type Person

type Person struct {
	Name  string
	Phone string ",omitempty"
}

type Response

type Response struct {
	Code         string       `json:"code"`
	Message      string       `json:"message"`
	ReturnObject ReturnObject `json:"returnobject"`
}

type ReturnObject

type ReturnObject struct {
	GroundInfo    GroundInfo    `json:"groundInfo"`
	ComponentInfo ComponentInfo `json:"componentInfo"`
}

Jump to

Keyboard shortcuts

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