config

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chrony

type Chrony struct {
	Host    string `default:"chrony" yaml:"host"`
	Port    uint32 `default:"123" yaml:"port"`
	Timeout uint32 `default:"1" yaml:"timeout"`
}

type Config

type Config struct {
	ListenPort                     string   `default:"20014" yaml:"listen-port"`
	LogLevel                       string   `default:"info"`
	TsdbIP                         string   `yaml:"tsdb-ip"`
	Chrony                         Chrony   `yaml:"chrony"`
	SelfUpdateUrl                  string   `default:"grpc" yaml:"self-update-url"`
	RemoteApiTimeout               uint16   `default:"30" yaml:"remote-api-timeout"`
	TridentTypeForUnknowVtap       uint16   `default:"0" yaml:"trident-type-for-unknow-vtap"`
	PlatformVips                   []string `yaml:"platform-vips"`
	NodeType                       string   `default:"master" yaml:"node-type"`
	RegionDomainPrefix             string   `yaml:"region-domain-prefix"`
	ClearKubernetesTime            int      `default:"600" yaml:"clear-kubernetes-time"`
	NodeIP                         string
	VTapCacheRefreshInterval       int  `default:"300" yaml:"vtapcache-refresh-interval"`
	MetaDataRefreshInterval        int  `default:"60" yaml:"metadata-refresh-interval"`
	NodeRefreshInterval            int  `default:"60" yaml:"node-refresh-interval"`
	GPIDRefreshInterval            int  `default:"9" yaml:"gpid-refresh-interval"`
	VTapAutoRegister               bool `default:"true" yaml:"vtap-auto-register"`
	DomainAutoRegister             bool `default:"true" yaml:"domain-auto-register"`
	DefaultTapMode                 int  `yaml:"default-tap-mode"`
	BillingMethod                  string
	GrpcPort                       int
	IngesterPort                   int
	PodClusterInternalIPToIngester int
	GrpcMaxMessageLength           int
	ExportersEnabled               bool
	PlatformDataRefreshDelayTime   int `default:"1" yaml:"platform-data-refresh-delay-time"`
	ORGDataRefreshInterval         int `default:"60" yaml:"org-data-refresh-interval"`
	NoTeamIDRefused                bool
	FPermit                        common.FPermit
	IngesterAPI                    common.IngesterApi // data source
	AllAgentConnectToNatIP         bool
	NoIPOverlapping                bool
}

func (*Config) Convert

func (c *Config) Convert()

func (*Config) GetAllAgentConnectToNatIP

func (c *Config) GetAllAgentConnectToNatIP() bool

func (*Config) GetExportersEnabled

func (c *Config) GetExportersEnabled() bool

func (*Config) GetFPermitConfig

func (c *Config) GetFPermitConfig() common.FPermit

func (*Config) GetGrpcMaxMessageLength

func (c *Config) GetGrpcMaxMessageLength() int

func (*Config) GetGrpcPort

func (c *Config) GetGrpcPort() int

func (*Config) GetIngesterAPI

func (c *Config) GetIngesterAPI() common.IngesterApi

func (*Config) GetIngesterPort

func (c *Config) GetIngesterPort() int

func (*Config) GetNoIPOverlapping

func (c *Config) GetNoIPOverlapping() bool

func (*Config) GetNoTeamIDRefused

func (c *Config) GetNoTeamIDRefused() bool

func (*Config) SetAllAgentConnectToNatIP

func (c *Config) SetAllAgentConnectToNatIP(data bool)

func (*Config) SetBillingMethod

func (c *Config) SetBillingMethod(billingMethod string)

func (*Config) SetExportersEnabled

func (c *Config) SetExportersEnabled(exporterEnabled bool)

func (*Config) SetFPermitConfig

func (c *Config) SetFPermitConfig(fpermit common.FPermit)

func (*Config) SetGrpcMaxMessageLength

func (c *Config) SetGrpcMaxMessageLength(maxLen int)

func (*Config) SetGrpcPort

func (c *Config) SetGrpcPort(port int)

func (*Config) SetIngesterAPI

func (c *Config) SetIngesterAPI(ingesterAPI common.IngesterApi)

func (*Config) SetIngesterPort

func (c *Config) SetIngesterPort(port int)

func (*Config) SetLogLevel

func (c *Config) SetLogLevel(logLevel string)

func (*Config) SetNoIPOverlapping

func (c *Config) SetNoIPOverlapping(data bool)

func (*Config) SetNoTeamIDRefused

func (c *Config) SetNoTeamIDRefused(refused bool)

func (*Config) SetPodClusterInternalIPToIngester

func (c *Config) SetPodClusterInternalIPToIngester(value int)

Jump to

Keyboard shortcuts

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