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