agent

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

******************************************************************************

  • Copyright 2017 Dell Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. ******************************************************************************

******************************************************************************

  • Copyright 2017 Dell Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. ******************************************************************************

Index

Constants

View Source
const (
	START   = "start"
	STOP    = "stop"
	RESTART = "restart"
)

Variables

View Source
var LoggingClient logger.LoggingClient

Functions

func Destruct added in v1.0.0

func Destruct()

func Init added in v1.0.0

func Init(useRegistry bool) bool

func InvokeOperation added in v1.0.0

func InvokeOperation(action string, services []string) error

func IsKnownServiceKey added in v1.0.0

func IsKnownServiceKey(serviceKey string) bool

func LoadRestRoutes added in v1.0.0

func LoadRestRoutes() *mux.Router

func ProcessResponse added in v1.0.0

func ProcessResponse(response string) map[string]interface{}

func Retry added in v1.0.0

func Retry(useRegistry bool, useProfile string, timeout int, wait *sync.WaitGroup, ch chan error)

Types

type ConfigRespMap added in v1.0.0

type ConfigRespMap struct {
	Configuration map[string]interface{}
}

type ConfigurationStruct added in v1.0.0

type ConfigurationStruct struct {
	Writable        WritableInfo
	Clients         map[string]config.ClientInfo
	Service         config.ServiceInfo
	ExecutorPath    string
	Registry        config.RegistryInfo
	Logging         config.LoggingInfo
	FormatSpecifier string
}
var Configuration *ConfigurationStruct

Global variables

type ExecuteApp added in v1.0.0

type ExecuteApp struct {
}

func (*ExecuteApp) Restart added in v1.0.0

func (ec *ExecuteApp) Restart(service string) error

func (*ExecuteApp) Start added in v1.0.0

func (ec *ExecuteApp) Start(service string) error

func (*ExecuteApp) Stop added in v1.0.0

func (ec *ExecuteApp) Stop(service string) error

type MSMClient added in v1.0.0

type MSMClient interface {
	ProcessResponse(response string) ConfigRespMap
}

type MetricsRespMap added in v1.0.0

type MetricsRespMap struct {
	Metrics map[string]interface{}
}

type WritableInfo added in v1.0.0

type WritableInfo struct {
	ResendLimit int
	LogLevel    string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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