bootstrap

package
v0.0.0-...-f49aa48 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	App = AgentBootstrap{
		Customizers: make(map[string][]Customizer),
	}
)

Functions

func CreateContainerEngine

func CreateContainerEngine() (cri.ContainerEngine, error)

func InitCollectTaskManager

func InitCollectTaskManager(rs *registry.Service, staticTasks []*collecttask.CollectTask) (*collecttask.Manager, error)

func InitContainerdEngine

func InitContainerdEngine() (cri.ContainerEngine, error)

func InitDockerEngine

func InitDockerEngine() (cri.ContainerEngine, error)

func InitK8sClientsetInCluster

func InitK8sClientsetInCluster() (*kubernetes.Clientset, error)

func SetupConfigForK8s

func SetupConfigForK8s()

Types

type AgentBootstrap

type AgentBootstrap struct {
	StopHooks   []Runnable
	Hooks       []Runnable
	Customizers map[string][]Customizer
	StaticTasks []*collecttask.CollectTask

	LSM *logstream.Manager
	PM  *pipeline.Manager
	TM  *manager.TransferManager

	AM               *agent.Manager
	MasterMaintainer *master.K8sNodeMasterMaintainer
	// contains filtered or unexported fields
}

func (*AgentBootstrap) AddCustomizer

func (b *AgentBootstrap) AddCustomizer(name string, customizer Customizer)

func (*AgentBootstrap) AddStopComponents

func (b *AgentBootstrap) AddStopComponents(components ...StopComponent)

func (*AgentBootstrap) Bootstrap

func (b *AgentBootstrap) Bootstrap() error

type Customizer

type Customizer func(obj interface{}) (interface{}, error)

type Runnable

type Runnable func()

type StopComponent

type StopComponent interface {
	Stop()
}

Jump to

Keyboard shortcuts

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