str

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

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
}

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 ReplaceArgs

type ReplaceArgs struct {
	New    string `pulumi:"new"`
	Old    string `pulumi:"old"`
	String string `pulumi:"string"`
}

type ReplaceOutputArgs

type ReplaceOutputArgs struct {
	New    pulumi.StringInput `pulumi:"new"`
	Old    pulumi.StringInput `pulumi:"old"`
	String pulumi.StringInput `pulumi:"string"`
}

func (ReplaceOutputArgs) ElementType

func (ReplaceOutputArgs) ElementType() reflect.Type

type ReplaceResult

type ReplaceResult struct {
	Result string `pulumi:"result"`
}

func Replace

func Replace(ctx *pulumi.Context, args *ReplaceArgs, opts ...pulumi.InvokeOption) (*ReplaceResult, error)

Replace returns a copy of the string s with all non-overlapping instances of old replaced by new. If old is empty, it matches at the beginning of the string and after each UTF-8 sequence, yielding up to k+1 replacements for a k-rune string.

type ReplaceResultOutput

type ReplaceResultOutput struct{ *pulumi.OutputState }

func (ReplaceResultOutput) ElementType

func (ReplaceResultOutput) ElementType() reflect.Type

func (ReplaceResultOutput) Result

func (ReplaceResultOutput) ToReplaceResultOutput

func (o ReplaceResultOutput) ToReplaceResultOutput() ReplaceResultOutput

func (ReplaceResultOutput) ToReplaceResultOutputWithContext

func (o ReplaceResultOutput) ToReplaceResultOutputWithContext(ctx context.Context) ReplaceResultOutput

type TrimPrefixArgs

type TrimPrefixArgs struct {
	Prefix string `pulumi:"prefix"`
	String string `pulumi:"string"`
}

type TrimPrefixOutputArgs

type TrimPrefixOutputArgs struct {
	Prefix pulumi.StringInput `pulumi:"prefix"`
	String pulumi.StringInput `pulumi:"string"`
}

func (TrimPrefixOutputArgs) ElementType

func (TrimPrefixOutputArgs) ElementType() reflect.Type

type TrimPrefixResult

type TrimPrefixResult struct {
	Result string `pulumi:"result"`
}

func TrimPrefix

func TrimPrefix(ctx *pulumi.Context, args *TrimPrefixArgs, opts ...pulumi.InvokeOption) (*TrimPrefixResult, error)

Trim a prefix from a string.

type TrimPrefixResultOutput

type TrimPrefixResultOutput struct{ *pulumi.OutputState }

func (TrimPrefixResultOutput) ElementType

func (TrimPrefixResultOutput) ElementType() reflect.Type

func (TrimPrefixResultOutput) Result

func (TrimPrefixResultOutput) ToTrimPrefixResultOutput

func (o TrimPrefixResultOutput) ToTrimPrefixResultOutput() TrimPrefixResultOutput

func (TrimPrefixResultOutput) ToTrimPrefixResultOutputWithContext

func (o TrimPrefixResultOutput) ToTrimPrefixResultOutputWithContext(ctx context.Context) TrimPrefixResultOutput

type TrimSuffixArgs

type TrimSuffixArgs struct {
	String string `pulumi:"string"`
	Suffix string `pulumi:"suffix"`
}

type TrimSuffixOutputArgs

type TrimSuffixOutputArgs struct {
	String pulumi.StringInput `pulumi:"string"`
	Suffix pulumi.StringInput `pulumi:"suffix"`
}

func (TrimSuffixOutputArgs) ElementType

func (TrimSuffixOutputArgs) ElementType() reflect.Type

type TrimSuffixResult

type TrimSuffixResult struct {
	Result string `pulumi:"result"`
}

func TrimSuffix

func TrimSuffix(ctx *pulumi.Context, args *TrimSuffixArgs, opts ...pulumi.InvokeOption) (*TrimSuffixResult, error)

Trim a suffix from a string.

type TrimSuffixResultOutput

type TrimSuffixResultOutput struct{ *pulumi.OutputState }

func (TrimSuffixResultOutput) ElementType

func (TrimSuffixResultOutput) ElementType() reflect.Type

func (TrimSuffixResultOutput) Result

func (TrimSuffixResultOutput) ToTrimSuffixResultOutput

func (o TrimSuffixResultOutput) ToTrimSuffixResultOutput() TrimSuffixResultOutput

func (TrimSuffixResultOutput) ToTrimSuffixResultOutputWithContext

func (o TrimSuffixResultOutput) ToTrimSuffixResultOutputWithContext(ctx context.Context) TrimSuffixResultOutput

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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