openstack

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 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

This section is empty.

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() discovery.DiscovererConfig

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