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-20250103191802-8c1959736554 (latest)
Published
Jan 3, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
1 week ago

Tools for package owners.