naming

package
v2.0.0-...-c1c857e Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 39

Documentation

Overview

Package naming centralizes the naming of SwarmKit objects.

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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