linux

package
v0.0.0-...-9802481 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package linux exports types, functions, subpackages for provisioning linux 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 Ipvs

type Ipvs struct {
	pulumi.ResourceState
}

IPVS is used to set up, maintain or inspect the virtual server table in the Linux kernel. The Linux Virtual Server can be used to build scalable network services based on a cluster of two or more nodes. The active node of the cluster redirects service requests to a collection of server hosts that will actually perform the services. Supported features include two protocols (TCP and UDP), three packet-forwarding methods (NAT, tunneling, and direct routing), and eight load balancing algorithms (round robin, weighted round robin, least-connection, weighted least-connection, locality-based least-connection, locality-based least-connection with replication, destination-hashing, and source-hashing). The connection is established via ssh.

func NewIpvs

func NewIpvs(ctx *pulumi.Context,
	name string, args *IpvsArgs, opts ...pulumi.ResourceOption) (*Ipvs, error)

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

func (*Ipvs) ElementType

func (*Ipvs) ElementType() reflect.Type

func (*Ipvs) ToIpvsOutput

func (i *Ipvs) ToIpvsOutput() IpvsOutput

func (*Ipvs) ToIpvsOutputWithContext

func (i *Ipvs) ToIpvsOutputWithContext(ctx context.Context) IpvsOutput

type IpvsArgs

type IpvsArgs struct {
	// Install ipvsadm and modules on target instance
	Provision pulumi.BoolInput
	// The parameters with which to connect to the remote host
	SshConnection SshConnectionInput
}

The set of arguments for constructing a Ipvs resource.

func (IpvsArgs) ElementType

func (IpvsArgs) ElementType() reflect.Type

type IpvsArray

type IpvsArray []IpvsInput

func (IpvsArray) ElementType

func (IpvsArray) ElementType() reflect.Type

func (IpvsArray) ToIpvsArrayOutput

func (i IpvsArray) ToIpvsArrayOutput() IpvsArrayOutput

func (IpvsArray) ToIpvsArrayOutputWithContext

func (i IpvsArray) ToIpvsArrayOutputWithContext(ctx context.Context) IpvsArrayOutput

type IpvsArrayInput

type IpvsArrayInput interface {
	pulumi.Input

	ToIpvsArrayOutput() IpvsArrayOutput
	ToIpvsArrayOutputWithContext(context.Context) IpvsArrayOutput
}

IpvsArrayInput is an input type that accepts IpvsArray and IpvsArrayOutput values. You can construct a concrete instance of `IpvsArrayInput` via:

IpvsArray{ IpvsArgs{...} }

type IpvsArrayOutput

type IpvsArrayOutput struct{ *pulumi.OutputState }

func (IpvsArrayOutput) ElementType

func (IpvsArrayOutput) ElementType() reflect.Type

func (IpvsArrayOutput) Index

func (IpvsArrayOutput) ToIpvsArrayOutput

func (o IpvsArrayOutput) ToIpvsArrayOutput() IpvsArrayOutput

func (IpvsArrayOutput) ToIpvsArrayOutputWithContext

func (o IpvsArrayOutput) ToIpvsArrayOutputWithContext(ctx context.Context) IpvsArrayOutput

type IpvsInput

type IpvsInput interface {
	pulumi.Input

	ToIpvsOutput() IpvsOutput
	ToIpvsOutputWithContext(ctx context.Context) IpvsOutput
}

type IpvsMap

type IpvsMap map[string]IpvsInput

func (IpvsMap) ElementType

func (IpvsMap) ElementType() reflect.Type

func (IpvsMap) ToIpvsMapOutput

func (i IpvsMap) ToIpvsMapOutput() IpvsMapOutput

func (IpvsMap) ToIpvsMapOutputWithContext

func (i IpvsMap) ToIpvsMapOutputWithContext(ctx context.Context) IpvsMapOutput

type IpvsMapInput

type IpvsMapInput interface {
	pulumi.Input

	ToIpvsMapOutput() IpvsMapOutput
	ToIpvsMapOutputWithContext(context.Context) IpvsMapOutput
}

IpvsMapInput is an input type that accepts IpvsMap and IpvsMapOutput values. You can construct a concrete instance of `IpvsMapInput` via:

IpvsMap{ "key": IpvsArgs{...} }

type IpvsMapOutput

type IpvsMapOutput struct{ *pulumi.OutputState }

func (IpvsMapOutput) ElementType

func (IpvsMapOutput) ElementType() reflect.Type

func (IpvsMapOutput) MapIndex

func (IpvsMapOutput) ToIpvsMapOutput

func (o IpvsMapOutput) ToIpvsMapOutput() IpvsMapOutput

func (IpvsMapOutput) ToIpvsMapOutputWithContext

func (o IpvsMapOutput) ToIpvsMapOutputWithContext(ctx context.Context) IpvsMapOutput

type IpvsOutput

type IpvsOutput struct{ *pulumi.OutputState }

func (IpvsOutput) ElementType

func (IpvsOutput) ElementType() reflect.Type

func (IpvsOutput) ToIpvsOutput

func (o IpvsOutput) ToIpvsOutput() IpvsOutput

func (IpvsOutput) ToIpvsOutputWithContext

func (o IpvsOutput) ToIpvsOutputWithContext(ctx context.Context) IpvsOutput

type Provider

type Provider struct {
	pulumi.ProviderResourceState
}

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 {
}

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) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

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

type Random

type Random struct {
	pulumi.CustomResourceState

	Length pulumi.IntOutput    `pulumi:"length"`
	Result pulumi.StringOutput `pulumi:"result"`
}

func GetRandom

func GetRandom(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RandomState, opts ...pulumi.ResourceOption) (*Random, error)

GetRandom gets an existing Random resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRandom

func NewRandom(ctx *pulumi.Context,
	name string, args *RandomArgs, opts ...pulumi.ResourceOption) (*Random, error)

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

func (*Random) ElementType

func (*Random) ElementType() reflect.Type

func (*Random) ToRandomOutput

func (i *Random) ToRandomOutput() RandomOutput

func (*Random) ToRandomOutputWithContext

func (i *Random) ToRandomOutputWithContext(ctx context.Context) RandomOutput

type RandomArgs

type RandomArgs struct {
	Length pulumi.IntInput
}

The set of arguments for constructing a Random resource.

func (RandomArgs) ElementType

func (RandomArgs) ElementType() reflect.Type

type RandomArray

type RandomArray []RandomInput

func (RandomArray) ElementType

func (RandomArray) ElementType() reflect.Type

func (RandomArray) ToRandomArrayOutput

func (i RandomArray) ToRandomArrayOutput() RandomArrayOutput

func (RandomArray) ToRandomArrayOutputWithContext

func (i RandomArray) ToRandomArrayOutputWithContext(ctx context.Context) RandomArrayOutput

type RandomArrayInput

type RandomArrayInput interface {
	pulumi.Input

	ToRandomArrayOutput() RandomArrayOutput
	ToRandomArrayOutputWithContext(context.Context) RandomArrayOutput
}

RandomArrayInput is an input type that accepts RandomArray and RandomArrayOutput values. You can construct a concrete instance of `RandomArrayInput` via:

RandomArray{ RandomArgs{...} }

type RandomArrayOutput

type RandomArrayOutput struct{ *pulumi.OutputState }

func (RandomArrayOutput) ElementType

func (RandomArrayOutput) ElementType() reflect.Type

func (RandomArrayOutput) Index

func (RandomArrayOutput) ToRandomArrayOutput

func (o RandomArrayOutput) ToRandomArrayOutput() RandomArrayOutput

func (RandomArrayOutput) ToRandomArrayOutputWithContext

func (o RandomArrayOutput) ToRandomArrayOutputWithContext(ctx context.Context) RandomArrayOutput

type RandomInput

type RandomInput interface {
	pulumi.Input

	ToRandomOutput() RandomOutput
	ToRandomOutputWithContext(ctx context.Context) RandomOutput
}

type RandomMap

type RandomMap map[string]RandomInput

func (RandomMap) ElementType

func (RandomMap) ElementType() reflect.Type

func (RandomMap) ToRandomMapOutput

func (i RandomMap) ToRandomMapOutput() RandomMapOutput

func (RandomMap) ToRandomMapOutputWithContext

func (i RandomMap) ToRandomMapOutputWithContext(ctx context.Context) RandomMapOutput

type RandomMapInput

type RandomMapInput interface {
	pulumi.Input

	ToRandomMapOutput() RandomMapOutput
	ToRandomMapOutputWithContext(context.Context) RandomMapOutput
}

RandomMapInput is an input type that accepts RandomMap and RandomMapOutput values. You can construct a concrete instance of `RandomMapInput` via:

RandomMap{ "key": RandomArgs{...} }

type RandomMapOutput

type RandomMapOutput struct{ *pulumi.OutputState }

func (RandomMapOutput) ElementType

func (RandomMapOutput) ElementType() reflect.Type

func (RandomMapOutput) MapIndex

func (RandomMapOutput) ToRandomMapOutput

func (o RandomMapOutput) ToRandomMapOutput() RandomMapOutput

func (RandomMapOutput) ToRandomMapOutputWithContext

func (o RandomMapOutput) ToRandomMapOutputWithContext(ctx context.Context) RandomMapOutput

type RandomOutput

type RandomOutput struct{ *pulumi.OutputState }

func (RandomOutput) ElementType

func (RandomOutput) ElementType() reflect.Type

func (RandomOutput) Length

func (o RandomOutput) Length() pulumi.IntOutput

func (RandomOutput) Result

func (o RandomOutput) Result() pulumi.StringOutput

func (RandomOutput) ToRandomOutput

func (o RandomOutput) ToRandomOutput() RandomOutput

func (RandomOutput) ToRandomOutputWithContext

func (o RandomOutput) ToRandomOutputWithContext(ctx context.Context) RandomOutput

type RandomState

type RandomState struct {
}

func (RandomState) ElementType

func (RandomState) ElementType() reflect.Type

type SshConnection

type SshConnection struct {
	// The address of the resource to connect to.
	Host string `pulumi:"host"`
	// The password we should use for the connection.
	Password *string `pulumi:"password"`
	// The port to connect to.
	Port *float64 `pulumi:"port"`
	// The contents of an SSH key to use for the connection. This takes preference over the password if provided.
	PrivateKey *string `pulumi:"privateKey"`
	// The user that we should use for the connection.
	User *string `pulumi:"user"`
}

Instructions for how to connect to a remote endpoint.

func (*SshConnection) Defaults

func (val *SshConnection) Defaults() *SshConnection

Defaults sets the appropriate defaults for SshConnection

type SshConnectionArgs

type SshConnectionArgs struct {
	// The address of the resource to connect to.
	Host pulumi.StringInput `pulumi:"host"`
	// The password we should use for the connection.
	Password pulumi.StringPtrInput `pulumi:"password"`
	// The port to connect to.
	Port pulumi.Float64PtrInput `pulumi:"port"`
	// The contents of an SSH key to use for the connection. This takes preference over the password if provided.
	PrivateKey pulumi.StringPtrInput `pulumi:"privateKey"`
	// The user that we should use for the connection.
	User pulumi.StringPtrInput `pulumi:"user"`
}

Instructions for how to connect to a remote endpoint.

func (*SshConnectionArgs) Defaults

func (val *SshConnectionArgs) Defaults() *SshConnectionArgs

Defaults sets the appropriate defaults for SshConnectionArgs

func (SshConnectionArgs) ElementType

func (SshConnectionArgs) ElementType() reflect.Type

func (SshConnectionArgs) ToSshConnectionOutput

func (i SshConnectionArgs) ToSshConnectionOutput() SshConnectionOutput

func (SshConnectionArgs) ToSshConnectionOutputWithContext

func (i SshConnectionArgs) ToSshConnectionOutputWithContext(ctx context.Context) SshConnectionOutput

type SshConnectionInput

type SshConnectionInput interface {
	pulumi.Input

	ToSshConnectionOutput() SshConnectionOutput
	ToSshConnectionOutputWithContext(context.Context) SshConnectionOutput
}

SshConnectionInput is an input type that accepts SshConnectionArgs and SshConnectionOutput values. You can construct a concrete instance of `SshConnectionInput` via:

SshConnectionArgs{...}

type SshConnectionOutput

type SshConnectionOutput struct{ *pulumi.OutputState }

Instructions for how to connect to a remote endpoint.

func (SshConnectionOutput) ElementType

func (SshConnectionOutput) ElementType() reflect.Type

func (SshConnectionOutput) Host

The address of the resource to connect to.

func (SshConnectionOutput) Password

The password we should use for the connection.

func (SshConnectionOutput) Port

The port to connect to.

func (SshConnectionOutput) PrivateKey

The contents of an SSH key to use for the connection. This takes preference over the password if provided.

func (SshConnectionOutput) ToSshConnectionOutput

func (o SshConnectionOutput) ToSshConnectionOutput() SshConnectionOutput

func (SshConnectionOutput) ToSshConnectionOutputWithContext

func (o SshConnectionOutput) ToSshConnectionOutputWithContext(ctx context.Context) SshConnectionOutput

func (SshConnectionOutput) User

The user that we should use for the connection.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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