154 lines
5.6 KiB
Go
Generated
154 lines
5.6 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 incus
|
|
|
|
import (
|
|
"context"
|
|
"reflect"
|
|
|
|
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
|
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
)
|
|
|
|
// ## # NetworkIntegration
|
|
//
|
|
// Provides information about an Incus network integration.
|
|
// See Incus network integration [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/) for more details.
|
|
//
|
|
// ## Example Usage
|
|
//
|
|
// ```go
|
|
// package main
|
|
//
|
|
// import (
|
|
//
|
|
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
|
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
//
|
|
// )
|
|
//
|
|
// func main() {
|
|
// pulumi.Run(func(ctx *pulumi.Context) error {
|
|
// this, err := incus.LookupNetworkIntegration(ctx, &incus.LookupNetworkIntegrationArgs{
|
|
// Name: "default",
|
|
// }, nil)
|
|
// if err != nil {
|
|
// return err
|
|
// }
|
|
// ctx.Export("networkIntegrationName", this.Name)
|
|
// return nil
|
|
// })
|
|
// }
|
|
//
|
|
// ```
|
|
func LookupNetworkIntegration(ctx *pulumi.Context, args *LookupNetworkIntegrationArgs, opts ...pulumi.InvokeOption) (*LookupNetworkIntegrationResult, error) {
|
|
opts = internal.PkgInvokeDefaultOpts(opts)
|
|
var rv LookupNetworkIntegrationResult
|
|
err := ctx.Invoke("incus:index/getNetworkIntegration:getNetworkIntegration", args, &rv, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &rv, nil
|
|
}
|
|
|
|
// A collection of arguments for invoking getNetworkIntegration.
|
|
type LookupNetworkIntegrationArgs struct {
|
|
// Description of the network integration.
|
|
Description *string `pulumi:"description"`
|
|
// **Required** - Name of the network integration.
|
|
Name string `pulumi:"name"`
|
|
// *Optional* - The remote in which the resource was created. If
|
|
// not provided, the provider's default remote will be used.
|
|
Remote *string `pulumi:"remote"`
|
|
// Integration type.
|
|
Type *string `pulumi:"type"`
|
|
}
|
|
|
|
// A collection of values returned by getNetworkIntegration.
|
|
type LookupNetworkIntegrationResult struct {
|
|
// Map of key/value pairs of config settings.
|
|
Config map[string]string `pulumi:"config"`
|
|
// Description of the network integration.
|
|
Description string `pulumi:"description"`
|
|
// The provider-assigned unique ID for this managed resource.
|
|
Id string `pulumi:"id"`
|
|
Name string `pulumi:"name"`
|
|
Remote *string `pulumi:"remote"`
|
|
// Integration type.
|
|
Type string `pulumi:"type"`
|
|
}
|
|
|
|
func LookupNetworkIntegrationOutput(ctx *pulumi.Context, args LookupNetworkIntegrationOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkIntegrationResultOutput {
|
|
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
|
ApplyT(func(v interface{}) (LookupNetworkIntegrationResultOutput, error) {
|
|
args := v.(LookupNetworkIntegrationArgs)
|
|
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
|
return ctx.InvokeOutput("incus:index/getNetworkIntegration:getNetworkIntegration", args, LookupNetworkIntegrationResultOutput{}, options).(LookupNetworkIntegrationResultOutput), nil
|
|
}).(LookupNetworkIntegrationResultOutput)
|
|
}
|
|
|
|
// A collection of arguments for invoking getNetworkIntegration.
|
|
type LookupNetworkIntegrationOutputArgs struct {
|
|
// Description of the network integration.
|
|
Description pulumi.StringPtrInput `pulumi:"description"`
|
|
// **Required** - Name of the network integration.
|
|
Name pulumi.StringInput `pulumi:"name"`
|
|
// *Optional* - The remote in which the resource was created. If
|
|
// not provided, the provider's default remote will be used.
|
|
Remote pulumi.StringPtrInput `pulumi:"remote"`
|
|
// Integration type.
|
|
Type pulumi.StringPtrInput `pulumi:"type"`
|
|
}
|
|
|
|
func (LookupNetworkIntegrationOutputArgs) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*LookupNetworkIntegrationArgs)(nil)).Elem()
|
|
}
|
|
|
|
// A collection of values returned by getNetworkIntegration.
|
|
type LookupNetworkIntegrationResultOutput struct{ *pulumi.OutputState }
|
|
|
|
func (LookupNetworkIntegrationResultOutput) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*LookupNetworkIntegrationResult)(nil)).Elem()
|
|
}
|
|
|
|
func (o LookupNetworkIntegrationResultOutput) ToLookupNetworkIntegrationResultOutput() LookupNetworkIntegrationResultOutput {
|
|
return o
|
|
}
|
|
|
|
func (o LookupNetworkIntegrationResultOutput) ToLookupNetworkIntegrationResultOutputWithContext(ctx context.Context) LookupNetworkIntegrationResultOutput {
|
|
return o
|
|
}
|
|
|
|
// Map of key/value pairs of config settings.
|
|
func (o LookupNetworkIntegrationResultOutput) Config() pulumi.StringMapOutput {
|
|
return o.ApplyT(func(v LookupNetworkIntegrationResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
|
}
|
|
|
|
// Description of the network integration.
|
|
func (o LookupNetworkIntegrationResultOutput) Description() pulumi.StringOutput {
|
|
return o.ApplyT(func(v LookupNetworkIntegrationResult) string { return v.Description }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// The provider-assigned unique ID for this managed resource.
|
|
func (o LookupNetworkIntegrationResultOutput) Id() pulumi.StringOutput {
|
|
return o.ApplyT(func(v LookupNetworkIntegrationResult) string { return v.Id }).(pulumi.StringOutput)
|
|
}
|
|
|
|
func (o LookupNetworkIntegrationResultOutput) Name() pulumi.StringOutput {
|
|
return o.ApplyT(func(v LookupNetworkIntegrationResult) string { return v.Name }).(pulumi.StringOutput)
|
|
}
|
|
|
|
func (o LookupNetworkIntegrationResultOutput) Remote() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v LookupNetworkIntegrationResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Integration type.
|
|
func (o LookupNetworkIntegrationResultOutput) Type() pulumi.StringOutput {
|
|
return o.ApplyT(func(v LookupNetworkIntegrationResult) string { return v.Type }).(pulumi.StringOutput)
|
|
}
|
|
|
|
func init() {
|
|
pulumi.RegisterOutputType(LookupNetworkIntegrationResultOutput{})
|
|
}
|