18 resources and 5 data sources mapped into the dokploy:index module, with SDKs generated for TypeScript, Python, Go and .NET.
58 lines
1.8 KiB
Go
Generated
58 lines
1.8 KiB
Go
Generated
// Code generated by pulumi-language-go DO NOT EDIT.
|
|
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
package dokploy
|
|
|
|
import (
|
|
"context"
|
|
"reflect"
|
|
|
|
"github.com/maxvojtkov/pulumi-dokploy/sdk/go/dokploy/internal"
|
|
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
)
|
|
|
|
func GetServers(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetServersResult, error) {
|
|
opts = internal.PkgInvokeDefaultOpts(opts)
|
|
var rv GetServersResult
|
|
err := ctx.Invoke("dokploy:index/getServers:getServers", nil, &rv, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &rv, nil
|
|
}
|
|
|
|
// A collection of values returned by getServers.
|
|
type GetServersResult struct {
|
|
Servers []GetServersServer `pulumi:"servers"`
|
|
}
|
|
|
|
func GetServersOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetServersResultOutput {
|
|
return pulumi.ToOutput(0).ApplyT(func(int) (GetServersResultOutput, error) {
|
|
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
|
return ctx.InvokeOutput("dokploy:index/getServers:getServers", nil, GetServersResultOutput{}, options).(GetServersResultOutput), nil
|
|
}).(GetServersResultOutput)
|
|
}
|
|
|
|
// A collection of values returned by getServers.
|
|
type GetServersResultOutput struct{ *pulumi.OutputState }
|
|
|
|
func (GetServersResultOutput) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*GetServersResult)(nil)).Elem()
|
|
}
|
|
|
|
func (o GetServersResultOutput) ToGetServersResultOutput() GetServersResultOutput {
|
|
return o
|
|
}
|
|
|
|
func (o GetServersResultOutput) ToGetServersResultOutputWithContext(ctx context.Context) GetServersResultOutput {
|
|
return o
|
|
}
|
|
|
|
func (o GetServersResultOutput) Servers() GetServersServerArrayOutput {
|
|
return o.ApplyT(func(v GetServersResult) []GetServersServer { return v.Servers }).(GetServersServerArrayOutput)
|
|
}
|
|
|
|
func init() {
|
|
pulumi.RegisterOutputType(GetServersResultOutput{})
|
|
}
|