naming

package
v0.0.0-...-35d28e4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 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