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
Click to show internal directories.
Click to hide internal directories.