cloudid

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package cloudid contains functions for parsing the cloud.id and cloud.auth settings and modifying the configuration to take them into account.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OverwriteSettings

func OverwriteSettings(cfg *config.C) error

OverwriteSettings modifies the received config object by overwriting the output.elasticsearch.hosts, output.elasticsearch.username, output.elasticsearch.password, setup.kibana.host settings based on values derived from the cloud.id and cloud.auth settings.

Types

type CloudID

type CloudID struct {
	// contains filtered or unexported fields
}

CloudID encapsulates the encoded (i.e. raw) and decoded parts of Elastic Cloud ID.

func NewCloudID

func NewCloudID(cloudID string, cloudAuth string) (*CloudID, error)

NewCloudID constructs a new CloudID object by decoding the given cloud ID and cloud auth.

func (*CloudID) ElasticsearchURL

func (c *CloudID) ElasticsearchURL() string

ElasticsearchURL returns the Elasticsearch URL decoded from the cloud ID.

func (*CloudID) KibanaURL

func (c *CloudID) KibanaURL() string

KibanaURL returns the Kibana URL decoded from the cloud ID.

func (*CloudID) Password

func (c *CloudID) Password() string

Password returns the password decoded from the cloud auth.

func (*CloudID) Username

func (c *CloudID) Username() string

Username returns the username decoded from the cloud auth.

Jump to

Keyboard shortcuts

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