Bridge terraform-provider-dokploy into a Pulumi provider
18 resources and 5 data sources mapped into the dokploy:index module, with SDKs generated for TypeScript, Python, Go and .NET.
This commit is contained in:
113
sdk/go/dokploy/getApplication.go
generated
Normal file
113
sdk/go/dokploy/getApplication.go
generated
Normal file
@@ -0,0 +1,113 @@
|
||||
// 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 LookupApplication(ctx *pulumi.Context, args *LookupApplicationArgs, opts ...pulumi.InvokeOption) (*LookupApplicationResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv LookupApplicationResult
|
||||
err := ctx.Invoke("dokploy:index/getApplication:getApplication", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getApplication.
|
||||
type LookupApplicationArgs struct {
|
||||
Id string `pulumi:"id"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getApplication.
|
||||
type LookupApplicationResult struct {
|
||||
AppName string `pulumi:"appName"`
|
||||
ApplicationStatus string `pulumi:"applicationStatus"`
|
||||
BuildType string `pulumi:"buildType"`
|
||||
CreatedAt string `pulumi:"createdAt"`
|
||||
Description string `pulumi:"description"`
|
||||
EnvironmentId string `pulumi:"environmentId"`
|
||||
Id string `pulumi:"id"`
|
||||
Name string `pulumi:"name"`
|
||||
SourceType string `pulumi:"sourceType"`
|
||||
}
|
||||
|
||||
func LookupApplicationOutput(ctx *pulumi.Context, args LookupApplicationOutputArgs, opts ...pulumi.InvokeOption) LookupApplicationResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (LookupApplicationResultOutput, error) {
|
||||
args := v.(LookupApplicationArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("dokploy:index/getApplication:getApplication", args, LookupApplicationResultOutput{}, options).(LookupApplicationResultOutput), nil
|
||||
}).(LookupApplicationResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getApplication.
|
||||
type LookupApplicationOutputArgs struct {
|
||||
Id pulumi.StringInput `pulumi:"id"`
|
||||
}
|
||||
|
||||
func (LookupApplicationOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupApplicationArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getApplication.
|
||||
type LookupApplicationResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (LookupApplicationResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupApplicationResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o LookupApplicationResultOutput) ToLookupApplicationResultOutput() LookupApplicationResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o LookupApplicationResultOutput) ToLookupApplicationResultOutputWithContext(ctx context.Context) LookupApplicationResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o LookupApplicationResultOutput) AppName() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.AppName }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupApplicationResultOutput) ApplicationStatus() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.ApplicationStatus }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupApplicationResultOutput) BuildType() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.BuildType }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupApplicationResultOutput) CreatedAt() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.CreatedAt }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupApplicationResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupApplicationResultOutput) EnvironmentId() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.EnvironmentId }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupApplicationResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupApplicationResultOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.Name }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupApplicationResultOutput) SourceType() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupApplicationResult) string { return v.SourceType }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(LookupApplicationResultOutput{})
|
||||
}
|
||||
Reference in New Issue
Block a user