naming

package
v0.0.0-...-6abf9c9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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