controller

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandFunc

type CommandFunc func(context.Context, *api.Command) error

type Config

type Config struct {
	Enabled bool           `json:"enabled"`
	Server  *client.Config `json:"server"`
}

type Factory

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

func NewFactory

func NewFactory(logger *zerolog.Logger, cfg *Config, dop client.DialOptionsProvider) *Factory

func (*Factory) OnRuntimeStarted

func (f *Factory) OnRuntimeStarted(ctx context.Context, tenantID, policyID, policyName, instanceLabel, host string, commandFunc CommandFunc) (func(), error)

Jump to

Keyboard shortcuts

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