MCPcopy
hub / github.com/opentofu/opentofu / remoteClient

Struct remoteClient

internal/backend/remote-state/gcs/client.go:25–32  ·  view source on GitHub ↗

remoteClient is used by "state/remote".State to read and write blobs representing state. Implements "state/remote".ClientLocker

Source from the content-addressed store, hash-verified

23// blobs representing state.
24// Implements "state/remote".ClientLocker
25type remoteClient struct {
26 storageClient *storage.Client
27 bucketName string
28 stateFilePath string
29 lockFilePath string
30 encryptionKey []byte
31 kmsKeyName string
32}
33
34func (c *remoteClient) Get(ctx context.Context) (payload *remote.Payload, err error) {
35 stateFileReader, err := c.stateFile().NewReader(ctx)

Callers 1

TestRemoteLocksFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestRemoteLocksFunction · 0.56