hostname

package
v0.0.0-...-7983b3b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostname

func GetHostname(ctx context.Context, providerName string, options map[string]interface{}) (string, error)

GetHostname returns the hostname for a specific Provider if it was register

func RegisterHostnameProvider

func RegisterHostnameProvider(name string, p Provider)

RegisterHostnameProvider registers a hostname provider as part of the catalog

Types

type Provider

type Provider func(ctx context.Context, options map[string]interface{}) (string, error)

Provider is a generic function to grab the hostname and return it

func GetProvider

func GetProvider(providerName string) Provider

GetProvider returns a Provider if it was register before.

Directories

Path Synopsis
Package validate provides hostname validation helpers
Package validate provides hostname validation helpers

Jump to

Keyboard shortcuts

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