config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDevices

func GetDevices(ctx *pulumi.Context) string

This can be used to manage a list of devices from a single provider. All devices must use the same credentials. Each resource and data source has an optional attribute named `device`, which can then select a device by its name from this list.

func GetInsecure

func GetInsecure(ctx *pulumi.Context) bool

Allow insecure HTTPS client. This can also be set as the NXOS_INSECURE environment variable. Defaults to `true`.

func GetPassword

func GetPassword(ctx *pulumi.Context) string

Password for the NX-OS device account. This can also be set as the NXOS_PASSWORD environment variable.

func GetRetries

func GetRetries(ctx *pulumi.Context) int

Number of retries for REST API calls. This can also be set as the NXOS_RETRIES environment variable. Defaults to `3`.

func GetUrl

func GetUrl(ctx *pulumi.Context) string

URL of the Cisco NX-OS device. This can also be set as the NXOS_URL environment variable. If no URL is provided, the URL of the first device from the `devices` list is being used.

func GetUsername

func GetUsername(ctx *pulumi.Context) string

Username for the NX-OS device account. This can also be set as the NXOS_USERNAME environment variable.

Types

type Devices

type Devices struct {
	Name string `pulumi:"name"`
	Url  string `pulumi:"url"`
}

type DevicesArgs

type DevicesArgs struct {
	Name pulumi.StringInput `pulumi:"name"`
	Url  pulumi.StringInput `pulumi:"url"`
}

func (DevicesArgs) ElementType

func (DevicesArgs) ElementType() reflect.Type

func (DevicesArgs) ToDevicesOutput

func (i DevicesArgs) ToDevicesOutput() DevicesOutput

func (DevicesArgs) ToDevicesOutputWithContext

func (i DevicesArgs) ToDevicesOutputWithContext(ctx context.Context) DevicesOutput

func (DevicesArgs) ToOutput

func (i DevicesArgs) ToOutput(ctx context.Context) pulumix.Output[Devices]

type DevicesArray

type DevicesArray []DevicesInput

func (DevicesArray) ElementType

func (DevicesArray) ElementType() reflect.Type

func (DevicesArray) ToDevicesArrayOutput

func (i DevicesArray) ToDevicesArrayOutput() DevicesArrayOutput

func (DevicesArray) ToDevicesArrayOutputWithContext

func (i DevicesArray) ToDevicesArrayOutputWithContext(ctx context.Context) DevicesArrayOutput

func (DevicesArray) ToOutput

func (i DevicesArray) ToOutput(ctx context.Context) pulumix.Output[[]Devices]

type DevicesArrayInput

type DevicesArrayInput interface {
	pulumi.Input

	ToDevicesArrayOutput() DevicesArrayOutput
	ToDevicesArrayOutputWithContext(context.Context) DevicesArrayOutput
}

DevicesArrayInput is an input type that accepts DevicesArray and DevicesArrayOutput values. You can construct a concrete instance of `DevicesArrayInput` via:

DevicesArray{ DevicesArgs{...} }

type DevicesArrayOutput

type DevicesArrayOutput struct{ *pulumi.OutputState }

func (DevicesArrayOutput) ElementType

func (DevicesArrayOutput) ElementType() reflect.Type

func (DevicesArrayOutput) Index

func (DevicesArrayOutput) ToDevicesArrayOutput

func (o DevicesArrayOutput) ToDevicesArrayOutput() DevicesArrayOutput

func (DevicesArrayOutput) ToDevicesArrayOutputWithContext

func (o DevicesArrayOutput) ToDevicesArrayOutputWithContext(ctx context.Context) DevicesArrayOutput

func (DevicesArrayOutput) ToOutput

type DevicesInput

type DevicesInput interface {
	pulumi.Input

	ToDevicesOutput() DevicesOutput
	ToDevicesOutputWithContext(context.Context) DevicesOutput
}

DevicesInput is an input type that accepts DevicesArgs and DevicesOutput values. You can construct a concrete instance of `DevicesInput` via:

DevicesArgs{...}

type DevicesOutput

type DevicesOutput struct{ *pulumi.OutputState }

func (DevicesOutput) ElementType

func (DevicesOutput) ElementType() reflect.Type

func (DevicesOutput) Name

func (DevicesOutput) ToDevicesOutput

func (o DevicesOutput) ToDevicesOutput() DevicesOutput

func (DevicesOutput) ToDevicesOutputWithContext

func (o DevicesOutput) ToDevicesOutputWithContext(ctx context.Context) DevicesOutput

func (DevicesOutput) ToOutput

func (DevicesOutput) Url

Jump to

Keyboard shortcuts

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