openstack

package
v0.36.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 9 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            `river:"identity_endpoint,attr,optional"`
	Username                    string            `river:"username,attr,optional"`
	UserID                      string            `river:"userid,attr,optional"`
	Password                    rivertypes.Secret `river:"password,attr,optional"`
	ProjectName                 string            `river:"project_name,attr,optional"`
	ProjectID                   string            `river:"project_id,attr,optional"`
	DomainName                  string            `river:"domain_name,attr,optional"`
	DomainID                    string            `river:"domain_id,attr,optional"`
	ApplicationCredentialName   string            `river:"application_credential_name,attr,optional"`
	ApplicationCredentialID     string            `river:"application_credential_id,attr,optional"`
	ApplicationCredentialSecret rivertypes.Secret `river:"application_credential_secret,attr,optional"`
	Role                        string            `river:"role,attr"`
	Region                      string            `river:"region,attr"`
	RefreshInterval             time.Duration     `river:"refresh_interval,attr,optional"`
	Port                        int               `river:"port,attr,optional"`
	AllTenants                  bool              `river:"all_tenants,attr,optional"`
	TLSConfig                   config.TLSConfig  `river:"tls_config,attr,optional"`
	Availability                string            `river:"availability,attr,optional"`
}

func (*Arguments) Convert

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

func (*Arguments) SetToDefault

func (args *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

func (*Arguments) Validate

func (args *Arguments) Validate() error

Validate implements river.Validator.

Jump to

Keyboard shortcuts

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