agent

package
v0.0.0-...-7b61fee Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 18 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

func Destruct()

func Init

func Init() bool

func InvokeOperation

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

func LoadRestRoutes

func LoadRestRoutes() *mux.Router

func ProcessResponse

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

func Retry

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

Types

type ConfigRespMap

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

type ConfigurationStruct

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

Global variables

type ExecuteApp

type ExecuteApp struct {
}

func (*ExecuteApp) Restart

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

func (*ExecuteApp) Start

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

func (*ExecuteApp) Stop

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

type MSMClient

type MSMClient interface {
	ProcessResponse(response string) ConfigRespMap
}

type MetricsRespMap

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

type WritableInfo

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