spoke

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 26 Imported by: 2

Documentation

Index

Constants

View Source
const (
	KubeDriver = "kube"
	MQTTDriver = "mqtt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkAgentConfig added in v0.12.0

type WorkAgentConfig struct {
	// contains filtered or unexported fields
}

func NewWorkAgentConfig added in v0.12.0

func NewWorkAgentConfig(commonOpts *commonoptions.AgentOptions, opts *WorkloadAgentOptions) *WorkAgentConfig

NewWorkAgentConfig returns a WorkAgentConfig

func (*WorkAgentConfig) RunWorkloadAgent added in v0.12.0

func (o *WorkAgentConfig) RunWorkloadAgent(ctx context.Context, controllerContext *controllercmd.ControllerContext) error

RunWorkloadAgent starts the controllers on agent to process work from hub.

type WorkloadAgentOptions

type WorkloadAgentOptions struct {
	StatusSyncInterval                     time.Duration
	AppliedManifestWorkEvictionGracePeriod time.Duration
	WorkloadSourceDriver                   WorkloadSourceDriver
}

WorkloadAgentOptions defines the flags for workload agent

func NewWorkloadAgentOptions

func NewWorkloadAgentOptions() *WorkloadAgentOptions

NewWorkloadAgentOptions returns the flags with default value set

func (*WorkloadAgentOptions) AddFlags

func (o *WorkloadAgentOptions) AddFlags(fs *pflag.FlagSet)

AddFlags register and binds the default flags

type WorkloadSourceDriver added in v0.13.0

type WorkloadSourceDriver struct {
	Type   string
	Config string
}

Directories

Path Synopsis
cache
Package cache implements a ManifestWork Executor Validator with caching capabilities.
Package cache implements a ManifestWork Executor Validator with caching capabilities.
controllers

Jump to

Keyboard shortcuts

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