global

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseOptions

type BaseOptions struct {
	Agents             []string
	NodeName           string
	NodeAddress        string
	LockFileName       string
	LockWaitingEnabled bool

	CgroupType            string
	AdditionalCgroupPaths []string

	ReclaimRelativeRootCgroupPath string
	GeneralRelativeCgroupPaths    []string
	OptionalRelativeCgroupPaths   []string

	// configurations for kubelet
	KubeletReadOnlyPort      int
	KubeletSecurePort        int
	KubeletSecurePortEnabled bool
	KubeletConfigEndpoint    string
	KubeletPodsEndpoint      string
	KubeletSummaryEndpoint   string
	APIAuthTokenFile         string

	// configurations for runtime
	RuntimeEndpoint string

	// configurations for machine-info
	MachineNetMultipleNS                             bool
	MachineNetNSDirAbsPath                           string
	MachineSiblingNumaMemoryBandwidthCapacity        resource.QuantityValue
	MachineSiblingNumaMemoryBandwidthAllocatableRate float64
}

BaseOptions holds all the configurations for agent-base. we will not try to separate this structure into several individual structures since it will not be used directly by other components; instead, we will only separate them with blanks in a single structure.

func NewBaseOptions

func NewBaseOptions() *BaseOptions

func (*BaseOptions) AddFlags

func (o *BaseOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*BaseOptions) ApplyTo

func (o *BaseOptions) ApplyTo(c *global.BaseConfiguration) error

ApplyTo fills up config with options

type PluginManagerOptions

type PluginManagerOptions struct {
	PluginRegistrationDir string
}

func NewPluginManagerOptions

func NewPluginManagerOptions() *PluginManagerOptions

func (*PluginManagerOptions) AddFlags

func (o *PluginManagerOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*PluginManagerOptions) ApplyTo

ApplyTo fills up config with options

type QRMAdvisorOptions

type QRMAdvisorOptions struct {
	CPUAdvisorSocketAbsPath string
	CPUPluginSocketAbsPath  string

	MemoryAdvisorSocketAbsPath string
	MemoryPluginSocketAbsPath  string
}

QRMAdvisorOptions holds the configurations for both qrm plugins and sys advisor qrm servers

func NewQRMAdvisorOptions

func NewQRMAdvisorOptions() *QRMAdvisorOptions

NewQRMAdvisorOptions creates a new options with a default config

func (*QRMAdvisorOptions) AddFlags

func (o *QRMAdvisorOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*QRMAdvisorOptions) ApplyTo

ApplyTo fills up config with options

Jump to

Keyboard shortcuts

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