Documentation ¶
Overview ¶
Package libp2p exports types, functions, subpackages for provisioning libp2p resources.
Index ¶
- Constants
- func PkgVersion() (semver.Version, error)
- type Key
- type KeyArgs
- type KeyArray
- type KeyArrayInput
- type KeyArrayOutput
- type KeyInput
- type KeyMap
- type KeyMapInput
- type KeyMapOutput
- type KeyOutput
- type KeyType
- func (KeyType) ElementType() reflect.Type
- func (e KeyType) ToKeyTypeOutput() KeyTypeOutput
- func (e KeyType) ToKeyTypeOutputWithContext(ctx context.Context) KeyTypeOutput
- func (e KeyType) ToKeyTypePtrOutput() KeyTypePtrOutput
- func (e KeyType) ToKeyTypePtrOutputWithContext(ctx context.Context) KeyTypePtrOutput
- func (e KeyType) ToStringOutput() pulumi.StringOutput
- func (e KeyType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput
- func (e KeyType) ToStringPtrOutput() pulumi.StringPtrOutput
- func (e KeyType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput
- type KeyTypeInput
- type KeyTypeOutput
- func (KeyTypeOutput) ElementType() reflect.Type
- func (o KeyTypeOutput) ToKeyTypeOutput() KeyTypeOutput
- func (o KeyTypeOutput) ToKeyTypeOutputWithContext(ctx context.Context) KeyTypeOutput
- func (o KeyTypeOutput) ToKeyTypePtrOutput() KeyTypePtrOutput
- func (o KeyTypeOutput) ToKeyTypePtrOutputWithContext(ctx context.Context) KeyTypePtrOutput
- func (o KeyTypeOutput) ToStringOutput() pulumi.StringOutput
- func (o KeyTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput
- func (o KeyTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput
- func (o KeyTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput
- type KeyTypePtrInput
- type KeyTypePtrOutput
- func (o KeyTypePtrOutput) Elem() KeyTypeOutput
- func (KeyTypePtrOutput) ElementType() reflect.Type
- func (o KeyTypePtrOutput) ToKeyTypePtrOutput() KeyTypePtrOutput
- func (o KeyTypePtrOutput) ToKeyTypePtrOutputWithContext(ctx context.Context) KeyTypePtrOutput
- func (o KeyTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput
- func (o KeyTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput
- type Provider
- type ProviderArgs
- type ProviderInput
- type ProviderOutput
Constants ¶
const ( KeyTypeRSA = KeyType("RSA") KeyTypeED25519 = KeyType("ED25519") KeyTypeSECP256K1 = KeyType("SECP256K1") KeyTypeECDSA = KeyType("ECDSA") )
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶
PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.
Types ¶
type Key ¶
type Key struct { pulumi.ResourceState // Peer ID PeerId pulumi.StringOutput `pulumi:"peerId"` // Marshalled private key Private pulumi.StringOutput `pulumi:"private"` // Marshalled public key Public pulumi.StringOutput `pulumi:"public"` }
func NewKey ¶
func NewKey(ctx *pulumi.Context, name string, args *KeyArgs, opts ...pulumi.ResourceOption) (*Key, error)
NewKey registers a new resource with the given unique name, arguments, and options.
func (*Key) ElementType ¶
func (*Key) ToKeyOutput ¶
type KeyArgs ¶
type KeyArgs struct { // Siye of the key (Only for RSA key) Bits pulumi.IntPtrInput // Type of the key to generate one of RSA, ED25519, SECP256K1, ECDSA Type KeyTypeInput }
The set of arguments for constructing a Key resource.
func (KeyArgs) ElementType ¶
type KeyArray ¶
type KeyArray []KeyInput
func (KeyArray) ElementType ¶
func (KeyArray) ToKeyArrayOutput ¶
func (i KeyArray) ToKeyArrayOutput() KeyArrayOutput
func (KeyArray) ToKeyArrayOutputWithContext ¶
func (i KeyArray) ToKeyArrayOutputWithContext(ctx context.Context) KeyArrayOutput
type KeyArrayInput ¶
type KeyArrayInput interface { pulumi.Input ToKeyArrayOutput() KeyArrayOutput ToKeyArrayOutputWithContext(context.Context) KeyArrayOutput }
KeyArrayInput is an input type that accepts KeyArray and KeyArrayOutput values. You can construct a concrete instance of `KeyArrayInput` via:
KeyArray{ KeyArgs{...} }
type KeyArrayOutput ¶
type KeyArrayOutput struct{ *pulumi.OutputState }
func (KeyArrayOutput) ElementType ¶
func (KeyArrayOutput) ElementType() reflect.Type
func (KeyArrayOutput) ToKeyArrayOutput ¶
func (o KeyArrayOutput) ToKeyArrayOutput() KeyArrayOutput
func (KeyArrayOutput) ToKeyArrayOutputWithContext ¶
func (o KeyArrayOutput) ToKeyArrayOutputWithContext(ctx context.Context) KeyArrayOutput
type KeyMap ¶
func (KeyMap) ElementType ¶
func (KeyMap) ToKeyMapOutput ¶
func (i KeyMap) ToKeyMapOutput() KeyMapOutput
func (KeyMap) ToKeyMapOutputWithContext ¶
func (i KeyMap) ToKeyMapOutputWithContext(ctx context.Context) KeyMapOutput
type KeyMapInput ¶
type KeyMapInput interface { pulumi.Input ToKeyMapOutput() KeyMapOutput ToKeyMapOutputWithContext(context.Context) KeyMapOutput }
KeyMapInput is an input type that accepts KeyMap and KeyMapOutput values. You can construct a concrete instance of `KeyMapInput` via:
KeyMap{ "key": KeyArgs{...} }
type KeyMapOutput ¶
type KeyMapOutput struct{ *pulumi.OutputState }
func (KeyMapOutput) ElementType ¶
func (KeyMapOutput) ElementType() reflect.Type
func (KeyMapOutput) MapIndex ¶
func (o KeyMapOutput) MapIndex(k pulumi.StringInput) KeyOutput
func (KeyMapOutput) ToKeyMapOutput ¶
func (o KeyMapOutput) ToKeyMapOutput() KeyMapOutput
func (KeyMapOutput) ToKeyMapOutputWithContext ¶
func (o KeyMapOutput) ToKeyMapOutputWithContext(ctx context.Context) KeyMapOutput
type KeyOutput ¶
type KeyOutput struct{ *pulumi.OutputState }
func (KeyOutput) ElementType ¶
func (KeyOutput) ToKeyOutput ¶
type KeyType ¶ added in v1.0.1
type KeyType string
func (KeyType) ElementType ¶ added in v1.0.1
func (KeyType) ToKeyTypeOutput ¶ added in v1.0.1
func (e KeyType) ToKeyTypeOutput() KeyTypeOutput
func (KeyType) ToKeyTypeOutputWithContext ¶ added in v1.0.1
func (e KeyType) ToKeyTypeOutputWithContext(ctx context.Context) KeyTypeOutput
func (KeyType) ToKeyTypePtrOutput ¶ added in v1.0.1
func (e KeyType) ToKeyTypePtrOutput() KeyTypePtrOutput
func (KeyType) ToKeyTypePtrOutputWithContext ¶ added in v1.0.1
func (e KeyType) ToKeyTypePtrOutputWithContext(ctx context.Context) KeyTypePtrOutput
func (KeyType) ToStringOutput ¶ added in v1.0.1
func (e KeyType) ToStringOutput() pulumi.StringOutput
func (KeyType) ToStringOutputWithContext ¶ added in v1.0.1
func (e KeyType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput
func (KeyType) ToStringPtrOutput ¶ added in v1.0.1
func (e KeyType) ToStringPtrOutput() pulumi.StringPtrOutput
func (KeyType) ToStringPtrOutputWithContext ¶ added in v1.0.1
func (e KeyType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput
type KeyTypeInput ¶ added in v1.0.1
type KeyTypeInput interface { pulumi.Input ToKeyTypeOutput() KeyTypeOutput ToKeyTypeOutputWithContext(context.Context) KeyTypeOutput }
KeyTypeInput is an input type that accepts KeyTypeArgs and KeyTypeOutput values. You can construct a concrete instance of `KeyTypeInput` via:
KeyTypeArgs{...}
type KeyTypeOutput ¶ added in v1.0.1
type KeyTypeOutput struct{ *pulumi.OutputState }
func (KeyTypeOutput) ElementType ¶ added in v1.0.1
func (KeyTypeOutput) ElementType() reflect.Type
func (KeyTypeOutput) ToKeyTypeOutput ¶ added in v1.0.1
func (o KeyTypeOutput) ToKeyTypeOutput() KeyTypeOutput
func (KeyTypeOutput) ToKeyTypeOutputWithContext ¶ added in v1.0.1
func (o KeyTypeOutput) ToKeyTypeOutputWithContext(ctx context.Context) KeyTypeOutput
func (KeyTypeOutput) ToKeyTypePtrOutput ¶ added in v1.0.1
func (o KeyTypeOutput) ToKeyTypePtrOutput() KeyTypePtrOutput
func (KeyTypeOutput) ToKeyTypePtrOutputWithContext ¶ added in v1.0.1
func (o KeyTypeOutput) ToKeyTypePtrOutputWithContext(ctx context.Context) KeyTypePtrOutput
func (KeyTypeOutput) ToStringOutput ¶ added in v1.0.1
func (o KeyTypeOutput) ToStringOutput() pulumi.StringOutput
func (KeyTypeOutput) ToStringOutputWithContext ¶ added in v1.0.1
func (o KeyTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput
func (KeyTypeOutput) ToStringPtrOutput ¶ added in v1.0.1
func (o KeyTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput
func (KeyTypeOutput) ToStringPtrOutputWithContext ¶ added in v1.0.1
func (o KeyTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput
type KeyTypePtrInput ¶ added in v1.0.1
type KeyTypePtrInput interface { pulumi.Input ToKeyTypePtrOutput() KeyTypePtrOutput ToKeyTypePtrOutputWithContext(context.Context) KeyTypePtrOutput }
func KeyTypePtr ¶ added in v1.0.1
func KeyTypePtr(v string) KeyTypePtrInput
type KeyTypePtrOutput ¶ added in v1.0.1
type KeyTypePtrOutput struct{ *pulumi.OutputState }
func (KeyTypePtrOutput) Elem ¶ added in v1.0.1
func (o KeyTypePtrOutput) Elem() KeyTypeOutput
func (KeyTypePtrOutput) ElementType ¶ added in v1.0.1
func (KeyTypePtrOutput) ElementType() reflect.Type
func (KeyTypePtrOutput) ToKeyTypePtrOutput ¶ added in v1.0.1
func (o KeyTypePtrOutput) ToKeyTypePtrOutput() KeyTypePtrOutput
func (KeyTypePtrOutput) ToKeyTypePtrOutputWithContext ¶ added in v1.0.1
func (o KeyTypePtrOutput) ToKeyTypePtrOutputWithContext(ctx context.Context) KeyTypePtrOutput
func (KeyTypePtrOutput) ToStringPtrOutput ¶ added in v1.0.1
func (o KeyTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput
func (KeyTypePtrOutput) ToStringPtrOutputWithContext ¶ added in v1.0.1
func (o KeyTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput
type Provider ¶
type Provider struct {
pulumi.ProviderResourceState
}
func NewProvider ¶
func NewProvider(ctx *pulumi.Context, name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)
NewProvider registers a new resource with the given unique name, arguments, and options.
func (*Provider) ElementType ¶
func (*Provider) ToProviderOutput ¶
func (i *Provider) ToProviderOutput() ProviderOutput
func (*Provider) ToProviderOutputWithContext ¶
func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
type ProviderArgs ¶
type ProviderArgs struct { }
The set of arguments for constructing a Provider resource.
func (ProviderArgs) ElementType ¶
func (ProviderArgs) ElementType() reflect.Type
type ProviderInput ¶
type ProviderInput interface { pulumi.Input ToProviderOutput() ProviderOutput ToProviderOutputWithContext(ctx context.Context) ProviderOutput }
type ProviderOutput ¶
type ProviderOutput struct{ *pulumi.OutputState }
func (ProviderOutput) ElementType ¶
func (ProviderOutput) ElementType() reflect.Type
func (ProviderOutput) ToProviderOutput ¶
func (o ProviderOutput) ToProviderOutput() ProviderOutput
func (ProviderOutput) ToProviderOutputWithContext ¶
func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput