package naming

import "github.com/moby/swarmkit/v2/api/naming"

Package naming centralizes the naming of SwarmKit objects.

Index

Functions

func Runtime

func Runtime(t api.TaskSpec) (string, error)

Runtime returns the runtime name from a given spec.

func Task

func Task(t *api.Task) string

Task returns the task name from Annotations.Name, and, in case Annotations.Name is missing, fallback to construct the name from other information.

Source Files

naming.go

Version
v2.0.0 (latest)
Published
Jun 13, 2025
Platform
js/wasm
Imports
4 packages
Last checked
2 days ago

Tools for package owners.