(ctx *pulumi.Context, resourceName string, host pulumi.StringInput, username, privateKey pulumi.StringPtrInput, port pulumi.Float64PtrInput, localPath, remotePath string, dependecies []pulumi.Resource)
| 19 | } |
| 20 | |
| 21 | func CopyFileWithDependencies(ctx *pulumi.Context, resourceName string, |
| 22 | host pulumi.StringInput, username, privateKey pulumi.StringPtrInput, port pulumi.Float64PtrInput, |
| 23 | localPath, remotePath string, |
| 24 | dependecies []pulumi.Resource) (*remote.CopyFile, error) { |
| 25 | return remote.NewCopyFile(ctx, resourceName, &remote.CopyFileArgs{ |
| 26 | Connection: remote.ConnectionArgs{ |
| 27 | Host: host, |
| 28 | PrivateKey: privateKey, |
| 29 | User: username, |
| 30 | Port: port, |
| 31 | }, |
| 32 | LocalPath: pulumi.String(localPath), |
| 33 | RemotePath: pulumi.String(remotePath), |
| 34 | }, |
| 35 | DefaultTimeouts(), |
| 36 | pulumi.DependsOn(dependecies)) |
| 37 | } |
| 38 | |
| 39 | func RemoteExec(ctx *pulumi.Context, resourceName string, |
| 40 | host pulumi.StringInput, username, privateKey pulumi.StringPtrInput, port pulumi.Float64PtrInput, |
no test coverage detected