docker: github.com/docker/docker/pkg/namesgenerator Index | Files | Directories

package namesgenerator

import "github.com/docker/docker/pkg/namesgenerator"

Index

Package Files

names-generator.go

func GetRandomName Uses

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`

Directories

PathSynopsis
cmd/names-generator

Package namesgenerator imports 2 packages (graph) and is imported by 1143 packages. Updated 2020-04-16. Refresh now. Tools for package owners.