config

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SocketDisabled = "disabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Adjustment added in v0.4.0

type Adjustment struct {
	// Adjustments contains all adjustment CRDs for this node.
	Adjustments map[string]*extapi.AdjustmentSpec
}

Adjustment represents external adjustments for this node.

type RawConfig

type RawConfig struct {
	// NodeName is the node name the agent used to acquire configuration.
	NodeName string
	// Data is the raw ConfigMap data for this node.
	Data map[string]string
}

RawConfig represents the resource manager config data in unparsed form, as received from the agent.

func (*RawConfig) HasIdenticalData

func (c *RawConfig) HasIdenticalData(data map[string]string) bool

HasIdenticalData returns true if RawConfig has identical data to the supplied one.

type Server

type Server interface {
	Start(string) error
	Stop()
}

Server is the interface for our gRPC server.

func NewConfigServer

func NewConfigServer(configCb SetConfigCb, adjustmentCb SetAdjustmentCb) (Server, error)

NewConfigServer creates new Server instance.

type SetAdjustmentCb added in v0.4.0

type SetAdjustmentCb func(*Adjustment) map[string]error

SetAdjustmentCb is a callback function for a SetAdjustment request.

type SetConfigCb

type SetConfigCb func(*RawConfig) error

SetConfigCb is a callback function for a SetConfig request.

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

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