global

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultBufferSize = 1000

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditOptions added in v0.5.4

type AuditOptions struct {
	Sinks      []string
	BufferSize int
}

func NewAuditOptions added in v0.5.4

func NewAuditOptions() *AuditOptions

func (*AuditOptions) AddFlags added in v0.5.4

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

AddFlags adds flags to the specified FlagSet.

func (*AuditOptions) ApplyTo added in v0.5.4

func (o *AuditOptions) ApplyTo(conf *global.AuditConfiguration) error

ApplyTo fills up config with options

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
	MachineSiblingNumaMaxDistance                    int
	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