routeros

package
v0.0.0-...-3e34f99 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

A Pulumi package for creating and managing routeros cloud resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type Provider

type Provider struct {
	pulumi.ProviderResourceState

	// Path to MikroTik's certificate authority file.
	CaCertificate pulumi.StringPtrOutput `pulumi:"caCertificate"`
	// URL of the MikroTik router, default is TLS connection to REST. * API: api[s]://host[:port] * api://router.local *
	// apis://router.local:8729 * REST: https://host * https://router.local * router.local * 127.0.0.1 export
	// ROS_HOSTURL=router.local or export MIKROTIK_HOST=router.local
	Hosturl pulumi.StringPtrOutput `pulumi:"hosturl"`
	// Password for the MikroTik user.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// Username for the MikroTik WEB/Winbox. export ROS_USERNAME=admin or export MIKROTIK_USER=admin
	Username pulumi.StringPtrOutput `pulumi:"username"`
}

The provider type for the routeros package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

NewProvider registers a new resource with the given unique name, arguments, and options.

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
	// Path to MikroTik's certificate authority file.
	CaCertificate pulumi.StringPtrInput
	// URL of the MikroTik router, default is TLS connection to REST. * API: api[s]://host[:port] * api://router.local *
	// apis://router.local:8729 * REST: https://host * https://router.local * router.local * 127.0.0.1 export
	// ROS_HOSTURL=router.local or export MIKROTIK_HOST=router.local
	Hosturl pulumi.StringPtrInput
	// Whether to verify the SSL certificate or not.
	Insecure pulumi.BoolPtrInput
	// Password for the MikroTik user.
	Password pulumi.StringPtrInput
	// Username for the MikroTik WEB/Winbox. export ROS_USERNAME=admin or export MIKROTIK_USER=admin
	Username pulumi.StringPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) CaCertificate

func (o ProviderOutput) CaCertificate() pulumi.StringPtrOutput

Path to MikroTik's certificate authority file.

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) Hosturl

URL of the MikroTik router, default is TLS connection to REST. * API: api[s]://host[:port] * api://router.local * apis://router.local:8729 * REST: https://host * https://router.local * router.local * 127.0.0.1 export ROS_HOSTURL=router.local or export MIKROTIK_HOST=router.local

func (ProviderOutput) Password

func (o ProviderOutput) Password() pulumi.StringPtrOutput

Password for the MikroTik user.

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

func (ProviderOutput) Username

func (o ProviderOutput) Username() pulumi.StringPtrOutput

Username for the MikroTik WEB/Winbox. export ROS_USERNAME=admin or export MIKROTIK_USER=admin

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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