openstack

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	Port:            80,
	RefreshInterval: 60 * time.Second,
	Availability:    "public",
}

Functions

func New

func New(opts component.Options, args Arguments) (*discovery.Component, error)

New returns a new instance of a discovery.openstack component.

Types

type Arguments

type Arguments struct {
	IdentityEndpoint            string            `alloy:"identity_endpoint,attr,optional"`
	Username                    string            `alloy:"username,attr,optional"`
	UserID                      string            `alloy:"userid,attr,optional"`
	Password                    alloytypes.Secret `alloy:"password,attr,optional"`
	ProjectName                 string            `alloy:"project_name,attr,optional"`
	ProjectID                   string            `alloy:"project_id,attr,optional"`
	DomainName                  string            `alloy:"domain_name,attr,optional"`
	DomainID                    string            `alloy:"domain_id,attr,optional"`
	ApplicationCredentialName   string            `alloy:"application_credential_name,attr,optional"`
	ApplicationCredentialID     string            `alloy:"application_credential_id,attr,optional"`
	ApplicationCredentialSecret alloytypes.Secret `alloy:"application_credential_secret,attr,optional"`
	Role                        string            `alloy:"role,attr"`
	Region                      string            `alloy:"region,attr"`
	RefreshInterval             time.Duration     `alloy:"refresh_interval,attr,optional"`
	Port                        int               `alloy:"port,attr,optional"`
	AllTenants                  bool              `alloy:"all_tenants,attr,optional"`
	TLSConfig                   config.TLSConfig  `alloy:"tls_config,block,optional"`
	Availability                string            `alloy:"availability,attr,optional"`
}

func (*Arguments) Convert

func (args *Arguments) Convert() *prom_discovery.SDConfig

func (*Arguments) SetToDefault

func (args *Arguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

func (*Arguments) Validate

func (args *Arguments) Validate() error

Validate implements syntax.Validator.

Jump to

Keyboard shortcuts

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