configuremgr

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package configuremgr provides interfaces between orchestrationapi and configuremgr

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppDB added in v1.1.0

func GetAppDB(name string) (appDB.Info, error)

GetAppDB returns information corresponding to the service application name

Types

type ConfigureMgr added in v1.1.0

type ConfigureMgr struct {
	// contains filtered or unexported fields
}

ConfigureMgr has config folder path and execution type information

func GetInstance added in v1.1.0

func GetInstance(configPath, execType string) *ConfigureMgr

GetInstance set configpath, execution type and gives ConfigureMgrs Singletone instance

func (ConfigureMgr) SetConfigPath added in v1.1.0

func (cfgMgr ConfigureMgr) SetConfigPath(configPath string) error

SetConfigPath update config folder path

func (ConfigureMgr) Watch added in v1.1.0

func (cfgMgr ConfigureMgr) Watch(notifier Notifier)

Watch implements Watcher interface with ConfigureMgr struct

type Notifier

type Notifier interface {
	Notify(serviceinfo types.ServiceInfo)
}

Notifier is the interface to get scoring information for each service application

type Watcher

type Watcher interface {
	Watch(notifier Notifier)
}

Watcher is the interface to check if service application is installed/updated/deleted

Directories

Path Synopsis
Package confdescription defines the configuration informantion of service application
Package confdescription defines the configuration informantion of service application
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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