coordination_api

package
v0.0.0-...-a613b17 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AgentPort = 42699

Variables

This section is empty.

Functions

This section is empty.

Types

type CoordinationRecord

type CoordinationRecord struct {
	Requested []string `json:"requested,omitempty"`
	Assigned  []string `json:"assigned,omitempty"`
}

type PodCoordinationApi

type PodCoordinationApi interface {
	Assign(ctx context.Context, pod coreV1.Pod, assignment []string) error
	PollPod(ctx context.Context, pod coreV1.Pod) (*CoordinationRecord, error)
}

func New

func New() PodCoordinationApi

Jump to

Keyboard shortcuts

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