bulk_container

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NODE_ID_HEADER           = "node_id"
	CERT_HEADER              = "certs"
	ADMIN_GROUP_NAMES_HEADER = "admin_groups"
)

Headers of the csv file

Variables

This section is empty.

Functions

func HandleContainer

func HandleContainer(config *ContainerConfig) error

func ProcessNodeRow

func ProcessNodeRow(req map[string]string) error

ProcessNodeRow is the per-row entry point passed to ProcessParallel. It dispatches on the package-level jobType (set in HandleContainer) so the same goroutine pool can drive either flow.

Types

type ContainerConfig

type ContainerConfig struct {
	JobType         string
	CertFileS3Path  string
	UserID          string
	AdminGroupNames []string
	Tags            []string
	Capabilities    []string
	RequestID       string
}

ContainerConfig holds all configuration needed for bulk container processing. JobType selects between the two flows the container can run: registration of new nodes or metadata update of existing ones. Empty defaults to "register" for backward compatibility with task definitions that don't yet set it.

func NewContainerConfigFromEnv

func NewContainerConfigFromEnv() (*ContainerConfig, error)

NewContainerConfigFromEnv creates a ContainerConfig from environment variables

Jump to

Keyboard shortcuts

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