Documentation
¶
Index ¶
- Constants
- Variables
- func BoolRef(v bool) *bool
- func DeferredOutput[T any](ctx context.Context) (codeinfrax.Output[T], func(Output))
- func Float64Ref(v float64) *float64
- func IntRef(v int) *int
- func IsSecret(o Output) bool
- func RegisterInputType(interfaceType reflect.Type, input Input)
- func RegisterOutputType(output Output)
- func RegisterPackage(info PackageInfo)
- func RegisterResourceModule(pkg, mod string, module ResourceModule)
- func RegisterResourcePackage(pkg string, resourcePackage ResourcePackage)
- func Run(body RunFunc, opts ...RunOption)
- func RunErr(body RunFunc, opts ...RunOption) error
- func RunWithContext(ctx *Context, body RunFunc) error
- func StringRef(v string) *string
- type Alias
- type AnyOutput
- func (a AnyOutput) AsArchiveArrayArrayOutput() ArchiveArrayArrayOutput
- func (a AnyOutput) AsArchiveArrayMapOutput() ArchiveArrayMapOutput
- func (a AnyOutput) AsArchiveArrayOutput() ArchiveArrayOutput
- func (a AnyOutput) AsArchiveMapArrayOutput() ArchiveMapArrayOutput
- func (a AnyOutput) AsArchiveMapMapOutput() ArchiveMapMapOutput
- func (a AnyOutput) AsArchiveMapOutput() ArchiveMapOutput
- func (a AnyOutput) AsArchiveOutput() ArchiveOutput
- func (a AnyOutput) AsArrayArrayMapOutput() ArrayArrayMapOutput
- func (a AnyOutput) AsArrayArrayOutput() ArrayArrayOutput
- func (a AnyOutput) AsArrayMapOutput() ArrayMapOutput
- func (a AnyOutput) AsArrayOutput() ArrayOutput
- func (a AnyOutput) AsAssetArrayArrayOutput() AssetArrayArrayOutput
- func (a AnyOutput) AsAssetArrayMapOutput() AssetArrayMapOutput
- func (a AnyOutput) AsAssetArrayOutput() AssetArrayOutput
- func (a AnyOutput) AsAssetMapArrayOutput() AssetMapArrayOutput
- func (a AnyOutput) AsAssetMapMapOutput() AssetMapMapOutput
- func (a AnyOutput) AsAssetMapOutput() AssetMapOutput
- func (a AnyOutput) AsAssetOrArchiveArrayArrayOutput() AssetOrArchiveArrayArrayOutput
- func (a AnyOutput) AsAssetOrArchiveArrayMapOutput() AssetOrArchiveArrayMapOutput
- func (a AnyOutput) AsAssetOrArchiveArrayOutput() AssetOrArchiveArrayOutput
- func (a AnyOutput) AsAssetOrArchiveMapArrayOutput() AssetOrArchiveMapArrayOutput
- func (a AnyOutput) AsAssetOrArchiveMapMapOutput() AssetOrArchiveMapMapOutput
- func (a AnyOutput) AsAssetOrArchiveMapOutput() AssetOrArchiveMapOutput
- func (a AnyOutput) AsAssetOrArchiveOutput() AssetOrArchiveOutput
- func (a AnyOutput) AsAssetOutput() AssetOutput
- func (a AnyOutput) AsBoolArrayArrayOutput() BoolArrayArrayOutput
- func (a AnyOutput) AsBoolArrayMapOutput() BoolArrayMapOutput
- func (a AnyOutput) AsBoolArrayOutput() BoolArrayOutput
- func (a AnyOutput) AsBoolMapArrayOutput() BoolMapArrayOutput
- func (a AnyOutput) AsBoolMapMapOutput() BoolMapMapOutput
- func (a AnyOutput) AsBoolMapOutput() BoolMapOutput
- func (a AnyOutput) AsBoolOutput() BoolOutput
- func (a AnyOutput) AsBoolPtrOutput() BoolPtrOutput
- func (a AnyOutput) AsFloat64ArrayArrayOutput() Float64ArrayArrayOutput
- func (a AnyOutput) AsFloat64ArrayMapOutput() Float64ArrayMapOutput
- func (a AnyOutput) AsFloat64ArrayOutput() Float64ArrayOutput
- func (a AnyOutput) AsFloat64MapArrayOutput() Float64MapArrayOutput
- func (a AnyOutput) AsFloat64MapMapOutput() Float64MapMapOutput
- func (a AnyOutput) AsFloat64MapOutput() Float64MapOutput
- func (a AnyOutput) AsFloat64Output() Float64Output
- func (a AnyOutput) AsFloat64PtrOutput() Float64PtrOutput
- func (a AnyOutput) AsIDArrayArrayOutput() IDArrayArrayOutput
- func (a AnyOutput) AsIDArrayMapOutput() IDArrayMapOutput
- func (a AnyOutput) AsIDArrayOutput() IDArrayOutput
- func (a AnyOutput) AsIDMapArrayOutput() IDMapArrayOutput
- func (a AnyOutput) AsIDMapMapOutput() IDMapMapOutput
- func (a AnyOutput) AsIDMapOutput() IDMapOutput
- func (a AnyOutput) AsIDOutput() IDOutput
- func (a AnyOutput) AsIDPtrOutput() IDPtrOutput
- func (a AnyOutput) AsIntArrayArrayOutput() IntArrayArrayOutput
- func (a AnyOutput) AsIntArrayMapOutput() IntArrayMapOutput
- func (a AnyOutput) AsIntArrayOutput() IntArrayOutput
- func (a AnyOutput) AsIntMapArrayOutput() IntMapArrayOutput
- func (a AnyOutput) AsIntMapMapOutput() IntMapMapOutput
- func (a AnyOutput) AsIntMapOutput() IntMapOutput
- func (a AnyOutput) AsIntOutput() IntOutput
- func (a AnyOutput) AsIntPtrOutput() IntPtrOutput
- func (a AnyOutput) AsMapArrayOutput() MapArrayOutput
- func (a AnyOutput) AsMapMapOutput() MapMapOutput
- func (a AnyOutput) AsMapOutput() MapOutput
- func (a AnyOutput) AsStringArrayArrayOutput() StringArrayArrayOutput
- func (a AnyOutput) AsStringArrayMapOutput() StringArrayMapOutput
- func (a AnyOutput) AsStringArrayOutput() StringArrayOutput
- func (a AnyOutput) AsStringMapArrayOutput() StringMapArrayOutput
- func (a AnyOutput) AsStringMapMapMapOutput() StringMapMapMapOutput
- func (a AnyOutput) AsStringMapMapOutput() StringMapMapOutput
- func (a AnyOutput) AsStringMapOutput() StringMapOutput
- func (a AnyOutput) AsStringOutput() StringOutput
- func (a AnyOutput) AsStringPtrOutput() StringPtrOutput
- func (a AnyOutput) AsURNArrayArrayOutput() URNArrayArrayOutput
- func (a AnyOutput) AsURNArrayMapOutput() URNArrayMapOutput
- func (a AnyOutput) AsURNArrayOutput() URNArrayOutput
- func (a AnyOutput) AsURNMapArrayOutput() URNMapArrayOutput
- func (a AnyOutput) AsURNMapMapOutput() URNMapMapOutput
- func (a AnyOutput) AsURNMapOutput() URNMapOutput
- func (a AnyOutput) AsURNOutput() URNOutput
- func (a AnyOutput) AsURNPtrOutput() URNPtrOutput
- func (AnyOutput) ElementType() reflect.Type
- func (AnyOutput) MarshalJSON() ([]byte, error)
- func (o AnyOutput) ToOutput(context.Context) codeinfrax.Output[any]
- type Archive
- type ArchiveArray
- type ArchiveArrayArray
- func (ArchiveArrayArray) ElementType() reflect.Type
- func (in ArchiveArrayArray) ToArchiveArrayArrayOutput() ArchiveArrayArrayOutput
- func (in ArchiveArrayArray) ToArchiveArrayArrayOutputWithContext(ctx context.Context) ArchiveArrayArrayOutput
- func (in ArchiveArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]Archive]
- type ArchiveArrayArrayInput
- type ArchiveArrayArrayOutput
- func (ArchiveArrayArrayOutput) ElementType() reflect.Type
- func (o ArchiveArrayArrayOutput) Index(i IntInput) ArchiveArrayOutput
- func (ArchiveArrayArrayOutput) MarshalJSON() ([]byte, error)
- func (o ArchiveArrayArrayOutput) ToArchiveArrayArrayOutput() ArchiveArrayArrayOutput
- func (o ArchiveArrayArrayOutput) ToArchiveArrayArrayOutputWithContext(ctx context.Context) ArchiveArrayArrayOutput
- func (o ArchiveArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]Archive]
- type ArchiveArrayInput
- type ArchiveArrayMap
- func (ArchiveArrayMap) ElementType() reflect.Type
- func (in ArchiveArrayMap) ToArchiveArrayMapOutput() ArchiveArrayMapOutput
- func (in ArchiveArrayMap) ToArchiveArrayMapOutputWithContext(ctx context.Context) ArchiveArrayMapOutput
- func (in ArchiveArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]Archive]
- type ArchiveArrayMapInput
- type ArchiveArrayMapOutput
- func (ArchiveArrayMapOutput) ElementType() reflect.Type
- func (o ArchiveArrayMapOutput) MapIndex(k StringInput) ArchiveArrayOutput
- func (ArchiveArrayMapOutput) MarshalJSON() ([]byte, error)
- func (o ArchiveArrayMapOutput) ToArchiveArrayMapOutput() ArchiveArrayMapOutput
- func (o ArchiveArrayMapOutput) ToArchiveArrayMapOutputWithContext(ctx context.Context) ArchiveArrayMapOutput
- func (o ArchiveArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]Archive]
- type ArchiveArrayOutput
- func (ArchiveArrayOutput) ElementType() reflect.Type
- func (o ArchiveArrayOutput) Index(i IntInput) ArchiveOutput
- func (ArchiveArrayOutput) MarshalJSON() ([]byte, error)
- func (o ArchiveArrayOutput) ToArchiveArrayOutput() ArchiveArrayOutput
- func (o ArchiveArrayOutput) ToArchiveArrayOutputWithContext(ctx context.Context) ArchiveArrayOutput
- func (o ArchiveArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]Archive]
- type ArchiveInput
- type ArchiveMap
- type ArchiveMapArray
- func (ArchiveMapArray) ElementType() reflect.Type
- func (in ArchiveMapArray) ToArchiveMapArrayOutput() ArchiveMapArrayOutput
- func (in ArchiveMapArray) ToArchiveMapArrayOutputWithContext(ctx context.Context) ArchiveMapArrayOutput
- func (in ArchiveMapArray) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]Archive]
- type ArchiveMapArrayInput
- type ArchiveMapArrayOutput
- func (ArchiveMapArrayOutput) ElementType() reflect.Type
- func (o ArchiveMapArrayOutput) Index(i IntInput) ArchiveMapOutput
- func (ArchiveMapArrayOutput) MarshalJSON() ([]byte, error)
- func (o ArchiveMapArrayOutput) ToArchiveMapArrayOutput() ArchiveMapArrayOutput
- func (o ArchiveMapArrayOutput) ToArchiveMapArrayOutputWithContext(ctx context.Context) ArchiveMapArrayOutput
- func (o ArchiveMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]Archive]
- type ArchiveMapInput
- type ArchiveMapMap
- func (ArchiveMapMap) ElementType() reflect.Type
- func (in ArchiveMapMap) ToArchiveMapMapOutput() ArchiveMapMapOutput
- func (in ArchiveMapMap) ToArchiveMapMapOutputWithContext(ctx context.Context) ArchiveMapMapOutput
- func (in ArchiveMapMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]Archive]
- type ArchiveMapMapInput
- type ArchiveMapMapOutput
- func (ArchiveMapMapOutput) ElementType() reflect.Type
- func (o ArchiveMapMapOutput) MapIndex(k StringInput) ArchiveMapOutput
- func (ArchiveMapMapOutput) MarshalJSON() ([]byte, error)
- func (o ArchiveMapMapOutput) ToArchiveMapMapOutput() ArchiveMapMapOutput
- func (o ArchiveMapMapOutput) ToArchiveMapMapOutputWithContext(ctx context.Context) ArchiveMapMapOutput
- func (o ArchiveMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]Archive]
- type ArchiveMapOutput
- func (ArchiveMapOutput) ElementType() reflect.Type
- func (o ArchiveMapOutput) MapIndex(k StringInput) ArchiveOutput
- func (ArchiveMapOutput) MarshalJSON() ([]byte, error)
- func (o ArchiveMapOutput) ToArchiveMapOutput() ArchiveMapOutput
- func (o ArchiveMapOutput) ToArchiveMapOutputWithContext(ctx context.Context) ArchiveMapOutput
- func (o ArchiveMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]Archive]
- type ArchiveOutput
- func (ArchiveOutput) ElementType() reflect.Type
- func (ArchiveOutput) MarshalJSON() ([]byte, error)
- func (o ArchiveOutput) ToArchiveOutput() ArchiveOutput
- func (o ArchiveOutput) ToArchiveOutputWithContext(ctx context.Context) ArchiveOutput
- func (o ArchiveOutput) ToAssetOrArchiveOutput() AssetOrArchiveOutput
- func (o ArchiveOutput) ToAssetOrArchiveOutputWithContext(ctx context.Context) AssetOrArchiveOutput
- func (o ArchiveOutput) ToOutput(ctx context.Context) codeinfrax.Output[Archive]
- type Array
- type ArrayArray
- type ArrayArrayInput
- type ArrayArrayMap
- func (ArrayArrayMap) ElementType() reflect.Type
- func (in ArrayArrayMap) ToArrayArrayMapOutput() ArrayArrayMapOutput
- func (in ArrayArrayMap) ToArrayArrayMapOutputWithContext(ctx context.Context) ArrayArrayMapOutput
- func (in ArrayArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][][]interface{}]
- type ArrayArrayMapInput
- type ArrayArrayMapOutput
- func (ArrayArrayMapOutput) ElementType() reflect.Type
- func (o ArrayArrayMapOutput) MapIndex(k StringInput) ArrayArrayOutput
- func (ArrayArrayMapOutput) MarshalJSON() ([]byte, error)
- func (o ArrayArrayMapOutput) ToArrayArrayMapOutput() ArrayArrayMapOutput
- func (o ArrayArrayMapOutput) ToArrayArrayMapOutputWithContext(ctx context.Context) ArrayArrayMapOutput
- func (o ArrayArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][][]interface{}]
- type ArrayArrayOutput
- func (ArrayArrayOutput) ElementType() reflect.Type
- func (o ArrayArrayOutput) Index(i IntInput) ArrayOutput
- func (ArrayArrayOutput) MarshalJSON() ([]byte, error)
- func (o ArrayArrayOutput) ToArrayArrayOutput() ArrayArrayOutput
- func (o ArrayArrayOutput) ToArrayArrayOutputWithContext(ctx context.Context) ArrayArrayOutput
- func (o ArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]interface{}]
- type ArrayInput
- type ArrayMap
- type ArrayMapInput
- type ArrayMapOutput
- func (ArrayMapOutput) ElementType() reflect.Type
- func (o ArrayMapOutput) MapIndex(k StringInput) ArrayOutput
- func (ArrayMapOutput) MarshalJSON() ([]byte, error)
- func (o ArrayMapOutput) ToArrayMapOutput() ArrayMapOutput
- func (o ArrayMapOutput) ToArrayMapOutputWithContext(ctx context.Context) ArrayMapOutput
- func (o ArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]interface{}]
- type ArrayOutput
- func (ArrayOutput) ElementType() reflect.Type
- func (o ArrayOutput) Index(i IntInput) Output
- func (ArrayOutput) MarshalJSON() ([]byte, error)
- func (o ArrayOutput) ToArrayOutput() ArrayOutput
- func (o ArrayOutput) ToArrayOutputWithContext(ctx context.Context) ArrayOutput
- func (o ArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]interface{}]
- type Asset
- type AssetArray
- type AssetArrayArray
- func (AssetArrayArray) ElementType() reflect.Type
- func (in AssetArrayArray) ToAssetArrayArrayOutput() AssetArrayArrayOutput
- func (in AssetArrayArray) ToAssetArrayArrayOutputWithContext(ctx context.Context) AssetArrayArrayOutput
- func (in AssetArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]Asset]
- type AssetArrayArrayInput
- type AssetArrayArrayOutput
- func (AssetArrayArrayOutput) ElementType() reflect.Type
- func (o AssetArrayArrayOutput) Index(i IntInput) AssetArrayOutput
- func (AssetArrayArrayOutput) MarshalJSON() ([]byte, error)
- func (o AssetArrayArrayOutput) ToAssetArrayArrayOutput() AssetArrayArrayOutput
- func (o AssetArrayArrayOutput) ToAssetArrayArrayOutputWithContext(ctx context.Context) AssetArrayArrayOutput
- func (o AssetArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]Asset]
- type AssetArrayInput
- type AssetArrayMap
- func (AssetArrayMap) ElementType() reflect.Type
- func (in AssetArrayMap) ToAssetArrayMapOutput() AssetArrayMapOutput
- func (in AssetArrayMap) ToAssetArrayMapOutputWithContext(ctx context.Context) AssetArrayMapOutput
- func (in AssetArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]Asset]
- type AssetArrayMapInput
- type AssetArrayMapOutput
- func (AssetArrayMapOutput) ElementType() reflect.Type
- func (o AssetArrayMapOutput) MapIndex(k StringInput) AssetArrayOutput
- func (AssetArrayMapOutput) MarshalJSON() ([]byte, error)
- func (o AssetArrayMapOutput) ToAssetArrayMapOutput() AssetArrayMapOutput
- func (o AssetArrayMapOutput) ToAssetArrayMapOutputWithContext(ctx context.Context) AssetArrayMapOutput
- func (o AssetArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]Asset]
- type AssetArrayOutput
- func (AssetArrayOutput) ElementType() reflect.Type
- func (o AssetArrayOutput) Index(i IntInput) AssetOutput
- func (AssetArrayOutput) MarshalJSON() ([]byte, error)
- func (o AssetArrayOutput) ToAssetArrayOutput() AssetArrayOutput
- func (o AssetArrayOutput) ToAssetArrayOutputWithContext(ctx context.Context) AssetArrayOutput
- func (o AssetArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]Asset]
- type AssetInput
- type AssetMap
- type AssetMapArray
- func (AssetMapArray) ElementType() reflect.Type
- func (in AssetMapArray) ToAssetMapArrayOutput() AssetMapArrayOutput
- func (in AssetMapArray) ToAssetMapArrayOutputWithContext(ctx context.Context) AssetMapArrayOutput
- func (in AssetMapArray) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]Asset]
- type AssetMapArrayInput
- type AssetMapArrayOutput
- func (AssetMapArrayOutput) ElementType() reflect.Type
- func (o AssetMapArrayOutput) Index(i IntInput) AssetMapOutput
- func (AssetMapArrayOutput) MarshalJSON() ([]byte, error)
- func (o AssetMapArrayOutput) ToAssetMapArrayOutput() AssetMapArrayOutput
- func (o AssetMapArrayOutput) ToAssetMapArrayOutputWithContext(ctx context.Context) AssetMapArrayOutput
- func (o AssetMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]Asset]
- type AssetMapInput
- type AssetMapMap
- type AssetMapMapInput
- type AssetMapMapOutput
- func (AssetMapMapOutput) ElementType() reflect.Type
- func (o AssetMapMapOutput) MapIndex(k StringInput) AssetMapOutput
- func (AssetMapMapOutput) MarshalJSON() ([]byte, error)
- func (o AssetMapMapOutput) ToAssetMapMapOutput() AssetMapMapOutput
- func (o AssetMapMapOutput) ToAssetMapMapOutputWithContext(ctx context.Context) AssetMapMapOutput
- func (o AssetMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]Asset]
- type AssetMapOutput
- func (AssetMapOutput) ElementType() reflect.Type
- func (o AssetMapOutput) MapIndex(k StringInput) AssetOutput
- func (AssetMapOutput) MarshalJSON() ([]byte, error)
- func (o AssetMapOutput) ToAssetMapOutput() AssetMapOutput
- func (o AssetMapOutput) ToAssetMapOutputWithContext(ctx context.Context) AssetMapOutput
- func (o AssetMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]Asset]
- type AssetOrArchive
- type AssetOrArchiveArray
- func (AssetOrArchiveArray) ElementType() reflect.Type
- func (in AssetOrArchiveArray) ToAssetOrArchiveArrayOutput() AssetOrArchiveArrayOutput
- func (in AssetOrArchiveArray) ToAssetOrArchiveArrayOutputWithContext(ctx context.Context) AssetOrArchiveArrayOutput
- func (in AssetOrArchiveArray) ToOutput(ctx context.Context) codeinfrax.Output[[]AssetOrArchive]
- type AssetOrArchiveArrayArray
- func (AssetOrArchiveArrayArray) ElementType() reflect.Type
- func (in AssetOrArchiveArrayArray) ToAssetOrArchiveArrayArrayOutput() AssetOrArchiveArrayArrayOutput
- func (in AssetOrArchiveArrayArray) ToAssetOrArchiveArrayArrayOutputWithContext(ctx context.Context) AssetOrArchiveArrayArrayOutput
- func (in AssetOrArchiveArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]AssetOrArchive]
- type AssetOrArchiveArrayArrayInput
- type AssetOrArchiveArrayArrayOutput
- func (AssetOrArchiveArrayArrayOutput) ElementType() reflect.Type
- func (o AssetOrArchiveArrayArrayOutput) Index(i IntInput) AssetOrArchiveArrayOutput
- func (AssetOrArchiveArrayArrayOutput) MarshalJSON() ([]byte, error)
- func (o AssetOrArchiveArrayArrayOutput) ToAssetOrArchiveArrayArrayOutput() AssetOrArchiveArrayArrayOutput
- func (o AssetOrArchiveArrayArrayOutput) ToAssetOrArchiveArrayArrayOutputWithContext(ctx context.Context) AssetOrArchiveArrayArrayOutput
- func (o AssetOrArchiveArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]AssetOrArchive]
- type AssetOrArchiveArrayInput
- type AssetOrArchiveArrayMap
- func (AssetOrArchiveArrayMap) ElementType() reflect.Type
- func (in AssetOrArchiveArrayMap) ToAssetOrArchiveArrayMapOutput() AssetOrArchiveArrayMapOutput
- func (in AssetOrArchiveArrayMap) ToAssetOrArchiveArrayMapOutputWithContext(ctx context.Context) AssetOrArchiveArrayMapOutput
- func (in AssetOrArchiveArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]AssetOrArchive]
- type AssetOrArchiveArrayMapInput
- type AssetOrArchiveArrayMapOutput
- func (AssetOrArchiveArrayMapOutput) ElementType() reflect.Type
- func (o AssetOrArchiveArrayMapOutput) MapIndex(k StringInput) AssetOrArchiveArrayOutput
- func (AssetOrArchiveArrayMapOutput) MarshalJSON() ([]byte, error)
- func (o AssetOrArchiveArrayMapOutput) ToAssetOrArchiveArrayMapOutput() AssetOrArchiveArrayMapOutput
- func (o AssetOrArchiveArrayMapOutput) ToAssetOrArchiveArrayMapOutputWithContext(ctx context.Context) AssetOrArchiveArrayMapOutput
- func (o AssetOrArchiveArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]AssetOrArchive]
- type AssetOrArchiveArrayOutput
- func (AssetOrArchiveArrayOutput) ElementType() reflect.Type
- func (o AssetOrArchiveArrayOutput) Index(i IntInput) AssetOrArchiveOutput
- func (AssetOrArchiveArrayOutput) MarshalJSON() ([]byte, error)
- func (o AssetOrArchiveArrayOutput) ToAssetOrArchiveArrayOutput() AssetOrArchiveArrayOutput
- func (o AssetOrArchiveArrayOutput) ToAssetOrArchiveArrayOutputWithContext(ctx context.Context) AssetOrArchiveArrayOutput
- func (o AssetOrArchiveArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]AssetOrArchive]
- type AssetOrArchiveInput
- type AssetOrArchiveMap
- func (AssetOrArchiveMap) ElementType() reflect.Type
- func (in AssetOrArchiveMap) ToAssetOrArchiveMapOutput() AssetOrArchiveMapOutput
- func (in AssetOrArchiveMap) ToAssetOrArchiveMapOutputWithContext(ctx context.Context) AssetOrArchiveMapOutput
- func (in AssetOrArchiveMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]AssetOrArchive]
- type AssetOrArchiveMapArray
- func (AssetOrArchiveMapArray) ElementType() reflect.Type
- func (in AssetOrArchiveMapArray) ToAssetOrArchiveMapArrayOutput() AssetOrArchiveMapArrayOutput
- func (in AssetOrArchiveMapArray) ToAssetOrArchiveMapArrayOutputWithContext(ctx context.Context) AssetOrArchiveMapArrayOutput
- func (in AssetOrArchiveMapArray) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]AssetOrArchive]
- type AssetOrArchiveMapArrayInput
- type AssetOrArchiveMapArrayOutput
- func (AssetOrArchiveMapArrayOutput) ElementType() reflect.Type
- func (o AssetOrArchiveMapArrayOutput) Index(i IntInput) AssetOrArchiveMapOutput
- func (AssetOrArchiveMapArrayOutput) MarshalJSON() ([]byte, error)
- func (o AssetOrArchiveMapArrayOutput) ToAssetOrArchiveMapArrayOutput() AssetOrArchiveMapArrayOutput
- func (o AssetOrArchiveMapArrayOutput) ToAssetOrArchiveMapArrayOutputWithContext(ctx context.Context) AssetOrArchiveMapArrayOutput
- func (o AssetOrArchiveMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]AssetOrArchive]
- type AssetOrArchiveMapInput
- type AssetOrArchiveMapMap
- func (AssetOrArchiveMapMap) ElementType() reflect.Type
- func (in AssetOrArchiveMapMap) ToAssetOrArchiveMapMapOutput() AssetOrArchiveMapMapOutput
- func (in AssetOrArchiveMapMap) ToAssetOrArchiveMapMapOutputWithContext(ctx context.Context) AssetOrArchiveMapMapOutput
- func (in AssetOrArchiveMapMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]AssetOrArchive]
- type AssetOrArchiveMapMapInput
- type AssetOrArchiveMapMapOutput
- func (AssetOrArchiveMapMapOutput) ElementType() reflect.Type
- func (o AssetOrArchiveMapMapOutput) MapIndex(k StringInput) AssetOrArchiveMapOutput
- func (AssetOrArchiveMapMapOutput) MarshalJSON() ([]byte, error)
- func (o AssetOrArchiveMapMapOutput) ToAssetOrArchiveMapMapOutput() AssetOrArchiveMapMapOutput
- func (o AssetOrArchiveMapMapOutput) ToAssetOrArchiveMapMapOutputWithContext(ctx context.Context) AssetOrArchiveMapMapOutput
- func (o AssetOrArchiveMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]AssetOrArchive]
- type AssetOrArchiveMapOutput
- func (AssetOrArchiveMapOutput) ElementType() reflect.Type
- func (o AssetOrArchiveMapOutput) MapIndex(k StringInput) AssetOrArchiveOutput
- func (AssetOrArchiveMapOutput) MarshalJSON() ([]byte, error)
- func (o AssetOrArchiveMapOutput) ToAssetOrArchiveMapOutput() AssetOrArchiveMapOutput
- func (o AssetOrArchiveMapOutput) ToAssetOrArchiveMapOutputWithContext(ctx context.Context) AssetOrArchiveMapOutput
- func (o AssetOrArchiveMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]AssetOrArchive]
- type AssetOrArchiveOutput
- func (AssetOrArchiveOutput) ElementType() reflect.Type
- func (AssetOrArchiveOutput) MarshalJSON() ([]byte, error)
- func (o AssetOrArchiveOutput) ToAssetOrArchiveOutput() AssetOrArchiveOutput
- func (o AssetOrArchiveOutput) ToAssetOrArchiveOutputWithContext(ctx context.Context) AssetOrArchiveOutput
- func (o AssetOrArchiveOutput) ToOutput(ctx context.Context) codeinfrax.Output[AssetOrArchive]
- type AssetOutput
- func (AssetOutput) ElementType() reflect.Type
- func (AssetOutput) MarshalJSON() ([]byte, error)
- func (o AssetOutput) ToAssetOrArchiveOutput() AssetOrArchiveOutput
- func (o AssetOutput) ToAssetOrArchiveOutputWithContext(ctx context.Context) AssetOrArchiveOutput
- func (o AssetOutput) ToAssetOutput() AssetOutput
- func (o AssetOutput) ToAssetOutputWithContext(ctx context.Context) AssetOutput
- func (o AssetOutput) ToOutput(ctx context.Context) codeinfrax.Output[Asset]
- type Bool
- func (Bool) ElementType() reflect.Type
- func (in Bool) ToBoolOutput() BoolOutput
- func (in Bool) ToBoolOutputWithContext(ctx context.Context) BoolOutput
- func (in Bool) ToBoolPtrOutput() BoolPtrOutput
- func (in Bool) ToBoolPtrOutputWithContext(ctx context.Context) BoolPtrOutput
- func (in Bool) ToOutput(ctx context.Context) codeinfrax.Output[bool]
- type BoolArray
- type BoolArrayArray
- func (BoolArrayArray) ElementType() reflect.Type
- func (in BoolArrayArray) ToBoolArrayArrayOutput() BoolArrayArrayOutput
- func (in BoolArrayArray) ToBoolArrayArrayOutputWithContext(ctx context.Context) BoolArrayArrayOutput
- func (in BoolArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]bool]
- type BoolArrayArrayInput
- type BoolArrayArrayOutput
- func (BoolArrayArrayOutput) ElementType() reflect.Type
- func (o BoolArrayArrayOutput) Index(i IntInput) BoolArrayOutput
- func (BoolArrayArrayOutput) MarshalJSON() ([]byte, error)
- func (o BoolArrayArrayOutput) ToBoolArrayArrayOutput() BoolArrayArrayOutput
- func (o BoolArrayArrayOutput) ToBoolArrayArrayOutputWithContext(ctx context.Context) BoolArrayArrayOutput
- func (o BoolArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]bool]
- type BoolArrayInput
- type BoolArrayMap
- type BoolArrayMapInput
- type BoolArrayMapOutput
- func (BoolArrayMapOutput) ElementType() reflect.Type
- func (o BoolArrayMapOutput) MapIndex(k StringInput) BoolArrayOutput
- func (BoolArrayMapOutput) MarshalJSON() ([]byte, error)
- func (o BoolArrayMapOutput) ToBoolArrayMapOutput() BoolArrayMapOutput
- func (o BoolArrayMapOutput) ToBoolArrayMapOutputWithContext(ctx context.Context) BoolArrayMapOutput
- func (o BoolArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]bool]
- type BoolArrayOutput
- func (BoolArrayOutput) ElementType() reflect.Type
- func (o BoolArrayOutput) Index(i IntInput) BoolOutput
- func (BoolArrayOutput) MarshalJSON() ([]byte, error)
- func (o BoolArrayOutput) ToBoolArrayOutput() BoolArrayOutput
- func (o BoolArrayOutput) ToBoolArrayOutputWithContext(ctx context.Context) BoolArrayOutput
- func (o BoolArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]bool]
- type BoolInput
- type BoolMap
- type BoolMapArray
- type BoolMapArrayInput
- type BoolMapArrayOutput
- func (BoolMapArrayOutput) ElementType() reflect.Type
- func (o BoolMapArrayOutput) Index(i IntInput) BoolMapOutput
- func (BoolMapArrayOutput) MarshalJSON() ([]byte, error)
- func (o BoolMapArrayOutput) ToBoolMapArrayOutput() BoolMapArrayOutput
- func (o BoolMapArrayOutput) ToBoolMapArrayOutputWithContext(ctx context.Context) BoolMapArrayOutput
- func (o BoolMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]bool]
- type BoolMapInput
- type BoolMapMap
- type BoolMapMapInput
- type BoolMapMapOutput
- func (BoolMapMapOutput) ElementType() reflect.Type
- func (o BoolMapMapOutput) MapIndex(k StringInput) BoolMapOutput
- func (BoolMapMapOutput) MarshalJSON() ([]byte, error)
- func (o BoolMapMapOutput) ToBoolMapMapOutput() BoolMapMapOutput
- func (o BoolMapMapOutput) ToBoolMapMapOutputWithContext(ctx context.Context) BoolMapMapOutput
- func (o BoolMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]bool]
- type BoolMapOutput
- func (BoolMapOutput) ElementType() reflect.Type
- func (o BoolMapOutput) MapIndex(k StringInput) BoolOutput
- func (BoolMapOutput) MarshalJSON() ([]byte, error)
- func (o BoolMapOutput) ToBoolMapOutput() BoolMapOutput
- func (o BoolMapOutput) ToBoolMapOutputWithContext(ctx context.Context) BoolMapOutput
- func (o BoolMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]bool]
- type BoolOutput
- func (BoolOutput) ElementType() reflect.Type
- func (BoolOutput) MarshalJSON() ([]byte, error)
- func (o BoolOutput) ToBoolOutput() BoolOutput
- func (o BoolOutput) ToBoolOutputWithContext(ctx context.Context) BoolOutput
- func (o BoolOutput) ToBoolPtrOutput() BoolPtrOutput
- func (o BoolOutput) ToBoolPtrOutputWithContext(ctx context.Context) BoolPtrOutput
- func (o BoolOutput) ToOutput(ctx context.Context) codeinfrax.Output[bool]
- type BoolPtrInput
- type BoolPtrOutput
- func (o BoolPtrOutput) Elem() BoolOutput
- func (BoolPtrOutput) ElementType() reflect.Type
- func (BoolPtrOutput) MarshalJSON() ([]byte, error)
- func (o BoolPtrOutput) ToBoolPtrOutput() BoolPtrOutput
- func (o BoolPtrOutput) ToBoolPtrOutputWithContext(ctx context.Context) BoolPtrOutput
- func (o BoolPtrOutput) ToOutput(ctx context.Context) codeinfrax.Output[*bool]
- type ComponentResource
- type Context
- func (ctx *Context) Call(tok string, args Input, output Output, self Resource, opts ...InvokeOption) (Output, error)
- func (ctx *Context) CallPackage(tok string, args Input, output Output, self Resource, packageRef string, ...) (Output, error)
- func (ctx *Context) Close() error
- func (ctx *Context) Context() context.Context
- func (ctx *Context) DryRun() bool
- func (ctx *Context) Export(name string, value Input)
- func (ctx *Context) GetConfig(key string) (string, bool)
- func (ctx *Context) Invoke(tok string, args interface{}, result interface{}, opts ...InvokeOption) (err error)
- func (ctx *Context) InvokeOutput(tok string, args interface{}, output Output, options InvokeOutputOptions) Output
- func (ctx *Context) InvokePackage(tok string, args interface{}, result interface{}, packageRef string, ...) error
- func (ctx *Context) InvokePackageRaw(tok string, args interface{}, result interface{}, packageRef string, ...) (isSecret bool, err error)
- func (ctx *Context) IsConfigSecret(key string) bool
- func (ctx *Context) NewOutput() (Output, func(interface{}), func(error))
- func (ctx *Context) Organization() string
- func (ctx *Context) Parallel() int32
- func (ctx *Context) Project() string
- func (ctx *Context) ReadPackageResource(t, name string, id IDInput, props Input, resource CustomResource, ...) error
- func (ctx *Context) ReadResource(t, name string, id IDInput, props Input, resource CustomResource, ...) error
- func (ctx *Context) RegisterComponentResource(t, name string, resource ComponentResource, opts ...ResourceOption) error
- func (ctx *Context) RegisterInvokeTransform(t InvokeTransform) error
- func (ctx *Context) RegisterPackage(in *codeinfrarpc.RegisterPackageRequest) (*codeinfrarpc.RegisterPackageResponse, error)
- func (ctx *Context) RegisterPackageRemoteComponentResource(t, name string, props Input, resource ComponentResource, packageRef string, ...) error
- func (ctx *Context) RegisterPackageResource(t, name string, props Input, resource Resource, packageRef string, ...) error
- func (ctx *Context) RegisterRemoteComponentResource(t, name string, props Input, resource ComponentResource, ...) error
- func (ctx *Context) RegisterResource(t, name string, props Input, resource Resource, opts ...ResourceOption) error
- func (ctx *Context) RegisterResourceOutputs(resource Resource, outs Map) error
- func (ctx *Context) RegisterResourceTransform(t ResourceTransform) error
- func (ctx *Context) RegisterStackTransform(t ResourceTransform) errordeprecated
- func (ctx *Context) RegisterStackTransformation(t ResourceTransformation) error
- func (ctx *Context) RunningWithMocks() bool
- func (ctx *Context) Stack() string
- func (ctx *Context) Value(key any) any
- func (ctx *Context) WithValue(key, val any) *Context
- type CustomResource
- type CustomResourceState
- type CustomTimeouts
- type Float64
- func (Float64) ElementType() reflect.Type
- func (in Float64) ToFloat64Output() Float64Output
- func (in Float64) ToFloat64OutputWithContext(ctx context.Context) Float64Output
- func (in Float64) ToFloat64PtrOutput() Float64PtrOutput
- func (in Float64) ToFloat64PtrOutputWithContext(ctx context.Context) Float64PtrOutput
- func (in Float64) ToOutput(ctx context.Context) codeinfrax.Output[float64]
- type Float64Array
- type Float64ArrayArray
- func (Float64ArrayArray) ElementType() reflect.Type
- func (in Float64ArrayArray) ToFloat64ArrayArrayOutput() Float64ArrayArrayOutput
- func (in Float64ArrayArray) ToFloat64ArrayArrayOutputWithContext(ctx context.Context) Float64ArrayArrayOutput
- func (in Float64ArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]float64]
- type Float64ArrayArrayInput
- type Float64ArrayArrayOutput
- func (Float64ArrayArrayOutput) ElementType() reflect.Type
- func (o Float64ArrayArrayOutput) Index(i IntInput) Float64ArrayOutput
- func (Float64ArrayArrayOutput) MarshalJSON() ([]byte, error)
- func (o Float64ArrayArrayOutput) ToFloat64ArrayArrayOutput() Float64ArrayArrayOutput
- func (o Float64ArrayArrayOutput) ToFloat64ArrayArrayOutputWithContext(ctx context.Context) Float64ArrayArrayOutput
- func (o Float64ArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]float64]
- type Float64ArrayInput
- type Float64ArrayMap
- func (Float64ArrayMap) ElementType() reflect.Type
- func (in Float64ArrayMap) ToFloat64ArrayMapOutput() Float64ArrayMapOutput
- func (in Float64ArrayMap) ToFloat64ArrayMapOutputWithContext(ctx context.Context) Float64ArrayMapOutput
- func (in Float64ArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]float64]
- type Float64ArrayMapInput
- type Float64ArrayMapOutput
- func (Float64ArrayMapOutput) ElementType() reflect.Type
- func (o Float64ArrayMapOutput) MapIndex(k StringInput) Float64ArrayOutput
- func (Float64ArrayMapOutput) MarshalJSON() ([]byte, error)
- func (o Float64ArrayMapOutput) ToFloat64ArrayMapOutput() Float64ArrayMapOutput
- func (o Float64ArrayMapOutput) ToFloat64ArrayMapOutputWithContext(ctx context.Context) Float64ArrayMapOutput
- func (o Float64ArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]float64]
- type Float64ArrayOutput
- func (Float64ArrayOutput) ElementType() reflect.Type
- func (o Float64ArrayOutput) Index(i IntInput) Float64Output
- func (Float64ArrayOutput) MarshalJSON() ([]byte, error)
- func (o Float64ArrayOutput) ToFloat64ArrayOutput() Float64ArrayOutput
- func (o Float64ArrayOutput) ToFloat64ArrayOutputWithContext(ctx context.Context) Float64ArrayOutput
- func (o Float64ArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]float64]
- type Float64Input
- type Float64Map
- type Float64MapArray
- func (Float64MapArray) ElementType() reflect.Type
- func (in Float64MapArray) ToFloat64MapArrayOutput() Float64MapArrayOutput
- func (in Float64MapArray) ToFloat64MapArrayOutputWithContext(ctx context.Context) Float64MapArrayOutput
- func (in Float64MapArray) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]float64]
- type Float64MapArrayInput
- type Float64MapArrayOutput
- func (Float64MapArrayOutput) ElementType() reflect.Type
- func (o Float64MapArrayOutput) Index(i IntInput) Float64MapOutput
- func (Float64MapArrayOutput) MarshalJSON() ([]byte, error)
- func (o Float64MapArrayOutput) ToFloat64MapArrayOutput() Float64MapArrayOutput
- func (o Float64MapArrayOutput) ToFloat64MapArrayOutputWithContext(ctx context.Context) Float64MapArrayOutput
- func (o Float64MapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]float64]
- type Float64MapInput
- type Float64MapMap
- func (Float64MapMap) ElementType() reflect.Type
- func (in Float64MapMap) ToFloat64MapMapOutput() Float64MapMapOutput
- func (in Float64MapMap) ToFloat64MapMapOutputWithContext(ctx context.Context) Float64MapMapOutput
- func (in Float64MapMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]float64]
- type Float64MapMapInput
- type Float64MapMapOutput
- func (Float64MapMapOutput) ElementType() reflect.Type
- func (o Float64MapMapOutput) MapIndex(k StringInput) Float64MapOutput
- func (Float64MapMapOutput) MarshalJSON() ([]byte, error)
- func (o Float64MapMapOutput) ToFloat64MapMapOutput() Float64MapMapOutput
- func (o Float64MapMapOutput) ToFloat64MapMapOutputWithContext(ctx context.Context) Float64MapMapOutput
- func (o Float64MapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]float64]
- type Float64MapOutput
- func (Float64MapOutput) ElementType() reflect.Type
- func (o Float64MapOutput) MapIndex(k StringInput) Float64Output
- func (Float64MapOutput) MarshalJSON() ([]byte, error)
- func (o Float64MapOutput) ToFloat64MapOutput() Float64MapOutput
- func (o Float64MapOutput) ToFloat64MapOutputWithContext(ctx context.Context) Float64MapOutput
- func (o Float64MapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]float64]
- type Float64Output
- func (Float64Output) ElementType() reflect.Type
- func (Float64Output) MarshalJSON() ([]byte, error)
- func (o Float64Output) ToFloat64Output() Float64Output
- func (o Float64Output) ToFloat64OutputWithContext(ctx context.Context) Float64Output
- func (o Float64Output) ToFloat64PtrOutput() Float64PtrOutput
- func (o Float64Output) ToFloat64PtrOutputWithContext(ctx context.Context) Float64PtrOutput
- func (o Float64Output) ToOutput(ctx context.Context) codeinfrax.Output[float64]
- type Float64PtrInput
- type Float64PtrOutput
- func (o Float64PtrOutput) Elem() Float64Output
- func (Float64PtrOutput) ElementType() reflect.Type
- func (Float64PtrOutput) MarshalJSON() ([]byte, error)
- func (o Float64PtrOutput) ToFloat64PtrOutput() Float64PtrOutput
- func (o Float64PtrOutput) ToFloat64PtrOutputWithContext(ctx context.Context) Float64PtrOutput
- func (o Float64PtrOutput) ToOutput(ctx context.Context) codeinfrax.Output[*float64]
- type ID
- func (ID) ElementType() reflect.Type
- func (in ID) ToIDOutput() IDOutput
- func (in ID) ToIDOutputWithContext(ctx context.Context) IDOutput
- func (in ID) ToIDPtrOutput() IDPtrOutput
- func (in ID) ToIDPtrOutputWithContext(ctx context.Context) IDPtrOutput
- func (in ID) ToOutput(ctx context.Context) codeinfrax.Output[ID]
- func (in ID) ToStringOutput() StringOutput
- func (in ID) ToStringOutputWithContext(ctx context.Context) StringOutput
- func (in ID) ToStringPtrOutput() StringPtrOutput
- func (in ID) ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
- type IDArray
- type IDArrayArray
- type IDArrayArrayInput
- type IDArrayArrayOutput
- func (IDArrayArrayOutput) ElementType() reflect.Type
- func (o IDArrayArrayOutput) Index(i IntInput) IDArrayOutput
- func (IDArrayArrayOutput) MarshalJSON() ([]byte, error)
- func (o IDArrayArrayOutput) ToIDArrayArrayOutput() IDArrayArrayOutput
- func (o IDArrayArrayOutput) ToIDArrayArrayOutputWithContext(ctx context.Context) IDArrayArrayOutput
- func (o IDArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]ID]
- type IDArrayInput
- type IDArrayMap
- type IDArrayMapInput
- type IDArrayMapOutput
- func (IDArrayMapOutput) ElementType() reflect.Type
- func (o IDArrayMapOutput) MapIndex(k StringInput) IDArrayOutput
- func (IDArrayMapOutput) MarshalJSON() ([]byte, error)
- func (o IDArrayMapOutput) ToIDArrayMapOutput() IDArrayMapOutput
- func (o IDArrayMapOutput) ToIDArrayMapOutputWithContext(ctx context.Context) IDArrayMapOutput
- func (o IDArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]ID]
- type IDArrayOutput
- func (IDArrayOutput) ElementType() reflect.Type
- func (o IDArrayOutput) Index(i IntInput) IDOutput
- func (IDArrayOutput) MarshalJSON() ([]byte, error)
- func (o IDArrayOutput) ToIDArrayOutput() IDArrayOutput
- func (o IDArrayOutput) ToIDArrayOutputWithContext(ctx context.Context) IDArrayOutput
- func (o IDArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]ID]
- type IDInput
- type IDMap
- type IDMapArray
- type IDMapArrayInput
- type IDMapArrayOutput
- func (IDMapArrayOutput) ElementType() reflect.Type
- func (o IDMapArrayOutput) Index(i IntInput) IDMapOutput
- func (IDMapArrayOutput) MarshalJSON() ([]byte, error)
- func (o IDMapArrayOutput) ToIDMapArrayOutput() IDMapArrayOutput
- func (o IDMapArrayOutput) ToIDMapArrayOutputWithContext(ctx context.Context) IDMapArrayOutput
- func (o IDMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]ID]
- type IDMapInput
- type IDMapMap
- type IDMapMapInput
- type IDMapMapOutput
- func (IDMapMapOutput) ElementType() reflect.Type
- func (o IDMapMapOutput) MapIndex(k StringInput) IDMapOutput
- func (IDMapMapOutput) MarshalJSON() ([]byte, error)
- func (o IDMapMapOutput) ToIDMapMapOutput() IDMapMapOutput
- func (o IDMapMapOutput) ToIDMapMapOutputWithContext(ctx context.Context) IDMapMapOutput
- func (o IDMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]ID]
- type IDMapOutput
- func (IDMapOutput) ElementType() reflect.Type
- func (o IDMapOutput) MapIndex(k StringInput) IDOutput
- func (IDMapOutput) MarshalJSON() ([]byte, error)
- func (o IDMapOutput) ToIDMapOutput() IDMapOutput
- func (o IDMapOutput) ToIDMapOutputWithContext(ctx context.Context) IDMapOutput
- func (o IDMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]ID]
- type IDOutput
- func (IDOutput) ElementType() reflect.Type
- func (IDOutput) MarshalJSON() ([]byte, error)
- func (o IDOutput) ToIDOutput() IDOutput
- func (o IDOutput) ToIDOutputWithContext(ctx context.Context) IDOutput
- func (o IDOutput) ToIDPtrOutput() IDPtrOutput
- func (o IDOutput) ToIDPtrOutputWithContext(ctx context.Context) IDPtrOutput
- func (o IDOutput) ToOutput(ctx context.Context) codeinfrax.Output[ID]
- func (o IDOutput) ToStringOutput() StringOutput
- func (o IDOutput) ToStringOutputWithContext(ctx context.Context) StringOutput
- func (o IDOutput) ToStringPtrOutput() StringPtrOutput
- func (o IDOutput) ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
- type IDPtrInput
- type IDPtrOutput
- func (o IDPtrOutput) Elem() IDOutput
- func (IDPtrOutput) ElementType() reflect.Type
- func (IDPtrOutput) MarshalJSON() ([]byte, error)
- func (o IDPtrOutput) ToIDPtrOutput() IDPtrOutput
- func (o IDPtrOutput) ToIDPtrOutputWithContext(ctx context.Context) IDPtrOutput
- func (o IDPtrOutput) ToOutput(ctx context.Context) codeinfrax.Output[*ID]
- type Input
- type Int
- func (Int) ElementType() reflect.Type
- func (in Int) ToIntOutput() IntOutput
- func (in Int) ToIntOutputWithContext(ctx context.Context) IntOutput
- func (in Int) ToIntPtrOutput() IntPtrOutput
- func (in Int) ToIntPtrOutputWithContext(ctx context.Context) IntPtrOutput
- func (in Int) ToOutput(ctx context.Context) codeinfrax.Output[int]
- type IntArray
- type IntArrayArray
- type IntArrayArrayInput
- type IntArrayArrayOutput
- func (IntArrayArrayOutput) ElementType() reflect.Type
- func (o IntArrayArrayOutput) Index(i IntInput) IntArrayOutput
- func (IntArrayArrayOutput) MarshalJSON() ([]byte, error)
- func (o IntArrayArrayOutput) ToIntArrayArrayOutput() IntArrayArrayOutput
- func (o IntArrayArrayOutput) ToIntArrayArrayOutputWithContext(ctx context.Context) IntArrayArrayOutput
- func (o IntArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]int]
- type IntArrayInput
- type IntArrayMap
- type IntArrayMapInput
- type IntArrayMapOutput
- func (IntArrayMapOutput) ElementType() reflect.Type
- func (o IntArrayMapOutput) MapIndex(k StringInput) IntArrayOutput
- func (IntArrayMapOutput) MarshalJSON() ([]byte, error)
- func (o IntArrayMapOutput) ToIntArrayMapOutput() IntArrayMapOutput
- func (o IntArrayMapOutput) ToIntArrayMapOutputWithContext(ctx context.Context) IntArrayMapOutput
- func (o IntArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]int]
- type IntArrayOutput
- func (IntArrayOutput) ElementType() reflect.Type
- func (o IntArrayOutput) Index(i IntInput) IntOutput
- func (IntArrayOutput) MarshalJSON() ([]byte, error)
- func (o IntArrayOutput) ToIntArrayOutput() IntArrayOutput
- func (o IntArrayOutput) ToIntArrayOutputWithContext(ctx context.Context) IntArrayOutput
- func (o IntArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]int]
- type IntInput
- type IntMap
- type IntMapArray
- type IntMapArrayInput
- type IntMapArrayOutput
- func (IntMapArrayOutput) ElementType() reflect.Type
- func (o IntMapArrayOutput) Index(i IntInput) IntMapOutput
- func (IntMapArrayOutput) MarshalJSON() ([]byte, error)
- func (o IntMapArrayOutput) ToIntMapArrayOutput() IntMapArrayOutput
- func (o IntMapArrayOutput) ToIntMapArrayOutputWithContext(ctx context.Context) IntMapArrayOutput
- func (o IntMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]int]
- type IntMapInput
- type IntMapMap
- type IntMapMapInput
- type IntMapMapOutput
- func (IntMapMapOutput) ElementType() reflect.Type
- func (o IntMapMapOutput) MapIndex(k StringInput) IntMapOutput
- func (IntMapMapOutput) MarshalJSON() ([]byte, error)
- func (o IntMapMapOutput) ToIntMapMapOutput() IntMapMapOutput
- func (o IntMapMapOutput) ToIntMapMapOutputWithContext(ctx context.Context) IntMapMapOutput
- func (o IntMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]int]
- type IntMapOutput
- func (IntMapOutput) ElementType() reflect.Type
- func (o IntMapOutput) MapIndex(k StringInput) IntOutput
- func (IntMapOutput) MarshalJSON() ([]byte, error)
- func (o IntMapOutput) ToIntMapOutput() IntMapOutput
- func (o IntMapOutput) ToIntMapOutputWithContext(ctx context.Context) IntMapOutput
- func (o IntMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]int]
- type IntOutput
- func (IntOutput) ElementType() reflect.Type
- func (IntOutput) MarshalJSON() ([]byte, error)
- func (o IntOutput) ToIntOutput() IntOutput
- func (o IntOutput) ToIntOutputWithContext(ctx context.Context) IntOutput
- func (o IntOutput) ToIntPtrOutput() IntPtrOutput
- func (o IntOutput) ToIntPtrOutputWithContext(ctx context.Context) IntPtrOutput
- func (o IntOutput) ToOutput(ctx context.Context) codeinfrax.Output[int]
- type IntPtrInput
- type IntPtrOutput
- func (o IntPtrOutput) Elem() IntOutput
- func (IntPtrOutput) ElementType() reflect.Type
- func (IntPtrOutput) MarshalJSON() ([]byte, error)
- func (o IntPtrOutput) ToIntPtrOutput() IntPtrOutput
- func (o IntPtrOutput) ToIntPtrOutputWithContext(ctx context.Context) IntPtrOutput
- func (o IntPtrOutput) ToOutput(ctx context.Context) codeinfrax.Output[*int]
- type InvokeOption
- type InvokeOptions
- type InvokeOutputOptions
- type InvokeTransform
- type InvokeTransformArgs
- type InvokeTransformResult
- type Log
- type LogArgs
- type Map
- type MapArray
- type MapArrayInput
- type MapArrayOutput
- func (MapArrayOutput) ElementType() reflect.Type
- func (o MapArrayOutput) Index(i IntInput) MapOutput
- func (MapArrayOutput) MarshalJSON() ([]byte, error)
- func (o MapArrayOutput) ToMapArrayOutput() MapArrayOutput
- func (o MapArrayOutput) ToMapArrayOutputWithContext(ctx context.Context) MapArrayOutput
- func (o MapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]interface{}]
- type MapInput
- type MapMap
- type MapMapInput
- type MapMapOutput
- func (MapMapOutput) ElementType() reflect.Type
- func (o MapMapOutput) MapIndex(k StringInput) MapOutput
- func (MapMapOutput) MarshalJSON() ([]byte, error)
- func (o MapMapOutput) ToMapMapOutput() MapMapOutput
- func (o MapMapOutput) ToMapMapOutputWithContext(ctx context.Context) MapMapOutput
- func (o MapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]interface{}]
- type MapOutput
- func (MapOutput) ElementType() reflect.Type
- func (o MapOutput) MapIndex(k StringInput) Output
- func (MapOutput) MarshalJSON() ([]byte, error)
- func (o MapOutput) ToMapOutput() MapOutput
- func (o MapOutput) ToMapOutputWithContext(ctx context.Context) MapOutput
- func (o MapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]interface{}]
- type MockCallArgs
- type MockResourceArgs
- type MockResourceMonitor
- type Output
- func InternalGetRawOutputs(res *ResourceState) Output
- func NewOutput() (Output, func(interface{}), func(error))deprecated
- func OutputWithDependencies(ctx context.Context, o Output, deps ...Resource) Output
- func ToOutput(v interface{}) Output
- func ToOutputWithContext(ctx context.Context, v interface{}) Output
- func ToSecret(input interface{}) Output
- func ToSecretWithContext(ctx context.Context, input interface{}) Output
- func UnsafeUnknownOutput(deps []Resource) Output
- func Unsecret(input Output) Output
- func UnsecretWithContext(ctx context.Context, input Output) Output
- type OutputState
- type PackageInfo
- type ProviderResource
- type ProviderResourceState
- type Resource
- type ResourceArray
- type ResourceArrayInput
- type ResourceArrayOutput
- func (ResourceArrayOutput) ElementType() reflect.Type
- func (o ResourceArrayOutput) Index(i IntInput) ResourceOutput
- func (ResourceArrayOutput) MarshalJSON() ([]byte, error)
- func (o ResourceArrayOutput) ToOutput(context.Context) codeinfrax.Output[[]Resource]
- func (o ResourceArrayOutput) ToResourceArrayOutput() ResourceArrayOutput
- func (o ResourceArrayOutput) ToResourceArrayOutputWithContext(ctx context.Context) ResourceArrayOutput
- type ResourceInput
- type ResourceModule
- type ResourceOption
- func AdditionalSecretOutputs(o []string) ResourceOption
- func Aliases(o []Alias) ResourceOption
- func Composite(opts ...ResourceOption) ResourceOption
- func DeleteBeforeReplace(o bool) ResourceOption
- func DeletedWith(r Resource) ResourceOption
- func IgnoreChanges(o []string) ResourceOption
- func Import(o IDInput) ResourceOption
- func Protect(o bool) ResourceOption
- func ProviderMap(o map[string]ProviderResource) ResourceOption
- func Providers(o ...ProviderResource) ResourceOption
- func ReplaceOnChanges(o []string) ResourceOption
- func RetainOnDelete(b bool) ResourceOption
- func Timeouts(o *CustomTimeouts) ResourceOption
- func Transformations(o []ResourceTransformation) ResourceOption
- func Transforms(o []ResourceTransform) ResourceOption
- func URN_(o string) ResourceOption
- type ResourceOptions
- type ResourceOrInvokeOption
- func DependsOn(o []Resource) ResourceOrInvokeOption
- func DependsOnInputs(o ResourceArrayInput) ResourceOrInvokeOption
- func Parameterization(parameter []byte) ResourceOrInvokeOption
- func Parent(r Resource) ResourceOrInvokeOption
- func PluginDownloadURL(o string) ResourceOrInvokeOption
- func Provider(r ProviderResource) ResourceOrInvokeOption
- func Version(o string) ResourceOrInvokeOption
- type ResourceOutput
- func (ResourceOutput) ElementType() reflect.Type
- func (ResourceOutput) MarshalJSON() ([]byte, error)
- func (o ResourceOutput) ToOutput(context.Context) codeinfrax.Output[Resource]
- func (o ResourceOutput) ToResourceOutput() ResourceOutput
- func (o ResourceOutput) ToResourceOutputWithContext(ctx context.Context) ResourceOutput
- type ResourcePackage
- type ResourceState
- type ResourceTransform
- type ResourceTransformArgs
- type ResourceTransformResult
- type ResourceTransformation
- type ResourceTransformationArgs
- type ResourceTransformationResult
- type RunFunc
- type RunInfo
- type RunOption
- type StackReference
- func (s *StackReference) GetFloat64Output(name StringInput) Float64Output
- func (s *StackReference) GetIDOutput(name StringInput) IDOutput
- func (s *StackReference) GetIntOutput(name StringInput) IntOutput
- func (s *StackReference) GetOutput(name StringInput) AnyOutput
- func (s *StackReference) GetOutputDetails(name string) (*StackReferenceOutputDetails, error)
- func (s *StackReference) GetStringOutput(name StringInput) StringOutput
- type StackReferenceArgs
- type StackReferenceOutputDetails
- type String
- func (String) ElementType() reflect.Type
- func (in String) ToOutput(ctx context.Context) codeinfrax.Output[string]
- func (in String) ToStringOutput() StringOutput
- func (in String) ToStringOutputWithContext(ctx context.Context) StringOutput
- func (in String) ToStringPtrOutput() StringPtrOutput
- func (in String) ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
- type StringArray
- type StringArrayArray
- func (StringArrayArray) ElementType() reflect.Type
- func (in StringArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]string]
- func (in StringArrayArray) ToStringArrayArrayOutput() StringArrayArrayOutput
- func (in StringArrayArray) ToStringArrayArrayOutputWithContext(ctx context.Context) StringArrayArrayOutput
- type StringArrayArrayInput
- type StringArrayArrayOutput
- func (StringArrayArrayOutput) ElementType() reflect.Type
- func (o StringArrayArrayOutput) Index(i IntInput) StringArrayOutput
- func (StringArrayArrayOutput) MarshalJSON() ([]byte, error)
- func (o StringArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]string]
- func (o StringArrayArrayOutput) ToStringArrayArrayOutput() StringArrayArrayOutput
- func (o StringArrayArrayOutput) ToStringArrayArrayOutputWithContext(ctx context.Context) StringArrayArrayOutput
- type StringArrayInput
- type StringArrayMap
- func (StringArrayMap) ElementType() reflect.Type
- func (in StringArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]string]
- func (in StringArrayMap) ToStringArrayMapOutput() StringArrayMapOutput
- func (in StringArrayMap) ToStringArrayMapOutputWithContext(ctx context.Context) StringArrayMapOutput
- type StringArrayMapInput
- type StringArrayMapOutput
- func (StringArrayMapOutput) ElementType() reflect.Type
- func (o StringArrayMapOutput) MapIndex(k StringInput) StringArrayOutput
- func (StringArrayMapOutput) MarshalJSON() ([]byte, error)
- func (o StringArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]string]
- func (o StringArrayMapOutput) ToStringArrayMapOutput() StringArrayMapOutput
- func (o StringArrayMapOutput) ToStringArrayMapOutputWithContext(ctx context.Context) StringArrayMapOutput
- type StringArrayOutput
- func (StringArrayOutput) ElementType() reflect.Type
- func (o StringArrayOutput) Index(i IntInput) StringOutput
- func (StringArrayOutput) MarshalJSON() ([]byte, error)
- func (o StringArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]string]
- func (o StringArrayOutput) ToStringArrayOutput() StringArrayOutput
- func (o StringArrayOutput) ToStringArrayOutputWithContext(ctx context.Context) StringArrayOutput
- type StringInput
- type StringMap
- type StringMapArray
- func (StringMapArray) ElementType() reflect.Type
- func (in StringMapArray) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]string]
- func (in StringMapArray) ToStringMapArrayOutput() StringMapArrayOutput
- func (in StringMapArray) ToStringMapArrayOutputWithContext(ctx context.Context) StringMapArrayOutput
- type StringMapArrayInput
- type StringMapArrayOutput
- func (StringMapArrayOutput) ElementType() reflect.Type
- func (o StringMapArrayOutput) Index(i IntInput) StringMapOutput
- func (StringMapArrayOutput) MarshalJSON() ([]byte, error)
- func (o StringMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]string]
- func (o StringMapArrayOutput) ToStringMapArrayOutput() StringMapArrayOutput
- func (o StringMapArrayOutput) ToStringMapArrayOutputWithContext(ctx context.Context) StringMapArrayOutput
- type StringMapInput
- type StringMapMap
- func (StringMapMap) ElementType() reflect.Type
- func (in StringMapMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]string]
- func (in StringMapMap) ToStringMapMapOutput() StringMapMapOutput
- func (in StringMapMap) ToStringMapMapOutputWithContext(ctx context.Context) StringMapMapOutput
- type StringMapMapInput
- type StringMapMapMap
- func (StringMapMapMap) ElementType() reflect.Type
- func (in StringMapMapMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]map[string]string]
- func (in StringMapMapMap) ToStringMapMapMapOutput() StringMapMapMapOutput
- func (in StringMapMapMap) ToStringMapMapMapOutputWithContext(ctx context.Context) StringMapMapMapOutput
- type StringMapMapMapInput
- type StringMapMapMapOutput
- func (StringMapMapMapOutput) ElementType() reflect.Type
- func (o StringMapMapMapOutput) MapIndex(k StringInput) StringMapMapOutput
- func (StringMapMapMapOutput) MarshalJSON() ([]byte, error)
- func (o StringMapMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]map[string]string]
- func (o StringMapMapMapOutput) ToStringMapMapMapOutput() StringMapMapMapOutput
- func (o StringMapMapMapOutput) ToStringMapMapMapOutputWithContext(ctx context.Context) StringMapMapMapOutput
- type StringMapMapOutput
- func (StringMapMapOutput) ElementType() reflect.Type
- func (o StringMapMapOutput) MapIndex(k StringInput) StringMapOutput
- func (StringMapMapOutput) MarshalJSON() ([]byte, error)
- func (o StringMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]string]
- func (o StringMapMapOutput) ToStringMapMapOutput() StringMapMapOutput
- func (o StringMapMapOutput) ToStringMapMapOutputWithContext(ctx context.Context) StringMapMapOutput
- type StringMapOutput
- func (StringMapOutput) ElementType() reflect.Type
- func (o StringMapOutput) MapIndex(k StringInput) StringOutput
- func (StringMapOutput) MarshalJSON() ([]byte, error)
- func (o StringMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]string]
- func (o StringMapOutput) ToStringMapOutput() StringMapOutput
- func (o StringMapOutput) ToStringMapOutputWithContext(ctx context.Context) StringMapOutput
- type StringOutput
- func (StringOutput) ElementType() reflect.Type
- func (StringOutput) MarshalJSON() ([]byte, error)
- func (o StringOutput) ToOutput(ctx context.Context) codeinfrax.Output[string]
- func (o StringOutput) ToStringOutput() StringOutput
- func (o StringOutput) ToStringOutputWithContext(ctx context.Context) StringOutput
- func (o StringOutput) ToStringPtrOutput() StringPtrOutput
- func (o StringOutput) ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
- type StringPtrInput
- type StringPtrOutput
- func (o StringPtrOutput) Elem() StringOutput
- func (StringPtrOutput) ElementType() reflect.Type
- func (StringPtrOutput) MarshalJSON() ([]byte, error)
- func (o StringPtrOutput) ToOutput(ctx context.Context) codeinfrax.Output[*string]
- func (o StringPtrOutput) ToStringPtrOutput() StringPtrOutput
- func (o StringPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
- type URN
- func (URN) ElementType() reflect.Type
- func (in URN) ToOutput(ctx context.Context) codeinfrax.Output[URN]
- func (in URN) ToStringOutput() StringOutput
- func (in URN) ToStringOutputWithContext(ctx context.Context) StringOutput
- func (in URN) ToStringPtrOutput() StringPtrOutput
- func (in URN) ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
- func (in URN) ToURNOutput() URNOutput
- func (in URN) ToURNOutputWithContext(ctx context.Context) URNOutput
- func (in URN) ToURNPtrOutput() URNPtrOutput
- func (in URN) ToURNPtrOutputWithContext(ctx context.Context) URNPtrOutput
- type URNArray
- type URNArrayArray
- type URNArrayArrayInput
- type URNArrayArrayOutput
- func (URNArrayArrayOutput) ElementType() reflect.Type
- func (o URNArrayArrayOutput) Index(i IntInput) URNArrayOutput
- func (URNArrayArrayOutput) MarshalJSON() ([]byte, error)
- func (o URNArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]URN]
- func (o URNArrayArrayOutput) ToURNArrayArrayOutput() URNArrayArrayOutput
- func (o URNArrayArrayOutput) ToURNArrayArrayOutputWithContext(ctx context.Context) URNArrayArrayOutput
- type URNArrayInput
- type URNArrayMap
- type URNArrayMapInput
- type URNArrayMapOutput
- func (URNArrayMapOutput) ElementType() reflect.Type
- func (o URNArrayMapOutput) MapIndex(k StringInput) URNArrayOutput
- func (URNArrayMapOutput) MarshalJSON() ([]byte, error)
- func (o URNArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]URN]
- func (o URNArrayMapOutput) ToURNArrayMapOutput() URNArrayMapOutput
- func (o URNArrayMapOutput) ToURNArrayMapOutputWithContext(ctx context.Context) URNArrayMapOutput
- type URNArrayOutput
- func (URNArrayOutput) ElementType() reflect.Type
- func (o URNArrayOutput) Index(i IntInput) URNOutput
- func (URNArrayOutput) MarshalJSON() ([]byte, error)
- func (o URNArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]URN]
- func (o URNArrayOutput) ToURNArrayOutput() URNArrayOutput
- func (o URNArrayOutput) ToURNArrayOutputWithContext(ctx context.Context) URNArrayOutput
- type URNInput
- type URNMap
- type URNMapArray
- type URNMapArrayInput
- type URNMapArrayOutput
- func (URNMapArrayOutput) ElementType() reflect.Type
- func (o URNMapArrayOutput) Index(i IntInput) URNMapOutput
- func (URNMapArrayOutput) MarshalJSON() ([]byte, error)
- func (o URNMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]URN]
- func (o URNMapArrayOutput) ToURNMapArrayOutput() URNMapArrayOutput
- func (o URNMapArrayOutput) ToURNMapArrayOutputWithContext(ctx context.Context) URNMapArrayOutput
- type URNMapInput
- type URNMapMap
- type URNMapMapInput
- type URNMapMapOutput
- func (URNMapMapOutput) ElementType() reflect.Type
- func (o URNMapMapOutput) MapIndex(k StringInput) URNMapOutput
- func (URNMapMapOutput) MarshalJSON() ([]byte, error)
- func (o URNMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]URN]
- func (o URNMapMapOutput) ToURNMapMapOutput() URNMapMapOutput
- func (o URNMapMapOutput) ToURNMapMapOutputWithContext(ctx context.Context) URNMapMapOutput
- type URNMapOutput
- func (URNMapOutput) ElementType() reflect.Type
- func (o URNMapOutput) MapIndex(k StringInput) URNOutput
- func (URNMapOutput) MarshalJSON() ([]byte, error)
- func (o URNMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]URN]
- func (o URNMapOutput) ToURNMapOutput() URNMapOutput
- func (o URNMapOutput) ToURNMapOutputWithContext(ctx context.Context) URNMapOutput
- type URNOutput
- func (URNOutput) ElementType() reflect.Type
- func (URNOutput) MarshalJSON() ([]byte, error)
- func (o URNOutput) ToOutput(ctx context.Context) codeinfrax.Output[URN]
- func (o URNOutput) ToStringOutput() StringOutput
- func (o URNOutput) ToStringOutputWithContext(ctx context.Context) StringOutput
- func (o URNOutput) ToStringPtrOutput() StringPtrOutput
- func (o URNOutput) ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
- func (o URNOutput) ToURNOutput() URNOutput
- func (o URNOutput) ToURNOutputWithContext(ctx context.Context) URNOutput
- func (o URNOutput) ToURNPtrOutput() URNPtrOutput
- func (o URNOutput) ToURNPtrOutputWithContext(ctx context.Context) URNPtrOutput
- type URNPtrInput
- type URNPtrOutput
- func (o URNPtrOutput) Elem() URNOutput
- func (URNPtrOutput) ElementType() reflect.Type
- func (URNPtrOutput) MarshalJSON() ([]byte, error)
- func (o URNPtrOutput) ToOutput(ctx context.Context) codeinfrax.Output[*URN]
- func (o URNPtrOutput) ToURNPtrOutput() URNPtrOutput
- func (o URNPtrOutput) ToURNPtrOutputWithContext(ctx context.Context) URNPtrOutput
- type Versioned
Constants ¶
const ( // EnvOrganization is the envvar used to read the current Codeinfra organization name. EnvOrganization = "CODEINFRA_ORGANIZATION" // EnvProject is the envvar used to read the current Codeinfra project name. EnvProject = "CODEINFRA_PROJECT" // EnvStack is the envvar used to read the current Codeinfra stack name. EnvStack = "CODEINFRA_STACK" // EnvConfig is the envvar used to read the current Codeinfra configuration variables. EnvConfig = "CODEINFRA_CONFIG" // EnvConfigSecretKeys is the envvar used to read the current Codeinfra configuration keys that are secrets. //nolint:gosec EnvConfigSecretKeys = "CODEINFRA_CONFIG_SECRET_KEYS" // EnvParallel is the envvar used to read the current Codeinfra degree of parallelism. EnvParallel = "CODEINFRA_PARALLEL" // EnvDryRun is the envvar used to read the current Codeinfra dry-run setting. EnvDryRun = "CODEINFRA_DRY_RUN" // EnvMonitor is the envvar used to read the current Codeinfra monitor RPC address. EnvMonitor = "CODEINFRA_MONITOR" // EnvEngine is the envvar used to read the current Codeinfra engine RPC address. EnvEngine = "CODEINFRA_ENGINE" )
Variables ¶
var ErrPlugins = errors.New("codeinfra: plugins requested")
Functions ¶
func BoolRef ¶
BoolRef returns a pointer to its argument, used in cases where a parameter requires an optional bool.
func DeferredOutput ¶
DeferredOutput creates an Output whose value can be later resolved from another Output instance.
func Float64Ref ¶
Float64Ref returns a pointer to its argument, used in cases where a parameter requires an optional float64.
func IntRef ¶
IntRef returns a pointer to its argument, used in cases where a parameter requires an optional int.
func IsSecret ¶
IsSecret returns a bool representing the secretness of the Output
IsSecret may return an inaccurate results if the Output is unknowable (during a preview) or contains an error.
func RegisterInputType ¶
RegisterInputType registers an Input type with the Codeinfra runtime. This allows the input type to be instantiated for a given input interface.
func RegisterOutputType ¶
func RegisterOutputType(output Output)
RegisterOutputType registers an Output type with the Codeinfra runtime. If a value of this type's concrete type is returned by an Apply, the Apply will return the specific Output type.
func RegisterPackage ¶
func RegisterPackage(info PackageInfo)
func RegisterResourceModule ¶
func RegisterResourceModule(pkg, mod string, module ResourceModule)
RegisterResourceModule register a resource module with the Codeinfra runtime.
func RegisterResourcePackage ¶
func RegisterResourcePackage(pkg string, resourcePackage ResourcePackage)
RegisterResourcePackage register a resource package with the Codeinfra runtime.
func Run ¶
Run executes the body of a Codeinfra program, granting it access to a deployment context that it may use to register resources and orchestrate deployment activities. This connects back to the Codeinfra engine using gRPC. If the program fails, the process will be terminated and the function will not return.
func RunErr ¶
RunErr executes the body of a Codeinfra program, granting it access to a deployment context that it may use to register resources and orchestrate deployment activities. This connects back to the Codeinfra engine using gRPC.
func RunWithContext ¶
RunWithContext runs the body of a Codeinfra program using the given Context for information about the target stack, configuration, and engine connection.
Types ¶
type Alias ¶
type Alias struct {
// Optional URN that uniquely identifies a resource. If specified, it takes preference and
// other members of the struct are ignored.
URN URNInput
// The previous name of the resource. If not provided, the current name of the resource is used.
Name StringInput
// The previous type of the resource. If not provided, the current type of the resource is used.
Type StringInput
// The previous parent of the resource. If not provided, the current parent of the resource is used by default.
// This option is mutually exclusive to `ParentURN` and `NoParent`.
// Use `Alias { NoParent: codeinfra.Bool(true) }` to avoid defaulting to the current parent.
Parent Resource
// The previous parent of the resource in URN format, mutually exclusive to `Parent` and `ParentURN`.
// To specify no original parent, use `Alias { NoParent: codeinfra.Bool(true) }`.
ParentURN URNInput
// When true, indicates that the resource previously had no parent.
// This option is mutually exclusive to `Parent` and `ParentURN`.
NoParent BoolInput
// The name of the previous stack of the resource. If not provided, defaults to `context.GetStack()
Stack StringInput
// The previous project of the resource. If not provided, defaults to `context.GetProject()`.
Project StringInput
}
Alias is a partial description of prior named used for a resource. It can be processed in the context of a resource creation to determine what the full aliased URN would be.
type AnyOutput ¶
type AnyOutput struct{ *OutputState }
func AnyWithContext ¶
func JSONUnmarshal ¶
func JSONUnmarshal(data StringInput) AnyOutput
JSONUnmarshal uses "encoding/json".Unmarshal to deserialize the given Input JSON string into a value.
func JSONUnmarshalWithContext ¶
func JSONUnmarshalWithContext(ctx context.Context, data StringInput) AnyOutput
JSONUnmarshalWithContext uses "encoding/json".Unmarshal to deserialize the given Input JSON string into a value.
func (AnyOutput) AsArchiveArrayArrayOutput ¶
func (a AnyOutput) AsArchiveArrayArrayOutput() ArchiveArrayArrayOutput
AsArchiveArrayArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is [][]Archive or a compatible type and returns a `ArchiveArrayArrayOutput` with that value. AsArchiveArrayArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsArchiveArrayMapOutput ¶
func (a AnyOutput) AsArchiveArrayMapOutput() ArchiveArrayMapOutput
AsArchiveArrayMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string][]Archive or a compatible type and returns a `ArchiveArrayMapOutput` with that value. AsArchiveArrayMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsArchiveArrayOutput ¶
func (a AnyOutput) AsArchiveArrayOutput() ArchiveArrayOutput
AsArchiveArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []Archive or a compatible type and returns a `ArchiveArrayOutput` with that value. AsArchiveArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsArchiveMapArrayOutput ¶
func (a AnyOutput) AsArchiveMapArrayOutput() ArchiveMapArrayOutput
AsArchiveMapArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []map[string]Archive or a compatible type and returns a `ArchiveMapArrayOutput` with that value. AsArchiveMapArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsArchiveMapMapOutput ¶
func (a AnyOutput) AsArchiveMapMapOutput() ArchiveMapMapOutput
AsArchiveMapMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]map[string]Archive or a compatible type and returns a `ArchiveMapMapOutput` with that value. AsArchiveMapMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsArchiveMapOutput ¶
func (a AnyOutput) AsArchiveMapOutput() ArchiveMapOutput
AsArchiveMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]Archive or a compatible type and returns a `ArchiveMapOutput` with that value. AsArchiveMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsArchiveOutput ¶
func (a AnyOutput) AsArchiveOutput() ArchiveOutput
AsArchiveOutput asserts that the type of the AnyOutput's underlying interface{} value is Archive and returns a `ArchiveOutput` with that value. AsArchiveOutput panics if the value was not the expected type.
func (AnyOutput) AsArrayArrayMapOutput ¶
func (a AnyOutput) AsArrayArrayMapOutput() ArrayArrayMapOutput
AsArrayArrayMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string][][]interface{} or a compatible type and returns a `ArrayArrayMapOutput` with that value. AsArrayArrayMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsArrayArrayOutput ¶
func (a AnyOutput) AsArrayArrayOutput() ArrayArrayOutput
AsArrayArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is [][]interface{} or a compatible type and returns a `ArrayArrayOutput` with that value. AsArrayArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsArrayMapOutput ¶
func (a AnyOutput) AsArrayMapOutput() ArrayMapOutput
AsArrayMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string][]interface{} or a compatible type and returns a `ArrayMapOutput` with that value. AsArrayMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsArrayOutput ¶
func (a AnyOutput) AsArrayOutput() ArrayOutput
AsArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []interface{} or a compatible type and returns a `ArrayOutput` with that value. AsArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsAssetArrayArrayOutput ¶
func (a AnyOutput) AsAssetArrayArrayOutput() AssetArrayArrayOutput
AsAssetArrayArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is [][]Asset or a compatible type and returns a `AssetArrayArrayOutput` with that value. AsAssetArrayArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsAssetArrayMapOutput ¶
func (a AnyOutput) AsAssetArrayMapOutput() AssetArrayMapOutput
AsAssetArrayMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string][]Asset or a compatible type and returns a `AssetArrayMapOutput` with that value. AsAssetArrayMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsAssetArrayOutput ¶
func (a AnyOutput) AsAssetArrayOutput() AssetArrayOutput
AsAssetArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []Asset or a compatible type and returns a `AssetArrayOutput` with that value. AsAssetArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsAssetMapArrayOutput ¶
func (a AnyOutput) AsAssetMapArrayOutput() AssetMapArrayOutput
AsAssetMapArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []map[string]Asset or a compatible type and returns a `AssetMapArrayOutput` with that value. AsAssetMapArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsAssetMapMapOutput ¶
func (a AnyOutput) AsAssetMapMapOutput() AssetMapMapOutput
AsAssetMapMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]map[string]Asset or a compatible type and returns a `AssetMapMapOutput` with that value. AsAssetMapMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsAssetMapOutput ¶
func (a AnyOutput) AsAssetMapOutput() AssetMapOutput
AsAssetMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]Asset or a compatible type and returns a `AssetMapOutput` with that value. AsAssetMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsAssetOrArchiveArrayArrayOutput ¶
func (a AnyOutput) AsAssetOrArchiveArrayArrayOutput() AssetOrArchiveArrayArrayOutput
AsAssetOrArchiveArrayArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is [][]AssetOrArchive or a compatible type and returns a `AssetOrArchiveArrayArrayOutput` with that value. AsAssetOrArchiveArrayArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsAssetOrArchiveArrayMapOutput ¶
func (a AnyOutput) AsAssetOrArchiveArrayMapOutput() AssetOrArchiveArrayMapOutput
AsAssetOrArchiveArrayMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string][]AssetOrArchive or a compatible type and returns a `AssetOrArchiveArrayMapOutput` with that value. AsAssetOrArchiveArrayMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsAssetOrArchiveArrayOutput ¶
func (a AnyOutput) AsAssetOrArchiveArrayOutput() AssetOrArchiveArrayOutput
AsAssetOrArchiveArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []AssetOrArchive or a compatible type and returns a `AssetOrArchiveArrayOutput` with that value. AsAssetOrArchiveArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsAssetOrArchiveMapArrayOutput ¶
func (a AnyOutput) AsAssetOrArchiveMapArrayOutput() AssetOrArchiveMapArrayOutput
AsAssetOrArchiveMapArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []map[string]AssetOrArchive or a compatible type and returns a `AssetOrArchiveMapArrayOutput` with that value. AsAssetOrArchiveMapArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsAssetOrArchiveMapMapOutput ¶
func (a AnyOutput) AsAssetOrArchiveMapMapOutput() AssetOrArchiveMapMapOutput
AsAssetOrArchiveMapMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]map[string]AssetOrArchive or a compatible type and returns a `AssetOrArchiveMapMapOutput` with that value. AsAssetOrArchiveMapMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsAssetOrArchiveMapOutput ¶
func (a AnyOutput) AsAssetOrArchiveMapOutput() AssetOrArchiveMapOutput
AsAssetOrArchiveMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]AssetOrArchive or a compatible type and returns a `AssetOrArchiveMapOutput` with that value. AsAssetOrArchiveMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsAssetOrArchiveOutput ¶
func (a AnyOutput) AsAssetOrArchiveOutput() AssetOrArchiveOutput
AsAssetOrArchiveOutput asserts that the type of the AnyOutput's underlying interface{} value is AssetOrArchive and returns a `AssetOrArchiveOutput` with that value. AsAssetOrArchiveOutput panics if the value was not the expected type.
func (AnyOutput) AsAssetOutput ¶
func (a AnyOutput) AsAssetOutput() AssetOutput
AsAssetOutput asserts that the type of the AnyOutput's underlying interface{} value is Asset and returns a `AssetOutput` with that value. AsAssetOutput panics if the value was not the expected type.
func (AnyOutput) AsBoolArrayArrayOutput ¶
func (a AnyOutput) AsBoolArrayArrayOutput() BoolArrayArrayOutput
AsBoolArrayArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is [][]bool or a compatible type and returns a `BoolArrayArrayOutput` with that value. AsBoolArrayArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsBoolArrayMapOutput ¶
func (a AnyOutput) AsBoolArrayMapOutput() BoolArrayMapOutput
AsBoolArrayMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string][]bool or a compatible type and returns a `BoolArrayMapOutput` with that value. AsBoolArrayMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsBoolArrayOutput ¶
func (a AnyOutput) AsBoolArrayOutput() BoolArrayOutput
AsBoolArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []bool or a compatible type and returns a `BoolArrayOutput` with that value. AsBoolArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsBoolMapArrayOutput ¶
func (a AnyOutput) AsBoolMapArrayOutput() BoolMapArrayOutput
AsBoolMapArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []map[string]bool or a compatible type and returns a `BoolMapArrayOutput` with that value. AsBoolMapArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsBoolMapMapOutput ¶
func (a AnyOutput) AsBoolMapMapOutput() BoolMapMapOutput
AsBoolMapMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]map[string]bool or a compatible type and returns a `BoolMapMapOutput` with that value. AsBoolMapMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsBoolMapOutput ¶
func (a AnyOutput) AsBoolMapOutput() BoolMapOutput
AsBoolMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]bool or a compatible type and returns a `BoolMapOutput` with that value. AsBoolMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsBoolOutput ¶
func (a AnyOutput) AsBoolOutput() BoolOutput
AsBoolOutput asserts that the type of the AnyOutput's underlying interface{} value is bool and returns a `BoolOutput` with that value. AsBoolOutput panics if the value was not the expected type.
func (AnyOutput) AsBoolPtrOutput ¶
func (a AnyOutput) AsBoolPtrOutput() BoolPtrOutput
AsBoolPtrOutput asserts that the type of the AnyOutput's underlying interface{} value is *bool or a compatible type and returns a `BoolPtrOutput` with that value. AsBoolPtrOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsFloat64ArrayArrayOutput ¶
func (a AnyOutput) AsFloat64ArrayArrayOutput() Float64ArrayArrayOutput
AsFloat64ArrayArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is [][]float64 or a compatible type and returns a `Float64ArrayArrayOutput` with that value. AsFloat64ArrayArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsFloat64ArrayMapOutput ¶
func (a AnyOutput) AsFloat64ArrayMapOutput() Float64ArrayMapOutput
AsFloat64ArrayMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string][]float64 or a compatible type and returns a `Float64ArrayMapOutput` with that value. AsFloat64ArrayMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsFloat64ArrayOutput ¶
func (a AnyOutput) AsFloat64ArrayOutput() Float64ArrayOutput
AsFloat64ArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []float64 or a compatible type and returns a `Float64ArrayOutput` with that value. AsFloat64ArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsFloat64MapArrayOutput ¶
func (a AnyOutput) AsFloat64MapArrayOutput() Float64MapArrayOutput
AsFloat64MapArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []map[string]float64 or a compatible type and returns a `Float64MapArrayOutput` with that value. AsFloat64MapArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsFloat64MapMapOutput ¶
func (a AnyOutput) AsFloat64MapMapOutput() Float64MapMapOutput
AsFloat64MapMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]map[string]float64 or a compatible type and returns a `Float64MapMapOutput` with that value. AsFloat64MapMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsFloat64MapOutput ¶
func (a AnyOutput) AsFloat64MapOutput() Float64MapOutput
AsFloat64MapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]float64 or a compatible type and returns a `Float64MapOutput` with that value. AsFloat64MapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsFloat64Output ¶
func (a AnyOutput) AsFloat64Output() Float64Output
AsFloat64Output asserts that the type of the AnyOutput's underlying interface{} value is float64 and returns a `Float64Output` with that value. AsFloat64Output panics if the value was not the expected type.
func (AnyOutput) AsFloat64PtrOutput ¶
func (a AnyOutput) AsFloat64PtrOutput() Float64PtrOutput
AsFloat64PtrOutput asserts that the type of the AnyOutput's underlying interface{} value is *float64 or a compatible type and returns a `Float64PtrOutput` with that value. AsFloat64PtrOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsIDArrayArrayOutput ¶
func (a AnyOutput) AsIDArrayArrayOutput() IDArrayArrayOutput
AsIDArrayArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is [][]ID or a compatible type and returns a `IDArrayArrayOutput` with that value. AsIDArrayArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsIDArrayMapOutput ¶
func (a AnyOutput) AsIDArrayMapOutput() IDArrayMapOutput
AsIDArrayMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string][]ID or a compatible type and returns a `IDArrayMapOutput` with that value. AsIDArrayMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsIDArrayOutput ¶
func (a AnyOutput) AsIDArrayOutput() IDArrayOutput
AsIDArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []ID or a compatible type and returns a `IDArrayOutput` with that value. AsIDArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsIDMapArrayOutput ¶
func (a AnyOutput) AsIDMapArrayOutput() IDMapArrayOutput
AsIDMapArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []map[string]ID or a compatible type and returns a `IDMapArrayOutput` with that value. AsIDMapArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsIDMapMapOutput ¶
func (a AnyOutput) AsIDMapMapOutput() IDMapMapOutput
AsIDMapMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]map[string]ID or a compatible type and returns a `IDMapMapOutput` with that value. AsIDMapMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsIDMapOutput ¶
func (a AnyOutput) AsIDMapOutput() IDMapOutput
AsIDMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]ID or a compatible type and returns a `IDMapOutput` with that value. AsIDMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsIDOutput ¶
AsIDOutput asserts that the type of the AnyOutput's underlying interface{} value is ID and returns a `IDOutput` with that value. AsIDOutput panics if the value was not the expected type.
func (AnyOutput) AsIDPtrOutput ¶
func (a AnyOutput) AsIDPtrOutput() IDPtrOutput
AsIDPtrOutput asserts that the type of the AnyOutput's underlying interface{} value is *ID or a compatible type and returns a `IDPtrOutput` with that value. AsIDPtrOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsIntArrayArrayOutput ¶
func (a AnyOutput) AsIntArrayArrayOutput() IntArrayArrayOutput
AsIntArrayArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is [][]int or a compatible type and returns a `IntArrayArrayOutput` with that value. AsIntArrayArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsIntArrayMapOutput ¶
func (a AnyOutput) AsIntArrayMapOutput() IntArrayMapOutput
AsIntArrayMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string][]int or a compatible type and returns a `IntArrayMapOutput` with that value. AsIntArrayMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsIntArrayOutput ¶
func (a AnyOutput) AsIntArrayOutput() IntArrayOutput
AsIntArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []int or a compatible type and returns a `IntArrayOutput` with that value. AsIntArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsIntMapArrayOutput ¶
func (a AnyOutput) AsIntMapArrayOutput() IntMapArrayOutput
AsIntMapArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []map[string]int or a compatible type and returns a `IntMapArrayOutput` with that value. AsIntMapArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsIntMapMapOutput ¶
func (a AnyOutput) AsIntMapMapOutput() IntMapMapOutput
AsIntMapMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]map[string]int or a compatible type and returns a `IntMapMapOutput` with that value. AsIntMapMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsIntMapOutput ¶
func (a AnyOutput) AsIntMapOutput() IntMapOutput
AsIntMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]int or a compatible type and returns a `IntMapOutput` with that value. AsIntMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsIntOutput ¶
AsIntOutput asserts that the type of the AnyOutput's underlying interface{} value is int and returns a `IntOutput` with that value. AsIntOutput panics if the value was not the expected type.
func (AnyOutput) AsIntPtrOutput ¶
func (a AnyOutput) AsIntPtrOutput() IntPtrOutput
AsIntPtrOutput asserts that the type of the AnyOutput's underlying interface{} value is *int or a compatible type and returns a `IntPtrOutput` with that value. AsIntPtrOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsMapArrayOutput ¶
func (a AnyOutput) AsMapArrayOutput() MapArrayOutput
AsMapArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []map[string]interface{} or a compatible type and returns a `MapArrayOutput` with that value. AsMapArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsMapMapOutput ¶
func (a AnyOutput) AsMapMapOutput() MapMapOutput
AsMapMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]map[string]interface{} or a compatible type and returns a `MapMapOutput` with that value. AsMapMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsMapOutput ¶
AsMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]interface{} or a compatible type and returns a `MapOutput` with that value. AsMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsStringArrayArrayOutput ¶
func (a AnyOutput) AsStringArrayArrayOutput() StringArrayArrayOutput
AsStringArrayArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is [][]string or a compatible type and returns a `StringArrayArrayOutput` with that value. AsStringArrayArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsStringArrayMapOutput ¶
func (a AnyOutput) AsStringArrayMapOutput() StringArrayMapOutput
AsStringArrayMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string][]string or a compatible type and returns a `StringArrayMapOutput` with that value. AsStringArrayMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsStringArrayOutput ¶
func (a AnyOutput) AsStringArrayOutput() StringArrayOutput
AsStringArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []string or a compatible type and returns a `StringArrayOutput` with that value. AsStringArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsStringMapArrayOutput ¶
func (a AnyOutput) AsStringMapArrayOutput() StringMapArrayOutput
AsStringMapArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []map[string]string or a compatible type and returns a `StringMapArrayOutput` with that value. AsStringMapArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsStringMapMapMapOutput ¶
func (a AnyOutput) AsStringMapMapMapOutput() StringMapMapMapOutput
AsStringMapMapMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]map[string]map[string]string or a compatible type and returns a `StringMapMapMapOutput` with that value. AsStringMapMapMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsStringMapMapOutput ¶
func (a AnyOutput) AsStringMapMapOutput() StringMapMapOutput
AsStringMapMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]map[string]string or a compatible type and returns a `StringMapMapOutput` with that value. AsStringMapMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsStringMapOutput ¶
func (a AnyOutput) AsStringMapOutput() StringMapOutput
AsStringMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]string or a compatible type and returns a `StringMapOutput` with that value. AsStringMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsStringOutput ¶
func (a AnyOutput) AsStringOutput() StringOutput
AsStringOutput asserts that the type of the AnyOutput's underlying interface{} value is string and returns a `StringOutput` with that value. AsStringOutput panics if the value was not the expected type.
func (AnyOutput) AsStringPtrOutput ¶
func (a AnyOutput) AsStringPtrOutput() StringPtrOutput
AsStringPtrOutput asserts that the type of the AnyOutput's underlying interface{} value is *string or a compatible type and returns a `StringPtrOutput` with that value. AsStringPtrOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsURNArrayArrayOutput ¶
func (a AnyOutput) AsURNArrayArrayOutput() URNArrayArrayOutput
AsURNArrayArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is [][]URN or a compatible type and returns a `URNArrayArrayOutput` with that value. AsURNArrayArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsURNArrayMapOutput ¶
func (a AnyOutput) AsURNArrayMapOutput() URNArrayMapOutput
AsURNArrayMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string][]URN or a compatible type and returns a `URNArrayMapOutput` with that value. AsURNArrayMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsURNArrayOutput ¶
func (a AnyOutput) AsURNArrayOutput() URNArrayOutput
AsURNArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []URN or a compatible type and returns a `URNArrayOutput` with that value. AsURNArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsURNMapArrayOutput ¶
func (a AnyOutput) AsURNMapArrayOutput() URNMapArrayOutput
AsURNMapArrayOutput asserts that the type of the AnyOutput's underlying interface{} value is []map[string]URN or a compatible type and returns a `URNMapArrayOutput` with that value. AsURNMapArrayOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsURNMapMapOutput ¶
func (a AnyOutput) AsURNMapMapOutput() URNMapMapOutput
AsURNMapMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]map[string]URN or a compatible type and returns a `URNMapMapOutput` with that value. AsURNMapMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsURNMapOutput ¶
func (a AnyOutput) AsURNMapOutput() URNMapOutput
AsURNMapOutput asserts that the type of the AnyOutput's underlying interface{} value is map[string]URN or a compatible type and returns a `URNMapOutput` with that value. AsURNMapOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) AsURNOutput ¶
AsURNOutput asserts that the type of the AnyOutput's underlying interface{} value is URN and returns a `URNOutput` with that value. AsURNOutput panics if the value was not the expected type.
func (AnyOutput) AsURNPtrOutput ¶
func (a AnyOutput) AsURNPtrOutput() URNPtrOutput
AsURNPtrOutput asserts that the type of the AnyOutput's underlying interface{} value is *URN or a compatible type and returns a `URNPtrOutput` with that value. AsURNPtrOutput panics if the value was not the expected type or a compatible type.
func (AnyOutput) ElementType ¶
func (AnyOutput) MarshalJSON ¶
type Archive ¶
type Archive interface {
AssetOrArchive
ArchiveInput
ToAssetOrArchiveOutput() AssetOrArchiveOutput
ToAssetOrArchiveOutputWithContext(ctx context.Context) AssetOrArchiveOutput
// Assets returns a map of named assets or archives, for collections.
Assets() map[string]interface{}
// Path returns the filesystem path, for file-based archives.
Path() string
// URI returns a URI, for remote network-based archives.
URI() string
// contains filtered or unexported methods
}
Archive represents a collection of Assets.
func NewAssetArchive ¶
NewAssetArchive creates a new archive from an in-memory collection of named assets or other archives.
func NewFileArchive ¶
NewFileArchive creates an archive backed by a file and specified by that file's path.
func NewRemoteArchive ¶
NewRemoteArchive creates an archive backed by a remote file and specified by that file's URL.
type ArchiveArray ¶
type ArchiveArray []ArchiveInput
ArchiveArray is an input type for []ArchiveInput values.
func ToArchiveArray ¶
func ToArchiveArray(in []Archive) ArchiveArray
func (ArchiveArray) ElementType ¶
func (ArchiveArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([]Archive).
func (ArchiveArray) ToArchiveArrayOutput ¶
func (in ArchiveArray) ToArchiveArrayOutput() ArchiveArrayOutput
func (ArchiveArray) ToArchiveArrayOutputWithContext ¶
func (in ArchiveArray) ToArchiveArrayOutputWithContext(ctx context.Context) ArchiveArrayOutput
func (ArchiveArray) ToOutput ¶
func (in ArchiveArray) ToOutput(ctx context.Context) codeinfrax.Output[[]Archive]
type ArchiveArrayArray ¶
type ArchiveArrayArray []ArchiveArrayInput
ArchiveArrayArray is an input type for []ArchiveArrayInput values.
func ToArchiveArrayArray ¶
func ToArchiveArrayArray(in [][]Archive) ArchiveArrayArray
func (ArchiveArrayArray) ElementType ¶
func (ArchiveArrayArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([][]Archive).
func (ArchiveArrayArray) ToArchiveArrayArrayOutput ¶
func (in ArchiveArrayArray) ToArchiveArrayArrayOutput() ArchiveArrayArrayOutput
func (ArchiveArrayArray) ToArchiveArrayArrayOutputWithContext ¶
func (in ArchiveArrayArray) ToArchiveArrayArrayOutputWithContext(ctx context.Context) ArchiveArrayArrayOutput
func (ArchiveArrayArray) ToOutput ¶
func (in ArchiveArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]Archive]
type ArchiveArrayArrayInput ¶
type ArchiveArrayArrayInput interface {
Input
ToArchiveArrayArrayOutput() ArchiveArrayArrayOutput
ToArchiveArrayArrayOutputWithContext(ctx context.Context) ArchiveArrayArrayOutput
}
ArchiveArrayArrayInput is an input type that accepts ArchiveArrayArray and ArchiveArrayArrayOutput values.
type ArchiveArrayArrayOutput ¶
type ArchiveArrayArrayOutput struct{ *OutputState }
ArchiveArrayArrayOutput is an Output that returns [][]Archive values.
func ToArchiveArrayArrayOutput ¶
func ToArchiveArrayArrayOutput(in []ArchiveArrayOutput) ArchiveArrayArrayOutput
func (ArchiveArrayArrayOutput) ElementType ¶
func (ArchiveArrayArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([][]Archive).
func (ArchiveArrayArrayOutput) Index ¶
func (o ArchiveArrayArrayOutput) Index(i IntInput) ArchiveArrayOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (ArchiveArrayArrayOutput) MarshalJSON ¶
func (ArchiveArrayArrayOutput) MarshalJSON() ([]byte, error)
func (ArchiveArrayArrayOutput) ToArchiveArrayArrayOutput ¶
func (o ArchiveArrayArrayOutput) ToArchiveArrayArrayOutput() ArchiveArrayArrayOutput
func (ArchiveArrayArrayOutput) ToArchiveArrayArrayOutputWithContext ¶
func (o ArchiveArrayArrayOutput) ToArchiveArrayArrayOutputWithContext(ctx context.Context) ArchiveArrayArrayOutput
func (ArchiveArrayArrayOutput) ToOutput ¶
func (o ArchiveArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]Archive]
type ArchiveArrayInput ¶
type ArchiveArrayInput interface {
Input
ToArchiveArrayOutput() ArchiveArrayOutput
ToArchiveArrayOutputWithContext(ctx context.Context) ArchiveArrayOutput
}
ArchiveArrayInput is an input type that accepts ArchiveArray and ArchiveArrayOutput values.
type ArchiveArrayMap ¶
type ArchiveArrayMap map[string]ArchiveArrayInput
ArchiveArrayMap is an input type for map[string]ArchiveArrayInput values.
func ToArchiveArrayMap ¶
func ToArchiveArrayMap(in map[string][]Archive) ArchiveArrayMap
func (ArchiveArrayMap) ElementType ¶
func (ArchiveArrayMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string][]Archive).
func (ArchiveArrayMap) ToArchiveArrayMapOutput ¶
func (in ArchiveArrayMap) ToArchiveArrayMapOutput() ArchiveArrayMapOutput
func (ArchiveArrayMap) ToArchiveArrayMapOutputWithContext ¶
func (in ArchiveArrayMap) ToArchiveArrayMapOutputWithContext(ctx context.Context) ArchiveArrayMapOutput
func (ArchiveArrayMap) ToOutput ¶
func (in ArchiveArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]Archive]
type ArchiveArrayMapInput ¶
type ArchiveArrayMapInput interface {
Input
ToArchiveArrayMapOutput() ArchiveArrayMapOutput
ToArchiveArrayMapOutputWithContext(ctx context.Context) ArchiveArrayMapOutput
}
ArchiveArrayMapInput is an input type that accepts ArchiveArrayMap and ArchiveArrayMapOutput values.
type ArchiveArrayMapOutput ¶
type ArchiveArrayMapOutput struct{ *OutputState }
ArchiveArrayMapOutput is an Output that returns map[string][]Archive values.
func ToArchiveArrayMapOutput ¶
func ToArchiveArrayMapOutput(in map[string]ArchiveArrayOutput) ArchiveArrayMapOutput
func (ArchiveArrayMapOutput) ElementType ¶
func (ArchiveArrayMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string][]Archive).
func (ArchiveArrayMapOutput) MapIndex ¶
func (o ArchiveArrayMapOutput) MapIndex(k StringInput) ArchiveArrayOutput
MapIndex looks up the key k in the map.
func (ArchiveArrayMapOutput) MarshalJSON ¶
func (ArchiveArrayMapOutput) MarshalJSON() ([]byte, error)
func (ArchiveArrayMapOutput) ToArchiveArrayMapOutput ¶
func (o ArchiveArrayMapOutput) ToArchiveArrayMapOutput() ArchiveArrayMapOutput
func (ArchiveArrayMapOutput) ToArchiveArrayMapOutputWithContext ¶
func (o ArchiveArrayMapOutput) ToArchiveArrayMapOutputWithContext(ctx context.Context) ArchiveArrayMapOutput
func (ArchiveArrayMapOutput) ToOutput ¶
func (o ArchiveArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]Archive]
type ArchiveArrayOutput ¶
type ArchiveArrayOutput struct{ *OutputState }
ArchiveArrayOutput is an Output that returns []Archive values.
func ToArchiveArrayOutput ¶
func ToArchiveArrayOutput(in []ArchiveOutput) ArchiveArrayOutput
func (ArchiveArrayOutput) ElementType ¶
func (ArchiveArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]Archive).
func (ArchiveArrayOutput) Index ¶
func (o ArchiveArrayOutput) Index(i IntInput) ArchiveOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (ArchiveArrayOutput) MarshalJSON ¶
func (ArchiveArrayOutput) MarshalJSON() ([]byte, error)
func (ArchiveArrayOutput) ToArchiveArrayOutput ¶
func (o ArchiveArrayOutput) ToArchiveArrayOutput() ArchiveArrayOutput
func (ArchiveArrayOutput) ToArchiveArrayOutputWithContext ¶
func (o ArchiveArrayOutput) ToArchiveArrayOutputWithContext(ctx context.Context) ArchiveArrayOutput
func (ArchiveArrayOutput) ToOutput ¶
func (o ArchiveArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]Archive]
type ArchiveInput ¶
type ArchiveInput interface {
Input
ToArchiveOutput() ArchiveOutput
ToArchiveOutputWithContext(ctx context.Context) ArchiveOutput
}
ArchiveInput is an input type that accepts Archive and ArchiveOutput values.
type ArchiveMap ¶
type ArchiveMap map[string]ArchiveInput
ArchiveMap is an input type for map[string]ArchiveInput values.
func ToArchiveMap ¶
func ToArchiveMap(in map[string]Archive) ArchiveMap
func (ArchiveMap) ElementType ¶
func (ArchiveMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string]Archive).
func (ArchiveMap) ToArchiveMapOutput ¶
func (in ArchiveMap) ToArchiveMapOutput() ArchiveMapOutput
func (ArchiveMap) ToArchiveMapOutputWithContext ¶
func (in ArchiveMap) ToArchiveMapOutputWithContext(ctx context.Context) ArchiveMapOutput
func (ArchiveMap) ToOutput ¶
func (in ArchiveMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]Archive]
type ArchiveMapArray ¶
type ArchiveMapArray []ArchiveMapInput
ArchiveMapArray is an input type for []ArchiveMapInput values.
func ToArchiveMapArray ¶
func ToArchiveMapArray(in []map[string]Archive) ArchiveMapArray
func (ArchiveMapArray) ElementType ¶
func (ArchiveMapArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([]map[string]Archive).
func (ArchiveMapArray) ToArchiveMapArrayOutput ¶
func (in ArchiveMapArray) ToArchiveMapArrayOutput() ArchiveMapArrayOutput
func (ArchiveMapArray) ToArchiveMapArrayOutputWithContext ¶
func (in ArchiveMapArray) ToArchiveMapArrayOutputWithContext(ctx context.Context) ArchiveMapArrayOutput
func (ArchiveMapArray) ToOutput ¶
func (in ArchiveMapArray) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]Archive]
type ArchiveMapArrayInput ¶
type ArchiveMapArrayInput interface {
Input
ToArchiveMapArrayOutput() ArchiveMapArrayOutput
ToArchiveMapArrayOutputWithContext(ctx context.Context) ArchiveMapArrayOutput
}
ArchiveMapArrayInput is an input type that accepts ArchiveMapArray and ArchiveMapArrayOutput values.
type ArchiveMapArrayOutput ¶
type ArchiveMapArrayOutput struct{ *OutputState }
ArchiveMapArrayOutput is an Output that returns []map[string]Archive values.
func ToArchiveMapArrayOutput ¶
func ToArchiveMapArrayOutput(in []ArchiveMapOutput) ArchiveMapArrayOutput
func (ArchiveMapArrayOutput) ElementType ¶
func (ArchiveMapArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]map[string]Archive).
func (ArchiveMapArrayOutput) Index ¶
func (o ArchiveMapArrayOutput) Index(i IntInput) ArchiveMapOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (ArchiveMapArrayOutput) MarshalJSON ¶
func (ArchiveMapArrayOutput) MarshalJSON() ([]byte, error)
func (ArchiveMapArrayOutput) ToArchiveMapArrayOutput ¶
func (o ArchiveMapArrayOutput) ToArchiveMapArrayOutput() ArchiveMapArrayOutput
func (ArchiveMapArrayOutput) ToArchiveMapArrayOutputWithContext ¶
func (o ArchiveMapArrayOutput) ToArchiveMapArrayOutputWithContext(ctx context.Context) ArchiveMapArrayOutput
func (ArchiveMapArrayOutput) ToOutput ¶
func (o ArchiveMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]Archive]
type ArchiveMapInput ¶
type ArchiveMapInput interface {
Input
ToArchiveMapOutput() ArchiveMapOutput
ToArchiveMapOutputWithContext(ctx context.Context) ArchiveMapOutput
}
ArchiveMapInput is an input type that accepts ArchiveMap and ArchiveMapOutput values.
type ArchiveMapMap ¶
type ArchiveMapMap map[string]ArchiveMapInput
ArchiveMapMap is an input type for map[string]ArchiveMapInput values.
func ToArchiveMapMap ¶
func ToArchiveMapMap(in map[string]map[string]Archive) ArchiveMapMap
func (ArchiveMapMap) ElementType ¶
func (ArchiveMapMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string]map[string]Archive).
func (ArchiveMapMap) ToArchiveMapMapOutput ¶
func (in ArchiveMapMap) ToArchiveMapMapOutput() ArchiveMapMapOutput
func (ArchiveMapMap) ToArchiveMapMapOutputWithContext ¶
func (in ArchiveMapMap) ToArchiveMapMapOutputWithContext(ctx context.Context) ArchiveMapMapOutput
func (ArchiveMapMap) ToOutput ¶
func (in ArchiveMapMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]Archive]
type ArchiveMapMapInput ¶
type ArchiveMapMapInput interface {
Input
ToArchiveMapMapOutput() ArchiveMapMapOutput
ToArchiveMapMapOutputWithContext(ctx context.Context) ArchiveMapMapOutput
}
ArchiveMapMapInput is an input type that accepts ArchiveMapMap and ArchiveMapMapOutput values.
type ArchiveMapMapOutput ¶
type ArchiveMapMapOutput struct{ *OutputState }
ArchiveMapMapOutput is an Output that returns map[string]map[string]Archive values.
func ToArchiveMapMapOutput ¶
func ToArchiveMapMapOutput(in map[string]ArchiveMapOutput) ArchiveMapMapOutput
func (ArchiveMapMapOutput) ElementType ¶
func (ArchiveMapMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]map[string]Archive).
func (ArchiveMapMapOutput) MapIndex ¶
func (o ArchiveMapMapOutput) MapIndex(k StringInput) ArchiveMapOutput
MapIndex looks up the key k in the map.
func (ArchiveMapMapOutput) MarshalJSON ¶
func (ArchiveMapMapOutput) MarshalJSON() ([]byte, error)
func (ArchiveMapMapOutput) ToArchiveMapMapOutput ¶
func (o ArchiveMapMapOutput) ToArchiveMapMapOutput() ArchiveMapMapOutput
func (ArchiveMapMapOutput) ToArchiveMapMapOutputWithContext ¶
func (o ArchiveMapMapOutput) ToArchiveMapMapOutputWithContext(ctx context.Context) ArchiveMapMapOutput
func (ArchiveMapMapOutput) ToOutput ¶
func (o ArchiveMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]Archive]
type ArchiveMapOutput ¶
type ArchiveMapOutput struct{ *OutputState }
ArchiveMapOutput is an Output that returns map[string]Archive values.
func ToArchiveMapOutput ¶
func ToArchiveMapOutput(in map[string]ArchiveOutput) ArchiveMapOutput
func (ArchiveMapOutput) ElementType ¶
func (ArchiveMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]Archive).
func (ArchiveMapOutput) MapIndex ¶
func (o ArchiveMapOutput) MapIndex(k StringInput) ArchiveOutput
MapIndex looks up the key k in the map.
func (ArchiveMapOutput) MarshalJSON ¶
func (ArchiveMapOutput) MarshalJSON() ([]byte, error)
func (ArchiveMapOutput) ToArchiveMapOutput ¶
func (o ArchiveMapOutput) ToArchiveMapOutput() ArchiveMapOutput
func (ArchiveMapOutput) ToArchiveMapOutputWithContext ¶
func (o ArchiveMapOutput) ToArchiveMapOutputWithContext(ctx context.Context) ArchiveMapOutput
func (ArchiveMapOutput) ToOutput ¶
func (o ArchiveMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]Archive]
type ArchiveOutput ¶
type ArchiveOutput struct{ *OutputState }
ArchiveOutput is an Output that returns Archive values.
func (ArchiveOutput) ElementType ¶
func (ArchiveOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (Archive).
func (ArchiveOutput) MarshalJSON ¶
func (ArchiveOutput) MarshalJSON() ([]byte, error)
func (ArchiveOutput) ToArchiveOutput ¶
func (o ArchiveOutput) ToArchiveOutput() ArchiveOutput
func (ArchiveOutput) ToArchiveOutputWithContext ¶
func (o ArchiveOutput) ToArchiveOutputWithContext(ctx context.Context) ArchiveOutput
func (ArchiveOutput) ToAssetOrArchiveOutput ¶
func (o ArchiveOutput) ToAssetOrArchiveOutput() AssetOrArchiveOutput
func (ArchiveOutput) ToAssetOrArchiveOutputWithContext ¶
func (o ArchiveOutput) ToAssetOrArchiveOutputWithContext(ctx context.Context) AssetOrArchiveOutput
func (ArchiveOutput) ToOutput ¶
func (o ArchiveOutput) ToOutput(ctx context.Context) codeinfrax.Output[Archive]
type Array ¶
type Array []Input
Array is an input type for []Input values.
func (Array) ElementType ¶
ElementType returns the element type of this Input ([]interface{}).
func (Array) ToArrayOutput ¶
func (in Array) ToArrayOutput() ArrayOutput
func (Array) ToArrayOutputWithContext ¶
func (in Array) ToArrayOutputWithContext(ctx context.Context) ArrayOutput
type ArrayArray ¶
type ArrayArray []ArrayInput
ArrayArray is an input type for []ArrayInput values.
func ToArrayArray ¶
func ToArrayArray(in [][]interface{}) ArrayArray
func (ArrayArray) ElementType ¶
func (ArrayArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([][]interface{}).
func (ArrayArray) ToArrayArrayOutput ¶
func (in ArrayArray) ToArrayArrayOutput() ArrayArrayOutput
func (ArrayArray) ToArrayArrayOutputWithContext ¶
func (in ArrayArray) ToArrayArrayOutputWithContext(ctx context.Context) ArrayArrayOutput
func (ArrayArray) ToOutput ¶
func (in ArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]interface{}]
type ArrayArrayInput ¶
type ArrayArrayInput interface {
Input
ToArrayArrayOutput() ArrayArrayOutput
ToArrayArrayOutputWithContext(ctx context.Context) ArrayArrayOutput
}
ArrayArrayInput is an input type that accepts ArrayArray and ArrayArrayOutput values.
type ArrayArrayMap ¶
type ArrayArrayMap map[string]ArrayArrayInput
ArrayArrayMap is an input type for map[string]ArrayArrayInput values.
func ToArrayArrayMap ¶
func ToArrayArrayMap(in map[string][][]interface{}) ArrayArrayMap
func (ArrayArrayMap) ElementType ¶
func (ArrayArrayMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string][][]interface{}).
func (ArrayArrayMap) ToArrayArrayMapOutput ¶
func (in ArrayArrayMap) ToArrayArrayMapOutput() ArrayArrayMapOutput
func (ArrayArrayMap) ToArrayArrayMapOutputWithContext ¶
func (in ArrayArrayMap) ToArrayArrayMapOutputWithContext(ctx context.Context) ArrayArrayMapOutput
func (ArrayArrayMap) ToOutput ¶
func (in ArrayArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][][]interface{}]
type ArrayArrayMapInput ¶
type ArrayArrayMapInput interface {
Input
ToArrayArrayMapOutput() ArrayArrayMapOutput
ToArrayArrayMapOutputWithContext(ctx context.Context) ArrayArrayMapOutput
}
ArrayArrayMapInput is an input type that accepts ArrayArrayMap and ArrayArrayMapOutput values.
type ArrayArrayMapOutput ¶
type ArrayArrayMapOutput struct{ *OutputState }
ArrayArrayMapOutput is an Output that returns map[string][][]interface{} values.
func ToArrayArrayMapOutput ¶
func ToArrayArrayMapOutput(in map[string]ArrayArrayOutput) ArrayArrayMapOutput
func (ArrayArrayMapOutput) ElementType ¶
func (ArrayArrayMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string][][]interface{}).
func (ArrayArrayMapOutput) MapIndex ¶
func (o ArrayArrayMapOutput) MapIndex(k StringInput) ArrayArrayOutput
MapIndex looks up the key k in the map.
func (ArrayArrayMapOutput) MarshalJSON ¶
func (ArrayArrayMapOutput) MarshalJSON() ([]byte, error)
func (ArrayArrayMapOutput) ToArrayArrayMapOutput ¶
func (o ArrayArrayMapOutput) ToArrayArrayMapOutput() ArrayArrayMapOutput
func (ArrayArrayMapOutput) ToArrayArrayMapOutputWithContext ¶
func (o ArrayArrayMapOutput) ToArrayArrayMapOutputWithContext(ctx context.Context) ArrayArrayMapOutput
func (ArrayArrayMapOutput) ToOutput ¶
func (o ArrayArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][][]interface{}]
type ArrayArrayOutput ¶
type ArrayArrayOutput struct{ *OutputState }
ArrayArrayOutput is an Output that returns [][]interface{} values.
func ToArrayArrayOutput ¶
func ToArrayArrayOutput(in []ArrayOutput) ArrayArrayOutput
func (ArrayArrayOutput) ElementType ¶
func (ArrayArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([][]interface{}).
func (ArrayArrayOutput) Index ¶
func (o ArrayArrayOutput) Index(i IntInput) ArrayOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (ArrayArrayOutput) MarshalJSON ¶
func (ArrayArrayOutput) MarshalJSON() ([]byte, error)
func (ArrayArrayOutput) ToArrayArrayOutput ¶
func (o ArrayArrayOutput) ToArrayArrayOutput() ArrayArrayOutput
func (ArrayArrayOutput) ToArrayArrayOutputWithContext ¶
func (o ArrayArrayOutput) ToArrayArrayOutputWithContext(ctx context.Context) ArrayArrayOutput
func (ArrayArrayOutput) ToOutput ¶
func (o ArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]interface{}]
type ArrayInput ¶
type ArrayInput interface {
Input
ToArrayOutput() ArrayOutput
ToArrayOutputWithContext(ctx context.Context) ArrayOutput
}
ArrayInput is an input type that accepts Array and ArrayOutput values.
type ArrayMap ¶
type ArrayMap map[string]ArrayInput
ArrayMap is an input type for map[string]ArrayInput values.
func ToArrayMap ¶
func (ArrayMap) ElementType ¶
ElementType returns the element type of this Input (map[string][]interface{}).
func (ArrayMap) ToArrayMapOutput ¶
func (in ArrayMap) ToArrayMapOutput() ArrayMapOutput
func (ArrayMap) ToArrayMapOutputWithContext ¶
func (in ArrayMap) ToArrayMapOutputWithContext(ctx context.Context) ArrayMapOutput
type ArrayMapInput ¶
type ArrayMapInput interface {
Input
ToArrayMapOutput() ArrayMapOutput
ToArrayMapOutputWithContext(ctx context.Context) ArrayMapOutput
}
ArrayMapInput is an input type that accepts ArrayMap and ArrayMapOutput values.
type ArrayMapOutput ¶
type ArrayMapOutput struct{ *OutputState }
ArrayMapOutput is an Output that returns map[string][]interface{} values.
func ToArrayMapOutput ¶
func ToArrayMapOutput(in map[string]ArrayOutput) ArrayMapOutput
func (ArrayMapOutput) ElementType ¶
func (ArrayMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string][]interface{}).
func (ArrayMapOutput) MapIndex ¶
func (o ArrayMapOutput) MapIndex(k StringInput) ArrayOutput
MapIndex looks up the key k in the map.
func (ArrayMapOutput) MarshalJSON ¶
func (ArrayMapOutput) MarshalJSON() ([]byte, error)
func (ArrayMapOutput) ToArrayMapOutput ¶
func (o ArrayMapOutput) ToArrayMapOutput() ArrayMapOutput
func (ArrayMapOutput) ToArrayMapOutputWithContext ¶
func (o ArrayMapOutput) ToArrayMapOutputWithContext(ctx context.Context) ArrayMapOutput
func (ArrayMapOutput) ToOutput ¶
func (o ArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]interface{}]
type ArrayOutput ¶
type ArrayOutput struct{ *OutputState }
ArrayOutput is an Output that returns []interface{} values.
func All ¶
func All(inputs ...interface{}) ArrayOutput
All returns an ArrayOutput that will resolve when all of the provided inputs will resolve. Each element of the array will contain the resolved value of the corresponding output. The output will be rejected if any of the inputs is rejected.
For example:
connectionString := codeinfra.All(sqlServer.Name, database.Name).ApplyT(
func (args []interface{}) codeinfra.Output {
return Connection{
Server: args[0].(string),
Database: args[1].(string),
}
}
)
func AllWithContext ¶
func AllWithContext(ctx context.Context, inputs ...interface{}) ArrayOutput
AllWithContext returns an ArrayOutput that will resolve when all of the provided inputs will resolve. Each element of the array will contain the resolved value of the corresponding output. The output will be rejected if any of the inputs is rejected.
For example:
connectionString := codeinfra.AllWithContext(ctx.Context(), sqlServer.Name, database.Name).ApplyT(
func (args []interface{}) codeinfra.Output {
return Connection{
Server: args[0].(string),
Database: args[1].(string),
}
}
)
func ToArrayOutput ¶
func ToArrayOutput(in []Output) ArrayOutput
func (ArrayOutput) ElementType ¶
func (ArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]interface{}).
func (ArrayOutput) Index ¶
func (o ArrayOutput) Index(i IntInput) Output
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (ArrayOutput) MarshalJSON ¶
func (ArrayOutput) MarshalJSON() ([]byte, error)
func (ArrayOutput) ToArrayOutput ¶
func (o ArrayOutput) ToArrayOutput() ArrayOutput
func (ArrayOutput) ToArrayOutputWithContext ¶
func (o ArrayOutput) ToArrayOutputWithContext(ctx context.Context) ArrayOutput
func (ArrayOutput) ToOutput ¶
func (o ArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]interface{}]
type Asset ¶
type Asset interface {
AssetOrArchive
AssetInput
ToAssetOrArchiveOutput() AssetOrArchiveOutput
ToAssetOrArchiveOutputWithContext(ctx context.Context) AssetOrArchiveOutput
// Path returns the filesystem path, for file-based assets.
Path() string
// Text returns an in-memory blob of text, for string-based assets.
Text() string
// URI returns a URI, for remote network-based assets.
URI() string
// contains filtered or unexported methods
}
Asset represents a file that is managed in conjunction with Codeinfra resources. An Asset may be backed by a number of sources, including local filesystem paths, in-memory blobs of text, or remote files referenced by a URL.
func NewFileAsset ¶
NewFileAsset creates an asset backed by a file and specified by that file's path.
func NewRemoteAsset ¶
NewRemoteAsset creates an asset backed by a remote file and specified by that file's URL.
func NewStringAsset ¶
NewStringAsset creates an asset backed by a piece of in-memory text.
type AssetArray ¶
type AssetArray []AssetInput
AssetArray is an input type for []AssetInput values.
func ToAssetArray ¶
func ToAssetArray(in []Asset) AssetArray
func (AssetArray) ElementType ¶
func (AssetArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([]Asset).
func (AssetArray) ToAssetArrayOutput ¶
func (in AssetArray) ToAssetArrayOutput() AssetArrayOutput
func (AssetArray) ToAssetArrayOutputWithContext ¶
func (in AssetArray) ToAssetArrayOutputWithContext(ctx context.Context) AssetArrayOutput
func (AssetArray) ToOutput ¶
func (in AssetArray) ToOutput(ctx context.Context) codeinfrax.Output[[]Asset]
type AssetArrayArray ¶
type AssetArrayArray []AssetArrayInput
AssetArrayArray is an input type for []AssetArrayInput values.
func ToAssetArrayArray ¶
func ToAssetArrayArray(in [][]Asset) AssetArrayArray
func (AssetArrayArray) ElementType ¶
func (AssetArrayArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([][]Asset).
func (AssetArrayArray) ToAssetArrayArrayOutput ¶
func (in AssetArrayArray) ToAssetArrayArrayOutput() AssetArrayArrayOutput
func (AssetArrayArray) ToAssetArrayArrayOutputWithContext ¶
func (in AssetArrayArray) ToAssetArrayArrayOutputWithContext(ctx context.Context) AssetArrayArrayOutput
func (AssetArrayArray) ToOutput ¶
func (in AssetArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]Asset]
type AssetArrayArrayInput ¶
type AssetArrayArrayInput interface {
Input
ToAssetArrayArrayOutput() AssetArrayArrayOutput
ToAssetArrayArrayOutputWithContext(ctx context.Context) AssetArrayArrayOutput
}
AssetArrayArrayInput is an input type that accepts AssetArrayArray and AssetArrayArrayOutput values.
type AssetArrayArrayOutput ¶
type AssetArrayArrayOutput struct{ *OutputState }
AssetArrayArrayOutput is an Output that returns [][]Asset values.
func ToAssetArrayArrayOutput ¶
func ToAssetArrayArrayOutput(in []AssetArrayOutput) AssetArrayArrayOutput
func (AssetArrayArrayOutput) ElementType ¶
func (AssetArrayArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([][]Asset).
func (AssetArrayArrayOutput) Index ¶
func (o AssetArrayArrayOutput) Index(i IntInput) AssetArrayOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (AssetArrayArrayOutput) MarshalJSON ¶
func (AssetArrayArrayOutput) MarshalJSON() ([]byte, error)
func (AssetArrayArrayOutput) ToAssetArrayArrayOutput ¶
func (o AssetArrayArrayOutput) ToAssetArrayArrayOutput() AssetArrayArrayOutput
func (AssetArrayArrayOutput) ToAssetArrayArrayOutputWithContext ¶
func (o AssetArrayArrayOutput) ToAssetArrayArrayOutputWithContext(ctx context.Context) AssetArrayArrayOutput
func (AssetArrayArrayOutput) ToOutput ¶
func (o AssetArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]Asset]
type AssetArrayInput ¶
type AssetArrayInput interface {
Input
ToAssetArrayOutput() AssetArrayOutput
ToAssetArrayOutputWithContext(ctx context.Context) AssetArrayOutput
}
AssetArrayInput is an input type that accepts AssetArray and AssetArrayOutput values.
type AssetArrayMap ¶
type AssetArrayMap map[string]AssetArrayInput
AssetArrayMap is an input type for map[string]AssetArrayInput values.
func ToAssetArrayMap ¶
func ToAssetArrayMap(in map[string][]Asset) AssetArrayMap
func (AssetArrayMap) ElementType ¶
func (AssetArrayMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string][]Asset).
func (AssetArrayMap) ToAssetArrayMapOutput ¶
func (in AssetArrayMap) ToAssetArrayMapOutput() AssetArrayMapOutput
func (AssetArrayMap) ToAssetArrayMapOutputWithContext ¶
func (in AssetArrayMap) ToAssetArrayMapOutputWithContext(ctx context.Context) AssetArrayMapOutput
func (AssetArrayMap) ToOutput ¶
func (in AssetArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]Asset]
type AssetArrayMapInput ¶
type AssetArrayMapInput interface {
Input
ToAssetArrayMapOutput() AssetArrayMapOutput
ToAssetArrayMapOutputWithContext(ctx context.Context) AssetArrayMapOutput
}
AssetArrayMapInput is an input type that accepts AssetArrayMap and AssetArrayMapOutput values.
type AssetArrayMapOutput ¶
type AssetArrayMapOutput struct{ *OutputState }
AssetArrayMapOutput is an Output that returns map[string][]Asset values.
func ToAssetArrayMapOutput ¶
func ToAssetArrayMapOutput(in map[string]AssetArrayOutput) AssetArrayMapOutput
func (AssetArrayMapOutput) ElementType ¶
func (AssetArrayMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string][]Asset).
func (AssetArrayMapOutput) MapIndex ¶
func (o AssetArrayMapOutput) MapIndex(k StringInput) AssetArrayOutput
MapIndex looks up the key k in the map.
func (AssetArrayMapOutput) MarshalJSON ¶
func (AssetArrayMapOutput) MarshalJSON() ([]byte, error)
func (AssetArrayMapOutput) ToAssetArrayMapOutput ¶
func (o AssetArrayMapOutput) ToAssetArrayMapOutput() AssetArrayMapOutput
func (AssetArrayMapOutput) ToAssetArrayMapOutputWithContext ¶
func (o AssetArrayMapOutput) ToAssetArrayMapOutputWithContext(ctx context.Context) AssetArrayMapOutput
func (AssetArrayMapOutput) ToOutput ¶
func (o AssetArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]Asset]
type AssetArrayOutput ¶
type AssetArrayOutput struct{ *OutputState }
AssetArrayOutput is an Output that returns []Asset values.
func ToAssetArrayOutput ¶
func ToAssetArrayOutput(in []AssetOutput) AssetArrayOutput
func (AssetArrayOutput) ElementType ¶
func (AssetArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]Asset).
func (AssetArrayOutput) Index ¶
func (o AssetArrayOutput) Index(i IntInput) AssetOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (AssetArrayOutput) MarshalJSON ¶
func (AssetArrayOutput) MarshalJSON() ([]byte, error)
func (AssetArrayOutput) ToAssetArrayOutput ¶
func (o AssetArrayOutput) ToAssetArrayOutput() AssetArrayOutput
func (AssetArrayOutput) ToAssetArrayOutputWithContext ¶
func (o AssetArrayOutput) ToAssetArrayOutputWithContext(ctx context.Context) AssetArrayOutput
func (AssetArrayOutput) ToOutput ¶
func (o AssetArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]Asset]
type AssetInput ¶
type AssetInput interface {
Input
ToAssetOutput() AssetOutput
ToAssetOutputWithContext(ctx context.Context) AssetOutput
}
AssetInput is an input type that accepts Asset and AssetOutput values.
type AssetMap ¶
type AssetMap map[string]AssetInput
AssetMap is an input type for map[string]AssetInput values.
func ToAssetMap ¶
func (AssetMap) ElementType ¶
ElementType returns the element type of this Input (map[string]Asset).
func (AssetMap) ToAssetMapOutput ¶
func (in AssetMap) ToAssetMapOutput() AssetMapOutput
func (AssetMap) ToAssetMapOutputWithContext ¶
func (in AssetMap) ToAssetMapOutputWithContext(ctx context.Context) AssetMapOutput
type AssetMapArray ¶
type AssetMapArray []AssetMapInput
AssetMapArray is an input type for []AssetMapInput values.
func ToAssetMapArray ¶
func ToAssetMapArray(in []map[string]Asset) AssetMapArray
func (AssetMapArray) ElementType ¶
func (AssetMapArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([]map[string]Asset).
func (AssetMapArray) ToAssetMapArrayOutput ¶
func (in AssetMapArray) ToAssetMapArrayOutput() AssetMapArrayOutput
func (AssetMapArray) ToAssetMapArrayOutputWithContext ¶
func (in AssetMapArray) ToAssetMapArrayOutputWithContext(ctx context.Context) AssetMapArrayOutput
func (AssetMapArray) ToOutput ¶
func (in AssetMapArray) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]Asset]
type AssetMapArrayInput ¶
type AssetMapArrayInput interface {
Input
ToAssetMapArrayOutput() AssetMapArrayOutput
ToAssetMapArrayOutputWithContext(ctx context.Context) AssetMapArrayOutput
}
AssetMapArrayInput is an input type that accepts AssetMapArray and AssetMapArrayOutput values.
type AssetMapArrayOutput ¶
type AssetMapArrayOutput struct{ *OutputState }
AssetMapArrayOutput is an Output that returns []map[string]Asset values.
func ToAssetMapArrayOutput ¶
func ToAssetMapArrayOutput(in []AssetMapOutput) AssetMapArrayOutput
func (AssetMapArrayOutput) ElementType ¶
func (AssetMapArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]map[string]Asset).
func (AssetMapArrayOutput) Index ¶
func (o AssetMapArrayOutput) Index(i IntInput) AssetMapOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (AssetMapArrayOutput) MarshalJSON ¶
func (AssetMapArrayOutput) MarshalJSON() ([]byte, error)
func (AssetMapArrayOutput) ToAssetMapArrayOutput ¶
func (o AssetMapArrayOutput) ToAssetMapArrayOutput() AssetMapArrayOutput
func (AssetMapArrayOutput) ToAssetMapArrayOutputWithContext ¶
func (o AssetMapArrayOutput) ToAssetMapArrayOutputWithContext(ctx context.Context) AssetMapArrayOutput
func (AssetMapArrayOutput) ToOutput ¶
func (o AssetMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]Asset]
type AssetMapInput ¶
type AssetMapInput interface {
Input
ToAssetMapOutput() AssetMapOutput
ToAssetMapOutputWithContext(ctx context.Context) AssetMapOutput
}
AssetMapInput is an input type that accepts AssetMap and AssetMapOutput values.
type AssetMapMap ¶
type AssetMapMap map[string]AssetMapInput
AssetMapMap is an input type for map[string]AssetMapInput values.
func ToAssetMapMap ¶
func ToAssetMapMap(in map[string]map[string]Asset) AssetMapMap
func (AssetMapMap) ElementType ¶
func (AssetMapMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string]map[string]Asset).
func (AssetMapMap) ToAssetMapMapOutput ¶
func (in AssetMapMap) ToAssetMapMapOutput() AssetMapMapOutput
func (AssetMapMap) ToAssetMapMapOutputWithContext ¶
func (in AssetMapMap) ToAssetMapMapOutputWithContext(ctx context.Context) AssetMapMapOutput
func (AssetMapMap) ToOutput ¶
func (in AssetMapMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]Asset]
type AssetMapMapInput ¶
type AssetMapMapInput interface {
Input
ToAssetMapMapOutput() AssetMapMapOutput
ToAssetMapMapOutputWithContext(ctx context.Context) AssetMapMapOutput
}
AssetMapMapInput is an input type that accepts AssetMapMap and AssetMapMapOutput values.
type AssetMapMapOutput ¶
type AssetMapMapOutput struct{ *OutputState }
AssetMapMapOutput is an Output that returns map[string]map[string]Asset values.
func ToAssetMapMapOutput ¶
func ToAssetMapMapOutput(in map[string]AssetMapOutput) AssetMapMapOutput
func (AssetMapMapOutput) ElementType ¶
func (AssetMapMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]map[string]Asset).
func (AssetMapMapOutput) MapIndex ¶
func (o AssetMapMapOutput) MapIndex(k StringInput) AssetMapOutput
MapIndex looks up the key k in the map.
func (AssetMapMapOutput) MarshalJSON ¶
func (AssetMapMapOutput) MarshalJSON() ([]byte, error)
func (AssetMapMapOutput) ToAssetMapMapOutput ¶
func (o AssetMapMapOutput) ToAssetMapMapOutput() AssetMapMapOutput
func (AssetMapMapOutput) ToAssetMapMapOutputWithContext ¶
func (o AssetMapMapOutput) ToAssetMapMapOutputWithContext(ctx context.Context) AssetMapMapOutput
func (AssetMapMapOutput) ToOutput ¶
func (o AssetMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]Asset]
type AssetMapOutput ¶
type AssetMapOutput struct{ *OutputState }
AssetMapOutput is an Output that returns map[string]Asset values.
func ToAssetMapOutput ¶
func ToAssetMapOutput(in map[string]AssetOutput) AssetMapOutput
func (AssetMapOutput) ElementType ¶
func (AssetMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]Asset).
func (AssetMapOutput) MapIndex ¶
func (o AssetMapOutput) MapIndex(k StringInput) AssetOutput
MapIndex looks up the key k in the map.
func (AssetMapOutput) MarshalJSON ¶
func (AssetMapOutput) MarshalJSON() ([]byte, error)
func (AssetMapOutput) ToAssetMapOutput ¶
func (o AssetMapOutput) ToAssetMapOutput() AssetMapOutput
func (AssetMapOutput) ToAssetMapOutputWithContext ¶
func (o AssetMapOutput) ToAssetMapOutputWithContext(ctx context.Context) AssetMapOutput
func (AssetMapOutput) ToOutput ¶
func (o AssetMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]Asset]
type AssetOrArchive ¶
type AssetOrArchive interface {
// contains filtered or unexported methods
}
AssetOrArchive represents either an Asset or an Archive.
type AssetOrArchiveArray ¶
type AssetOrArchiveArray []AssetOrArchiveInput
AssetOrArchiveArray is an input type for []AssetOrArchiveInput values.
func (AssetOrArchiveArray) ElementType ¶
func (AssetOrArchiveArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([]AssetOrArchive).
func (AssetOrArchiveArray) ToAssetOrArchiveArrayOutput ¶
func (in AssetOrArchiveArray) ToAssetOrArchiveArrayOutput() AssetOrArchiveArrayOutput
func (AssetOrArchiveArray) ToAssetOrArchiveArrayOutputWithContext ¶
func (in AssetOrArchiveArray) ToAssetOrArchiveArrayOutputWithContext(ctx context.Context) AssetOrArchiveArrayOutput
func (AssetOrArchiveArray) ToOutput ¶
func (in AssetOrArchiveArray) ToOutput(ctx context.Context) codeinfrax.Output[[]AssetOrArchive]
type AssetOrArchiveArrayArray ¶
type AssetOrArchiveArrayArray []AssetOrArchiveArrayInput
AssetOrArchiveArrayArray is an input type for []AssetOrArchiveArrayInput values.
func (AssetOrArchiveArrayArray) ElementType ¶
func (AssetOrArchiveArrayArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([][]AssetOrArchive).
func (AssetOrArchiveArrayArray) ToAssetOrArchiveArrayArrayOutput ¶
func (in AssetOrArchiveArrayArray) ToAssetOrArchiveArrayArrayOutput() AssetOrArchiveArrayArrayOutput
func (AssetOrArchiveArrayArray) ToAssetOrArchiveArrayArrayOutputWithContext ¶
func (in AssetOrArchiveArrayArray) ToAssetOrArchiveArrayArrayOutputWithContext(ctx context.Context) AssetOrArchiveArrayArrayOutput
func (AssetOrArchiveArrayArray) ToOutput ¶
func (in AssetOrArchiveArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]AssetOrArchive]
type AssetOrArchiveArrayArrayInput ¶
type AssetOrArchiveArrayArrayInput interface {
Input
ToAssetOrArchiveArrayArrayOutput() AssetOrArchiveArrayArrayOutput
ToAssetOrArchiveArrayArrayOutputWithContext(ctx context.Context) AssetOrArchiveArrayArrayOutput
}
AssetOrArchiveArrayArrayInput is an input type that accepts AssetOrArchiveArrayArray and AssetOrArchiveArrayArrayOutput values.
type AssetOrArchiveArrayArrayOutput ¶
type AssetOrArchiveArrayArrayOutput struct{ *OutputState }
AssetOrArchiveArrayArrayOutput is an Output that returns [][]AssetOrArchive values.
func (AssetOrArchiveArrayArrayOutput) ElementType ¶
func (AssetOrArchiveArrayArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([][]AssetOrArchive).
func (AssetOrArchiveArrayArrayOutput) Index ¶
func (o AssetOrArchiveArrayArrayOutput) Index(i IntInput) AssetOrArchiveArrayOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (AssetOrArchiveArrayArrayOutput) MarshalJSON ¶
func (AssetOrArchiveArrayArrayOutput) MarshalJSON() ([]byte, error)
func (AssetOrArchiveArrayArrayOutput) ToAssetOrArchiveArrayArrayOutput ¶
func (o AssetOrArchiveArrayArrayOutput) ToAssetOrArchiveArrayArrayOutput() AssetOrArchiveArrayArrayOutput
func (AssetOrArchiveArrayArrayOutput) ToAssetOrArchiveArrayArrayOutputWithContext ¶
func (o AssetOrArchiveArrayArrayOutput) ToAssetOrArchiveArrayArrayOutputWithContext(ctx context.Context) AssetOrArchiveArrayArrayOutput
func (AssetOrArchiveArrayArrayOutput) ToOutput ¶
func (o AssetOrArchiveArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]AssetOrArchive]
type AssetOrArchiveArrayInput ¶
type AssetOrArchiveArrayInput interface {
Input
ToAssetOrArchiveArrayOutput() AssetOrArchiveArrayOutput
ToAssetOrArchiveArrayOutputWithContext(ctx context.Context) AssetOrArchiveArrayOutput
}
AssetOrArchiveArrayInput is an input type that accepts AssetOrArchiveArray and AssetOrArchiveArrayOutput values.
type AssetOrArchiveArrayMap ¶
type AssetOrArchiveArrayMap map[string]AssetOrArchiveArrayInput
AssetOrArchiveArrayMap is an input type for map[string]AssetOrArchiveArrayInput values.
func (AssetOrArchiveArrayMap) ElementType ¶
func (AssetOrArchiveArrayMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string][]AssetOrArchive).
func (AssetOrArchiveArrayMap) ToAssetOrArchiveArrayMapOutput ¶
func (in AssetOrArchiveArrayMap) ToAssetOrArchiveArrayMapOutput() AssetOrArchiveArrayMapOutput
func (AssetOrArchiveArrayMap) ToAssetOrArchiveArrayMapOutputWithContext ¶
func (in AssetOrArchiveArrayMap) ToAssetOrArchiveArrayMapOutputWithContext(ctx context.Context) AssetOrArchiveArrayMapOutput
func (AssetOrArchiveArrayMap) ToOutput ¶
func (in AssetOrArchiveArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]AssetOrArchive]
type AssetOrArchiveArrayMapInput ¶
type AssetOrArchiveArrayMapInput interface {
Input
ToAssetOrArchiveArrayMapOutput() AssetOrArchiveArrayMapOutput
ToAssetOrArchiveArrayMapOutputWithContext(ctx context.Context) AssetOrArchiveArrayMapOutput
}
AssetOrArchiveArrayMapInput is an input type that accepts AssetOrArchiveArrayMap and AssetOrArchiveArrayMapOutput values.
type AssetOrArchiveArrayMapOutput ¶
type AssetOrArchiveArrayMapOutput struct{ *OutputState }
AssetOrArchiveArrayMapOutput is an Output that returns map[string][]AssetOrArchive values.
func (AssetOrArchiveArrayMapOutput) ElementType ¶
func (AssetOrArchiveArrayMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string][]AssetOrArchive).
func (AssetOrArchiveArrayMapOutput) MapIndex ¶
func (o AssetOrArchiveArrayMapOutput) MapIndex(k StringInput) AssetOrArchiveArrayOutput
MapIndex looks up the key k in the map.
func (AssetOrArchiveArrayMapOutput) MarshalJSON ¶
func (AssetOrArchiveArrayMapOutput) MarshalJSON() ([]byte, error)
func (AssetOrArchiveArrayMapOutput) ToAssetOrArchiveArrayMapOutput ¶
func (o AssetOrArchiveArrayMapOutput) ToAssetOrArchiveArrayMapOutput() AssetOrArchiveArrayMapOutput
func (AssetOrArchiveArrayMapOutput) ToAssetOrArchiveArrayMapOutputWithContext ¶
func (o AssetOrArchiveArrayMapOutput) ToAssetOrArchiveArrayMapOutputWithContext(ctx context.Context) AssetOrArchiveArrayMapOutput
func (AssetOrArchiveArrayMapOutput) ToOutput ¶
func (o AssetOrArchiveArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]AssetOrArchive]
type AssetOrArchiveArrayOutput ¶
type AssetOrArchiveArrayOutput struct{ *OutputState }
AssetOrArchiveArrayOutput is an Output that returns []AssetOrArchive values.
func (AssetOrArchiveArrayOutput) ElementType ¶
func (AssetOrArchiveArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]AssetOrArchive).
func (AssetOrArchiveArrayOutput) Index ¶
func (o AssetOrArchiveArrayOutput) Index(i IntInput) AssetOrArchiveOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (AssetOrArchiveArrayOutput) MarshalJSON ¶
func (AssetOrArchiveArrayOutput) MarshalJSON() ([]byte, error)
func (AssetOrArchiveArrayOutput) ToAssetOrArchiveArrayOutput ¶
func (o AssetOrArchiveArrayOutput) ToAssetOrArchiveArrayOutput() AssetOrArchiveArrayOutput
func (AssetOrArchiveArrayOutput) ToAssetOrArchiveArrayOutputWithContext ¶
func (o AssetOrArchiveArrayOutput) ToAssetOrArchiveArrayOutputWithContext(ctx context.Context) AssetOrArchiveArrayOutput
func (AssetOrArchiveArrayOutput) ToOutput ¶
func (o AssetOrArchiveArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]AssetOrArchive]
type AssetOrArchiveInput ¶
type AssetOrArchiveInput interface {
Input
ToAssetOrArchiveOutput() AssetOrArchiveOutput
ToAssetOrArchiveOutputWithContext(ctx context.Context) AssetOrArchiveOutput
}
AssetOrArchiveInput is an input type that accepts AssetOrArchive and AssetOrArchiveOutput values.
type AssetOrArchiveMap ¶
type AssetOrArchiveMap map[string]AssetOrArchiveInput
AssetOrArchiveMap is an input type for map[string]AssetOrArchiveInput values.
func (AssetOrArchiveMap) ElementType ¶
func (AssetOrArchiveMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string]AssetOrArchive).
func (AssetOrArchiveMap) ToAssetOrArchiveMapOutput ¶
func (in AssetOrArchiveMap) ToAssetOrArchiveMapOutput() AssetOrArchiveMapOutput
func (AssetOrArchiveMap) ToAssetOrArchiveMapOutputWithContext ¶
func (in AssetOrArchiveMap) ToAssetOrArchiveMapOutputWithContext(ctx context.Context) AssetOrArchiveMapOutput
func (AssetOrArchiveMap) ToOutput ¶
func (in AssetOrArchiveMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]AssetOrArchive]
type AssetOrArchiveMapArray ¶
type AssetOrArchiveMapArray []AssetOrArchiveMapInput
AssetOrArchiveMapArray is an input type for []AssetOrArchiveMapInput values.
func (AssetOrArchiveMapArray) ElementType ¶
func (AssetOrArchiveMapArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([]map[string]AssetOrArchive).
func (AssetOrArchiveMapArray) ToAssetOrArchiveMapArrayOutput ¶
func (in AssetOrArchiveMapArray) ToAssetOrArchiveMapArrayOutput() AssetOrArchiveMapArrayOutput
func (AssetOrArchiveMapArray) ToAssetOrArchiveMapArrayOutputWithContext ¶
func (in AssetOrArchiveMapArray) ToAssetOrArchiveMapArrayOutputWithContext(ctx context.Context) AssetOrArchiveMapArrayOutput
func (AssetOrArchiveMapArray) ToOutput ¶
func (in AssetOrArchiveMapArray) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]AssetOrArchive]
type AssetOrArchiveMapArrayInput ¶
type AssetOrArchiveMapArrayInput interface {
Input
ToAssetOrArchiveMapArrayOutput() AssetOrArchiveMapArrayOutput
ToAssetOrArchiveMapArrayOutputWithContext(ctx context.Context) AssetOrArchiveMapArrayOutput
}
AssetOrArchiveMapArrayInput is an input type that accepts AssetOrArchiveMapArray and AssetOrArchiveMapArrayOutput values.
type AssetOrArchiveMapArrayOutput ¶
type AssetOrArchiveMapArrayOutput struct{ *OutputState }
AssetOrArchiveMapArrayOutput is an Output that returns []map[string]AssetOrArchive values.
func (AssetOrArchiveMapArrayOutput) ElementType ¶
func (AssetOrArchiveMapArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]map[string]AssetOrArchive).
func (AssetOrArchiveMapArrayOutput) Index ¶
func (o AssetOrArchiveMapArrayOutput) Index(i IntInput) AssetOrArchiveMapOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (AssetOrArchiveMapArrayOutput) MarshalJSON ¶
func (AssetOrArchiveMapArrayOutput) MarshalJSON() ([]byte, error)
func (AssetOrArchiveMapArrayOutput) ToAssetOrArchiveMapArrayOutput ¶
func (o AssetOrArchiveMapArrayOutput) ToAssetOrArchiveMapArrayOutput() AssetOrArchiveMapArrayOutput
func (AssetOrArchiveMapArrayOutput) ToAssetOrArchiveMapArrayOutputWithContext ¶
func (o AssetOrArchiveMapArrayOutput) ToAssetOrArchiveMapArrayOutputWithContext(ctx context.Context) AssetOrArchiveMapArrayOutput
func (AssetOrArchiveMapArrayOutput) ToOutput ¶
func (o AssetOrArchiveMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]AssetOrArchive]
type AssetOrArchiveMapInput ¶
type AssetOrArchiveMapInput interface {
Input
ToAssetOrArchiveMapOutput() AssetOrArchiveMapOutput
ToAssetOrArchiveMapOutputWithContext(ctx context.Context) AssetOrArchiveMapOutput
}
AssetOrArchiveMapInput is an input type that accepts AssetOrArchiveMap and AssetOrArchiveMapOutput values.
type AssetOrArchiveMapMap ¶
type AssetOrArchiveMapMap map[string]AssetOrArchiveMapInput
AssetOrArchiveMapMap is an input type for map[string]AssetOrArchiveMapInput values.
func (AssetOrArchiveMapMap) ElementType ¶
func (AssetOrArchiveMapMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string]map[string]AssetOrArchive).
func (AssetOrArchiveMapMap) ToAssetOrArchiveMapMapOutput ¶
func (in AssetOrArchiveMapMap) ToAssetOrArchiveMapMapOutput() AssetOrArchiveMapMapOutput
func (AssetOrArchiveMapMap) ToAssetOrArchiveMapMapOutputWithContext ¶
func (in AssetOrArchiveMapMap) ToAssetOrArchiveMapMapOutputWithContext(ctx context.Context) AssetOrArchiveMapMapOutput
func (AssetOrArchiveMapMap) ToOutput ¶
func (in AssetOrArchiveMapMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]AssetOrArchive]
type AssetOrArchiveMapMapInput ¶
type AssetOrArchiveMapMapInput interface {
Input
ToAssetOrArchiveMapMapOutput() AssetOrArchiveMapMapOutput
ToAssetOrArchiveMapMapOutputWithContext(ctx context.Context) AssetOrArchiveMapMapOutput
}
AssetOrArchiveMapMapInput is an input type that accepts AssetOrArchiveMapMap and AssetOrArchiveMapMapOutput values.
type AssetOrArchiveMapMapOutput ¶
type AssetOrArchiveMapMapOutput struct{ *OutputState }
AssetOrArchiveMapMapOutput is an Output that returns map[string]map[string]AssetOrArchive values.
func (AssetOrArchiveMapMapOutput) ElementType ¶
func (AssetOrArchiveMapMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]map[string]AssetOrArchive).
func (AssetOrArchiveMapMapOutput) MapIndex ¶
func (o AssetOrArchiveMapMapOutput) MapIndex(k StringInput) AssetOrArchiveMapOutput
MapIndex looks up the key k in the map.
func (AssetOrArchiveMapMapOutput) MarshalJSON ¶
func (AssetOrArchiveMapMapOutput) MarshalJSON() ([]byte, error)
func (AssetOrArchiveMapMapOutput) ToAssetOrArchiveMapMapOutput ¶
func (o AssetOrArchiveMapMapOutput) ToAssetOrArchiveMapMapOutput() AssetOrArchiveMapMapOutput
func (AssetOrArchiveMapMapOutput) ToAssetOrArchiveMapMapOutputWithContext ¶
func (o AssetOrArchiveMapMapOutput) ToAssetOrArchiveMapMapOutputWithContext(ctx context.Context) AssetOrArchiveMapMapOutput
func (AssetOrArchiveMapMapOutput) ToOutput ¶
func (o AssetOrArchiveMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]AssetOrArchive]
type AssetOrArchiveMapOutput ¶
type AssetOrArchiveMapOutput struct{ *OutputState }
AssetOrArchiveMapOutput is an Output that returns map[string]AssetOrArchive values.
func (AssetOrArchiveMapOutput) ElementType ¶
func (AssetOrArchiveMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]AssetOrArchive).
func (AssetOrArchiveMapOutput) MapIndex ¶
func (o AssetOrArchiveMapOutput) MapIndex(k StringInput) AssetOrArchiveOutput
MapIndex looks up the key k in the map.
func (AssetOrArchiveMapOutput) MarshalJSON ¶
func (AssetOrArchiveMapOutput) MarshalJSON() ([]byte, error)
func (AssetOrArchiveMapOutput) ToAssetOrArchiveMapOutput ¶
func (o AssetOrArchiveMapOutput) ToAssetOrArchiveMapOutput() AssetOrArchiveMapOutput
func (AssetOrArchiveMapOutput) ToAssetOrArchiveMapOutputWithContext ¶
func (o AssetOrArchiveMapOutput) ToAssetOrArchiveMapOutputWithContext(ctx context.Context) AssetOrArchiveMapOutput
func (AssetOrArchiveMapOutput) ToOutput ¶
func (o AssetOrArchiveMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]AssetOrArchive]
type AssetOrArchiveOutput ¶
type AssetOrArchiveOutput struct{ *OutputState }
AssetOrArchiveOutput is an Output that returns AssetOrArchive values.
func (AssetOrArchiveOutput) ElementType ¶
func (AssetOrArchiveOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (AssetOrArchive).
func (AssetOrArchiveOutput) MarshalJSON ¶
func (AssetOrArchiveOutput) MarshalJSON() ([]byte, error)
func (AssetOrArchiveOutput) ToAssetOrArchiveOutput ¶
func (o AssetOrArchiveOutput) ToAssetOrArchiveOutput() AssetOrArchiveOutput
func (AssetOrArchiveOutput) ToAssetOrArchiveOutputWithContext ¶
func (o AssetOrArchiveOutput) ToAssetOrArchiveOutputWithContext(ctx context.Context) AssetOrArchiveOutput
func (AssetOrArchiveOutput) ToOutput ¶
func (o AssetOrArchiveOutput) ToOutput(ctx context.Context) codeinfrax.Output[AssetOrArchive]
type AssetOutput ¶
type AssetOutput struct{ *OutputState }
AssetOutput is an Output that returns Asset values.
func (AssetOutput) ElementType ¶
func (AssetOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (Asset).
func (AssetOutput) MarshalJSON ¶
func (AssetOutput) MarshalJSON() ([]byte, error)
func (AssetOutput) ToAssetOrArchiveOutput ¶
func (o AssetOutput) ToAssetOrArchiveOutput() AssetOrArchiveOutput
func (AssetOutput) ToAssetOrArchiveOutputWithContext ¶
func (o AssetOutput) ToAssetOrArchiveOutputWithContext(ctx context.Context) AssetOrArchiveOutput
func (AssetOutput) ToAssetOutput ¶
func (o AssetOutput) ToAssetOutput() AssetOutput
func (AssetOutput) ToAssetOutputWithContext ¶
func (o AssetOutput) ToAssetOutputWithContext(ctx context.Context) AssetOutput
func (AssetOutput) ToOutput ¶
func (o AssetOutput) ToOutput(ctx context.Context) codeinfrax.Output[Asset]
type Bool ¶
type Bool bool
Bool is an input type for bool values.
func (Bool) ElementType ¶
ElementType returns the element type of this Input (bool).
func (Bool) ToBoolOutput ¶
func (in Bool) ToBoolOutput() BoolOutput
func (Bool) ToBoolOutputWithContext ¶
func (in Bool) ToBoolOutputWithContext(ctx context.Context) BoolOutput
func (Bool) ToBoolPtrOutput ¶
func (in Bool) ToBoolPtrOutput() BoolPtrOutput
func (Bool) ToBoolPtrOutputWithContext ¶
func (in Bool) ToBoolPtrOutputWithContext(ctx context.Context) BoolPtrOutput
type BoolArray ¶
type BoolArray []BoolInput
BoolArray is an input type for []BoolInput values.
func ToBoolArray ¶
func (BoolArray) ElementType ¶
ElementType returns the element type of this Input ([]bool).
func (BoolArray) ToBoolArrayOutput ¶
func (in BoolArray) ToBoolArrayOutput() BoolArrayOutput
func (BoolArray) ToBoolArrayOutputWithContext ¶
func (in BoolArray) ToBoolArrayOutputWithContext(ctx context.Context) BoolArrayOutput
type BoolArrayArray ¶
type BoolArrayArray []BoolArrayInput
BoolArrayArray is an input type for []BoolArrayInput values.
func ToBoolArrayArray ¶
func ToBoolArrayArray(in [][]bool) BoolArrayArray
func (BoolArrayArray) ElementType ¶
func (BoolArrayArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([][]bool).
func (BoolArrayArray) ToBoolArrayArrayOutput ¶
func (in BoolArrayArray) ToBoolArrayArrayOutput() BoolArrayArrayOutput
func (BoolArrayArray) ToBoolArrayArrayOutputWithContext ¶
func (in BoolArrayArray) ToBoolArrayArrayOutputWithContext(ctx context.Context) BoolArrayArrayOutput
func (BoolArrayArray) ToOutput ¶
func (in BoolArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]bool]
type BoolArrayArrayInput ¶
type BoolArrayArrayInput interface {
Input
ToBoolArrayArrayOutput() BoolArrayArrayOutput
ToBoolArrayArrayOutputWithContext(ctx context.Context) BoolArrayArrayOutput
}
BoolArrayArrayInput is an input type that accepts BoolArrayArray and BoolArrayArrayOutput values.
type BoolArrayArrayOutput ¶
type BoolArrayArrayOutput struct{ *OutputState }
BoolArrayArrayOutput is an Output that returns [][]bool values.
func ToBoolArrayArrayOutput ¶
func ToBoolArrayArrayOutput(in []BoolArrayOutput) BoolArrayArrayOutput
func (BoolArrayArrayOutput) ElementType ¶
func (BoolArrayArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([][]bool).
func (BoolArrayArrayOutput) Index ¶
func (o BoolArrayArrayOutput) Index(i IntInput) BoolArrayOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (BoolArrayArrayOutput) MarshalJSON ¶
func (BoolArrayArrayOutput) MarshalJSON() ([]byte, error)
func (BoolArrayArrayOutput) ToBoolArrayArrayOutput ¶
func (o BoolArrayArrayOutput) ToBoolArrayArrayOutput() BoolArrayArrayOutput
func (BoolArrayArrayOutput) ToBoolArrayArrayOutputWithContext ¶
func (o BoolArrayArrayOutput) ToBoolArrayArrayOutputWithContext(ctx context.Context) BoolArrayArrayOutput
func (BoolArrayArrayOutput) ToOutput ¶
func (o BoolArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]bool]
type BoolArrayInput ¶
type BoolArrayInput interface {
Input
ToBoolArrayOutput() BoolArrayOutput
ToBoolArrayOutputWithContext(ctx context.Context) BoolArrayOutput
}
BoolArrayInput is an input type that accepts BoolArray and BoolArrayOutput values.
type BoolArrayMap ¶
type BoolArrayMap map[string]BoolArrayInput
BoolArrayMap is an input type for map[string]BoolArrayInput values.
func ToBoolArrayMap ¶
func ToBoolArrayMap(in map[string][]bool) BoolArrayMap
func (BoolArrayMap) ElementType ¶
func (BoolArrayMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string][]bool).
func (BoolArrayMap) ToBoolArrayMapOutput ¶
func (in BoolArrayMap) ToBoolArrayMapOutput() BoolArrayMapOutput
func (BoolArrayMap) ToBoolArrayMapOutputWithContext ¶
func (in BoolArrayMap) ToBoolArrayMapOutputWithContext(ctx context.Context) BoolArrayMapOutput
func (BoolArrayMap) ToOutput ¶
func (in BoolArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]bool]
type BoolArrayMapInput ¶
type BoolArrayMapInput interface {
Input
ToBoolArrayMapOutput() BoolArrayMapOutput
ToBoolArrayMapOutputWithContext(ctx context.Context) BoolArrayMapOutput
}
BoolArrayMapInput is an input type that accepts BoolArrayMap and BoolArrayMapOutput values.
type BoolArrayMapOutput ¶
type BoolArrayMapOutput struct{ *OutputState }
BoolArrayMapOutput is an Output that returns map[string][]bool values.
func ToBoolArrayMapOutput ¶
func ToBoolArrayMapOutput(in map[string]BoolArrayOutput) BoolArrayMapOutput
func (BoolArrayMapOutput) ElementType ¶
func (BoolArrayMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string][]bool).
func (BoolArrayMapOutput) MapIndex ¶
func (o BoolArrayMapOutput) MapIndex(k StringInput) BoolArrayOutput
MapIndex looks up the key k in the map.
func (BoolArrayMapOutput) MarshalJSON ¶
func (BoolArrayMapOutput) MarshalJSON() ([]byte, error)
func (BoolArrayMapOutput) ToBoolArrayMapOutput ¶
func (o BoolArrayMapOutput) ToBoolArrayMapOutput() BoolArrayMapOutput
func (BoolArrayMapOutput) ToBoolArrayMapOutputWithContext ¶
func (o BoolArrayMapOutput) ToBoolArrayMapOutputWithContext(ctx context.Context) BoolArrayMapOutput
func (BoolArrayMapOutput) ToOutput ¶
func (o BoolArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]bool]
type BoolArrayOutput ¶
type BoolArrayOutput struct{ *OutputState }
BoolArrayOutput is an Output that returns []bool values.
func ToBoolArrayOutput ¶
func ToBoolArrayOutput(in []BoolOutput) BoolArrayOutput
func (BoolArrayOutput) ElementType ¶
func (BoolArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]bool).
func (BoolArrayOutput) Index ¶
func (o BoolArrayOutput) Index(i IntInput) BoolOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (BoolArrayOutput) MarshalJSON ¶
func (BoolArrayOutput) MarshalJSON() ([]byte, error)
func (BoolArrayOutput) ToBoolArrayOutput ¶
func (o BoolArrayOutput) ToBoolArrayOutput() BoolArrayOutput
func (BoolArrayOutput) ToBoolArrayOutputWithContext ¶
func (o BoolArrayOutput) ToBoolArrayOutputWithContext(ctx context.Context) BoolArrayOutput
func (BoolArrayOutput) ToOutput ¶
func (o BoolArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]bool]
type BoolInput ¶
type BoolInput interface {
Input
ToBoolOutput() BoolOutput
ToBoolOutputWithContext(ctx context.Context) BoolOutput
ToBoolPtrOutput() BoolPtrOutput
ToBoolPtrOutputWithContext(ctx context.Context) BoolPtrOutput
}
BoolInput is an input type that accepts Bool and BoolOutput values.
type BoolMap ¶
BoolMap is an input type for map[string]BoolInput values.
func (BoolMap) ElementType ¶
ElementType returns the element type of this Input (map[string]bool).
func (BoolMap) ToBoolMapOutput ¶
func (in BoolMap) ToBoolMapOutput() BoolMapOutput
func (BoolMap) ToBoolMapOutputWithContext ¶
func (in BoolMap) ToBoolMapOutputWithContext(ctx context.Context) BoolMapOutput
type BoolMapArray ¶
type BoolMapArray []BoolMapInput
BoolMapArray is an input type for []BoolMapInput values.
func ToBoolMapArray ¶
func ToBoolMapArray(in []map[string]bool) BoolMapArray
func (BoolMapArray) ElementType ¶
func (BoolMapArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([]map[string]bool).
func (BoolMapArray) ToBoolMapArrayOutput ¶
func (in BoolMapArray) ToBoolMapArrayOutput() BoolMapArrayOutput
func (BoolMapArray) ToBoolMapArrayOutputWithContext ¶
func (in BoolMapArray) ToBoolMapArrayOutputWithContext(ctx context.Context) BoolMapArrayOutput
func (BoolMapArray) ToOutput ¶
func (in BoolMapArray) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]bool]
type BoolMapArrayInput ¶
type BoolMapArrayInput interface {
Input
ToBoolMapArrayOutput() BoolMapArrayOutput
ToBoolMapArrayOutputWithContext(ctx context.Context) BoolMapArrayOutput
}
BoolMapArrayInput is an input type that accepts BoolMapArray and BoolMapArrayOutput values.
type BoolMapArrayOutput ¶
type BoolMapArrayOutput struct{ *OutputState }
BoolMapArrayOutput is an Output that returns []map[string]bool values.
func ToBoolMapArrayOutput ¶
func ToBoolMapArrayOutput(in []BoolMapOutput) BoolMapArrayOutput
func (BoolMapArrayOutput) ElementType ¶
func (BoolMapArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]map[string]bool).
func (BoolMapArrayOutput) Index ¶
func (o BoolMapArrayOutput) Index(i IntInput) BoolMapOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (BoolMapArrayOutput) MarshalJSON ¶
func (BoolMapArrayOutput) MarshalJSON() ([]byte, error)
func (BoolMapArrayOutput) ToBoolMapArrayOutput ¶
func (o BoolMapArrayOutput) ToBoolMapArrayOutput() BoolMapArrayOutput
func (BoolMapArrayOutput) ToBoolMapArrayOutputWithContext ¶
func (o BoolMapArrayOutput) ToBoolMapArrayOutputWithContext(ctx context.Context) BoolMapArrayOutput
func (BoolMapArrayOutput) ToOutput ¶
func (o BoolMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]bool]
type BoolMapInput ¶
type BoolMapInput interface {
Input
ToBoolMapOutput() BoolMapOutput
ToBoolMapOutputWithContext(ctx context.Context) BoolMapOutput
}
BoolMapInput is an input type that accepts BoolMap and BoolMapOutput values.
type BoolMapMap ¶
type BoolMapMap map[string]BoolMapInput
BoolMapMap is an input type for map[string]BoolMapInput values.
func ToBoolMapMap ¶
func ToBoolMapMap(in map[string]map[string]bool) BoolMapMap
func (BoolMapMap) ElementType ¶
func (BoolMapMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string]map[string]bool).
func (BoolMapMap) ToBoolMapMapOutput ¶
func (in BoolMapMap) ToBoolMapMapOutput() BoolMapMapOutput
func (BoolMapMap) ToBoolMapMapOutputWithContext ¶
func (in BoolMapMap) ToBoolMapMapOutputWithContext(ctx context.Context) BoolMapMapOutput
func (BoolMapMap) ToOutput ¶
func (in BoolMapMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]bool]
type BoolMapMapInput ¶
type BoolMapMapInput interface {
Input
ToBoolMapMapOutput() BoolMapMapOutput
ToBoolMapMapOutputWithContext(ctx context.Context) BoolMapMapOutput
}
BoolMapMapInput is an input type that accepts BoolMapMap and BoolMapMapOutput values.
type BoolMapMapOutput ¶
type BoolMapMapOutput struct{ *OutputState }
BoolMapMapOutput is an Output that returns map[string]map[string]bool values.
func ToBoolMapMapOutput ¶
func ToBoolMapMapOutput(in map[string]BoolMapOutput) BoolMapMapOutput
func (BoolMapMapOutput) ElementType ¶
func (BoolMapMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]map[string]bool).
func (BoolMapMapOutput) MapIndex ¶
func (o BoolMapMapOutput) MapIndex(k StringInput) BoolMapOutput
MapIndex looks up the key k in the map.
func (BoolMapMapOutput) MarshalJSON ¶
func (BoolMapMapOutput) MarshalJSON() ([]byte, error)
func (BoolMapMapOutput) ToBoolMapMapOutput ¶
func (o BoolMapMapOutput) ToBoolMapMapOutput() BoolMapMapOutput
func (BoolMapMapOutput) ToBoolMapMapOutputWithContext ¶
func (o BoolMapMapOutput) ToBoolMapMapOutputWithContext(ctx context.Context) BoolMapMapOutput
func (BoolMapMapOutput) ToOutput ¶
func (o BoolMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]bool]
type BoolMapOutput ¶
type BoolMapOutput struct{ *OutputState }
BoolMapOutput is an Output that returns map[string]bool values.
func ToBoolMapOutput ¶
func ToBoolMapOutput(in map[string]BoolOutput) BoolMapOutput
func (BoolMapOutput) ElementType ¶
func (BoolMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]bool).
func (BoolMapOutput) MapIndex ¶
func (o BoolMapOutput) MapIndex(k StringInput) BoolOutput
MapIndex looks up the key k in the map.
func (BoolMapOutput) MarshalJSON ¶
func (BoolMapOutput) MarshalJSON() ([]byte, error)
func (BoolMapOutput) ToBoolMapOutput ¶
func (o BoolMapOutput) ToBoolMapOutput() BoolMapOutput
func (BoolMapOutput) ToBoolMapOutputWithContext ¶
func (o BoolMapOutput) ToBoolMapOutputWithContext(ctx context.Context) BoolMapOutput
func (BoolMapOutput) ToOutput ¶
func (o BoolMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]bool]
type BoolOutput ¶
type BoolOutput struct{ *OutputState }
BoolOutput is an Output that returns bool values.
func (BoolOutput) ElementType ¶
func (BoolOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (bool).
func (BoolOutput) MarshalJSON ¶
func (BoolOutput) MarshalJSON() ([]byte, error)
func (BoolOutput) ToBoolOutput ¶
func (o BoolOutput) ToBoolOutput() BoolOutput
func (BoolOutput) ToBoolOutputWithContext ¶
func (o BoolOutput) ToBoolOutputWithContext(ctx context.Context) BoolOutput
func (BoolOutput) ToBoolPtrOutput ¶
func (o BoolOutput) ToBoolPtrOutput() BoolPtrOutput
func (BoolOutput) ToBoolPtrOutputWithContext ¶
func (o BoolOutput) ToBoolPtrOutputWithContext(ctx context.Context) BoolPtrOutput
func (BoolOutput) ToOutput ¶
func (o BoolOutput) ToOutput(ctx context.Context) codeinfrax.Output[bool]
type BoolPtrInput ¶
type BoolPtrInput interface {
Input
ToBoolPtrOutput() BoolPtrOutput
ToBoolPtrOutputWithContext(ctx context.Context) BoolPtrOutput
}
BoolPtrInput is an input type that accepts BoolPtr and BoolPtrOutput values.
func BoolPtrFromPtr ¶
func BoolPtrFromPtr(v *bool) BoolPtrInput
type BoolPtrOutput ¶
type BoolPtrOutput struct{ *OutputState }
BoolPtrOutput is an Output that returns *bool values.
func (BoolPtrOutput) Elem ¶
func (o BoolPtrOutput) Elem() BoolOutput
Elem dereferences the pointer value or returns the zero value of the approporiate type if the pointer is nil.
func (BoolPtrOutput) ElementType ¶
func (BoolPtrOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (*bool).
func (BoolPtrOutput) MarshalJSON ¶
func (BoolPtrOutput) MarshalJSON() ([]byte, error)
func (BoolPtrOutput) ToBoolPtrOutput ¶
func (o BoolPtrOutput) ToBoolPtrOutput() BoolPtrOutput
func (BoolPtrOutput) ToBoolPtrOutputWithContext ¶
func (o BoolPtrOutput) ToBoolPtrOutputWithContext(ctx context.Context) BoolPtrOutput
func (BoolPtrOutput) ToOutput ¶
func (o BoolPtrOutput) ToOutput(ctx context.Context) codeinfrax.Output[*bool]
type ComponentResource ¶
type ComponentResource interface {
Resource
}
ComponentResource is a resource that aggregates one or more other child resources into a higher level abstraction. The component resource itself is a resource, but does not require custom CRUD operations for provisioning.
type Context ¶
type Context struct {
Log Log // the logging interface for the Codeinfra log stream.
// contains filtered or unexported fields
}
Context handles registration of resources and exposes metadata about the current deployment context.
func NewContext ¶
NewContext creates a fresh run context out of the given metadata.
func (*Context) Call ¶
func (ctx *Context) Call(tok string, args Input, output Output, self Resource, opts ...InvokeOption) (Output, error)
Call will invoke a provider call function, identified by its token tok.
output is used to determine the output type to return; self is optional for methods.
func (*Context) CallPackage ¶
func (ctx *Context) CallPackage( tok string, args Input, output Output, self Resource, packageRef string, opts ...InvokeOption, ) (Output, error)
CallPackage will invoke a provider call function, identified by its token tok.
output is used to determine the output type to return; self is optional for methods.
func (*Context) Close ¶
Close implements io.Closer and relinquishes any outstanding resources held by the context.
func (*Context) DryRun ¶
DryRun is true when evaluating a program for purposes of planning, instead of performing a true deployment.
func (*Context) GetConfig ¶
GetConfig returns the config value, as a string, and a bool indicating whether it exists or not.
func (*Context) Invoke ¶
func (ctx *Context) Invoke(tok string, args interface{}, result interface{}, opts ...InvokeOption) (err error)
Invoke will invoke a provider's function, identified by its token tok. This function call is synchronous.
args and result must be pointers to struct values fields and appropriately tagged and typed for use with Codeinfra.
func (*Context) InvokeOutput ¶
func (ctx *Context) InvokeOutput( tok string, args interface{}, output Output, options InvokeOutputOptions, ) Output
InvokeOutput will invoke a provider's function, identified by its token tok. This function is used by generated SDK code for Output form invokes. `output` is used to determine the output type to return.
func (*Context) InvokePackage ¶
func (ctx *Context) InvokePackage( tok string, args interface{}, result interface{}, packageRef string, opts ...InvokeOption, ) error
InvokePackage will invoke a provider's function, identified by its token tok. This function call is synchronous.
args and result must be pointers to struct values fields and appropriately tagged and typed for use with Codeinfra.
func (*Context) InvokePackageRaw ¶
func (ctx *Context) InvokePackageRaw( tok string, args interface{}, result interface{}, packageRef string, opts ...InvokeOption, ) (isSecret bool, err error)
InvokePackageRaw is similar to InvokePackage except that it doesn't error out if the result has secrets. Insread, it returns a boolean indicating if the result has secrets.
func (*Context) IsConfigSecret ¶
IsConfigSecret returns true if the config value is a secret.
func (*Context) Organization ¶
Organization returns the current organization name.
func (*Context) Parallel ¶
Parallel returns the degree of parallelism currently being used by the engine (1 being entirely serial).
func (*Context) ReadPackageResource ¶
func (ctx *Context) ReadPackageResource( t, name string, id IDInput, props Input, resource CustomResource, packageRef string, opts ...ResourceOption, ) error
ReadPackageResource reads an existing custom resource's state from the resource monitor. t is the fully qualified type token and name is the "name" part to use in creating a stable and globally unique URN for the object. id is the ID of the resource to read, and props contains any state necessary to perform the read (typically props will be nil). opts contains optional settings that govern the way the resource is managed.
The value passed to resource must be a pointer to a struct. The fields of this struct that correspond to output properties of the resource must have types that are assignable from Output, and must have a `codeinfra` tag that records the name of the corresponding output property. The struct must embed the CustomResourceState type.
For example, given a custom resource with an int-typed output "foo" and a string-typed output "bar", one would define the following CustomResource type:
type MyResource struct {
codeinfra.CustomResourceState
Foo codeinfra.IntOutput `codeinfra:"foo"`
Bar codeinfra.StringOutput `codeinfra:"bar"`
}
And invoke ReadPackageResource like so:
var resource MyResource err := ctx.ReadPackageResource(tok, name, id, nil, &resource, opts...)
func (*Context) ReadResource ¶
func (ctx *Context) ReadResource( t, name string, id IDInput, props Input, resource CustomResource, opts ...ResourceOption, ) error
ReadResource reads an existing custom resource's state from the resource monitor. t is the fully qualified type token and name is the "name" part to use in creating a stable and globally unique URN for the object. id is the ID of the resource to read, and props contains any state necessary to perform the read (typically props will be nil). opts contains optional settings that govern the way the resource is managed.
The value passed to resource must be a pointer to a struct. The fields of this struct that correspond to output properties of the resource must have types that are assignable from Output, and must have a `codeinfra` tag that records the name of the corresponding output property. The struct must embed the CustomResourceState type.
For example, given a custom resource with an int-typed output "foo" and a string-typed output "bar", one would define the following CustomResource type:
type MyResource struct {
codeinfra.CustomResourceState
Foo codeinfra.IntOutput `codeinfra:"foo"`
Bar codeinfra.StringOutput `codeinfra:"bar"`
}
And invoke ReadResource like so:
var resource MyResource err := ctx.ReadResource(tok, name, id, nil, &resource, opts...)
func (*Context) RegisterComponentResource ¶
func (ctx *Context) RegisterComponentResource( t, name string, resource ComponentResource, opts ...ResourceOption, ) error
func (*Context) RegisterInvokeTransform ¶
func (ctx *Context) RegisterInvokeTransform(t InvokeTransform) error
RegisterInvokeTransform adds a transform to all future invokes in this Codeinfra stack.
func (*Context) RegisterPackage ¶
func (ctx *Context) RegisterPackage( in *codeinfrarpc.RegisterPackageRequest, ) (*codeinfrarpc.RegisterPackageResponse, error)
func (*Context) RegisterPackageRemoteComponentResource ¶
func (ctx *Context) RegisterPackageRemoteComponentResource( t, name string, props Input, resource ComponentResource, packageRef string, opts ...ResourceOption, ) error
func (*Context) RegisterPackageResource ¶
func (*Context) RegisterRemoteComponentResource ¶
func (ctx *Context) RegisterRemoteComponentResource( t, name string, props Input, resource ComponentResource, opts ...ResourceOption, ) error
func (*Context) RegisterResource ¶
func (ctx *Context) RegisterResource( t, name string, props Input, resource Resource, opts ...ResourceOption, ) error
RegisterResource creates and registers a new resource object. t is the fully qualified type token and name is the "name" part to use in creating a stable and globally unique URN for the object. props contains the goal state for the resource object and opts contains optional settings that govern the way the resource is created.
The value passed to resource must be a pointer to a struct. The fields of this struct that correspond to output properties of the resource must have types that are assignable from Output, and must have a `codeinfra` tag that records the name of the corresponding output property. The struct must embed either the ResourceState or the CustomResourceState type.
For example, given a custom resource with an int-typed output "foo" and a string-typed output "bar", one would define the following CustomResource type:
type MyResource struct {
codeinfra.CustomResourceState
Foo codeinfra.IntOutput `codeinfra:"foo"`
Bar codeinfra.StringOutput `codeinfra:"bar"`
}
And invoke RegisterResource like so:
var resource MyResource err := ctx.RegisterResource(tok, name, props, &resource, opts...)
func (*Context) RegisterResourceOutputs ¶
RegisterResourceOutputs completes the resource registration, attaching an optional set of computed outputs.
func (*Context) RegisterResourceTransform ¶
func (ctx *Context) RegisterResourceTransform(t ResourceTransform) error
RegisterResourceTransform adds a transform to all future resources constructed in this Codeinfra stack.
func (*Context) RegisterStackTransform
deprecated
func (ctx *Context) RegisterStackTransform(t ResourceTransform) error
RegisterStackTransform adds a transform to all future resources constructed in this Codeinfra stack.
Deprecated: Use RegisterResourceTransform instead.
func (*Context) RegisterStackTransformation ¶
func (ctx *Context) RegisterStackTransformation(t ResourceTransformation) error
RegisterStackTransformation adds a transformation to all future resources constructed in this Codeinfra stack.
func (*Context) RunningWithMocks ¶
RunningWithMocks is true if the program is running using a Mock monitor instead of a real Codeinfra engine.
type CustomResource ¶
type CustomResource interface {
Resource
// ID is the provider-assigned unique identifier for this managed resource. It is set during deployments,
// but might be missing ("") during planning phases.
ID() IDOutput
// contains filtered or unexported methods
}
CustomResource is a cloud resource whose create, read, update, and delete (CRUD) operations are managed by performing external operations on some physical entity. The engine understands how to diff and perform partial updates of them, and these CRUD operations are implemented in a dynamically loaded plugin for the defining package.
type CustomResourceState ¶
type CustomResourceState struct {
ResourceState
// contains filtered or unexported fields
}
func (*CustomResourceState) ID ¶
func (s *CustomResourceState) ID() IDOutput
type CustomTimeouts ¶
CustomTimeouts specifies timeouts for resource provisioning operations. Use it with the Timeouts option when creating new resources to override default timeouts.
Each timeout is specified as a duration string such as, "5ms" (5 milliseconds), "40s" (40 seconds), and "1m30s" (1 minute, 30 seconds).
The following units are accepted.
- ns: nanoseconds
- us: microseconds
- µs: microseconds
- ms: milliseconds
- s: seconds
- m: minutes
- h: hours
type Float64 ¶
type Float64 float64
Float64 is an input type for float64 values.
func (Float64) ElementType ¶
ElementType returns the element type of this Input (float64).
func (Float64) ToFloat64Output ¶
func (in Float64) ToFloat64Output() Float64Output
func (Float64) ToFloat64OutputWithContext ¶
func (in Float64) ToFloat64OutputWithContext(ctx context.Context) Float64Output
func (Float64) ToFloat64PtrOutput ¶
func (in Float64) ToFloat64PtrOutput() Float64PtrOutput
func (Float64) ToFloat64PtrOutputWithContext ¶
func (in Float64) ToFloat64PtrOutputWithContext(ctx context.Context) Float64PtrOutput
type Float64Array ¶
type Float64Array []Float64Input
Float64Array is an input type for []Float64Input values.
func ToFloat64Array ¶
func ToFloat64Array(in []float64) Float64Array
func (Float64Array) ElementType ¶
func (Float64Array) ElementType() reflect.Type
ElementType returns the element type of this Input ([]float64).
func (Float64Array) ToFloat64ArrayOutput ¶
func (in Float64Array) ToFloat64ArrayOutput() Float64ArrayOutput
func (Float64Array) ToFloat64ArrayOutputWithContext ¶
func (in Float64Array) ToFloat64ArrayOutputWithContext(ctx context.Context) Float64ArrayOutput
func (Float64Array) ToOutput ¶
func (in Float64Array) ToOutput(ctx context.Context) codeinfrax.Output[[]float64]
type Float64ArrayArray ¶
type Float64ArrayArray []Float64ArrayInput
Float64ArrayArray is an input type for []Float64ArrayInput values.
func ToFloat64ArrayArray ¶
func ToFloat64ArrayArray(in [][]float64) Float64ArrayArray
func (Float64ArrayArray) ElementType ¶
func (Float64ArrayArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([][]float64).
func (Float64ArrayArray) ToFloat64ArrayArrayOutput ¶
func (in Float64ArrayArray) ToFloat64ArrayArrayOutput() Float64ArrayArrayOutput
func (Float64ArrayArray) ToFloat64ArrayArrayOutputWithContext ¶
func (in Float64ArrayArray) ToFloat64ArrayArrayOutputWithContext(ctx context.Context) Float64ArrayArrayOutput
func (Float64ArrayArray) ToOutput ¶
func (in Float64ArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]float64]
type Float64ArrayArrayInput ¶
type Float64ArrayArrayInput interface {
Input
ToFloat64ArrayArrayOutput() Float64ArrayArrayOutput
ToFloat64ArrayArrayOutputWithContext(ctx context.Context) Float64ArrayArrayOutput
}
Float64ArrayArrayInput is an input type that accepts Float64ArrayArray and Float64ArrayArrayOutput values.
type Float64ArrayArrayOutput ¶
type Float64ArrayArrayOutput struct{ *OutputState }
Float64ArrayArrayOutput is an Output that returns [][]float64 values.
func ToFloat64ArrayArrayOutput ¶
func ToFloat64ArrayArrayOutput(in []Float64ArrayOutput) Float64ArrayArrayOutput
func (Float64ArrayArrayOutput) ElementType ¶
func (Float64ArrayArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([][]float64).
func (Float64ArrayArrayOutput) Index ¶
func (o Float64ArrayArrayOutput) Index(i IntInput) Float64ArrayOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (Float64ArrayArrayOutput) MarshalJSON ¶
func (Float64ArrayArrayOutput) MarshalJSON() ([]byte, error)
func (Float64ArrayArrayOutput) ToFloat64ArrayArrayOutput ¶
func (o Float64ArrayArrayOutput) ToFloat64ArrayArrayOutput() Float64ArrayArrayOutput
func (Float64ArrayArrayOutput) ToFloat64ArrayArrayOutputWithContext ¶
func (o Float64ArrayArrayOutput) ToFloat64ArrayArrayOutputWithContext(ctx context.Context) Float64ArrayArrayOutput
func (Float64ArrayArrayOutput) ToOutput ¶
func (o Float64ArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]float64]
type Float64ArrayInput ¶
type Float64ArrayInput interface {
Input
ToFloat64ArrayOutput() Float64ArrayOutput
ToFloat64ArrayOutputWithContext(ctx context.Context) Float64ArrayOutput
}
Float64ArrayInput is an input type that accepts Float64Array and Float64ArrayOutput values.
type Float64ArrayMap ¶
type Float64ArrayMap map[string]Float64ArrayInput
Float64ArrayMap is an input type for map[string]Float64ArrayInput values.
func ToFloat64ArrayMap ¶
func ToFloat64ArrayMap(in map[string][]float64) Float64ArrayMap
func (Float64ArrayMap) ElementType ¶
func (Float64ArrayMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string][]float64).
func (Float64ArrayMap) ToFloat64ArrayMapOutput ¶
func (in Float64ArrayMap) ToFloat64ArrayMapOutput() Float64ArrayMapOutput
func (Float64ArrayMap) ToFloat64ArrayMapOutputWithContext ¶
func (in Float64ArrayMap) ToFloat64ArrayMapOutputWithContext(ctx context.Context) Float64ArrayMapOutput
func (Float64ArrayMap) ToOutput ¶
func (in Float64ArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]float64]
type Float64ArrayMapInput ¶
type Float64ArrayMapInput interface {
Input
ToFloat64ArrayMapOutput() Float64ArrayMapOutput
ToFloat64ArrayMapOutputWithContext(ctx context.Context) Float64ArrayMapOutput
}
Float64ArrayMapInput is an input type that accepts Float64ArrayMap and Float64ArrayMapOutput values.
type Float64ArrayMapOutput ¶
type Float64ArrayMapOutput struct{ *OutputState }
Float64ArrayMapOutput is an Output that returns map[string][]float64 values.
func ToFloat64ArrayMapOutput ¶
func ToFloat64ArrayMapOutput(in map[string]Float64ArrayOutput) Float64ArrayMapOutput
func (Float64ArrayMapOutput) ElementType ¶
func (Float64ArrayMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string][]float64).
func (Float64ArrayMapOutput) MapIndex ¶
func (o Float64ArrayMapOutput) MapIndex(k StringInput) Float64ArrayOutput
MapIndex looks up the key k in the map.
func (Float64ArrayMapOutput) MarshalJSON ¶
func (Float64ArrayMapOutput) MarshalJSON() ([]byte, error)
func (Float64ArrayMapOutput) ToFloat64ArrayMapOutput ¶
func (o Float64ArrayMapOutput) ToFloat64ArrayMapOutput() Float64ArrayMapOutput
func (Float64ArrayMapOutput) ToFloat64ArrayMapOutputWithContext ¶
func (o Float64ArrayMapOutput) ToFloat64ArrayMapOutputWithContext(ctx context.Context) Float64ArrayMapOutput
func (Float64ArrayMapOutput) ToOutput ¶
func (o Float64ArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]float64]
type Float64ArrayOutput ¶
type Float64ArrayOutput struct{ *OutputState }
Float64ArrayOutput is an Output that returns []float64 values.
func ToFloat64ArrayOutput ¶
func ToFloat64ArrayOutput(in []Float64Output) Float64ArrayOutput
func (Float64ArrayOutput) ElementType ¶
func (Float64ArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]float64).
func (Float64ArrayOutput) Index ¶
func (o Float64ArrayOutput) Index(i IntInput) Float64Output
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (Float64ArrayOutput) MarshalJSON ¶
func (Float64ArrayOutput) MarshalJSON() ([]byte, error)
func (Float64ArrayOutput) ToFloat64ArrayOutput ¶
func (o Float64ArrayOutput) ToFloat64ArrayOutput() Float64ArrayOutput
func (Float64ArrayOutput) ToFloat64ArrayOutputWithContext ¶
func (o Float64ArrayOutput) ToFloat64ArrayOutputWithContext(ctx context.Context) Float64ArrayOutput
func (Float64ArrayOutput) ToOutput ¶
func (o Float64ArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]float64]
type Float64Input ¶
type Float64Input interface {
Input
ToFloat64Output() Float64Output
ToFloat64OutputWithContext(ctx context.Context) Float64Output
ToFloat64PtrOutput() Float64PtrOutput
ToFloat64PtrOutputWithContext(ctx context.Context) Float64PtrOutput
}
Float64Input is an input type that accepts Float64 and Float64Output values.
type Float64Map ¶
type Float64Map map[string]Float64Input
Float64Map is an input type for map[string]Float64Input values.
func ToFloat64Map ¶
func ToFloat64Map(in map[string]float64) Float64Map
func (Float64Map) ElementType ¶
func (Float64Map) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string]float64).
func (Float64Map) ToFloat64MapOutput ¶
func (in Float64Map) ToFloat64MapOutput() Float64MapOutput
func (Float64Map) ToFloat64MapOutputWithContext ¶
func (in Float64Map) ToFloat64MapOutputWithContext(ctx context.Context) Float64MapOutput
func (Float64Map) ToOutput ¶
func (in Float64Map) ToOutput(ctx context.Context) codeinfrax.Output[map[string]float64]
type Float64MapArray ¶
type Float64MapArray []Float64MapInput
Float64MapArray is an input type for []Float64MapInput values.
func ToFloat64MapArray ¶
func ToFloat64MapArray(in []map[string]float64) Float64MapArray
func (Float64MapArray) ElementType ¶
func (Float64MapArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([]map[string]float64).
func (Float64MapArray) ToFloat64MapArrayOutput ¶
func (in Float64MapArray) ToFloat64MapArrayOutput() Float64MapArrayOutput
func (Float64MapArray) ToFloat64MapArrayOutputWithContext ¶
func (in Float64MapArray) ToFloat64MapArrayOutputWithContext(ctx context.Context) Float64MapArrayOutput
func (Float64MapArray) ToOutput ¶
func (in Float64MapArray) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]float64]
type Float64MapArrayInput ¶
type Float64MapArrayInput interface {
Input
ToFloat64MapArrayOutput() Float64MapArrayOutput
ToFloat64MapArrayOutputWithContext(ctx context.Context) Float64MapArrayOutput
}
Float64MapArrayInput is an input type that accepts Float64MapArray and Float64MapArrayOutput values.
type Float64MapArrayOutput ¶
type Float64MapArrayOutput struct{ *OutputState }
Float64MapArrayOutput is an Output that returns []map[string]float64 values.
func ToFloat64MapArrayOutput ¶
func ToFloat64MapArrayOutput(in []Float64MapOutput) Float64MapArrayOutput
func (Float64MapArrayOutput) ElementType ¶
func (Float64MapArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]map[string]float64).
func (Float64MapArrayOutput) Index ¶
func (o Float64MapArrayOutput) Index(i IntInput) Float64MapOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (Float64MapArrayOutput) MarshalJSON ¶
func (Float64MapArrayOutput) MarshalJSON() ([]byte, error)
func (Float64MapArrayOutput) ToFloat64MapArrayOutput ¶
func (o Float64MapArrayOutput) ToFloat64MapArrayOutput() Float64MapArrayOutput
func (Float64MapArrayOutput) ToFloat64MapArrayOutputWithContext ¶
func (o Float64MapArrayOutput) ToFloat64MapArrayOutputWithContext(ctx context.Context) Float64MapArrayOutput
func (Float64MapArrayOutput) ToOutput ¶
func (o Float64MapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]float64]
type Float64MapInput ¶
type Float64MapInput interface {
Input
ToFloat64MapOutput() Float64MapOutput
ToFloat64MapOutputWithContext(ctx context.Context) Float64MapOutput
}
Float64MapInput is an input type that accepts Float64Map and Float64MapOutput values.
type Float64MapMap ¶
type Float64MapMap map[string]Float64MapInput
Float64MapMap is an input type for map[string]Float64MapInput values.
func ToFloat64MapMap ¶
func ToFloat64MapMap(in map[string]map[string]float64) Float64MapMap
func (Float64MapMap) ElementType ¶
func (Float64MapMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string]map[string]float64).
func (Float64MapMap) ToFloat64MapMapOutput ¶
func (in Float64MapMap) ToFloat64MapMapOutput() Float64MapMapOutput
func (Float64MapMap) ToFloat64MapMapOutputWithContext ¶
func (in Float64MapMap) ToFloat64MapMapOutputWithContext(ctx context.Context) Float64MapMapOutput
func (Float64MapMap) ToOutput ¶
func (in Float64MapMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]float64]
type Float64MapMapInput ¶
type Float64MapMapInput interface {
Input
ToFloat64MapMapOutput() Float64MapMapOutput
ToFloat64MapMapOutputWithContext(ctx context.Context) Float64MapMapOutput
}
Float64MapMapInput is an input type that accepts Float64MapMap and Float64MapMapOutput values.
type Float64MapMapOutput ¶
type Float64MapMapOutput struct{ *OutputState }
Float64MapMapOutput is an Output that returns map[string]map[string]float64 values.
func ToFloat64MapMapOutput ¶
func ToFloat64MapMapOutput(in map[string]Float64MapOutput) Float64MapMapOutput
func (Float64MapMapOutput) ElementType ¶
func (Float64MapMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]map[string]float64).
func (Float64MapMapOutput) MapIndex ¶
func (o Float64MapMapOutput) MapIndex(k StringInput) Float64MapOutput
MapIndex looks up the key k in the map.
func (Float64MapMapOutput) MarshalJSON ¶
func (Float64MapMapOutput) MarshalJSON() ([]byte, error)
func (Float64MapMapOutput) ToFloat64MapMapOutput ¶
func (o Float64MapMapOutput) ToFloat64MapMapOutput() Float64MapMapOutput
func (Float64MapMapOutput) ToFloat64MapMapOutputWithContext ¶
func (o Float64MapMapOutput) ToFloat64MapMapOutputWithContext(ctx context.Context) Float64MapMapOutput
func (Float64MapMapOutput) ToOutput ¶
func (o Float64MapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]float64]
type Float64MapOutput ¶
type Float64MapOutput struct{ *OutputState }
Float64MapOutput is an Output that returns map[string]float64 values.
func ToFloat64MapOutput ¶
func ToFloat64MapOutput(in map[string]Float64Output) Float64MapOutput
func (Float64MapOutput) ElementType ¶
func (Float64MapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]float64).
func (Float64MapOutput) MapIndex ¶
func (o Float64MapOutput) MapIndex(k StringInput) Float64Output
MapIndex looks up the key k in the map.
func (Float64MapOutput) MarshalJSON ¶
func (Float64MapOutput) MarshalJSON() ([]byte, error)
func (Float64MapOutput) ToFloat64MapOutput ¶
func (o Float64MapOutput) ToFloat64MapOutput() Float64MapOutput
func (Float64MapOutput) ToFloat64MapOutputWithContext ¶
func (o Float64MapOutput) ToFloat64MapOutputWithContext(ctx context.Context) Float64MapOutput
func (Float64MapOutput) ToOutput ¶
func (o Float64MapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]float64]
type Float64Output ¶
type Float64Output struct{ *OutputState }
Float64Output is an Output that returns float64 values.
func (Float64Output) ElementType ¶
func (Float64Output) ElementType() reflect.Type
ElementType returns the element type of this Output (float64).
func (Float64Output) MarshalJSON ¶
func (Float64Output) MarshalJSON() ([]byte, error)
func (Float64Output) ToFloat64Output ¶
func (o Float64Output) ToFloat64Output() Float64Output
func (Float64Output) ToFloat64OutputWithContext ¶
func (o Float64Output) ToFloat64OutputWithContext(ctx context.Context) Float64Output
func (Float64Output) ToFloat64PtrOutput ¶
func (o Float64Output) ToFloat64PtrOutput() Float64PtrOutput
func (Float64Output) ToFloat64PtrOutputWithContext ¶
func (o Float64Output) ToFloat64PtrOutputWithContext(ctx context.Context) Float64PtrOutput
func (Float64Output) ToOutput ¶
func (o Float64Output) ToOutput(ctx context.Context) codeinfrax.Output[float64]
type Float64PtrInput ¶
type Float64PtrInput interface {
Input
ToFloat64PtrOutput() Float64PtrOutput
ToFloat64PtrOutputWithContext(ctx context.Context) Float64PtrOutput
}
Float64PtrInput is an input type that accepts Float64Ptr and Float64PtrOutput values.
func Float64Ptr ¶
func Float64Ptr(v float64) Float64PtrInput
Float64Ptr is an input type for *float64 values.
func Float64PtrFromPtr ¶
func Float64PtrFromPtr(v *float64) Float64PtrInput
type Float64PtrOutput ¶
type Float64PtrOutput struct{ *OutputState }
Float64PtrOutput is an Output that returns *float64 values.
func (Float64PtrOutput) Elem ¶
func (o Float64PtrOutput) Elem() Float64Output
Elem dereferences the pointer value or returns the zero value of the approporiate type if the pointer is nil.
func (Float64PtrOutput) ElementType ¶
func (Float64PtrOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (*float64).
func (Float64PtrOutput) MarshalJSON ¶
func (Float64PtrOutput) MarshalJSON() ([]byte, error)
func (Float64PtrOutput) ToFloat64PtrOutput ¶
func (o Float64PtrOutput) ToFloat64PtrOutput() Float64PtrOutput
func (Float64PtrOutput) ToFloat64PtrOutputWithContext ¶
func (o Float64PtrOutput) ToFloat64PtrOutputWithContext(ctx context.Context) Float64PtrOutput
func (Float64PtrOutput) ToOutput ¶
func (o Float64PtrOutput) ToOutput(ctx context.Context) codeinfrax.Output[*float64]
type ID ¶
type ID string
ID is a unique identifier assigned by a resource provider to a resource.
func (ID) ElementType ¶
ElementType returns the element type of this Input (ID).
func (ID) ToIDOutput ¶
func (ID) ToIDPtrOutput ¶
func (in ID) ToIDPtrOutput() IDPtrOutput
func (ID) ToIDPtrOutputWithContext ¶
func (in ID) ToIDPtrOutputWithContext(ctx context.Context) IDPtrOutput
func (ID) ToStringOutput ¶
func (in ID) ToStringOutput() StringOutput
func (ID) ToStringOutputWithContext ¶
func (in ID) ToStringOutputWithContext(ctx context.Context) StringOutput
func (ID) ToStringPtrOutput ¶
func (in ID) ToStringPtrOutput() StringPtrOutput
func (ID) ToStringPtrOutputWithContext ¶
func (in ID) ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
type IDArray ¶
type IDArray []IDInput
IDArray is an input type for []IDInput values.
func (IDArray) ElementType ¶
ElementType returns the element type of this Input ([]ID).
func (IDArray) ToIDArrayOutput ¶
func (in IDArray) ToIDArrayOutput() IDArrayOutput
func (IDArray) ToIDArrayOutputWithContext ¶
func (in IDArray) ToIDArrayOutputWithContext(ctx context.Context) IDArrayOutput
type IDArrayArray ¶
type IDArrayArray []IDArrayInput
IDArrayArray is an input type for []IDArrayInput values.
func ToIDArrayArray ¶
func ToIDArrayArray(in [][]ID) IDArrayArray
func (IDArrayArray) ElementType ¶
func (IDArrayArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([][]ID).
func (IDArrayArray) ToIDArrayArrayOutput ¶
func (in IDArrayArray) ToIDArrayArrayOutput() IDArrayArrayOutput
func (IDArrayArray) ToIDArrayArrayOutputWithContext ¶
func (in IDArrayArray) ToIDArrayArrayOutputWithContext(ctx context.Context) IDArrayArrayOutput
func (IDArrayArray) ToOutput ¶
func (in IDArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]ID]
type IDArrayArrayInput ¶
type IDArrayArrayInput interface {
Input
ToIDArrayArrayOutput() IDArrayArrayOutput
ToIDArrayArrayOutputWithContext(ctx context.Context) IDArrayArrayOutput
}
IDArrayArrayInput is an input type that accepts IDArrayArray and IDArrayArrayOutput values.
type IDArrayArrayOutput ¶
type IDArrayArrayOutput struct{ *OutputState }
IDArrayArrayOutput is an Output that returns [][]ID values.
func ToIDArrayArrayOutput ¶
func ToIDArrayArrayOutput(in []IDArrayOutput) IDArrayArrayOutput
func (IDArrayArrayOutput) ElementType ¶
func (IDArrayArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([][]ID).
func (IDArrayArrayOutput) Index ¶
func (o IDArrayArrayOutput) Index(i IntInput) IDArrayOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (IDArrayArrayOutput) MarshalJSON ¶
func (IDArrayArrayOutput) MarshalJSON() ([]byte, error)
func (IDArrayArrayOutput) ToIDArrayArrayOutput ¶
func (o IDArrayArrayOutput) ToIDArrayArrayOutput() IDArrayArrayOutput
func (IDArrayArrayOutput) ToIDArrayArrayOutputWithContext ¶
func (o IDArrayArrayOutput) ToIDArrayArrayOutputWithContext(ctx context.Context) IDArrayArrayOutput
func (IDArrayArrayOutput) ToOutput ¶
func (o IDArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]ID]
type IDArrayInput ¶
type IDArrayInput interface {
Input
ToIDArrayOutput() IDArrayOutput
ToIDArrayOutputWithContext(ctx context.Context) IDArrayOutput
}
IDArrayInput is an input type that accepts IDArray and IDArrayOutput values.
type IDArrayMap ¶
type IDArrayMap map[string]IDArrayInput
IDArrayMap is an input type for map[string]IDArrayInput values.
func ToIDArrayMap ¶
func ToIDArrayMap(in map[string][]ID) IDArrayMap
func (IDArrayMap) ElementType ¶
func (IDArrayMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string][]ID).
func (IDArrayMap) ToIDArrayMapOutput ¶
func (in IDArrayMap) ToIDArrayMapOutput() IDArrayMapOutput
func (IDArrayMap) ToIDArrayMapOutputWithContext ¶
func (in IDArrayMap) ToIDArrayMapOutputWithContext(ctx context.Context) IDArrayMapOutput
func (IDArrayMap) ToOutput ¶
func (in IDArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]ID]
type IDArrayMapInput ¶
type IDArrayMapInput interface {
Input
ToIDArrayMapOutput() IDArrayMapOutput
ToIDArrayMapOutputWithContext(ctx context.Context) IDArrayMapOutput
}
IDArrayMapInput is an input type that accepts IDArrayMap and IDArrayMapOutput values.
type IDArrayMapOutput ¶
type IDArrayMapOutput struct{ *OutputState }
IDArrayMapOutput is an Output that returns map[string][]ID values.
func ToIDArrayMapOutput ¶
func ToIDArrayMapOutput(in map[string]IDArrayOutput) IDArrayMapOutput
func (IDArrayMapOutput) ElementType ¶
func (IDArrayMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string][]ID).
func (IDArrayMapOutput) MapIndex ¶
func (o IDArrayMapOutput) MapIndex(k StringInput) IDArrayOutput
MapIndex looks up the key k in the map.
func (IDArrayMapOutput) MarshalJSON ¶
func (IDArrayMapOutput) MarshalJSON() ([]byte, error)
func (IDArrayMapOutput) ToIDArrayMapOutput ¶
func (o IDArrayMapOutput) ToIDArrayMapOutput() IDArrayMapOutput
func (IDArrayMapOutput) ToIDArrayMapOutputWithContext ¶
func (o IDArrayMapOutput) ToIDArrayMapOutputWithContext(ctx context.Context) IDArrayMapOutput
func (IDArrayMapOutput) ToOutput ¶
func (o IDArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]ID]
type IDArrayOutput ¶
type IDArrayOutput struct{ *OutputState }
IDArrayOutput is an Output that returns []ID values.
func ToIDArrayOutput ¶
func ToIDArrayOutput(in []IDOutput) IDArrayOutput
func (IDArrayOutput) ElementType ¶
func (IDArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]ID).
func (IDArrayOutput) Index ¶
func (o IDArrayOutput) Index(i IntInput) IDOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (IDArrayOutput) MarshalJSON ¶
func (IDArrayOutput) MarshalJSON() ([]byte, error)
func (IDArrayOutput) ToIDArrayOutput ¶
func (o IDArrayOutput) ToIDArrayOutput() IDArrayOutput
func (IDArrayOutput) ToIDArrayOutputWithContext ¶
func (o IDArrayOutput) ToIDArrayOutputWithContext(ctx context.Context) IDArrayOutput
func (IDArrayOutput) ToOutput ¶
func (o IDArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]ID]
type IDInput ¶
type IDInput interface {
Input
ToIDOutput() IDOutput
ToIDOutputWithContext(ctx context.Context) IDOutput
ToIDPtrOutput() IDPtrOutput
ToIDPtrOutputWithContext(ctx context.Context) IDPtrOutput
}
IDInput is an input type that accepts ID and IDOutput values.
type IDMap ¶
IDMap is an input type for map[string]IDInput values.
func (IDMap) ElementType ¶
ElementType returns the element type of this Input (map[string]ID).
func (IDMap) ToIDMapOutput ¶
func (in IDMap) ToIDMapOutput() IDMapOutput
func (IDMap) ToIDMapOutputWithContext ¶
func (in IDMap) ToIDMapOutputWithContext(ctx context.Context) IDMapOutput
type IDMapArray ¶
type IDMapArray []IDMapInput
IDMapArray is an input type for []IDMapInput values.
func ToIDMapArray ¶
func ToIDMapArray(in []map[string]ID) IDMapArray
func (IDMapArray) ElementType ¶
func (IDMapArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([]map[string]ID).
func (IDMapArray) ToIDMapArrayOutput ¶
func (in IDMapArray) ToIDMapArrayOutput() IDMapArrayOutput
func (IDMapArray) ToIDMapArrayOutputWithContext ¶
func (in IDMapArray) ToIDMapArrayOutputWithContext(ctx context.Context) IDMapArrayOutput
func (IDMapArray) ToOutput ¶
func (in IDMapArray) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]ID]
type IDMapArrayInput ¶
type IDMapArrayInput interface {
Input
ToIDMapArrayOutput() IDMapArrayOutput
ToIDMapArrayOutputWithContext(ctx context.Context) IDMapArrayOutput
}
IDMapArrayInput is an input type that accepts IDMapArray and IDMapArrayOutput values.
type IDMapArrayOutput ¶
type IDMapArrayOutput struct{ *OutputState }
IDMapArrayOutput is an Output that returns []map[string]ID values.
func ToIDMapArrayOutput ¶
func ToIDMapArrayOutput(in []IDMapOutput) IDMapArrayOutput
func (IDMapArrayOutput) ElementType ¶
func (IDMapArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]map[string]ID).
func (IDMapArrayOutput) Index ¶
func (o IDMapArrayOutput) Index(i IntInput) IDMapOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (IDMapArrayOutput) MarshalJSON ¶
func (IDMapArrayOutput) MarshalJSON() ([]byte, error)
func (IDMapArrayOutput) ToIDMapArrayOutput ¶
func (o IDMapArrayOutput) ToIDMapArrayOutput() IDMapArrayOutput
func (IDMapArrayOutput) ToIDMapArrayOutputWithContext ¶
func (o IDMapArrayOutput) ToIDMapArrayOutputWithContext(ctx context.Context) IDMapArrayOutput
func (IDMapArrayOutput) ToOutput ¶
func (o IDMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]ID]
type IDMapInput ¶
type IDMapInput interface {
Input
ToIDMapOutput() IDMapOutput
ToIDMapOutputWithContext(ctx context.Context) IDMapOutput
}
IDMapInput is an input type that accepts IDMap and IDMapOutput values.
type IDMapMap ¶
type IDMapMap map[string]IDMapInput
IDMapMap is an input type for map[string]IDMapInput values.
func (IDMapMap) ElementType ¶
ElementType returns the element type of this Input (map[string]map[string]ID).
func (IDMapMap) ToIDMapMapOutput ¶
func (in IDMapMap) ToIDMapMapOutput() IDMapMapOutput
func (IDMapMap) ToIDMapMapOutputWithContext ¶
func (in IDMapMap) ToIDMapMapOutputWithContext(ctx context.Context) IDMapMapOutput
type IDMapMapInput ¶
type IDMapMapInput interface {
Input
ToIDMapMapOutput() IDMapMapOutput
ToIDMapMapOutputWithContext(ctx context.Context) IDMapMapOutput
}
IDMapMapInput is an input type that accepts IDMapMap and IDMapMapOutput values.
type IDMapMapOutput ¶
type IDMapMapOutput struct{ *OutputState }
IDMapMapOutput is an Output that returns map[string]map[string]ID values.
func ToIDMapMapOutput ¶
func ToIDMapMapOutput(in map[string]IDMapOutput) IDMapMapOutput
func (IDMapMapOutput) ElementType ¶
func (IDMapMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]map[string]ID).
func (IDMapMapOutput) MapIndex ¶
func (o IDMapMapOutput) MapIndex(k StringInput) IDMapOutput
MapIndex looks up the key k in the map.
func (IDMapMapOutput) MarshalJSON ¶
func (IDMapMapOutput) MarshalJSON() ([]byte, error)
func (IDMapMapOutput) ToIDMapMapOutput ¶
func (o IDMapMapOutput) ToIDMapMapOutput() IDMapMapOutput
func (IDMapMapOutput) ToIDMapMapOutputWithContext ¶
func (o IDMapMapOutput) ToIDMapMapOutputWithContext(ctx context.Context) IDMapMapOutput
func (IDMapMapOutput) ToOutput ¶
func (o IDMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]ID]
type IDMapOutput ¶
type IDMapOutput struct{ *OutputState }
IDMapOutput is an Output that returns map[string]ID values.
func ToIDMapOutput ¶
func ToIDMapOutput(in map[string]IDOutput) IDMapOutput
func (IDMapOutput) ElementType ¶
func (IDMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]ID).
func (IDMapOutput) MapIndex ¶
func (o IDMapOutput) MapIndex(k StringInput) IDOutput
MapIndex looks up the key k in the map.
func (IDMapOutput) MarshalJSON ¶
func (IDMapOutput) MarshalJSON() ([]byte, error)
func (IDMapOutput) ToIDMapOutput ¶
func (o IDMapOutput) ToIDMapOutput() IDMapOutput
func (IDMapOutput) ToIDMapOutputWithContext ¶
func (o IDMapOutput) ToIDMapOutputWithContext(ctx context.Context) IDMapOutput
func (IDMapOutput) ToOutput ¶
func (o IDMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]ID]
type IDOutput ¶
type IDOutput struct{ *OutputState }
IDOutput is an Output that returns ID values.
func (IDOutput) ElementType ¶
ElementType returns the element type of this Output (ID).
func (IDOutput) MarshalJSON ¶
func (IDOutput) ToIDOutput ¶
func (IDOutput) ToIDOutputWithContext ¶
func (IDOutput) ToIDPtrOutput ¶
func (o IDOutput) ToIDPtrOutput() IDPtrOutput
func (IDOutput) ToIDPtrOutputWithContext ¶
func (o IDOutput) ToIDPtrOutputWithContext(ctx context.Context) IDPtrOutput
func (IDOutput) ToStringOutput ¶
func (o IDOutput) ToStringOutput() StringOutput
func (IDOutput) ToStringOutputWithContext ¶
func (o IDOutput) ToStringOutputWithContext(ctx context.Context) StringOutput
func (IDOutput) ToStringPtrOutput ¶
func (o IDOutput) ToStringPtrOutput() StringPtrOutput
func (IDOutput) ToStringPtrOutputWithContext ¶
func (o IDOutput) ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
type IDPtrInput ¶
type IDPtrInput interface {
Input
ToIDPtrOutput() IDPtrOutput
ToIDPtrOutputWithContext(ctx context.Context) IDPtrOutput
}
IDPtrInput is an input type that accepts IDPtr and IDPtrOutput values.
func IDPtrFromPtr ¶
func IDPtrFromPtr(v *ID) IDPtrInput
type IDPtrOutput ¶
type IDPtrOutput struct{ *OutputState }
IDPtrOutput is an Output that returns *ID values.
func (IDPtrOutput) Elem ¶
func (o IDPtrOutput) Elem() IDOutput
Elem dereferences the pointer value or returns the zero value of the approporiate type if the pointer is nil.
func (IDPtrOutput) ElementType ¶
func (IDPtrOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (*ID).
func (IDPtrOutput) MarshalJSON ¶
func (IDPtrOutput) MarshalJSON() ([]byte, error)
func (IDPtrOutput) ToIDPtrOutput ¶
func (o IDPtrOutput) ToIDPtrOutput() IDPtrOutput
func (IDPtrOutput) ToIDPtrOutputWithContext ¶
func (o IDPtrOutput) ToIDPtrOutputWithContext(ctx context.Context) IDPtrOutput
func (IDPtrOutput) ToOutput ¶
func (o IDPtrOutput) ToOutput(ctx context.Context) codeinfrax.Output[*ID]
type Input ¶
Input is the type of a generic input value for a Codeinfra resource. This type is used in conjunction with Output to provide polymorphism over strongly-typed input values.
The intended pattern for nested Codeinfra value types is to define an input interface and a plain, input, and output variant of the value type that implement the input interface.
For example, given a nested Codeinfra value type with the following shape:
type Nested struct {
Foo int
Bar string
}
We would define the following:
var nestedType = reflect.TypeOf((*Nested)(nil)).Elem()
type NestedInput interface {
codeinfra.Input
ToNestedOutput() NestedOutput
ToNestedOutputWithContext(context.Context) NestedOutput
}
type Nested struct {
Foo int `codeinfra:"foo"`
Bar string `codeinfra:"bar"`
}
type NestedInputValue struct {
Foo codeinfra.IntInput `codeinfra:"foo"`
Bar codeinfra.StringInput `codeinfra:"bar"`
}
func (NestedInputValue) ElementType() reflect.Type {
return nestedType
}
func (v NestedInputValue) ToNestedOutput() NestedOutput {
return codeinfra.ToOutput(v).(NestedOutput)
}
func (v NestedInputValue) ToNestedOutputWithContext(ctx context.Context) NestedOutput {
return codeinfra.ToOutputWithContext(ctx, v).(NestedOutput)
}
type NestedOutput struct { *codeinfra.OutputState }
func (NestedOutput) ElementType() reflect.Type {
return nestedType
}
func (o NestedOutput) ToNestedOutput() NestedOutput {
return o
}
func (o NestedOutput) ToNestedOutputWithContext(ctx context.Context) NestedOutput {
return o
}
type Int ¶
type Int int
Int is an input type for int values.
func (Int) ElementType ¶
ElementType returns the element type of this Input (int).
func (Int) ToIntOutput ¶
func (Int) ToIntOutputWithContext ¶
func (Int) ToIntPtrOutput ¶
func (in Int) ToIntPtrOutput() IntPtrOutput
func (Int) ToIntPtrOutputWithContext ¶
func (in Int) ToIntPtrOutputWithContext(ctx context.Context) IntPtrOutput
type IntArray ¶
type IntArray []IntInput
IntArray is an input type for []IntInput values.
func ToIntArray ¶
func (IntArray) ElementType ¶
ElementType returns the element type of this Input ([]int).
func (IntArray) ToIntArrayOutput ¶
func (in IntArray) ToIntArrayOutput() IntArrayOutput
func (IntArray) ToIntArrayOutputWithContext ¶
func (in IntArray) ToIntArrayOutputWithContext(ctx context.Context) IntArrayOutput
type IntArrayArray ¶
type IntArrayArray []IntArrayInput
IntArrayArray is an input type for []IntArrayInput values.
func ToIntArrayArray ¶
func ToIntArrayArray(in [][]int) IntArrayArray
func (IntArrayArray) ElementType ¶
func (IntArrayArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([][]int).
func (IntArrayArray) ToIntArrayArrayOutput ¶
func (in IntArrayArray) ToIntArrayArrayOutput() IntArrayArrayOutput
func (IntArrayArray) ToIntArrayArrayOutputWithContext ¶
func (in IntArrayArray) ToIntArrayArrayOutputWithContext(ctx context.Context) IntArrayArrayOutput
func (IntArrayArray) ToOutput ¶
func (in IntArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]int]
type IntArrayArrayInput ¶
type IntArrayArrayInput interface {
Input
ToIntArrayArrayOutput() IntArrayArrayOutput
ToIntArrayArrayOutputWithContext(ctx context.Context) IntArrayArrayOutput
}
IntArrayArrayInput is an input type that accepts IntArrayArray and IntArrayArrayOutput values.
type IntArrayArrayOutput ¶
type IntArrayArrayOutput struct{ *OutputState }
IntArrayArrayOutput is an Output that returns [][]int values.
func ToIntArrayArrayOutput ¶
func ToIntArrayArrayOutput(in []IntArrayOutput) IntArrayArrayOutput
func (IntArrayArrayOutput) ElementType ¶
func (IntArrayArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([][]int).
func (IntArrayArrayOutput) Index ¶
func (o IntArrayArrayOutput) Index(i IntInput) IntArrayOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (IntArrayArrayOutput) MarshalJSON ¶
func (IntArrayArrayOutput) MarshalJSON() ([]byte, error)
func (IntArrayArrayOutput) ToIntArrayArrayOutput ¶
func (o IntArrayArrayOutput) ToIntArrayArrayOutput() IntArrayArrayOutput
func (IntArrayArrayOutput) ToIntArrayArrayOutputWithContext ¶
func (o IntArrayArrayOutput) ToIntArrayArrayOutputWithContext(ctx context.Context) IntArrayArrayOutput
func (IntArrayArrayOutput) ToOutput ¶
func (o IntArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]int]
type IntArrayInput ¶
type IntArrayInput interface {
Input
ToIntArrayOutput() IntArrayOutput
ToIntArrayOutputWithContext(ctx context.Context) IntArrayOutput
}
IntArrayInput is an input type that accepts IntArray and IntArrayOutput values.
type IntArrayMap ¶
type IntArrayMap map[string]IntArrayInput
IntArrayMap is an input type for map[string]IntArrayInput values.
func ToIntArrayMap ¶
func ToIntArrayMap(in map[string][]int) IntArrayMap
func (IntArrayMap) ElementType ¶
func (IntArrayMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string][]int).
func (IntArrayMap) ToIntArrayMapOutput ¶
func (in IntArrayMap) ToIntArrayMapOutput() IntArrayMapOutput
func (IntArrayMap) ToIntArrayMapOutputWithContext ¶
func (in IntArrayMap) ToIntArrayMapOutputWithContext(ctx context.Context) IntArrayMapOutput
func (IntArrayMap) ToOutput ¶
func (in IntArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]int]
type IntArrayMapInput ¶
type IntArrayMapInput interface {
Input
ToIntArrayMapOutput() IntArrayMapOutput
ToIntArrayMapOutputWithContext(ctx context.Context) IntArrayMapOutput
}
IntArrayMapInput is an input type that accepts IntArrayMap and IntArrayMapOutput values.
type IntArrayMapOutput ¶
type IntArrayMapOutput struct{ *OutputState }
IntArrayMapOutput is an Output that returns map[string][]int values.
func ToIntArrayMapOutput ¶
func ToIntArrayMapOutput(in map[string]IntArrayOutput) IntArrayMapOutput
func (IntArrayMapOutput) ElementType ¶
func (IntArrayMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string][]int).
func (IntArrayMapOutput) MapIndex ¶
func (o IntArrayMapOutput) MapIndex(k StringInput) IntArrayOutput
MapIndex looks up the key k in the map.
func (IntArrayMapOutput) MarshalJSON ¶
func (IntArrayMapOutput) MarshalJSON() ([]byte, error)
func (IntArrayMapOutput) ToIntArrayMapOutput ¶
func (o IntArrayMapOutput) ToIntArrayMapOutput() IntArrayMapOutput
func (IntArrayMapOutput) ToIntArrayMapOutputWithContext ¶
func (o IntArrayMapOutput) ToIntArrayMapOutputWithContext(ctx context.Context) IntArrayMapOutput
func (IntArrayMapOutput) ToOutput ¶
func (o IntArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]int]
type IntArrayOutput ¶
type IntArrayOutput struct{ *OutputState }
IntArrayOutput is an Output that returns []int values.
func ToIntArrayOutput ¶
func ToIntArrayOutput(in []IntOutput) IntArrayOutput
func (IntArrayOutput) ElementType ¶
func (IntArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]int).
func (IntArrayOutput) Index ¶
func (o IntArrayOutput) Index(i IntInput) IntOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (IntArrayOutput) MarshalJSON ¶
func (IntArrayOutput) MarshalJSON() ([]byte, error)
func (IntArrayOutput) ToIntArrayOutput ¶
func (o IntArrayOutput) ToIntArrayOutput() IntArrayOutput
func (IntArrayOutput) ToIntArrayOutputWithContext ¶
func (o IntArrayOutput) ToIntArrayOutputWithContext(ctx context.Context) IntArrayOutput
func (IntArrayOutput) ToOutput ¶
func (o IntArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]int]
type IntInput ¶
type IntInput interface {
Input
ToIntOutput() IntOutput
ToIntOutputWithContext(ctx context.Context) IntOutput
ToIntPtrOutput() IntPtrOutput
ToIntPtrOutputWithContext(ctx context.Context) IntPtrOutput
}
IntInput is an input type that accepts Int and IntOutput values.
type IntMap ¶
IntMap is an input type for map[string]IntInput values.
func (IntMap) ElementType ¶
ElementType returns the element type of this Input (map[string]int).
func (IntMap) ToIntMapOutput ¶
func (in IntMap) ToIntMapOutput() IntMapOutput
func (IntMap) ToIntMapOutputWithContext ¶
func (in IntMap) ToIntMapOutputWithContext(ctx context.Context) IntMapOutput
type IntMapArray ¶
type IntMapArray []IntMapInput
IntMapArray is an input type for []IntMapInput values.
func ToIntMapArray ¶
func ToIntMapArray(in []map[string]int) IntMapArray
func (IntMapArray) ElementType ¶
func (IntMapArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([]map[string]int).
func (IntMapArray) ToIntMapArrayOutput ¶
func (in IntMapArray) ToIntMapArrayOutput() IntMapArrayOutput
func (IntMapArray) ToIntMapArrayOutputWithContext ¶
func (in IntMapArray) ToIntMapArrayOutputWithContext(ctx context.Context) IntMapArrayOutput
func (IntMapArray) ToOutput ¶
func (in IntMapArray) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]int]
type IntMapArrayInput ¶
type IntMapArrayInput interface {
Input
ToIntMapArrayOutput() IntMapArrayOutput
ToIntMapArrayOutputWithContext(ctx context.Context) IntMapArrayOutput
}
IntMapArrayInput is an input type that accepts IntMapArray and IntMapArrayOutput values.
type IntMapArrayOutput ¶
type IntMapArrayOutput struct{ *OutputState }
IntMapArrayOutput is an Output that returns []map[string]int values.
func ToIntMapArrayOutput ¶
func ToIntMapArrayOutput(in []IntMapOutput) IntMapArrayOutput
func (IntMapArrayOutput) ElementType ¶
func (IntMapArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]map[string]int).
func (IntMapArrayOutput) Index ¶
func (o IntMapArrayOutput) Index(i IntInput) IntMapOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (IntMapArrayOutput) MarshalJSON ¶
func (IntMapArrayOutput) MarshalJSON() ([]byte, error)
func (IntMapArrayOutput) ToIntMapArrayOutput ¶
func (o IntMapArrayOutput) ToIntMapArrayOutput() IntMapArrayOutput
func (IntMapArrayOutput) ToIntMapArrayOutputWithContext ¶
func (o IntMapArrayOutput) ToIntMapArrayOutputWithContext(ctx context.Context) IntMapArrayOutput
func (IntMapArrayOutput) ToOutput ¶
func (o IntMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]int]
type IntMapInput ¶
type IntMapInput interface {
Input
ToIntMapOutput() IntMapOutput
ToIntMapOutputWithContext(ctx context.Context) IntMapOutput
}
IntMapInput is an input type that accepts IntMap and IntMapOutput values.
type IntMapMap ¶
type IntMapMap map[string]IntMapInput
IntMapMap is an input type for map[string]IntMapInput values.
func (IntMapMap) ElementType ¶
ElementType returns the element type of this Input (map[string]map[string]int).
func (IntMapMap) ToIntMapMapOutput ¶
func (in IntMapMap) ToIntMapMapOutput() IntMapMapOutput
func (IntMapMap) ToIntMapMapOutputWithContext ¶
func (in IntMapMap) ToIntMapMapOutputWithContext(ctx context.Context) IntMapMapOutput
type IntMapMapInput ¶
type IntMapMapInput interface {
Input
ToIntMapMapOutput() IntMapMapOutput
ToIntMapMapOutputWithContext(ctx context.Context) IntMapMapOutput
}
IntMapMapInput is an input type that accepts IntMapMap and IntMapMapOutput values.
type IntMapMapOutput ¶
type IntMapMapOutput struct{ *OutputState }
IntMapMapOutput is an Output that returns map[string]map[string]int values.
func ToIntMapMapOutput ¶
func ToIntMapMapOutput(in map[string]IntMapOutput) IntMapMapOutput
func (IntMapMapOutput) ElementType ¶
func (IntMapMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]map[string]int).
func (IntMapMapOutput) MapIndex ¶
func (o IntMapMapOutput) MapIndex(k StringInput) IntMapOutput
MapIndex looks up the key k in the map.
func (IntMapMapOutput) MarshalJSON ¶
func (IntMapMapOutput) MarshalJSON() ([]byte, error)
func (IntMapMapOutput) ToIntMapMapOutput ¶
func (o IntMapMapOutput) ToIntMapMapOutput() IntMapMapOutput
func (IntMapMapOutput) ToIntMapMapOutputWithContext ¶
func (o IntMapMapOutput) ToIntMapMapOutputWithContext(ctx context.Context) IntMapMapOutput
func (IntMapMapOutput) ToOutput ¶
func (o IntMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]int]
type IntMapOutput ¶
type IntMapOutput struct{ *OutputState }
IntMapOutput is an Output that returns map[string]int values.
func ToIntMapOutput ¶
func ToIntMapOutput(in map[string]IntOutput) IntMapOutput
func (IntMapOutput) ElementType ¶
func (IntMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]int).
func (IntMapOutput) MapIndex ¶
func (o IntMapOutput) MapIndex(k StringInput) IntOutput
MapIndex looks up the key k in the map.
func (IntMapOutput) MarshalJSON ¶
func (IntMapOutput) MarshalJSON() ([]byte, error)
func (IntMapOutput) ToIntMapOutput ¶
func (o IntMapOutput) ToIntMapOutput() IntMapOutput
func (IntMapOutput) ToIntMapOutputWithContext ¶
func (o IntMapOutput) ToIntMapOutputWithContext(ctx context.Context) IntMapOutput
func (IntMapOutput) ToOutput ¶
func (o IntMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]int]
type IntOutput ¶
type IntOutput struct{ *OutputState }
IntOutput is an Output that returns int values.
func (IntOutput) ElementType ¶
ElementType returns the element type of this Output (int).
func (IntOutput) MarshalJSON ¶
func (IntOutput) ToIntOutput ¶
func (IntOutput) ToIntOutputWithContext ¶
func (IntOutput) ToIntPtrOutput ¶
func (o IntOutput) ToIntPtrOutput() IntPtrOutput
func (IntOutput) ToIntPtrOutputWithContext ¶
func (o IntOutput) ToIntPtrOutputWithContext(ctx context.Context) IntPtrOutput
type IntPtrInput ¶
type IntPtrInput interface {
Input
ToIntPtrOutput() IntPtrOutput
ToIntPtrOutputWithContext(ctx context.Context) IntPtrOutput
}
IntPtrInput is an input type that accepts IntPtr and IntPtrOutput values.
func IntPtrFromPtr ¶
func IntPtrFromPtr(v *int) IntPtrInput
type IntPtrOutput ¶
type IntPtrOutput struct{ *OutputState }
IntPtrOutput is an Output that returns *int values.
func (IntPtrOutput) Elem ¶
func (o IntPtrOutput) Elem() IntOutput
Elem dereferences the pointer value or returns the zero value of the approporiate type if the pointer is nil.
func (IntPtrOutput) ElementType ¶
func (IntPtrOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (*int).
func (IntPtrOutput) MarshalJSON ¶
func (IntPtrOutput) MarshalJSON() ([]byte, error)
func (IntPtrOutput) ToIntPtrOutput ¶
func (o IntPtrOutput) ToIntPtrOutput() IntPtrOutput
func (IntPtrOutput) ToIntPtrOutputWithContext ¶
func (o IntPtrOutput) ToIntPtrOutputWithContext(ctx context.Context) IntPtrOutput
func (IntPtrOutput) ToOutput ¶
func (o IntPtrOutput) ToOutput(ctx context.Context) codeinfrax.Output[*int]
type InvokeOption ¶
type InvokeOption interface {
// contains filtered or unexported methods
}
func CompositeInvoke ¶
func CompositeInvoke(opts ...InvokeOption) InvokeOption
CompositeInvoke is an invoke option that contains other invoke options.
type InvokeOptions ¶
type InvokeOptions struct {
// Parent is the parent resource for this operation.
// It may be used to determine the provider to use.
Parent Resource
// Provider specifies the provider to use for this operation.
// This is nil if the default provider should be used.
Provider ProviderResource
// Version is the version of the provider plugin that should be used.
// This will be blank if the version was automatically inferred.
Version string
// PluginDownloadURL is the URL from which the provider plugin
// should be downloaded.
// This will be blank if the URL was inferred automatically.
PluginDownloadURL string
// DependsOn lists additional explicit dependencies for the resource
// in addition to those tracked automatically by Codeinfra.
DependsOn []Resource
// DependsOnInputs holds explicit dependencies for the resource
// that may not be fully known yet.
DependsOnInputs []ResourceArrayInput
}
InvokeOptions is a snapshot of one or more [InvokeOption]s.
You cannot pass an InvokeOptions struct to a provider function. Instead, use individual InvokeOption values to configure a call. The InvokeOptions struct only provides a read-only preview of the collective effect of the options.
func NewInvokeOptions ¶
func NewInvokeOptions(opts ...InvokeOption) (*InvokeOptions, error)
NewInvokeOptions builds a preview of the effect of the provided options.
Use this to get a read-only snapshot of the collective effect of a list of [InvokeOption]s.
type InvokeOutputOptions ¶
type InvokeOutputOptions struct {
// The package reference for parameterized providers.
PackageRef string
// The options provided by the user for the invoke call, such as `Provider`,
// `Version, `DependsOn`, etc.
InvokeOptions []InvokeOption
}
InvokeOutputOptions are the options that control the behavior of an InvokeOutput call.
type InvokeTransform ¶
type InvokeTransform func(context.Context, *InvokeTransformArgs) *InvokeTransformResult
InvokeTransform is the callback signature for the `transforms` resource option for invokes. A transform is passed the same set of inputs provided to the `Invoke` constructor, and can optionally return back alternate values for the `args` and/or `opts` prior to the invoke actually being executed. The effect will be as though those args and opts were passed in place of the original call to the `Invoke`. If the transform returns nil, this indicates that the Invoke will not be transformed.
type InvokeTransformArgs ¶
type InvokeTransformArgs struct {
// The token of the invoke.
Token string
// The original args passed to the resource constructor.
Args Map
// The original invoke options passed to the resource constructor.
Opts InvokeOptions
}
InvokeTransformArgs is the argument bag passed to a invoke transform.
type InvokeTransformResult ¶
type InvokeTransformResult struct {
// The new args to use in place of the original `args`.
Args Map
// The new invoke options to use in place of the original `opts`.
Opts InvokeOptions
}
InvokeTransformResult is the result that must be returned by an invoke transform callback. It includes new values to use for the `args` and `opts` of the `Invoke` in place of the originally provided values.
type Log ¶
type Log interface {
Debug(msg string, args *LogArgs) error
Info(msg string, args *LogArgs) error
Warn(msg string, args *LogArgs) error
Error(msg string, args *LogArgs) error
}
Log is a group of logging functions that can be called from a Go application that will be logged to the Codeinfra log stream. These events will be printed in the terminal while the Codeinfra app runs, and will be available from the Web console afterwards.
type LogArgs ¶
type LogArgs struct {
// Optional resource this log is associated with.
Resource Resource
// Optional stream id that a stream of log messages can be associated with. This allows
// clients to not have to buffer a large set of log messages that they all want to be
// conceptually connected. Instead the messages can be sent as chunks (with the same stream id)
// and the end display can show the messages as they arrive, while still stitching them together
// into one total log message.
StreamID int32
// Optional value indicating whether this is a status message.
Ephemeral bool
}
LogArgs may be used to specify arguments to be used for logging.
type Map ¶
Map is an input type for map[string]Input values.
func (Map) ElementType ¶
ElementType returns the element type of this Input (map[string]interface{}).
func (Map) ToMapOutput ¶
func (Map) ToMapOutputWithContext ¶
type MapArray ¶
type MapArray []MapInput
MapArray is an input type for []MapInput values.
func ToMapArray ¶
func (MapArray) ElementType ¶
ElementType returns the element type of this Input ([]map[string]interface{}).
func (MapArray) ToMapArrayOutput ¶
func (in MapArray) ToMapArrayOutput() MapArrayOutput
func (MapArray) ToMapArrayOutputWithContext ¶
func (in MapArray) ToMapArrayOutputWithContext(ctx context.Context) MapArrayOutput
type MapArrayInput ¶
type MapArrayInput interface {
Input
ToMapArrayOutput() MapArrayOutput
ToMapArrayOutputWithContext(ctx context.Context) MapArrayOutput
}
MapArrayInput is an input type that accepts MapArray and MapArrayOutput values.
type MapArrayOutput ¶
type MapArrayOutput struct{ *OutputState }
MapArrayOutput is an Output that returns []map[string]interface{} values.
func ToMapArrayOutput ¶
func ToMapArrayOutput(in []MapOutput) MapArrayOutput
func (MapArrayOutput) ElementType ¶
func (MapArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]map[string]interface{}).
func (MapArrayOutput) Index ¶
func (o MapArrayOutput) Index(i IntInput) MapOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (MapArrayOutput) MarshalJSON ¶
func (MapArrayOutput) MarshalJSON() ([]byte, error)
func (MapArrayOutput) ToMapArrayOutput ¶
func (o MapArrayOutput) ToMapArrayOutput() MapArrayOutput
func (MapArrayOutput) ToMapArrayOutputWithContext ¶
func (o MapArrayOutput) ToMapArrayOutputWithContext(ctx context.Context) MapArrayOutput
func (MapArrayOutput) ToOutput ¶
func (o MapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]interface{}]
type MapInput ¶
type MapInput interface {
Input
ToMapOutput() MapOutput
ToMapOutputWithContext(ctx context.Context) MapOutput
}
MapInput is an input type that accepts Map and MapOutput values.
type MapMap ¶
MapMap is an input type for map[string]MapInput values.
func (MapMap) ElementType ¶
ElementType returns the element type of this Input (map[string]map[string]interface{}).
func (MapMap) ToMapMapOutput ¶
func (in MapMap) ToMapMapOutput() MapMapOutput
func (MapMap) ToMapMapOutputWithContext ¶
func (in MapMap) ToMapMapOutputWithContext(ctx context.Context) MapMapOutput
type MapMapInput ¶
type MapMapInput interface {
Input
ToMapMapOutput() MapMapOutput
ToMapMapOutputWithContext(ctx context.Context) MapMapOutput
}
MapMapInput is an input type that accepts MapMap and MapMapOutput values.
type MapMapOutput ¶
type MapMapOutput struct{ *OutputState }
MapMapOutput is an Output that returns map[string]map[string]interface{} values.
func ToMapMapOutput ¶
func ToMapMapOutput(in map[string]MapOutput) MapMapOutput
func (MapMapOutput) ElementType ¶
func (MapMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]map[string]interface{}).
func (MapMapOutput) MapIndex ¶
func (o MapMapOutput) MapIndex(k StringInput) MapOutput
MapIndex looks up the key k in the map.
func (MapMapOutput) MarshalJSON ¶
func (MapMapOutput) MarshalJSON() ([]byte, error)
func (MapMapOutput) ToMapMapOutput ¶
func (o MapMapOutput) ToMapMapOutput() MapMapOutput
func (MapMapOutput) ToMapMapOutputWithContext ¶
func (o MapMapOutput) ToMapMapOutputWithContext(ctx context.Context) MapMapOutput
func (MapMapOutput) ToOutput ¶
func (o MapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]interface{}]
type MapOutput ¶
type MapOutput struct{ *OutputState }
MapOutput is an Output that returns map[string]interface{} values.
func ToMapOutput ¶
func (MapOutput) ElementType ¶
ElementType returns the element type of this Output (map[string]interface{}).
func (MapOutput) MapIndex ¶
func (o MapOutput) MapIndex(k StringInput) Output
MapIndex looks up the key k in the map.
func (MapOutput) MarshalJSON ¶
func (MapOutput) ToMapOutput ¶
func (MapOutput) ToMapOutputWithContext ¶
type MockCallArgs ¶
type MockCallArgs struct {
// Token indicates which function is being called. This token is of the form "package:module:function".
Token string
// Args are the arguments provided to the function call.
Args resource.PropertyMap
// Provider is the identifier of the provider instance being used to make the call.
Provider string
}
MockCallArgs is used to construct a call Mock
type MockResourceArgs ¶
type MockResourceArgs struct {
// TypeToken is the token that indicates which resource type is being constructed. This token
// is of the form "package:module:type".
TypeToken string
// Name is the logical name of the resource instance.
Name string
// Inputs are the inputs for the resource.
Inputs resource.PropertyMap
// Provider is the identifier of the provider instance being used to manage this resource.
Provider string
// ID is the physical identifier of an existing resource to read or import.
ID string
// Custom specifies whether or not the resource is Custom (i.e. managed by a resource provider).
Custom bool
// Full register RPC call, if available.
RegisterRPC *codeinfrarpc.RegisterResourceRequest
// Full read RPC call, if available
ReadRPC *codeinfrarpc.ReadResourceRequest
}
MockResourceArgs is a used to construct a newResource Mock
type MockResourceMonitor ¶
type MockResourceMonitor interface {
Call(args MockCallArgs) (resource.PropertyMap, error)
NewResource(args MockResourceArgs) (string, resource.PropertyMap, error)
}
type Output ¶
Output helps encode the relationship between resources in a Codeinfra application. Specifically an output property holds onto a value and the resource it came from. An output value can then be provided when constructing new resources, allowing that new resource to know both the value as well as the resource the value came from. This allows for a precise "dependency graph" to be created, which properly tracks the relationship between resources.
func InternalGetRawOutputs ¶
func InternalGetRawOutputs(res *ResourceState) Output
This is an internal method and future versions of the sdk may not support this API.
InternalGetRawOutputs obtains the full PropertyMap returned during resource registration, allowing a caller of RegisterResource to obtain directly information about the outputs and their known and secret attributes.
func NewOutput
deprecated
NewOutput returns an output value that can be used to rendezvous with the production of a value or error. The function returns the output itself, plus two functions: one for resolving a value, and another for rejecting with an error; exactly one function must be called. This acts like a promise.
Deprecated: use Context.NewOutput instead.
func OutputWithDependencies ¶
func ToOutput ¶
func ToOutput(v interface{}) Output
ToOutput returns an Output that will resolve when all Inputs contained in the given value have resolved.
func ToOutputWithContext ¶
ToOutputWithContext returns an Output that will resolve when all Outputs contained in the given value have resolved.
func ToSecret ¶
func ToSecret(input interface{}) Output
ToSecret wraps the input in an Output marked as secret that will resolve when all Inputs contained in the given value have resolved.
func ToSecretWithContext ¶
ToSecretWithContext wraps the input in an Output marked as secret that will resolve when all Inputs contained in the given value have resolved.
func UnsafeUnknownOutput ¶
UnsafeUnknownOutput Creates an unknown output. This is a low level API and should not be used in programs as this will cause "codeinfra up" to fail if called and used during a non-dryrun deployment.
type OutputState ¶
type OutputState = internal.OutputState
OutputState holds the internal details of an Output and implements the Apply and ApplyWithContext methods.
type PackageInfo ¶
type ProviderResource ¶
type ProviderResource interface {
CustomResource
// contains filtered or unexported methods
}
ProviderResource is a resource that represents a configured instance of a particular package's provider plugin. These resources are supply the implementations of their package's CRUD operations. A specific provider instance can be used for a given resource by passing it in ResourceOpt.Provider.
type ProviderResourceState ¶
type ProviderResourceState struct {
CustomResourceState
// contains filtered or unexported fields
}
type Resource ¶
type Resource interface {
internal.Resource
// URN is this resource's stable logical URN used to distinctly address it before, during, and after deployments.
URN() URNOutput
// contains filtered or unexported methods
}
Resource represents a cloud resource managed by Codeinfra.
type ResourceArray ¶
type ResourceArray []ResourceInput
ResourceArray is an input type for []ResourceInput values.
func NewResourceArray ¶
func NewResourceArray(in ...Resource) ResourceArray
func ToResourceArray ¶
func ToResourceArray(in []Resource) ResourceArray
func (ResourceArray) ElementType ¶
func (ResourceArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([]Resource).
func (ResourceArray) ToOutput ¶
func (in ResourceArray) ToOutput(ctx context.Context) codeinfrax.Output[[]Resource]
func (ResourceArray) ToResourceArrayOutput ¶
func (in ResourceArray) ToResourceArrayOutput() ResourceArrayOutput
func (ResourceArray) ToResourceArrayOutputWithContext ¶
func (in ResourceArray) ToResourceArrayOutputWithContext(ctx context.Context) ResourceArrayOutput
type ResourceArrayInput ¶
type ResourceArrayInput interface {
Input
ToResourceArrayOutput() ResourceArrayOutput
ToResourceArrayOutputWithContext(ctx context.Context) ResourceArrayOutput
}
ResourceArrayInput is an input type that accepts ResourceArray and ResourceArrayOutput values.
type ResourceArrayOutput ¶
type ResourceArrayOutput struct{ *OutputState }
ResourceArrayOutput is an Output that returns []Resource values.
func NewResourceArrayOutput ¶
func NewResourceArrayOutput(in ...ResourceOutput) ResourceArrayOutput
func ToResourceArrayOutput ¶
func ToResourceArrayOutput(in []ResourceOutput) ResourceArrayOutput
func (ResourceArrayOutput) ElementType ¶
func (ResourceArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]Resource).
func (ResourceArrayOutput) Index ¶
func (o ResourceArrayOutput) Index(i IntInput) ResourceOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (ResourceArrayOutput) MarshalJSON ¶
func (ResourceArrayOutput) MarshalJSON() ([]byte, error)
func (ResourceArrayOutput) ToOutput ¶
func (o ResourceArrayOutput) ToOutput(context.Context) codeinfrax.Output[[]Resource]
func (ResourceArrayOutput) ToResourceArrayOutput ¶
func (o ResourceArrayOutput) ToResourceArrayOutput() ResourceArrayOutput
func (ResourceArrayOutput) ToResourceArrayOutputWithContext ¶
func (o ResourceArrayOutput) ToResourceArrayOutputWithContext(ctx context.Context) ResourceArrayOutput
type ResourceInput ¶
type ResourceInput interface {
Input
ToResourceOutput() ResourceOutput
ToResourceOutputWithContext(context.Context) ResourceOutput
}
ResourceInput is an Input type carrying Resource values.
Unfortunately `Resource` values do not implement `ResourceInput` in the current version. Use `NewResourceInput` instead.
func NewResourceInput ¶
func NewResourceInput(resource Resource) ResourceInput
type ResourceModule ¶
type ResourceOption ¶
type ResourceOption interface {
// contains filtered or unexported methods
}
func AdditionalSecretOutputs ¶
func AdditionalSecretOutputs(o []string) ResourceOption
AdditionalSecretOutputs specifies a list of output properties to mark as secret.
func Aliases ¶
func Aliases(o []Alias) ResourceOption
Aliases applies a list of identifiers to find and use existing resources.
func Composite ¶
func Composite(opts ...ResourceOption) ResourceOption
Composite is a resource option that contains other resource options.
func DeleteBeforeReplace ¶
func DeleteBeforeReplace(o bool) ResourceOption
DeleteBeforeReplace, when set to true, ensures that this resource is deleted prior to replacement.
func DeletedWith ¶
func DeletedWith(r Resource) ResourceOption
If set, the providers Delete method will not be called for this resource if specified resource is being deleted as well.
func IgnoreChanges ¶
func IgnoreChanges(o []string) ResourceOption
Ignore changes to any of the specified properties.
func Import ¶
func Import(o IDInput) ResourceOption
Import, when provided with a resource ID, indicates that this resource's provider should import its state from the cloud resource with the given ID. The inputs to the resource's constructor must align with the resource's current state. Once a resource has been imported, the import property must be removed from the resource's options.
func Protect ¶
func Protect(o bool) ResourceOption
Protect, when set to true, ensures that this resource cannot be deleted (without first setting it to false).
func ProviderMap ¶
func ProviderMap(o map[string]ProviderResource) ResourceOption
ProviderMap is an optional map of package to provider resource for a component resource.
func Providers ¶
func Providers(o ...ProviderResource) ResourceOption
Providers is an optional list of providers to use for a resource's children.
func ReplaceOnChanges ¶
func ReplaceOnChanges(o []string) ResourceOption
ReplaceOnChanges will force a replacement when any of these property paths are set. If this list includes `"*"`, changes to any properties will force a replacement. Initialization errors from previous deployments will require replacement instead of update only if `"*"` is passed.
func RetainOnDelete ¶
func RetainOnDelete(b bool) ResourceOption
If set to True, the providers Delete method will not be called for this resource.
func Timeouts ¶
func Timeouts(o *CustomTimeouts) ResourceOption
Timeouts is an optional configuration block used for CRUD operations
func Transformations ¶
func Transformations(o []ResourceTransformation) ResourceOption
Transformations is an optional list of transformations to be applied to the resource.
func Transforms ¶
func Transforms(o []ResourceTransform) ResourceOption
Transforms is an optional list of transforms to be applied to the resource.
func URN_ ¶
func URN_(o string) ResourceOption
URN_ is an optional URN of a previously-registered resource of this type to read from the engine.
type ResourceOptions ¶
type ResourceOptions struct {
// AdditionalSecretOutputs lists output properties
// that must be encrypted as secrets.
AdditionalSecretOutputs []string
// Aliases lists aliases for this resource
// that are used to find and use existing resources.
Aliases []Alias
// CustomTimeouts, if set, overrides the default timeouts
// for resource CRUD operations.
CustomTimeouts *CustomTimeouts
// DeleteBeforeReplace specifies that resources being replaced
// should be deleted before creating the replacement
// instead of Codeinfra's default behavior of creating the replacement
// before performing deletion.
DeleteBeforeReplace bool
// DependsOn lists additional explicit dependencies for the resource
// in addition to those tracked automatically by Codeinfra.
DependsOn []Resource
// DependsOnInputs holds explicit dependencies for the resource
// that may not be fully known yet.
DependsOnInputs []ResourceArrayInput
// IgnoreChanges lists properties changes to which should be ignored.
IgnoreChanges []string
// Import specifies that the provider for this resource
// should import its state from a cloud resource with the given ID.
Import IDInput
// Parent is the parent resource for the resource being created,
// or nil if this resource does not have a parent.
Parent Resource
// Protect prevents this resource from being deleted.
Protect bool
// Provider is the provider resource to use for this resource's CRUD operations.
// It's nil if the default provider should be used.
Provider ProviderResource
// Providers is a bag of providers available
// to instantiate resources of various types.
// These are used for a type when a provider for that type
// was not explicitly supplied.
Providers []ProviderResource
// ReplaceOnChanges lists properties that, when modified,
// force a replacement of the resource.
// The list may include '*' to indicate that all properties trigger
// replacements.
ReplaceOnChanges []string
// Transformations is a list of functions that transform
// the resource's properties during construction.
Transformations []ResourceTransformation
// Transforms is a list of functions that transform
// the resource's properties during construction.
Transforms []ResourceTransform
// URN is the URN of a previously-registered resource of this type.
URN string
// Version changes the version of the provider plugin that should be used
// when operating on this resource.
// This will be blank if the version was automatically inferred.
Version string
// PluginDownloadURL specifies the URL from which the provider plugin
// should be downloaded.
// This will be blank if the URL was inferred automatically.
PluginDownloadURL string
// RetainOnDelete specifies that the resource should not be deleted
// in the cloud provider, even if it's deleted from Codeinfra.
RetainOnDelete bool
// DeletedWith holds a container resource that, if deleted,
// also deletes this resource.
DeletedWith Resource
}
ResourceOptions is a snapshot of one or more [ResourceOption]s.
You cannot pass a ResourceOptions struct to a resource constructor. Instead, use individual ResourceOption values to configure a resource. The ResourceOptions struct only provides a read-only preview of the collective effect of the options.
See https://www.codeinfra.com/docs/intro/concepts/resources/options/ for more details on individual options.
func NewResourceOptions ¶
func NewResourceOptions(opts ...ResourceOption) (*ResourceOptions, error)
NewResourceOptions builds a preview of the effect of the provided options.
Use this to get a read-only snapshot of a list of options inside mocks and component resources.
type ResourceOrInvokeOption ¶
type ResourceOrInvokeOption interface {
ResourceOption
InvokeOption
}
func DependsOn ¶
func DependsOn(o []Resource) ResourceOrInvokeOption
DependsOn is an optional array of explicit dependencies on other resources.
func DependsOnInputs ¶
func DependsOnInputs(o ResourceArrayInput) ResourceOrInvokeOption
Declares explicit dependencies on other resources. Similar to `DependsOn`, but also admits resource inputs and outputs:
var r Resource var ri ResourceInput var ro ResourceOutput allDeps := NewResourceArrayOutput(NewResourceOutput(r), ri.ToResourceOutput(), ro) DependsOnInputs(allDeps)
func Parameterization ¶
func Parameterization(parameter []byte) ResourceOrInvokeOption
If set this resource will be parameterized with the given package reference.
func Parent ¶
func Parent(r Resource) ResourceOrInvokeOption
Parent sets the parent resource to which this resource or invoke belongs.
func PluginDownloadURL ¶
func PluginDownloadURL(o string) ResourceOrInvokeOption
PluginDownloadURL is an optional url, corresponding to the download url of the provider plugin that should be used when operating on this resource. This url overrides the url information inferred from the current package and should rarely be used.
func Provider ¶
func Provider(r ProviderResource) ResourceOrInvokeOption
Provider sets the provider resource to use for a resource's CRUD operations or an invoke's call.
func Version ¶
func Version(o string) ResourceOrInvokeOption
Version is an optional version, corresponding to the version of the provider plugin that should be used when operating on this resource. This version overrides the version information inferred from the current package and should rarely be used.
type ResourceOutput ¶
type ResourceOutput struct{ *OutputState }
ResourceOutput is an Output that returns Resource values. TODO: ResourceOutput and the init() should probably be code generated.
func NewResourceOutput ¶
func NewResourceOutput(resource Resource) ResourceOutput
func (ResourceOutput) ElementType ¶
func (ResourceOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (Resource).
func (ResourceOutput) MarshalJSON ¶
func (ResourceOutput) MarshalJSON() ([]byte, error)
func (ResourceOutput) ToOutput ¶
func (o ResourceOutput) ToOutput(context.Context) codeinfrax.Output[Resource]
func (ResourceOutput) ToResourceOutput ¶
func (o ResourceOutput) ToResourceOutput() ResourceOutput
func (ResourceOutput) ToResourceOutputWithContext ¶
func (o ResourceOutput) ToResourceOutputWithContext(ctx context.Context) ResourceOutput
type ResourcePackage ¶
type ResourcePackage interface {
Versioned
ConstructProvider(ctx *Context, name, typ, urn string) (ProviderResource, error)
}
type ResourceState ¶
type ResourceState struct {
// contains filtered or unexported fields
}
ResourceState is the base
func (*ResourceState) GetProvider ¶
func (s *ResourceState) GetProvider(token string) ProviderResource
func (*ResourceState) URN ¶
func (s *ResourceState) URN() URNOutput
type ResourceTransform ¶
type ResourceTransform func(context.Context, *ResourceTransformArgs) *ResourceTransformResult
ResourceTransform is the callback signature for the `transforms` resource option. A transform is passed the same set of inputs provided to the `Resource` constructor, and can optionally return back alternate values for the `props` and/or `opts` prior to the resource actually being created. The effect will be as though those props and opts were passed in place of the original call to the `Resource` constructor. If the transform returns nil, this indicates that the resource will not be transformed.
type ResourceTransformArgs ¶
type ResourceTransformArgs struct {
// If the resource is a custom or component resource
Custom bool
// The type of the resource.
Type string
// The name of the resource.
Name string
// The original properties passed to the resource constructor.
Props Map
// The original resource options passed to the resource constructor.
Opts ResourceOptions
}
ResourceTransformArgs is the argument bag passed to a resource transform.
type ResourceTransformResult ¶
type ResourceTransformResult struct {
// The new properties to use in place of the original `props`.
Props Map
// The new resource options to use in place of the original `opts`.
Opts ResourceOptions
}
ResourceTransformResult is the result that must be returned by a resource transform callback. It includes new values to use for the `props` and `opts` of the `Resource` in place of the originally provided values.
type ResourceTransformation ¶
type ResourceTransformation func(*ResourceTransformationArgs) *ResourceTransformationResult
ResourceTransformation is the callback signature for the `transformations` resource option. A transformation is passed the same set of inputs provided to the `Resource` constructor, and can optionally return back alternate values for the `props` and/or `opts` prior to the resource actually being created. The effect will be as though those props and opts were passed in place of the original call to the `Resource` constructor. If the transformation returns nil, this indicates that the resource will not be transformed.
type ResourceTransformationArgs ¶
type ResourceTransformationArgs struct {
// The resource instance that is being transformed.
Resource Resource
// The type of the resource.
Type string
// The name of the resource.
Name string
// The original properties passed to the resource constructor.
Props Input
// The original resource options passed to the resource constructor.
Opts []ResourceOption
}
ResourceTransformationArgs is the argument bag passed to a resource transformation.
type ResourceTransformationResult ¶
type ResourceTransformationResult struct {
// The new properties to use in place of the original `props`.
Props Input
// The new resource options to use in place of the original `opts`.
Opts []ResourceOption
}
ResourceTransformationResult is the result that must be returned by a resource transformation callback. It includes new values to use for the `props` and `opts` of the `Resource` in place of the originally provided values.
type RunFunc ¶
RunFunc executes the body of a Codeinfra program. It may register resources using the deployment context supplied as an arguent and any non-nil return value is interpreted as a program error by the Codeinfra runtime.
type RunInfo ¶
type RunInfo struct {
Project string
Stack string
Config map[string]string
ConfigSecretKeys []string
ConfigPropertyMap resource.PropertyMap
Parallel int32
DryRun bool
MonitorAddr string
EngineAddr string
Organization string
Mocks MockResourceMonitor
// contains filtered or unexported fields
}
RunInfo contains all the metadata about a run request.
type RunOption ¶
type RunOption func(*RunInfo)
A RunOption is used to control the behavior of Run and RunErr.
func WithMocks ¶
func WithMocks(project, stack string, mocks MockResourceMonitor) RunOption
func WithMocksWithOrganization ¶
func WithMocksWithOrganization(organization, project, stack string, mocks MockResourceMonitor) RunOption
type StackReference ¶
type StackReference struct {
CustomResourceState
// Name is in the form "Org/Program/Stack"
Name StringOutput `codeinfra:"name"`
// Outputs resolves with exports from the named stack
Outputs MapOutput `codeinfra:"outputs"`
// contains filtered or unexported fields
}
StackReference manages a reference to a Codeinfra stack.
func NewStackReference ¶
func NewStackReference(ctx *Context, name string, args *StackReferenceArgs, opts ...ResourceOption, ) (*StackReference, error)
NewStackReference creates a stack reference that makes available outputs from the specified stack
func (*StackReference) GetFloat64Output ¶
func (s *StackReference) GetFloat64Output(name StringInput) Float64Output
GetFloat64Output returns a stack output keyed by the given name as an Float64Output
func (*StackReference) GetIDOutput ¶
func (s *StackReference) GetIDOutput(name StringInput) IDOutput
GetIDOutput returns a stack output keyed by the given name as an IDOutput
func (*StackReference) GetIntOutput ¶
func (s *StackReference) GetIntOutput(name StringInput) IntOutput
GetIntOutput returns a stack output keyed by the given name as an IntOutput
func (*StackReference) GetOutput ¶
func (s *StackReference) GetOutput(name StringInput) AnyOutput
GetOutput returns a stack output keyed by the given name as an AnyOutput If the given name is not present in the StackReference, Output<nil> is returned.
func (*StackReference) GetOutputDetails ¶
func (s *StackReference) GetOutputDetails(name string) (*StackReferenceOutputDetails, error)
GetOutputDetails retrieves a stack output keyed by the given name and returns the value inside a StackReferenceOutputDetails object.
It sets the Value or the SecretValue fields of StackReferenceOutputDetails depending on whether the stack output is a secret. If the given name is not present in the StackReference, both fields are nil.
func (*StackReference) GetStringOutput ¶
func (s *StackReference) GetStringOutput(name StringInput) StringOutput
GetStringOutput returns a stack output keyed by the given name as an StringOutput
type StackReferenceArgs ¶
type StackReferenceArgs struct {
// Name is in the form "Org/Program/Stack"
Name StringInput
}
StackReferenceArgs is the input to NewStackReference that allows specifying a stack name
func (StackReferenceArgs) ElementType ¶
func (StackReferenceArgs) ElementType() reflect.Type
type StackReferenceOutputDetails ¶
type StackReferenceOutputDetails struct {
// Output value returned by the StackReference.
// This field is nil if the value is a secret
// or it does not exist.
Value interface{}
// Secret output value returned by the StackReference.
// This field is nil if the value is not a secret
// or it does not exist.
SecretValue interface{}
}
StackReferenceOutputDetails holds a stack output value. At most one of the Value and SecretValue fields will be set.
You can build a StackReferenceOutputDetails with the StackReference.GetOutputDetails method.
type String ¶
type String string
String is an input type for string values.
func (String) ElementType ¶
ElementType returns the element type of this Input (string).
func (String) ToStringOutput ¶
func (in String) ToStringOutput() StringOutput
func (String) ToStringOutputWithContext ¶
func (in String) ToStringOutputWithContext(ctx context.Context) StringOutput
func (String) ToStringPtrOutput ¶
func (in String) ToStringPtrOutput() StringPtrOutput
func (String) ToStringPtrOutputWithContext ¶
func (in String) ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
type StringArray ¶
type StringArray []StringInput
StringArray is an input type for []StringInput values.
func ToStringArray ¶
func ToStringArray(in []string) StringArray
func (StringArray) ElementType ¶
func (StringArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([]string).
func (StringArray) ToOutput ¶
func (in StringArray) ToOutput(ctx context.Context) codeinfrax.Output[[]string]
func (StringArray) ToStringArrayOutput ¶
func (in StringArray) ToStringArrayOutput() StringArrayOutput
func (StringArray) ToStringArrayOutputWithContext ¶
func (in StringArray) ToStringArrayOutputWithContext(ctx context.Context) StringArrayOutput
type StringArrayArray ¶
type StringArrayArray []StringArrayInput
StringArrayArray is an input type for []StringArrayInput values.
func ToStringArrayArray ¶
func ToStringArrayArray(in [][]string) StringArrayArray
func (StringArrayArray) ElementType ¶
func (StringArrayArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([][]string).
func (StringArrayArray) ToOutput ¶
func (in StringArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]string]
func (StringArrayArray) ToStringArrayArrayOutput ¶
func (in StringArrayArray) ToStringArrayArrayOutput() StringArrayArrayOutput
func (StringArrayArray) ToStringArrayArrayOutputWithContext ¶
func (in StringArrayArray) ToStringArrayArrayOutputWithContext(ctx context.Context) StringArrayArrayOutput
type StringArrayArrayInput ¶
type StringArrayArrayInput interface {
Input
ToStringArrayArrayOutput() StringArrayArrayOutput
ToStringArrayArrayOutputWithContext(ctx context.Context) StringArrayArrayOutput
}
StringArrayArrayInput is an input type that accepts StringArrayArray and StringArrayArrayOutput values.
type StringArrayArrayOutput ¶
type StringArrayArrayOutput struct{ *OutputState }
StringArrayArrayOutput is an Output that returns [][]string values.
func ToStringArrayArrayOutput ¶
func ToStringArrayArrayOutput(in []StringArrayOutput) StringArrayArrayOutput
func (StringArrayArrayOutput) ElementType ¶
func (StringArrayArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([][]string).
func (StringArrayArrayOutput) Index ¶
func (o StringArrayArrayOutput) Index(i IntInput) StringArrayOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (StringArrayArrayOutput) MarshalJSON ¶
func (StringArrayArrayOutput) MarshalJSON() ([]byte, error)
func (StringArrayArrayOutput) ToOutput ¶
func (o StringArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]string]
func (StringArrayArrayOutput) ToStringArrayArrayOutput ¶
func (o StringArrayArrayOutput) ToStringArrayArrayOutput() StringArrayArrayOutput
func (StringArrayArrayOutput) ToStringArrayArrayOutputWithContext ¶
func (o StringArrayArrayOutput) ToStringArrayArrayOutputWithContext(ctx context.Context) StringArrayArrayOutput
type StringArrayInput ¶
type StringArrayInput interface {
Input
ToStringArrayOutput() StringArrayOutput
ToStringArrayOutputWithContext(ctx context.Context) StringArrayOutput
}
StringArrayInput is an input type that accepts StringArray and StringArrayOutput values.
type StringArrayMap ¶
type StringArrayMap map[string]StringArrayInput
StringArrayMap is an input type for map[string]StringArrayInput values.
func ToStringArrayMap ¶
func ToStringArrayMap(in map[string][]string) StringArrayMap
func (StringArrayMap) ElementType ¶
func (StringArrayMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string][]string).
func (StringArrayMap) ToOutput ¶
func (in StringArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]string]
func (StringArrayMap) ToStringArrayMapOutput ¶
func (in StringArrayMap) ToStringArrayMapOutput() StringArrayMapOutput
func (StringArrayMap) ToStringArrayMapOutputWithContext ¶
func (in StringArrayMap) ToStringArrayMapOutputWithContext(ctx context.Context) StringArrayMapOutput
type StringArrayMapInput ¶
type StringArrayMapInput interface {
Input
ToStringArrayMapOutput() StringArrayMapOutput
ToStringArrayMapOutputWithContext(ctx context.Context) StringArrayMapOutput
}
StringArrayMapInput is an input type that accepts StringArrayMap and StringArrayMapOutput values.
type StringArrayMapOutput ¶
type StringArrayMapOutput struct{ *OutputState }
StringArrayMapOutput is an Output that returns map[string][]string values.
func ToStringArrayMapOutput ¶
func ToStringArrayMapOutput(in map[string]StringArrayOutput) StringArrayMapOutput
func (StringArrayMapOutput) ElementType ¶
func (StringArrayMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string][]string).
func (StringArrayMapOutput) MapIndex ¶
func (o StringArrayMapOutput) MapIndex(k StringInput) StringArrayOutput
MapIndex looks up the key k in the map.
func (StringArrayMapOutput) MarshalJSON ¶
func (StringArrayMapOutput) MarshalJSON() ([]byte, error)
func (StringArrayMapOutput) ToOutput ¶
func (o StringArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]string]
func (StringArrayMapOutput) ToStringArrayMapOutput ¶
func (o StringArrayMapOutput) ToStringArrayMapOutput() StringArrayMapOutput
func (StringArrayMapOutput) ToStringArrayMapOutputWithContext ¶
func (o StringArrayMapOutput) ToStringArrayMapOutputWithContext(ctx context.Context) StringArrayMapOutput
type StringArrayOutput ¶
type StringArrayOutput struct{ *OutputState }
StringArrayOutput is an Output that returns []string values.
func ToStringArrayOutput ¶
func ToStringArrayOutput(in []StringOutput) StringArrayOutput
func (StringArrayOutput) ElementType ¶
func (StringArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]string).
func (StringArrayOutput) Index ¶
func (o StringArrayOutput) Index(i IntInput) StringOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (StringArrayOutput) MarshalJSON ¶
func (StringArrayOutput) MarshalJSON() ([]byte, error)
func (StringArrayOutput) ToOutput ¶
func (o StringArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]string]
func (StringArrayOutput) ToStringArrayOutput ¶
func (o StringArrayOutput) ToStringArrayOutput() StringArrayOutput
func (StringArrayOutput) ToStringArrayOutputWithContext ¶
func (o StringArrayOutput) ToStringArrayOutputWithContext(ctx context.Context) StringArrayOutput
type StringInput ¶
type StringInput interface {
Input
ToStringOutput() StringOutput
ToStringOutputWithContext(ctx context.Context) StringOutput
ToStringPtrOutput() StringPtrOutput
ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
}
StringInput is an input type that accepts String and StringOutput values.
type StringMap ¶
type StringMap map[string]StringInput
StringMap is an input type for map[string]StringInput values.
func ToStringMap ¶
func (StringMap) ElementType ¶
ElementType returns the element type of this Input (map[string]string).
func (StringMap) ToStringMapOutput ¶
func (in StringMap) ToStringMapOutput() StringMapOutput
func (StringMap) ToStringMapOutputWithContext ¶
func (in StringMap) ToStringMapOutputWithContext(ctx context.Context) StringMapOutput
type StringMapArray ¶
type StringMapArray []StringMapInput
StringMapArray is an input type for []StringMapInput values.
func ToStringMapArray ¶
func ToStringMapArray(in []map[string]string) StringMapArray
func (StringMapArray) ElementType ¶
func (StringMapArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([]map[string]string).
func (StringMapArray) ToOutput ¶
func (in StringMapArray) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]string]
func (StringMapArray) ToStringMapArrayOutput ¶
func (in StringMapArray) ToStringMapArrayOutput() StringMapArrayOutput
func (StringMapArray) ToStringMapArrayOutputWithContext ¶
func (in StringMapArray) ToStringMapArrayOutputWithContext(ctx context.Context) StringMapArrayOutput
type StringMapArrayInput ¶
type StringMapArrayInput interface {
Input
ToStringMapArrayOutput() StringMapArrayOutput
ToStringMapArrayOutputWithContext(ctx context.Context) StringMapArrayOutput
}
StringMapArrayInput is an input type that accepts StringMapArray and StringMapArrayOutput values.
type StringMapArrayOutput ¶
type StringMapArrayOutput struct{ *OutputState }
StringMapArrayOutput is an Output that returns []map[string]string values.
func ToStringMapArrayOutput ¶
func ToStringMapArrayOutput(in []StringMapOutput) StringMapArrayOutput
func (StringMapArrayOutput) ElementType ¶
func (StringMapArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]map[string]string).
func (StringMapArrayOutput) Index ¶
func (o StringMapArrayOutput) Index(i IntInput) StringMapOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (StringMapArrayOutput) MarshalJSON ¶
func (StringMapArrayOutput) MarshalJSON() ([]byte, error)
func (StringMapArrayOutput) ToOutput ¶
func (o StringMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]string]
func (StringMapArrayOutput) ToStringMapArrayOutput ¶
func (o StringMapArrayOutput) ToStringMapArrayOutput() StringMapArrayOutput
func (StringMapArrayOutput) ToStringMapArrayOutputWithContext ¶
func (o StringMapArrayOutput) ToStringMapArrayOutputWithContext(ctx context.Context) StringMapArrayOutput
type StringMapInput ¶
type StringMapInput interface {
Input
ToStringMapOutput() StringMapOutput
ToStringMapOutputWithContext(ctx context.Context) StringMapOutput
}
StringMapInput is an input type that accepts StringMap and StringMapOutput values.
type StringMapMap ¶
type StringMapMap map[string]StringMapInput
StringMapMap is an input type for map[string]StringMapInput values.
func ToStringMapMap ¶
func ToStringMapMap(in map[string]map[string]string) StringMapMap
func (StringMapMap) ElementType ¶
func (StringMapMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string]map[string]string).
func (StringMapMap) ToOutput ¶
func (in StringMapMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]string]
func (StringMapMap) ToStringMapMapOutput ¶
func (in StringMapMap) ToStringMapMapOutput() StringMapMapOutput
func (StringMapMap) ToStringMapMapOutputWithContext ¶
func (in StringMapMap) ToStringMapMapOutputWithContext(ctx context.Context) StringMapMapOutput
type StringMapMapInput ¶
type StringMapMapInput interface {
Input
ToStringMapMapOutput() StringMapMapOutput
ToStringMapMapOutputWithContext(ctx context.Context) StringMapMapOutput
}
StringMapMapInput is an input type that accepts StringMapMap and StringMapMapOutput values.
type StringMapMapMap ¶
type StringMapMapMap map[string]StringMapMapInput
StringMapMapMap is an input type for map[string]StringMapMapInput values.
func ToStringMapMapMap ¶
func ToStringMapMapMap(in map[string]map[string]map[string]string) StringMapMapMap
func (StringMapMapMap) ElementType ¶
func (StringMapMapMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string]map[string]map[string]string).
func (StringMapMapMap) ToOutput ¶
func (in StringMapMapMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]map[string]string]
func (StringMapMapMap) ToStringMapMapMapOutput ¶
func (in StringMapMapMap) ToStringMapMapMapOutput() StringMapMapMapOutput
func (StringMapMapMap) ToStringMapMapMapOutputWithContext ¶
func (in StringMapMapMap) ToStringMapMapMapOutputWithContext(ctx context.Context) StringMapMapMapOutput
type StringMapMapMapInput ¶
type StringMapMapMapInput interface {
Input
ToStringMapMapMapOutput() StringMapMapMapOutput
ToStringMapMapMapOutputWithContext(ctx context.Context) StringMapMapMapOutput
}
StringMapMapMapInput is an input type that accepts StringMapMapMap and StringMapMapMapOutput values.
type StringMapMapMapOutput ¶
type StringMapMapMapOutput struct{ *OutputState }
StringMapMapMapOutput is an Output that returns map[string]map[string]map[string]string values.
func ToStringMapMapMapOutput ¶
func ToStringMapMapMapOutput(in map[string]StringMapMapOutput) StringMapMapMapOutput
func (StringMapMapMapOutput) ElementType ¶
func (StringMapMapMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]map[string]map[string]string).
func (StringMapMapMapOutput) MapIndex ¶
func (o StringMapMapMapOutput) MapIndex(k StringInput) StringMapMapOutput
MapIndex looks up the key k in the map.
func (StringMapMapMapOutput) MarshalJSON ¶
func (StringMapMapMapOutput) MarshalJSON() ([]byte, error)
func (StringMapMapMapOutput) ToOutput ¶
func (o StringMapMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]map[string]string]
func (StringMapMapMapOutput) ToStringMapMapMapOutput ¶
func (o StringMapMapMapOutput) ToStringMapMapMapOutput() StringMapMapMapOutput
func (StringMapMapMapOutput) ToStringMapMapMapOutputWithContext ¶
func (o StringMapMapMapOutput) ToStringMapMapMapOutputWithContext(ctx context.Context) StringMapMapMapOutput
type StringMapMapOutput ¶
type StringMapMapOutput struct{ *OutputState }
StringMapMapOutput is an Output that returns map[string]map[string]string values.
func ToStringMapMapOutput ¶
func ToStringMapMapOutput(in map[string]StringMapOutput) StringMapMapOutput
func (StringMapMapOutput) ElementType ¶
func (StringMapMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]map[string]string).
func (StringMapMapOutput) MapIndex ¶
func (o StringMapMapOutput) MapIndex(k StringInput) StringMapOutput
MapIndex looks up the key k in the map.
func (StringMapMapOutput) MarshalJSON ¶
func (StringMapMapOutput) MarshalJSON() ([]byte, error)
func (StringMapMapOutput) ToOutput ¶
func (o StringMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]string]
func (StringMapMapOutput) ToStringMapMapOutput ¶
func (o StringMapMapOutput) ToStringMapMapOutput() StringMapMapOutput
func (StringMapMapOutput) ToStringMapMapOutputWithContext ¶
func (o StringMapMapOutput) ToStringMapMapOutputWithContext(ctx context.Context) StringMapMapOutput
type StringMapOutput ¶
type StringMapOutput struct{ *OutputState }
StringMapOutput is an Output that returns map[string]string values.
func ToStringMapOutput ¶
func ToStringMapOutput(in map[string]StringOutput) StringMapOutput
func (StringMapOutput) ElementType ¶
func (StringMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]string).
func (StringMapOutput) MapIndex ¶
func (o StringMapOutput) MapIndex(k StringInput) StringOutput
MapIndex looks up the key k in the map.
func (StringMapOutput) MarshalJSON ¶
func (StringMapOutput) MarshalJSON() ([]byte, error)
func (StringMapOutput) ToOutput ¶
func (o StringMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]string]
func (StringMapOutput) ToStringMapOutput ¶
func (o StringMapOutput) ToStringMapOutput() StringMapOutput
func (StringMapOutput) ToStringMapOutputWithContext ¶
func (o StringMapOutput) ToStringMapOutputWithContext(ctx context.Context) StringMapOutput
type StringOutput ¶
type StringOutput struct{ *OutputState }
StringOutput is an Output that returns string values.
func JSONMarshal ¶
func JSONMarshal(v interface{}) StringOutput
JSONMarshal uses "encoding/json".Marshal to serialize the given Output value into a JSON string.
JSONMarshal *does not* support marshaling values that contain nested unknowns. You will need to manually create a top level unknown with codeinfra.Input.ApplyT or All. This does not work:
codeinfra.JSONMarshal(map[string]any{"key": myResource.Name})
You need to move the output myResource.Name to a top level output:
codeinfra.JSONMarshal(myResource.Name.Apply(func(name string) map[string]any{
return map[string]any{"key": name}
}))
Supporting nested unknowns is tracked in https://github.com/khulnasoft/codeinfra/issues/12460
func JSONMarshalWithContext ¶
func JSONMarshalWithContext(ctx context.Context, v interface{}) StringOutput
JSONMarshalWithContext uses "encoding/json".Marshal to serialize the given Output value into a JSON string.
JSONMarshalWithContext *does not* support marshaling values that contain nested unknowns. You will need to manually create a top level unknown with codeinfra.Input.ApplyT or All. This does not work:
codeinfra.JSONMarshalWithContext(ctx.Context(), map[string]any{"key": myResource.Name})
You need to move the output myResource.Name to a top level output:
codeinfra.JSONMarshalWithContext(ctx.Context(), myResource.Name.Apply(func(name string) map[string]any{
return map[string]any{"key": name}
}))
Supporting nested unknowns is tracked in https://github.com/khulnasoft/codeinfra/issues/12460
func Sprintf ¶
func Sprintf(format string, args ...interface{}) StringOutput
func (StringOutput) ElementType ¶
func (StringOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (string).
func (StringOutput) MarshalJSON ¶
func (StringOutput) MarshalJSON() ([]byte, error)
func (StringOutput) ToOutput ¶
func (o StringOutput) ToOutput(ctx context.Context) codeinfrax.Output[string]
func (StringOutput) ToStringOutput ¶
func (o StringOutput) ToStringOutput() StringOutput
func (StringOutput) ToStringOutputWithContext ¶
func (o StringOutput) ToStringOutputWithContext(ctx context.Context) StringOutput
func (StringOutput) ToStringPtrOutput ¶
func (o StringOutput) ToStringPtrOutput() StringPtrOutput
func (StringOutput) ToStringPtrOutputWithContext ¶
func (o StringOutput) ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
type StringPtrInput ¶
type StringPtrInput interface {
Input
ToStringPtrOutput() StringPtrOutput
ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
}
StringPtrInput is an input type that accepts StringPtr and StringPtrOutput values.
func StringPtr ¶
func StringPtr(v string) StringPtrInput
StringPtr is an input type for *string values.
func StringPtrFromPtr ¶
func StringPtrFromPtr(v *string) StringPtrInput
type StringPtrOutput ¶
type StringPtrOutput struct{ *OutputState }
StringPtrOutput is an Output that returns *string values.
func (StringPtrOutput) Elem ¶
func (o StringPtrOutput) Elem() StringOutput
Elem dereferences the pointer value or returns the zero value of the approporiate type if the pointer is nil.
func (StringPtrOutput) ElementType ¶
func (StringPtrOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (*string).
func (StringPtrOutput) MarshalJSON ¶
func (StringPtrOutput) MarshalJSON() ([]byte, error)
func (StringPtrOutput) ToOutput ¶
func (o StringPtrOutput) ToOutput(ctx context.Context) codeinfrax.Output[*string]
func (StringPtrOutput) ToStringPtrOutput ¶
func (o StringPtrOutput) ToStringPtrOutput() StringPtrOutput
func (StringPtrOutput) ToStringPtrOutputWithContext ¶
func (o StringPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
type URN ¶
type URN string
URN is an automatically generated logical URN, used to stably identify resources.
func (URN) ElementType ¶
ElementType returns the element type of this Input (URN).
func (URN) ToStringOutput ¶
func (in URN) ToStringOutput() StringOutput
func (URN) ToStringOutputWithContext ¶
func (in URN) ToStringOutputWithContext(ctx context.Context) StringOutput
func (URN) ToStringPtrOutput ¶
func (in URN) ToStringPtrOutput() StringPtrOutput
func (URN) ToStringPtrOutputWithContext ¶
func (in URN) ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
func (URN) ToURNOutput ¶
func (URN) ToURNOutputWithContext ¶
func (URN) ToURNPtrOutput ¶
func (in URN) ToURNPtrOutput() URNPtrOutput
func (URN) ToURNPtrOutputWithContext ¶
func (in URN) ToURNPtrOutputWithContext(ctx context.Context) URNPtrOutput
type URNArray ¶
type URNArray []URNInput
URNArray is an input type for []URNInput values.
func ToURNArray ¶
func (URNArray) ElementType ¶
ElementType returns the element type of this Input ([]URN).
func (URNArray) ToURNArrayOutput ¶
func (in URNArray) ToURNArrayOutput() URNArrayOutput
func (URNArray) ToURNArrayOutputWithContext ¶
func (in URNArray) ToURNArrayOutputWithContext(ctx context.Context) URNArrayOutput
type URNArrayArray ¶
type URNArrayArray []URNArrayInput
URNArrayArray is an input type for []URNArrayInput values.
func ToURNArrayArray ¶
func ToURNArrayArray(in [][]URN) URNArrayArray
func (URNArrayArray) ElementType ¶
func (URNArrayArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([][]URN).
func (URNArrayArray) ToOutput ¶
func (in URNArrayArray) ToOutput(ctx context.Context) codeinfrax.Output[[][]URN]
func (URNArrayArray) ToURNArrayArrayOutput ¶
func (in URNArrayArray) ToURNArrayArrayOutput() URNArrayArrayOutput
func (URNArrayArray) ToURNArrayArrayOutputWithContext ¶
func (in URNArrayArray) ToURNArrayArrayOutputWithContext(ctx context.Context) URNArrayArrayOutput
type URNArrayArrayInput ¶
type URNArrayArrayInput interface {
Input
ToURNArrayArrayOutput() URNArrayArrayOutput
ToURNArrayArrayOutputWithContext(ctx context.Context) URNArrayArrayOutput
}
URNArrayArrayInput is an input type that accepts URNArrayArray and URNArrayArrayOutput values.
type URNArrayArrayOutput ¶
type URNArrayArrayOutput struct{ *OutputState }
URNArrayArrayOutput is an Output that returns [][]URN values.
func ToURNArrayArrayOutput ¶
func ToURNArrayArrayOutput(in []URNArrayOutput) URNArrayArrayOutput
func (URNArrayArrayOutput) ElementType ¶
func (URNArrayArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([][]URN).
func (URNArrayArrayOutput) Index ¶
func (o URNArrayArrayOutput) Index(i IntInput) URNArrayOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (URNArrayArrayOutput) MarshalJSON ¶
func (URNArrayArrayOutput) MarshalJSON() ([]byte, error)
func (URNArrayArrayOutput) ToOutput ¶
func (o URNArrayArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[][]URN]
func (URNArrayArrayOutput) ToURNArrayArrayOutput ¶
func (o URNArrayArrayOutput) ToURNArrayArrayOutput() URNArrayArrayOutput
func (URNArrayArrayOutput) ToURNArrayArrayOutputWithContext ¶
func (o URNArrayArrayOutput) ToURNArrayArrayOutputWithContext(ctx context.Context) URNArrayArrayOutput
type URNArrayInput ¶
type URNArrayInput interface {
Input
ToURNArrayOutput() URNArrayOutput
ToURNArrayOutputWithContext(ctx context.Context) URNArrayOutput
}
URNArrayInput is an input type that accepts URNArray and URNArrayOutput values.
type URNArrayMap ¶
type URNArrayMap map[string]URNArrayInput
URNArrayMap is an input type for map[string]URNArrayInput values.
func ToURNArrayMap ¶
func ToURNArrayMap(in map[string][]URN) URNArrayMap
func (URNArrayMap) ElementType ¶
func (URNArrayMap) ElementType() reflect.Type
ElementType returns the element type of this Input (map[string][]URN).
func (URNArrayMap) ToOutput ¶
func (in URNArrayMap) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]URN]
func (URNArrayMap) ToURNArrayMapOutput ¶
func (in URNArrayMap) ToURNArrayMapOutput() URNArrayMapOutput
func (URNArrayMap) ToURNArrayMapOutputWithContext ¶
func (in URNArrayMap) ToURNArrayMapOutputWithContext(ctx context.Context) URNArrayMapOutput
type URNArrayMapInput ¶
type URNArrayMapInput interface {
Input
ToURNArrayMapOutput() URNArrayMapOutput
ToURNArrayMapOutputWithContext(ctx context.Context) URNArrayMapOutput
}
URNArrayMapInput is an input type that accepts URNArrayMap and URNArrayMapOutput values.
type URNArrayMapOutput ¶
type URNArrayMapOutput struct{ *OutputState }
URNArrayMapOutput is an Output that returns map[string][]URN values.
func ToURNArrayMapOutput ¶
func ToURNArrayMapOutput(in map[string]URNArrayOutput) URNArrayMapOutput
func (URNArrayMapOutput) ElementType ¶
func (URNArrayMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string][]URN).
func (URNArrayMapOutput) MapIndex ¶
func (o URNArrayMapOutput) MapIndex(k StringInput) URNArrayOutput
MapIndex looks up the key k in the map.
func (URNArrayMapOutput) MarshalJSON ¶
func (URNArrayMapOutput) MarshalJSON() ([]byte, error)
func (URNArrayMapOutput) ToOutput ¶
func (o URNArrayMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string][]URN]
func (URNArrayMapOutput) ToURNArrayMapOutput ¶
func (o URNArrayMapOutput) ToURNArrayMapOutput() URNArrayMapOutput
func (URNArrayMapOutput) ToURNArrayMapOutputWithContext ¶
func (o URNArrayMapOutput) ToURNArrayMapOutputWithContext(ctx context.Context) URNArrayMapOutput
type URNArrayOutput ¶
type URNArrayOutput struct{ *OutputState }
URNArrayOutput is an Output that returns []URN values.
func ToURNArrayOutput ¶
func ToURNArrayOutput(in []URNOutput) URNArrayOutput
func (URNArrayOutput) ElementType ¶
func (URNArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]URN).
func (URNArrayOutput) Index ¶
func (o URNArrayOutput) Index(i IntInput) URNOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (URNArrayOutput) MarshalJSON ¶
func (URNArrayOutput) MarshalJSON() ([]byte, error)
func (URNArrayOutput) ToOutput ¶
func (o URNArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]URN]
func (URNArrayOutput) ToURNArrayOutput ¶
func (o URNArrayOutput) ToURNArrayOutput() URNArrayOutput
func (URNArrayOutput) ToURNArrayOutputWithContext ¶
func (o URNArrayOutput) ToURNArrayOutputWithContext(ctx context.Context) URNArrayOutput
type URNInput ¶
type URNInput interface {
Input
ToURNOutput() URNOutput
ToURNOutputWithContext(ctx context.Context) URNOutput
ToURNPtrOutput() URNPtrOutput
ToURNPtrOutputWithContext(ctx context.Context) URNPtrOutput
}
URNInput is an input type that accepts URN and URNOutput values.
type URNMap ¶
URNMap is an input type for map[string]URNInput values.
func (URNMap) ElementType ¶
ElementType returns the element type of this Input (map[string]URN).
func (URNMap) ToURNMapOutput ¶
func (in URNMap) ToURNMapOutput() URNMapOutput
func (URNMap) ToURNMapOutputWithContext ¶
func (in URNMap) ToURNMapOutputWithContext(ctx context.Context) URNMapOutput
type URNMapArray ¶
type URNMapArray []URNMapInput
URNMapArray is an input type for []URNMapInput values.
func ToURNMapArray ¶
func ToURNMapArray(in []map[string]URN) URNMapArray
func (URNMapArray) ElementType ¶
func (URNMapArray) ElementType() reflect.Type
ElementType returns the element type of this Input ([]map[string]URN).
func (URNMapArray) ToOutput ¶
func (in URNMapArray) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]URN]
func (URNMapArray) ToURNMapArrayOutput ¶
func (in URNMapArray) ToURNMapArrayOutput() URNMapArrayOutput
func (URNMapArray) ToURNMapArrayOutputWithContext ¶
func (in URNMapArray) ToURNMapArrayOutputWithContext(ctx context.Context) URNMapArrayOutput
type URNMapArrayInput ¶
type URNMapArrayInput interface {
Input
ToURNMapArrayOutput() URNMapArrayOutput
ToURNMapArrayOutputWithContext(ctx context.Context) URNMapArrayOutput
}
URNMapArrayInput is an input type that accepts URNMapArray and URNMapArrayOutput values.
type URNMapArrayOutput ¶
type URNMapArrayOutput struct{ *OutputState }
URNMapArrayOutput is an Output that returns []map[string]URN values.
func ToURNMapArrayOutput ¶
func ToURNMapArrayOutput(in []URNMapOutput) URNMapArrayOutput
func (URNMapArrayOutput) ElementType ¶
func (URNMapArrayOutput) ElementType() reflect.Type
ElementType returns the element type of this Output ([]map[string]URN).
func (URNMapArrayOutput) Index ¶
func (o URNMapArrayOutput) Index(i IntInput) URNMapOutput
Index looks up the i'th element of the array if it is in bounds or returns the zero value of the appropriate type if the index is out of bounds.
func (URNMapArrayOutput) MarshalJSON ¶
func (URNMapArrayOutput) MarshalJSON() ([]byte, error)
func (URNMapArrayOutput) ToOutput ¶
func (o URNMapArrayOutput) ToOutput(ctx context.Context) codeinfrax.Output[[]map[string]URN]
func (URNMapArrayOutput) ToURNMapArrayOutput ¶
func (o URNMapArrayOutput) ToURNMapArrayOutput() URNMapArrayOutput
func (URNMapArrayOutput) ToURNMapArrayOutputWithContext ¶
func (o URNMapArrayOutput) ToURNMapArrayOutputWithContext(ctx context.Context) URNMapArrayOutput
type URNMapInput ¶
type URNMapInput interface {
Input
ToURNMapOutput() URNMapOutput
ToURNMapOutputWithContext(ctx context.Context) URNMapOutput
}
URNMapInput is an input type that accepts URNMap and URNMapOutput values.
type URNMapMap ¶
type URNMapMap map[string]URNMapInput
URNMapMap is an input type for map[string]URNMapInput values.
func (URNMapMap) ElementType ¶
ElementType returns the element type of this Input (map[string]map[string]URN).
func (URNMapMap) ToURNMapMapOutput ¶
func (in URNMapMap) ToURNMapMapOutput() URNMapMapOutput
func (URNMapMap) ToURNMapMapOutputWithContext ¶
func (in URNMapMap) ToURNMapMapOutputWithContext(ctx context.Context) URNMapMapOutput
type URNMapMapInput ¶
type URNMapMapInput interface {
Input
ToURNMapMapOutput() URNMapMapOutput
ToURNMapMapOutputWithContext(ctx context.Context) URNMapMapOutput
}
URNMapMapInput is an input type that accepts URNMapMap and URNMapMapOutput values.
type URNMapMapOutput ¶
type URNMapMapOutput struct{ *OutputState }
URNMapMapOutput is an Output that returns map[string]map[string]URN values.
func ToURNMapMapOutput ¶
func ToURNMapMapOutput(in map[string]URNMapOutput) URNMapMapOutput
func (URNMapMapOutput) ElementType ¶
func (URNMapMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]map[string]URN).
func (URNMapMapOutput) MapIndex ¶
func (o URNMapMapOutput) MapIndex(k StringInput) URNMapOutput
MapIndex looks up the key k in the map.
func (URNMapMapOutput) MarshalJSON ¶
func (URNMapMapOutput) MarshalJSON() ([]byte, error)
func (URNMapMapOutput) ToOutput ¶
func (o URNMapMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]map[string]URN]
func (URNMapMapOutput) ToURNMapMapOutput ¶
func (o URNMapMapOutput) ToURNMapMapOutput() URNMapMapOutput
func (URNMapMapOutput) ToURNMapMapOutputWithContext ¶
func (o URNMapMapOutput) ToURNMapMapOutputWithContext(ctx context.Context) URNMapMapOutput
type URNMapOutput ¶
type URNMapOutput struct{ *OutputState }
URNMapOutput is an Output that returns map[string]URN values.
func ToURNMapOutput ¶
func ToURNMapOutput(in map[string]URNOutput) URNMapOutput
func (URNMapOutput) ElementType ¶
func (URNMapOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (map[string]URN).
func (URNMapOutput) MapIndex ¶
func (o URNMapOutput) MapIndex(k StringInput) URNOutput
MapIndex looks up the key k in the map.
func (URNMapOutput) MarshalJSON ¶
func (URNMapOutput) MarshalJSON() ([]byte, error)
func (URNMapOutput) ToOutput ¶
func (o URNMapOutput) ToOutput(ctx context.Context) codeinfrax.Output[map[string]URN]
func (URNMapOutput) ToURNMapOutput ¶
func (o URNMapOutput) ToURNMapOutput() URNMapOutput
func (URNMapOutput) ToURNMapOutputWithContext ¶
func (o URNMapOutput) ToURNMapOutputWithContext(ctx context.Context) URNMapOutput
type URNOutput ¶
type URNOutput struct{ *OutputState }
URNOutput is an Output that returns URN values.
func CreateURN ¶
func CreateURN(name, t, parent, project, stack StringInput) URNOutput
CreateURN computes a URN from the combination of a resource name, resource type, and optional parent,
func (URNOutput) ElementType ¶
ElementType returns the element type of this Output (URN).
func (URNOutput) MarshalJSON ¶
func (URNOutput) ToStringOutput ¶
func (o URNOutput) ToStringOutput() StringOutput
func (URNOutput) ToStringOutputWithContext ¶
func (o URNOutput) ToStringOutputWithContext(ctx context.Context) StringOutput
func (URNOutput) ToStringPtrOutput ¶
func (o URNOutput) ToStringPtrOutput() StringPtrOutput
func (URNOutput) ToStringPtrOutputWithContext ¶
func (o URNOutput) ToStringPtrOutputWithContext(ctx context.Context) StringPtrOutput
func (URNOutput) ToURNOutput ¶
func (URNOutput) ToURNOutputWithContext ¶
func (URNOutput) ToURNPtrOutput ¶
func (o URNOutput) ToURNPtrOutput() URNPtrOutput
func (URNOutput) ToURNPtrOutputWithContext ¶
func (o URNOutput) ToURNPtrOutputWithContext(ctx context.Context) URNPtrOutput
type URNPtrInput ¶
type URNPtrInput interface {
Input
ToURNPtrOutput() URNPtrOutput
ToURNPtrOutputWithContext(ctx context.Context) URNPtrOutput
}
URNPtrInput is an input type that accepts URNPtr and URNPtrOutput values.
func URNPtrFromPtr ¶
func URNPtrFromPtr(v *URN) URNPtrInput
type URNPtrOutput ¶
type URNPtrOutput struct{ *OutputState }
URNPtrOutput is an Output that returns *URN values.
func (URNPtrOutput) Elem ¶
func (o URNPtrOutput) Elem() URNOutput
Elem dereferences the pointer value or returns the zero value of the approporiate type if the pointer is nil.
func (URNPtrOutput) ElementType ¶
func (URNPtrOutput) ElementType() reflect.Type
ElementType returns the element type of this Output (*URN).
func (URNPtrOutput) MarshalJSON ¶
func (URNPtrOutput) MarshalJSON() ([]byte, error)
func (URNPtrOutput) ToOutput ¶
func (o URNPtrOutput) ToOutput(ctx context.Context) codeinfrax.Output[*URN]
func (URNPtrOutput) ToURNPtrOutput ¶
func (o URNPtrOutput) ToURNPtrOutput() URNPtrOutput
func (URNPtrOutput) ToURNPtrOutputWithContext ¶
func (o URNPtrOutput) ToURNPtrOutputWithContext(ctx context.Context) URNPtrOutput