package namesgenerator

import "github.com/docker/cli/components/engine/pkg/namesgenerator"

Index

Functions

func GetRandomName

func GetRandomName(retry int) string

GetRandomName generates a random name from the list of adjectives and surnames in this package formatted as "adjective_surname". For example 'focused_turing'. If retry is non-zero, a random integer between 0 and 10 will be added to the end of the name, e.g `focused_turing3`

Source Files

names-generator.go

Directories

PathSynopsis
components/engine/pkg/namesgenerator/cmd
components/engine/pkg/namesgenerator/cmd/names-generator
Version
v17.10.0-ce+incompatible
Published
Oct 17, 2017
Platform
linux/amd64
Imports
2 packages
Last checked
25 minutes ago

Tools for package owners.