app

package
v4.5.2000+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROBE_TYPE_READINESS = "readiness"
	PROBE_TYPE_LIVENESS  = "liveness"
)

Variables

View Source
var (
	EnablePreloaderCmd = &cobra.Command{
		Use:   "enable",
		Short: "Enable preloader",
		Long:  "",
		Run: func(cmd *cobra.Command, args []string) {
			enablePreloader()
		},
	}
)
View Source
var (
	LoadFutureCmd = &cobra.Command{
		Use:   "loadfuture",
		Short: "Load future node/container metrics",
		Long:  "",
		Run: func(cmd *cobra.Command, args []string) {
			startLoadFuture()
		},
	}
)
View Source
var (
	ProbeCmd = &cobra.Command{
		Use:   "probe",
		Short: "probe federatorai agent",
		Long:  "",
		Run: func(cmd *cobra.Command, args []string) {
			startProbing()
		},
	}
)
View Source
var RootCmd = &cobra.Command{
	Use:   "transmitter",
	Short: "federatorai agent",
	Long:  "",
}
View Source
var (
	RunCmd = &cobra.Command{
		Use:   "run",
		Short: "start alameda recommender",
		Long:  "",
		Run: func(cmd *cobra.Command, args []string) {
			startAgent()
		},
	}
)

Functions

func ReadConfig

func ReadConfig(filename string) (*Agent.Config, error)

Types

type LibType

type LibType int
const (
	LibTypeInput  LibType = 0
	LibTypeOutput LibType = 1
)

type ScheduleJob

type ScheduleJob struct {
	LibPath          string
	ConfigPath       string
	LibType          LibType
	HealthCheckRetry int
	// contains filtered or unexported fields
}

func NewScheduleJob

func NewScheduleJob(libPath string, configPath string, libType LibType, daemon bool, healthCheckRetry int) *ScheduleJob

func (*ScheduleJob) Run

func (s *ScheduleJob) Run()

Jump to

Keyboard shortcuts

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