Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultWebhookPath = "http://metadata.google.internal/computeMetadata/v1/instance/id"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Configuration for the identification of machines. Identification Identification }
type Generator ¶
func SonyFlakeGenerator ¶
func SonyFlakeGenerator() Generator
SonyFlakeGenerator creates a new id generator the function panics if the generator cannot be created
type Hostname ¶
type Hostname struct { // Try to use hostname when identifying the machine uniquely Enabled bool }
type Identification ¶
type PrivateIp ¶
type PrivateIp struct { // Try to use private IP when identifying the machine uniquely Enabled bool }
type Webhook ¶
type Webhook struct { // Try to use webhook when identifying the machine uniquely Enabled bool // The URL of the metadata endpoint to query Url string // (Optional) A JSONPath expression for the data to extract from the response from the metadata endpoint JPath *string // (Optional) Headers to pass in the metadata request Headers *map[string]string }
Click to show internal directories.
Click to hide internal directories.