MCPcopy Create free account
hub / github.com/crc-org/crc-cloud / CopyFileWithDependencies

Function CopyFileWithDependencies

pkg/util/command/command.go:21–37  ·  view source on GitHub ↗
(ctx *pulumi.Context, resourceName string,
	host pulumi.StringInput, username, privateKey pulumi.StringPtrInput, port pulumi.Float64PtrInput,
	localPath, remotePath string,
	dependecies []pulumi.Resource)

Source from the content-addressed store, hash-verified

19}
20
21func 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
39func RemoteExec(ctx *pulumi.Context, resourceName string,
40 host pulumi.StringInput, username, privateKey pulumi.StringPtrInput, port pulumi.Float64PtrInput,

Callers 1

CopyFileFunction · 0.85

Calls 1

DefaultTimeoutsFunction · 0.85

Tested by

no test coverage detected