// 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 GetProjects(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetProjectsResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetProjectsResult err := ctx.Invoke("dokploy:index/getProjects:getProjects", nil, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of values returned by getProjects. type GetProjectsResult struct { Projects []GetProjectsProject `pulumi:"projects"` } func GetProjectsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetProjectsResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetProjectsResultOutput, error) { options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("dokploy:index/getProjects:getProjects", nil, GetProjectsResultOutput{}, options).(GetProjectsResultOutput), nil }).(GetProjectsResultOutput) } // A collection of values returned by getProjects. type GetProjectsResultOutput struct{ *pulumi.OutputState } func (GetProjectsResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetProjectsResult)(nil)).Elem() } func (o GetProjectsResultOutput) ToGetProjectsResultOutput() GetProjectsResultOutput { return o } func (o GetProjectsResultOutput) ToGetProjectsResultOutputWithContext(ctx context.Context) GetProjectsResultOutput { return o } func (o GetProjectsResultOutput) Projects() GetProjectsProjectArrayOutput { return o.ApplyT(func(v GetProjectsResult) []GetProjectsProject { return v.Projects }).(GetProjectsProjectArrayOutput) } func init() { pulumi.RegisterOutputType(GetProjectsResultOutput{}) }