Documentation ¶
Index ¶
Constants ¶
const DefaultBufferSize = 1000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditOptions ¶ added in v0.5.4
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 ¶
func (o *PluginManagerOptions) ApplyTo(c *global.PluginManagerConfiguration) error
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 ¶
func (o *QRMAdvisorOptions) ApplyTo(c *global.QRMAdvisorConfiguration) error
ApplyTo fills up config with options