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