(ctx context.Context, b schema.AnyBlob)
| 1426 | } |
| 1427 | |
| 1428 | func (c *Client) UploadAndSignBlob(ctx context.Context, b schema.AnyBlob) (*PutResult, error) { |
| 1429 | signed, err := c.signBlob(ctx, b.Blob(), time.Time{}) |
| 1430 | if err != nil { |
| 1431 | return nil, err |
| 1432 | } |
| 1433 | c.checkMatchingKeys() |
| 1434 | if err := c.UploadPublicKey(ctx); err != nil { |
| 1435 | return nil, err |
| 1436 | } |
| 1437 | return c.uploadString(ctx, signed, false) |
| 1438 | } |
| 1439 | |
| 1440 | func (c *Client) UploadBlob(ctx context.Context, b schema.AnyBlob) (*PutResult, error) { |
| 1441 | // TODO(bradfitz): ask the blob for its own blobref, rather |
no test coverage detected