schedtag

package
v0.3.10-0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, refreshInterval time.Duration) error

Types

type IDynamicschedtag

type IDynamicschedtag interface {
	GetSchedtag() ISchedtag
	GetCondition() string
	GetId() string
	GetName() string
}

func GetEnabledDynamicSchedtagsByResource

func GetEnabledDynamicSchedtagsByResource(resType string) ([]IDynamicschedtag, error)

type IManager

type IManager interface {
	GetSessionManager(sessionId string) (ISessionManager, error)
	FreeSessionManager(sessionId string)
}

type ISchedtag

type ISchedtag interface {
	GetName() string
	GetId() string
	GetDefaultStrategy() string
	// contains filtered or unexported methods
}

func GetAllSchedtags

func GetAllSchedtags(resType string) ([]ISchedtag, error)

func GetCandidateSchedtags

func GetCandidateSchedtags(resType, id string) []ISchedtag

type ISessionManager

type ISessionManager interface {
	GetSessionId() string
	GetAllSchedtags(resType string) ([]ISchedtag, error)
	GetEnabledDynamicSchedtagsByResource(resType string) ([]IDynamicschedtag, error)
	GetCandidateSchedtags(resType, id string) []ISchedtag
}

Jump to

Keyboard shortcuts

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