SYMBOL INDEX (3929 symbols across 294 files) FILE: aws/aws.go constant requestChecksumCalculationParamKey (line 32) | requestChecksumCalculationParamKey = "request_checksum_calculation" constant responseChecksumValidationParamKey (line 33) | responseChecksumValidationParamKey = "response_checksum_validation" function parseRequestChecksumCalculation (line 38) | func parseRequestChecksumCalculation(value string) (aws.RequestChecksumC... function parseResponseChecksumValidation (line 51) | func parseResponseChecksumValidation(value string) (aws.ResponseChecksum... function NewDefaultV2Config (line 63) | func NewDefaultV2Config(ctx context.Context) (aws.Config, error) { function V2ConfigFromURLParams (line 90) | func V2ConfigFromURLParams(ctx context.Context, q url.Values) (aws.Confi... FILE: aws/aws_test.go function TestV2ConfigFromURLParams (line 29) | func TestV2ConfigFromURLParams(t *testing.T) { FILE: aws/awscloud/example_test.go function Example (line 33) | func Example() { function setup (line 59) | func setup(ctx context.Context) (*server.Server, func(), error) { function greet (line 74) | func greet(w http.ResponseWriter, req *http.Request) { FILE: aws/rds/rds.go type CertPoolProvider (line 38) | type CertPoolProvider interface constant caBundleURL (line 43) | caBundleURL = "https://truststore.pki.rds.amazonaws.com/global/global-bu... type CertFetcher (line 47) | type CertFetcher struct method RDSCertPool (line 55) | func (cf *CertFetcher) RDSCertPool(ctx context.Context) (*x509.CertPoo... method Fetch (line 68) | func (cf *CertFetcher) Fetch(ctx context.Context) ([]*x509.Certificate... FILE: azure/azuredb/azuredb.go constant caBundleURL (line 29) | caBundleURL = "https://www.digicert.com/CACerts/BaltimoreCyberTrustRoot.... type CertPoolProvider (line 32) | type CertPoolProvider interface type CertFetcher (line 38) | type CertFetcher struct method AzureCertPool (line 46) | func (cf *CertFetcher) AzureCertPool(ctx context.Context) (*x509.CertP... method Fetch (line 59) | func (cf *CertFetcher) Fetch(ctx context.Context) ([]*x509.Certificate... FILE: blob/azureblob/azureblob.go constant defaultPageSize (line 124) | defaultPageSize = 1000 constant defaultUploadBuffers (line 125) | defaultUploadBuffers = 5 constant defaultUploadBlockSize (line 126) | defaultUploadBlockSize = 8 * 1024 * 1024 function ptrVal (line 130) | func ptrVal[T any](p *T) (v T) { function init (line 137) | func init() { type Options (line 149) | type Options struct type ServiceURL (line 152) | type ServiceURL type ContainerName (line 155) | type ContainerName type ServiceURLOptions (line 158) | type ServiceURLOptions struct method withOverrides (line 230) | func (o *ServiceURLOptions) withOverrides(urlValues url.Values) (*Serv... function NewDefaultServiceURLOptions (line 195) | func NewDefaultServiceURLOptions() *ServiceURLOptions { function NewServiceURL (line 275) | func NewServiceURL(opts *ServiceURLOptions) (ServiceURL, error) { type lazyOpener (line 308) | type lazyOpener struct method OpenBucketURL (line 313) | func (o *lazyOpener) OpenBucketURL(ctx context.Context, u *url.URL) (*... type credTypeEnumT (line 325) | type credTypeEnumT constant credTypeDefault (line 328) | credTypeDefault credTypeEnumT = iota constant credTypeSharedKey (line 329) | credTypeSharedKey constant credTypeSASViaNone (line 330) | credTypeSASViaNone constant credTypeConnectionString (line 331) | credTypeConnectionString type credInfoT (line 334) | type credInfoT struct method NewClient (line 370) | func (i *credInfoT) NewClient(svcURL ServiceURL, containerName Contain... function newCredInfoFromEnv (line 345) | func newCredInfoFromEnv() *credInfoT { constant Scheme (line 405) | Scheme = "azblob" type URLOpener (line 416) | type URLOpener struct method OpenBucketURL (line 429) | func (o *URLOpener) OpenBucketURL(ctx context.Context, u *url.URL) (*b... type bucket (line 448) | type bucket struct method Close (line 486) | func (b *bucket) Close() error { method Copy (line 491) | func (b *bucket) Copy(ctx context.Context, dstKey, srcKey string, opts... method Delete (line 537) | func (b *bucket) Delete(ctx context.Context, key string) error { method NewRangeReader (line 573) | func (b *bucket) NewRangeReader(ctx context.Context, key string, offse... method As (line 638) | func (b *bucket) As(i any) bool { method ErrorAs (line 648) | func (b *bucket) ErrorAs(err error, i any) bool { method ErrorCode (line 659) | func (b *bucket) ErrorCode(err error) gcerrors.ErrorCode { method Attributes (line 689) | func (b *bucket) Attributes(ctx context.Context, key string) (*driver.... method ListPaged (line 733) | func (b *bucket) ListPaged(ctx context.Context, opts *driver.ListOptio... method SignedURL (line 815) | func (b *bucket) SignedURL(ctx context.Context, key string, opts *driv... method NewTypedWriter (line 900) | func (b *bucket) NewTypedWriter(ctx context.Context, key, contentType ... function NewDefaultClient (line 456) | func NewDefaultClient(svcURL ServiceURL, containerName ContainerName) (*... function OpenBucket (line 464) | func OpenBucket(ctx context.Context, client *container.Client, opts *Opt... function openBucket (line 472) | func openBucket(ctx context.Context, client *container.Client, opts *Opt... type reader (line 545) | type reader struct method Read (line 551) | func (r *reader) Read(p []byte) (int, error) { method Close (line 555) | func (r *reader) Close() error { method Attributes (line 559) | func (r *reader) Attributes() *driver.ReaderAttributes { method As (line 563) | func (r *reader) As(i any) bool { function getSize (line 617) | func getSize(contentLength *int64, contentRange string) int64 { type writer (line 852) | type writer struct method Write (line 975) | func (w *writer) Write(p []byte) (int, error) { method Upload (line 992) | func (w *writer) Upload(r io.Reader) error { method open (line 1001) | func (w *writer) open(r io.Reader, closePipeOnError bool) { method Close (line 1021) | func (w *writer) Close() error { function escapeKey (line 872) | func escapeKey(key string, isPrefix bool) string { function unescapeKey (line 895) | func unescapeKey(key string) string { FILE: blob/azureblob/azureblob_test.go constant bucketName (line 59) | bucketName = "go-cloud-bucket" constant accountName (line 60) | accountName = "gocloudblobtests" type harness (line 63) | type harness struct method HTTPClient (line 117) | func (h *harness) HTTPClient() *http.Client { method MakeDriver (line 121) | func (h *harness) MakeDriver(ctx context.Context) (driver.Bucket, erro... method MakeDriverForNonexistentBucket (line 129) | func (h *harness) MakeDriverForNonexistentBucket(ctx context.Context) ... method Close (line 137) | func (h *harness) Close() { function newHarness (line 69) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... type requestInterceptor (line 104) | type requestInterceptor struct method RoundTrip (line 108) | func (ri *requestInterceptor) RoundTrip(req *http.Request) (*http.Resp... function TestConformance (line 141) | func TestConformance(t *testing.T) { function BenchmarkAzureblob (line 147) | func BenchmarkAzureblob(b *testing.B) { type verifyContentLanguage (line 170) | type verifyContentLanguage struct method Name (line 172) | func (verifyContentLanguage) Name() string { method BucketCheck (line 176) | func (verifyContentLanguage) BucketCheck(b *blob.Bucket) error { method ErrorCheck (line 184) | func (verifyContentLanguage) ErrorCheck(b *blob.Bucket, err error) err... method BeforeRead (line 188) | func (verifyContentLanguage) BeforeRead(as func(any) bool) error { method BeforeWrite (line 196) | func (verifyContentLanguage) BeforeWrite(as func(any) bool) error { method BeforeCopy (line 205) | func (verifyContentLanguage) BeforeCopy(as func(any) bool) error { method BeforeList (line 213) | func (verifyContentLanguage) BeforeList(as func(any) bool) error { method BeforeSign (line 221) | func (verifyContentLanguage) BeforeSign(as func(any) bool) error { method AttributesCheck (line 229) | func (verifyContentLanguage) AttributesCheck(attrs *blob.Attributes) e... method ReaderCheck (line 240) | func (verifyContentLanguage) ReaderCheck(r *blob.Reader) error { method ListObjectCheck (line 251) | func (verifyContentLanguage) ListObjectCheck(o *blob.ListObject) error { function TestOpenBucket (line 269) | func TestOpenBucket(t *testing.T) { function TestOpenerFromEnv (line 313) | func TestOpenerFromEnv(t *testing.T) { function TestNewServiceURL (line 463) | func TestNewServiceURL(t *testing.T) { function TestOpenBucketFromURL (line 635) | func TestOpenBucketFromURL(t *testing.T) { FILE: blob/azureblob/example_test.go function ExampleOpenBucket (line 25) | func ExampleOpenBucket() { function Example_openBucketFromURL (line 71) | func Example_openBucketFromURL() { FILE: blob/blob.go type Reader (line 98) | type Reader struct method Read (line 116) | func (r *Reader) Read(p []byte) (int, error) { method Seek (line 158) | func (r *Reader) Seek(offset int64, whence int) (int64, error) { method Close (line 197) | func (r *Reader) Close() error { method ContentType (line 212) | func (r *Reader) ContentType() string { method ModTime (line 217) | func (r *Reader) ModTime() time.Time { method Size (line 222) | func (r *Reader) Size() int64 { method As (line 230) | func (r *Reader) As(i any) bool { method WriteTo (line 239) | func (r *Reader) WriteTo(w io.Writer) (int64, error) { method downloadAndClose (line 258) | func (r *Reader) downloadAndClose(w io.Writer) (err error) { function readFromWriteTo (line 280) | func readFromWriteTo(r io.Reader, w io.Writer) (int64, int64, error) { type Attributes (line 306) | type Attributes struct method As (line 350) | func (a *Attributes) As(i any) bool { type Writer (line 361) | type Writer struct method Write (line 397) | func (w *Writer) Write(p []byte) (int, error) { method Close (line 435) | func (w *Writer) Close() (err error) { method open (line 474) | func (w *Writer) open(p []byte) (int, error) { method write (line 488) | func (w *Writer) write(p []byte) (int, error) { method ReadFrom (line 498) | func (w *Writer) ReadFrom(r io.Reader) (int64, error) { method uploadAndClose (line 517) | func (w *Writer) uploadAndClose(r io.Reader) (err error) { constant sniffLen (line 390) | sniffLen = 512 type ListOptions (line 541) | type ListOptions struct type ListIterator (line 568) | type ListIterator struct method Next (line 577) | func (i *ListIterator) Next(ctx context.Context) (*ListObject, error) { method All (line 657) | func (i *ListIterator) All(ctx context.Context) (iter.Seq2[*ListObject... type errorState (line 615) | type errorState struct method Done (line 621) | func (es *errorState) Done() { method Set (line 627) | func (es *errorState) Set(err error) { method Err (line 635) | func (es *errorState) Err() error { method Func (line 641) | func (es *errorState) Func() func() error { type ListObject (line 681) | type ListObject struct method As (line 703) | func (o *ListObject) As(i any) bool { type Bucket (line 713) | type Bucket struct method As (line 768) | func (b *Bucket) As(i any) bool { method ErrorAs (line 779) | func (b *Bucket) ErrorAs(err error, i any) bool { method ReadAll (line 787) | func (b *Bucket) ReadAll(ctx context.Context, key string) (_ []byte, e... method Download (line 802) | func (b *Bucket) Download(ctx context.Context, key string, w io.Writer... method List (line 823) | func (b *Bucket) List(opts *ListOptions) *ListIterator { method ListPage (line 863) | func (b *Bucket) ListPage(ctx context.Context, pageToken []byte, pageS... method IsAccessible (line 932) | func (b *Bucket) IsAccessible(ctx context.Context) (bool, error) { method Exists (line 947) | func (b *Bucket) Exists(ctx context.Context, key string) (bool, error) { method Attributes (line 962) | func (b *Bucket) Attributes(ctx context.Context, key string) (_ *Attri... method NewReader (line 1006) | func (b *Bucket) NewReader(ctx context.Context, key string, opts *Read... method NewRangeReader (line 1026) | func (b *Bucket) NewRangeReader(ctx context.Context, key string, offse... method newRangeReader (line 1030) | func (b *Bucket) newRangeReader(ctx context.Context, key string, offse... method WriteAll (line 1093) | func (b *Bucket) WriteAll(ctx context.Context, key string, p []byte, o... method Upload (line 1116) | func (b *Bucket) Upload(ctx context.Context, key string, r io.Reader, ... method NewWriter (line 1142) | func (b *Bucket) NewWriter(ctx context.Context, key string, opts *Writ... method Copy (line 1250) | func (b *Bucket) Copy(ctx context.Context, dstKey, srcKey string, opts... method Delete (line 1277) | func (b *Bucket) Delete(ctx context.Context, key string) (err error) { method SignedURL (line 1300) | func (b *Bucket) SignedURL(ctx context.Context, key string, opts *Sign... method Close (line 1343) | func (b *Bucket) Close() error { constant pkgName (line 732) | pkgName = "gocloud.dev/blob" function newBucket (line 752) | func newBucket(b driver.Bucket) *Bucket { constant DefaultSignedURLExpiry (line 1355) | DefaultSignedURLExpiry = 1 * time.Hour type SignedURLOptions (line 1358) | type SignedURLOptions struct type ReaderOptions (line 1396) | type ReaderOptions struct type WriterOptions (line 1410) | type WriterOptions struct type CopyOptions (line 1494) | type CopyOptions struct type BucketURLOpener (line 1508) | type BucketURLOpener interface type URLMux (line 1518) | type URLMux struct method BucketSchemes (line 1523) | func (mux *URLMux) BucketSchemes() []string { return mux.schemes.Schem... method ValidBucketScheme (line 1526) | func (mux *URLMux) ValidBucketScheme(scheme string) bool { return mux.... method RegisterBucket (line 1530) | func (mux *URLMux) RegisterBucket(scheme string, opener BucketURLOpene... method OpenBucket (line 1536) | func (mux *URLMux) OpenBucket(ctx context.Context, urlstr string) (*Bu... method OpenBucketURL (line 1546) | func (mux *URLMux) OpenBucketURL(ctx context.Context, u *url.URL) (*Bu... function applyPrefixParam (line 1554) | func applyPrefixParam(ctx context.Context, opener BucketURLOpener, u *ur... function DefaultURLMux (line 1584) | func DefaultURLMux() *URLMux { function OpenBucket (line 1601) | func OpenBucket(ctx context.Context, urlstr string) (*Bucket, error) { function wrapError (line 1605) | func wrapError(b driver.Bucket, err error, key string) error { function PrefixedBucket (line 1630) | func PrefixedBucket(bucket *Bucket, prefix string) *Bucket { function SingleKeyBucket (line 1642) | func SingleKeyBucket(bucket *Bucket, singleKey string) *Bucket { FILE: blob/blob_fs.go type iofsFileInfo (line 37) | type iofsFileInfo struct method Name (line 42) | func (f *iofsFileInfo) Name() string { return f.name } method Size (line 43) | func (f *iofsFileInfo) Size() int64 { return f.lo.Size } method Mode (line 44) | func (f *iofsFileInfo) Mode() fs.FileMode { return fs.ModeIrr... method ModTime (line 45) | func (f *iofsFileInfo) ModTime() time.Time { return f.lo.ModTi... method IsDir (line 46) | func (f *iofsFileInfo) IsDir() bool { return false } method Sys (line 47) | func (f *iofsFileInfo) Sys() any { return f.lo } method Info (line 48) | func (f *iofsFileInfo) Info() (fs.FileInfo, error) { return f, nil } method Type (line 49) | func (f *iofsFileInfo) Type() fs.FileMode { return fs.ModeIrr... type iofsOpenFile (line 53) | type iofsOpenFile struct method Name (line 58) | func (f *iofsOpenFile) Name() string { return f.name } method Mode (line 59) | func (f *iofsOpenFile) Mode() fs.FileMode { return fs.ModeIrr... method IsDir (line 60) | func (f *iofsOpenFile) IsDir() bool { return false } method Sys (line 61) | func (f *iofsOpenFile) Sys() any { return f.r } method Stat (line 62) | func (f *iofsOpenFile) Stat() (fs.FileInfo, error) { return f, nil } type iofsDir (line 66) | type iofsDir struct method Name (line 80) | func (d *iofsDir) Name() string { return d.name } method Size (line 81) | func (d *iofsDir) Size() int64 { return 0 } method Mode (line 82) | func (d *iofsDir) Mode() fs.FileMode { return fs.ModeDir } method Type (line 83) | func (d *iofsDir) Type() fs.FileMode { return fs.ModeDir } method ModTime (line 84) | func (d *iofsDir) ModTime() time.Time { return time.Time{} } method IsDir (line 85) | func (d *iofsDir) IsDir() bool { return true } method Sys (line 86) | func (d *iofsDir) Sys() any { return d } method Info (line 87) | func (d *iofsDir) Info() (fs.FileInfo, error) { return d, nil } method Stat (line 88) | func (d *iofsDir) Stat() (fs.FileInfo, error) { return d, nil } method Read (line 89) | func (d *iofsDir) Read([]byte) (int, error) { method Close (line 92) | func (d *iofsDir) Close() error { return nil } method ReadDir (line 93) | func (d *iofsDir) ReadDir(count int) ([]fs.DirEntry, error) { method openOnce (line 112) | func (d *iofsDir) openOnce() error { function newDir (line 76) | func newDir(b *Bucket, key, name string) *iofsDir { method SetIOFSCallback (line 164) | func (b *Bucket) SetIOFSCallback(fn func() (context.Context, *ReaderOpti... method Open (line 169) | func (b *Bucket) Open(path string) (fs.File, error) { method Sub (line 221) | func (b *Bucket) Sub(dir string) (fs.FS, error) { FILE: blob/blob_fs_test.go function initBucket (line 39) | func initBucket(t *testing.T, files []string) *blob.Bucket { function TestIOFS (line 54) | func TestIOFS(t *testing.T) { function TestGlob (line 81) | func TestGlob(t *testing.T) { function TestWalkDir (line 115) | func TestWalkDir(t *testing.T) { FILE: blob/blob_iter_test.go function TestListIterator_All (line 14) | func TestListIterator_All(t *testing.T) { FILE: blob/blob_reader_test.go function TestReader (line 28) | func TestReader(t *testing.T) { FILE: blob/blob_test.go function TestExists (line 39) | func TestExists(t *testing.T) { type fakeAttributes (line 84) | type fakeAttributes struct method Attributes (line 89) | func (b *fakeAttributes) Attributes(ctx context.Context, key string) (... method ErrorCode (line 96) | func (b *fakeAttributes) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 103) | func (b *fakeAttributes) Close() error { return nil } function TestListIterator (line 106) | func TestListIterator(t *testing.T) { function TestListPage (line 133) | func TestListPage(t *testing.T) { type fakeLister (line 167) | type fakeLister struct method ListPaged (line 173) | func (b *fakeLister) ListPaged(ctx context.Context, opts *driver.ListO... method Close (line 194) | func (*fakeLister) Close() error { return nil } method ErrorCode (line 195) | func (*fakeLister) ErrorCode(err error) gcerrors.ErrorCode { return gc... type stubReader (line 197) | type stubReader struct method Download (line 202) | func (r *stubReader) Download(w io.Writer) error { method Close (line 207) | func (*stubReader) Close() error { return nil } type stubWriter (line 209) | type stubWriter struct method Upload (line 214) | func (w *stubWriter) Upload(r io.Reader) error { method Close (line 219) | func (*stubWriter) Close() error { return nil } type loaderBucket (line 224) | type loaderBucket struct method NewTypedWriter (line 230) | func (b *loaderBucket) NewTypedWriter(ctx context.Context, key, conten... method NewRangeReader (line 234) | func (b *loaderBucket) NewRangeReader(ctx context.Context, key string,... method Close (line 238) | func (*loaderBucket) Close() error { return nil } function TestUploader (line 240) | func TestUploader(t *testing.T) { function TestDownloader (line 254) | func TestDownloader(t *testing.T) { function TestSeekAfterReadFailure (line 268) | func TestSeekAfterReadFailure(t *testing.T) { type oneTimeReadBucket (line 309) | type oneTimeReadBucket struct method NewRangeReader (line 325) | func (b *oneTimeReadBucket) NewRangeReader(ctx context.Context, key st... method ErrorCode (line 333) | func (b *oneTimeReadBucket) ErrorCode(err error) gcerrors.ErrorCode { ... method Close (line 334) | func (b *oneTimeReadBucket) Close() error { ... type workingReader (line 314) | type workingReader struct method Read (line 318) | func (r *workingReader) Read(p []byte) (int, error) { method Attributes (line 322) | func (r *workingReader) Attributes() *driver.ReaderAttributes { return... method Close (line 323) | func (r *workingReader) Close() error { return... type erroringBucket (line 341) | type erroringBucket struct method Attributes (line 369) | func (b *erroringBucket) Attributes(ctx context.Context, key string) (... method ListPaged (line 373) | func (b *erroringBucket) ListPaged(ctx context.Context, opts *driver.L... method NewRangeReader (line 377) | func (b *erroringBucket) NewRangeReader(ctx context.Context, key strin... method NewTypedWriter (line 384) | func (b *erroringBucket) NewTypedWriter(ctx context.Context, key, cont... method Copy (line 391) | func (b *erroringBucket) Copy(ctx context.Context, dstKey, srcKey stri... method Delete (line 395) | func (b *erroringBucket) Delete(ctx context.Context, key string) error { method SignedURL (line 399) | func (b *erroringBucket) SignedURL(ctx context.Context, key string, op... method Close (line 403) | func (b *erroringBucket) Close() error { method ErrorCode (line 407) | func (b *erroringBucket) ErrorCode(err error) gcerrors.ErrorCode { type erroringReader (line 345) | type erroringReader struct method Read (line 349) | func (r *erroringReader) Read(p []byte) (int, error) { method Close (line 353) | func (r *erroringReader) Close() error { type erroringWriter (line 357) | type erroringWriter struct method Write (line 361) | func (r *erroringWriter) Write(p []byte) (int, error) { method Close (line 365) | func (r *erroringWriter) Close() error { function TestErrorsAreWrapped (line 413) | func TestErrorsAreWrapped(t *testing.T) { function TestBucketIsClosed (line 495) | func TestBucketIsClosed(t *testing.T) { function TestURLMux (line 539) | func TestURLMux(t *testing.T) { type fakeOpener (line 642) | type fakeOpener struct method OpenBucketURL (line 646) | func (o *fakeOpener) OpenBucketURL(ctx context.Context, u *url.URL) (*... FILE: blob/blob_writer_test.go function TestWriteReturnValues (line 32) | func TestWriteReturnValues(t *testing.T) { function randomData (line 65) | func randomData(nBytes int64) ([]byte, error) { function TestReadFrom (line 80) | func TestReadFrom(t *testing.T) { function TestWriteTo (line 118) | func TestWriteTo(t *testing.T) { function TestCopyBytes (line 159) | func TestCopyBytes(t *testing.T) { FILE: blob/driver/driver.go type ReaderOptions (line 31) | type ReaderOptions struct type Reader (line 41) | type Reader interface type Downloader (line 55) | type Downloader interface type Writer (line 61) | type Writer interface type Uploader (line 66) | type Uploader interface type WriterOptions (line 72) | type WriterOptions struct type CopyOptions (line 121) | type CopyOptions struct type ReaderAttributes (line 130) | type ReaderAttributes struct type Attributes (line 141) | type Attributes struct type ListOptions (line 183) | type ListOptions struct type ListObject (line 214) | type ListObject struct type ListPage (line 235) | type ListPage struct type Bucket (line 253) | type Bucket interface type SignedURLOptions (line 344) | type SignedURLOptions struct type prefixedBucket (line 380) | type prefixedBucket struct method ErrorCode (line 391) | func (b *prefixedBucket) ErrorCode(err error) gcerrors.ErrorCode { ret... method As (line 392) | func (b *prefixedBucket) As(i any) bool { ret... method ErrorAs (line 393) | func (b *prefixedBucket) ErrorAs(err error, i any) bool { ret... method Attributes (line 394) | func (b *prefixedBucket) Attributes(ctx context.Context, key string) (... method ListPaged (line 398) | func (b *prefixedBucket) ListPaged(ctx context.Context, opts *ListOpti... method NewRangeReader (line 414) | func (b *prefixedBucket) NewRangeReader(ctx context.Context, key strin... method NewTypedWriter (line 418) | func (b *prefixedBucket) NewTypedWriter(ctx context.Context, key, cont... method Copy (line 425) | func (b *prefixedBucket) Copy(ctx context.Context, dstKey, srcKey stri... method Delete (line 429) | func (b *prefixedBucket) Delete(ctx context.Context, key string) error { method SignedURL (line 433) | func (b *prefixedBucket) SignedURL(ctx context.Context, key string, op... method Close (line 436) | func (b *prefixedBucket) Close() error { return b.base.Close() } function NewPrefixedBucket (line 387) | func NewPrefixedBucket(b Bucket, prefix string) Bucket { type singleKeyBucket (line 439) | type singleKeyBucket struct method ErrorCode (line 449) | func (b *singleKeyBucket) ErrorCode(err error) gcerrors.ErrorCode { re... method As (line 450) | func (b *singleKeyBucket) As(i any) bool { re... method ErrorAs (line 451) | func (b *singleKeyBucket) ErrorAs(err error, i any) bool { re... method Attributes (line 452) | func (b *singleKeyBucket) Attributes(ctx context.Context, _ string) (*... method ListPaged (line 456) | func (b *singleKeyBucket) ListPaged(ctx context.Context, opts *ListOpt... method NewRangeReader (line 460) | func (b *singleKeyBucket) NewRangeReader(ctx context.Context, _ string... method NewTypedWriter (line 464) | func (b *singleKeyBucket) NewTypedWriter(ctx context.Context, _, conte... method Copy (line 468) | func (b *singleKeyBucket) Copy(ctx context.Context, dstKey, _ string, ... method Delete (line 472) | func (b *singleKeyBucket) Delete(ctx context.Context, _ string) error { method SignedURL (line 476) | func (b *singleKeyBucket) SignedURL(ctx context.Context, _ string, opt... method Close (line 479) | func (b *singleKeyBucket) Close() error { return b.base.Close() } function NewSingleKeyBucket (line 445) | func NewSingleKeyBucket(b Bucket, key string) Bucket { FILE: blob/drivertest/bindata.go function bindataRead (line 27) | func bindataRead(data []byte, name string) ([]byte, error) { function testLargeJpg (line 46) | func testLargeJpg() ([]byte, error) { function testMediumHTML (line 55) | func testMediumHTML() ([]byte, error) { function testSmallTxt (line 64) | func testSmallTxt() ([]byte, error) { function Asset (line 74) | func Asset(name string) ([]byte, error) { function AssetNames (line 83) | func AssetNames() []string { function AssetDir (line 113) | func AssetDir(name string) ([]string, error) { type _bintreeT (line 135) | type _bintreeT struct FILE: blob/drivertest/drivertest.go type Harness (line 49) | type Harness interface type HarnessMaker (line 67) | type HarnessMaker type AsTest (line 96) | type AsTest interface type verifyAsFailsOnNil (line 129) | type verifyAsFailsOnNil struct method Name (line 131) | func (verifyAsFailsOnNil) Name() string { method BucketCheck (line 135) | func (verifyAsFailsOnNil) BucketCheck(b *blob.Bucket) error { method ErrorCheck (line 142) | func (verifyAsFailsOnNil) ErrorCheck(b *blob.Bucket, err error) (ret e... method BeforeRead (line 152) | func (verifyAsFailsOnNil) BeforeRead(as func(any) bool) error { method BeforeWrite (line 159) | func (verifyAsFailsOnNil) BeforeWrite(as func(any) bool) error { method BeforeCopy (line 166) | func (verifyAsFailsOnNil) BeforeCopy(as func(any) bool) error { method BeforeList (line 173) | func (verifyAsFailsOnNil) BeforeList(as func(any) bool) error { method BeforeSign (line 180) | func (verifyAsFailsOnNil) BeforeSign(as func(any) bool) error { method AttributesCheck (line 187) | func (verifyAsFailsOnNil) AttributesCheck(attrs *blob.Attributes) error { method ReaderCheck (line 194) | func (verifyAsFailsOnNil) ReaderCheck(r *blob.Reader) error { method ListObjectCheck (line 201) | func (verifyAsFailsOnNil) ListObjectCheck(o *blob.ListObject) error { function RunConformanceTests (line 209) | func RunConformanceTests(t *testing.T, newHarness HarnessMaker, asTests ... function RunBenchmarks (line 280) | func RunBenchmarks(b *testing.B, bkt *blob.Bucket) { function testNonexistentBucket (line 292) | func testNonexistentBucket(t *testing.T, newHarness HarnessMaker) { function testList (line 342) | func testList(t *testing.T, newHarness HarnessMaker) { function testListWeirdKeys (line 577) | func testListWeirdKeys(t *testing.T, newHarness HarnessMaker) { type listResult (line 636) | type listResult struct function doList (line 645) | func doList(ctx context.Context, b *blob.Bucket, prefix, delim string, r... function testListDelimiters (line 679) | func testListDelimiters(t *testing.T, newHarness HarnessMaker) { function testDirsWithCharactersBeforeDelimiter (line 1007) | func testDirsWithCharactersBeforeDelimiter(t *testing.T, newHarness Harn... function iterToSetOfKeys (line 1085) | func iterToSetOfKeys(ctx context.Context, t *testing.T, iter *blob.ListI... function testRead (line 1102) | func testRead(t *testing.T, newHarness HarnessMaker) { function testAttributes (line 1251) | func testAttributes(t *testing.T, newHarness HarnessMaker) { function loadTestData (line 1386) | func loadTestData(tb testing.TB, name string) []byte { function testWrite (line 1397) | func testWrite(t *testing.T, newHarness HarnessMaker) { function testCanceledWrite (line 1617) | func testCanceledWrite(t *testing.T, newHarness HarnessMaker) { function testMetadata (line 1732) | func testMetadata(t *testing.T, newHarness HarnessMaker) { function testMD5 (line 1857) | func testMD5(t *testing.T, newHarness HarnessMaker) { function testCopy (line 1935) | func testCopy(t *testing.T, newHarness HarnessMaker) { function testDelete (line 2067) | func testDelete(t *testing.T, newHarness HarnessMaker) { function testConcurrentWriteAndRead (line 2140) | func testConcurrentWriteAndRead(t *testing.T, newHarness HarnessMaker) { function testUploadDownload (line 2224) | func testUploadDownload(t *testing.T, newHarness HarnessMaker) { function testKeys (line 2268) | func testKeys(t *testing.T, newHarness HarnessMaker) { function testSignedURL (line 2387) | func testSignedURL(t *testing.T, newHarness HarnessMaker) { function testAs (line 2620) | func testAs(t *testing.T, newHarness HarnessMaker, st AsTest) { function testIfNotExist (line 2737) | func testIfNotExist(t *testing.T, newHarness HarnessMaker) { function benchmarkRead (line 2795) | func benchmarkRead(b *testing.B, bkt *blob.Bucket) { function benchmarkWriteReadDelete (line 2832) | func benchmarkWriteReadDelete(b *testing.B, bkt *blob.Bucket) { FILE: blob/example_openbucket_test.go function Example_openFromURL (line 26) | func Example_openFromURL() { function Example_openFromURLWithPrefix (line 56) | func Example_openFromURLWithPrefix() { function Example_openFromURLWithSingleKey (line 74) | func Example_openFromURLWithSingleKey() { FILE: blob/example_test.go function ExampleBucket_NewReader (line 34) | func ExampleBucket_NewReader() { function ExampleBucket_NewRangeReader (line 55) | func ExampleBucket_NewRangeReader() { function ExampleBucket_NewWriter (line 73) | func ExampleBucket_NewWriter() { function ExampleBucket_NewWriter_cancel (line 95) | func ExampleBucket_NewWriter_cancel() { function ExampleBucket_Delete (line 122) | func ExampleBucket_Delete() { function Example (line 133) | func Example() { function ExampleBucket_ErrorAs (line 164) | func ExampleBucket_ErrorAs() { function ExampleBucket_List (line 187) | func ExampleBucket_List() { function ExampleBucket_List_withDelimiter (line 254) | func ExampleBucket_List_withDelimiter() { function ExampleBucket_ListPage (line 316) | func ExampleBucket_ListPage() { function ExampleBucket_As (line 390) | func ExampleBucket_As() { function ExampleWriterOptions (line 417) | func ExampleWriterOptions() { function ExampleListObject_As (line 445) | func ExampleListObject_As() { function ExampleListOptions (line 476) | func ExampleListOptions() { function ExamplePrefixedBucket (line 512) | func ExamplePrefixedBucket() { function ExampleSingleKeyBucket (line 529) | func ExampleSingleKeyBucket() { function ExampleReader_As (line 545) | func ExampleReader_As() { function ExampleAttributes_As (line 572) | func ExampleAttributes_As() { function newTempDir (line 596) | func newTempDir() (string, func()) { FILE: blob/fileblob/attrs.go constant attrsExt (line 23) | attrsExt = ".attrs" type xattrs (line 30) | type xattrs struct function setAttrs (line 42) | func setAttrs(path string, xa xattrs) error { function getAttrs (line 58) | func getAttrs(path string) (xattrs, error) { FILE: blob/fileblob/example_test.go function ExampleOpenBucket (line 29) | func ExampleOpenBucket() { function Example_openBucketFromURL (line 46) | func Example_openBucketFromURL() { FILE: blob/fileblob/fileblob.go constant defaultPageSize (line 91) | defaultPageSize = 1000 function init (line 93) | func init() { constant Scheme (line 99) | Scheme = "file" type URLOpener (line 140) | type URLOpener struct method OpenBucketURL (line 146) | func (o *URLOpener) OpenBucketURL(ctx context.Context, u *url.URL) (*b... method forParams (line 179) | func (o *URLOpener) forParams(ctx context.Context, q url.Values) (*Opt... type metadataOption (line 169) | type metadataOption constant MetadataInSidecar (line 174) | MetadataInSidecar metadataOption = "" constant MetadataDontWrite (line 176) | MetadataDontWrite metadataOption = "skip" type Options (line 235) | type Options struct type bucket (line 265) | type bucket struct method Close (line 313) | func (b *bucket) Close() error { method ErrorCode (line 360) | func (b *bucket) ErrorCode(err error) gcerrors.ErrorCode { method path (line 370) | func (b *bucket) path(key string) (string, error) { method forKey (line 386) | func (b *bucket) forKey(key string) (string, os.FileInfo, *xattrs, err... method ListPaged (line 406) | func (b *bucket) ListPaged(ctx context.Context, opts *driver.ListOptio... method As (line 573) | func (b *bucket) As(i any) bool { method ErrorAs (line 587) | func (b *bucket) ErrorAs(err error, i any) bool { method Attributes (line 598) | func (b *bucket) Attributes(ctx context.Context, key string) (*driver.... method NewRangeReader (line 627) | func (b *bucket) NewRangeReader(ctx context.Context, key string, offse... method NewTypedWriter (line 731) | func (b *bucket) NewTypedWriter(ctx context.Context, key, contentType ... method Copy (line 908) | func (b *bucket) Copy(ctx context.Context, dstKey, srcKey string, opts... method Delete (line 949) | func (b *bucket) Delete(ctx context.Context, key string) error { method SignedURL (line 965) | func (b *bucket) SignedURL(ctx context.Context, key string, opts *driv... function openBucket (line 272) | func openBucket(dir string, opts *Options) (driver.Bucket, error) { function OpenBucket (line 305) | func OpenBucket(dir string, opts *Options) (*blob.Bucket, error) { function escapeKey (line 318) | func escapeKey(s string) string { function unescapeKey (line 352) | func unescapeKey(s string) string { type reader (line 668) | type reader struct method Read (line 674) | func (r *reader) Read(p []byte) (int, error) { method Close (line 681) | func (r *reader) Close() error { method Attributes (line 688) | func (r *reader) Attributes() *driver.ReaderAttributes { method As (line 692) | func (r *reader) As(i any) bool { function createTemp (line 701) | func createTemp(path string, noTempDir bool) (*os.File, error) { type writerWithSidecar (line 793) | type writerWithSidecar struct method Write (line 806) | func (w *writerWithSidecar) Write(p []byte) (n int, err error) { method Close (line 819) | func (w *writerWithSidecar) Close() error { type writer (line 863) | type writer struct method Upload (line 871) | func (w *writer) Upload(r io.Reader) error { method Close (line 876) | func (w *writer) Close() error { type URLSigner (line 986) | type URLSigner interface type URLSignerHMAC (line 1003) | type URLSignerHMAC struct method URLFromKey (line 1024) | func (h *URLSignerHMAC) URLFromKey(ctx context.Context, key string, op... method getMAC (line 1041) | func (h *URLSignerHMAC) getMAC(q url.Values) string { method KeyFromURL (line 1058) | func (h *URLSignerHMAC) KeyFromURL(ctx context.Context, sURL *url.URL)... method checkMAC (line 1072) | func (h *URLSignerHMAC) checkMAC(q url.Values) bool { function NewURLSignerHMAC (line 1010) | func NewURLSignerHMAC(baseURL *url.URL, secretKey []byte) *URLSignerHMAC { FILE: blob/fileblob/fileblob_test.go type harness (line 37) | type harness struct method serveSignedURL (line 85) | func (h *harness) serveSignedURL(w http.ResponseWriter, r *http.Reques... method HTTPClient (line 145) | func (h *harness) HTTPClient() *http.Client { method MakeDriver (line 149) | func (h *harness) MakeDriver(ctx context.Context) (driver.Bucket, erro... method MakeDriverForNonexistentBucket (line 165) | func (h *harness) MakeDriverForNonexistentBucket(ctx context.Context) ... method Close (line 171) | func (h *harness) Close() { function newHarness (line 47) | func newHarness(ctx context.Context, t *testing.T, prefix string, metada... function TestConformance (line 175) | func TestConformance(t *testing.T) { function TestConformanceNoTempDir (line 184) | func TestConformanceNoTempDir(t *testing.T) { function TestConformanceWithPrefix (line 193) | func TestConformanceWithPrefix(t *testing.T) { function TestConformanceSkipMetadata (line 203) | func TestConformanceSkipMetadata(t *testing.T) { function BenchmarkFileblob (line 212) | func BenchmarkFileblob(b *testing.B) { function TestNewBucket (line 225) | func TestNewBucket(t *testing.T) { function TestSignedURLReturnsUnimplementedWithNoURLSigner (line 263) | func TestSignedURLReturnsUnimplementedWithNoURLSigner(t *testing.T) { type verifyAs (line 277) | type verifyAs struct method Name (line 281) | func (verifyAs) Name() string { return "verify As types for fileblob" } method BucketCheck (line 283) | func (verifyAs) BucketCheck(b *blob.Bucket) error { method BeforeRead (line 291) | func (verifyAs) BeforeRead(as func(any) bool) error { method BeforeWrite (line 299) | func (verifyAs) BeforeWrite(as func(any) bool) error { method BeforeCopy (line 307) | func (verifyAs) BeforeCopy(as func(any) bool) error { method BeforeList (line 314) | func (verifyAs) BeforeList(as func(any) bool) error { return nil } method BeforeSign (line 315) | func (verifyAs) BeforeSign(as func(any) bool) error { return nil } method AttributesCheck (line 316) | func (verifyAs) AttributesCheck(attrs *blob.Attributes) error { method ReaderCheck (line 324) | func (verifyAs) ReaderCheck(r *blob.Reader) error { method ListObjectCheck (line 332) | func (verifyAs) ListObjectCheck(o *blob.ListObject) error { method ErrorCheck (line 340) | func (v verifyAs) ErrorCheck(b *blob.Bucket, err error) error { function TestOpenBucketFromURL (line 352) | func TestOpenBucketFromURL(t *testing.T) { function TestEscapeBucketRoot (line 457) | func TestEscapeBucketRoot(t *testing.T) { function TestListAtRoot (line 484) | func TestListAtRoot(t *testing.T) { function TestSkipMetadata (line 520) | func TestSkipMetadata(t *testing.T) { FILE: blob/gcsblob/example_test.go function ExampleOpenBucket (line 26) | func ExampleOpenBucket() { function Example_openBucketFromURL (line 57) | func Example_openBucketFromURL() { FILE: blob/gcsblob/gcsblob.go constant defaultPageSize (line 92) | defaultPageSize = 1000 function init (line 94) | func init() { function readDefaultCredentials (line 111) | func readDefaultCredentials(credFileAsJSON []byte) (AccessID string, Pri... type lazyCredsOpener (line 147) | type lazyCredsOpener struct method OpenBucketURL (line 153) | func (o *lazyCredsOpener) OpenBucketURL(ctx context.Context, u *url.UR... constant Scheme (line 217) | Scheme = "gs" type URLOpener (line 230) | type URLOpener struct method OpenBucketURL (line 240) | func (o *URLOpener) OpenBucketURL(ctx context.Context, u *url.URL) (*b... method forParams (line 248) | func (o *URLOpener) forParams(ctx context.Context, q url.Values) (*Opt... type Options (line 291) | type Options struct method clear (line 326) | func (o *Options) clear() { type SignBytesFunc (line 334) | type SignBytesFunc function openBucket (line 337) | func openBucket(ctx context.Context, client *gcp.HTTPClient, bucketName ... function OpenBucket (line 373) | func OpenBucket(ctx context.Context, client *gcp.HTTPClient, bucketName ... type bucket (line 383) | type bucket struct method ErrorCode (line 420) | func (b *bucket) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 441) | func (b *bucket) Close() error { method ListPaged (line 446) | func (b *bucket) ListPaged(ctx context.Context, opts *driver.ListOptio... method As (line 516) | func (b *bucket) As(i any) bool { method ErrorAs (line 526) | func (b *bucket) ErrorAs(err error, i any) bool { method Attributes (line 538) | func (b *bucket) Attributes(ctx context.Context, key string) (*driver.... method NewRangeReader (line 576) | func (b *bucket) NewRangeReader(ctx context.Context, key string, offse... method NewTypedWriter (line 653) | func (b *bucket) NewTypedWriter(ctx context.Context, key, contentType ... method Copy (line 712) | func (b *bucket) Copy(ctx context.Context, dstKey, srcKey string, opts... method Delete (line 756) | func (b *bucket) Delete(ctx context.Context, key string) error { method SignedURL (line 763) | func (b *bucket) SignedURL(ctx context.Context, key string, dopts *dri... type reader (line 392) | type reader struct method Read (line 398) | func (r *reader) Read(p []byte) (int, error) { method Close (line 403) | func (r *reader) Close() error { method Attributes (line 407) | func (r *reader) Attributes() *driver.ReaderAttributes { method As (line 411) | func (r *reader) As(i any) bool { function escapeKey (line 633) | func escapeKey(key string) string { function unescapeKey (line 648) | func unescapeKey(key string) string { type CopyObjectHandles (line 707) | type CopyObjectHandles struct function bufferSize (line 805) | func bufferSize(size int) int { FILE: blob/gcsblob/gcsblob_test.go constant bucketName (line 56) | bucketName = "go-cloud-blob-test-bucket" constant serviceAccountID (line 57) | serviceAccountID = "storage-updater@go-cloud-test-216917.iam.gserviceacc... type harness (line 62) | type harness struct method HTTPClient (line 92) | func (h *harness) HTTPClient() *http.Client { method MakeDriver (line 96) | func (h *harness) MakeDriver(ctx context.Context) (driver.Bucket, erro... method MakeDriverForNonexistentBucket (line 100) | func (h *harness) MakeDriverForNonexistentBucket(ctx context.Context) ... method Close (line 104) | func (h *harness) Close() { function newHarness (line 69) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function TestConformance (line 108) | func TestConformance(t *testing.T) { function BenchmarkGcsblob (line 112) | func BenchmarkGcsblob(b *testing.B) { constant language (line 129) | language = "nl" type verifyContentLanguage (line 133) | type verifyContentLanguage struct method Name (line 135) | func (verifyContentLanguage) Name() string { method BucketCheck (line 139) | func (verifyContentLanguage) BucketCheck(b *blob.Bucket) error { method ErrorCheck (line 147) | func (verifyContentLanguage) ErrorCheck(b *blob.Bucket, err error) err... method BeforeRead (line 159) | func (verifyContentLanguage) BeforeRead(as func(any) bool) error { method BeforeWrite (line 171) | func (verifyContentLanguage) BeforeWrite(as func(any) bool) error { method BeforeCopy (line 184) | func (verifyContentLanguage) BeforeCopy(as func(any) bool) error { method BeforeList (line 196) | func (verifyContentLanguage) BeforeList(as func(any) bool) error { method BeforeSign (line 205) | func (verifyContentLanguage) BeforeSign(as func(any) bool) error { method AttributesCheck (line 214) | func (verifyContentLanguage) AttributesCheck(attrs *blob.Attributes) e... method ReaderCheck (line 225) | func (verifyContentLanguage) ReaderCheck(r *blob.Reader) error { method ListObjectCheck (line 234) | func (verifyContentLanguage) ListObjectCheck(o *blob.ListObject) error { function TestBufferSize (line 249) | func TestBufferSize(t *testing.T) { function TestOpenBucket (line 275) | func TestOpenBucket(t *testing.T) { function TestBeforeReadNonExistentKey (line 332) | func TestBeforeReadNonExistentKey(t *testing.T) { function TestPreconditions (line 367) | func TestPreconditions(t *testing.T) { function TestURLOpenerForParams (line 519) | func TestURLOpenerForParams(t *testing.T) { function TestOpenBucketFromURL (line 656) | func TestOpenBucketFromURL(t *testing.T) { function TestReadDefaultCredentials (line 703) | func TestReadDefaultCredentials(t *testing.T) { function TestRemainingSignedURLSchemes (line 769) | func TestRemainingSignedURLSchemes(t *testing.T) { FILE: blob/gcsblob/iam.go type credentialsClient (line 33) | type credentialsClient struct method CreateMakeSignBytesWith (line 47) | func (c *credentialsClient) CreateMakeSignBytesWith(lifetimeCtx contex... FILE: blob/gcsblob/iam_test.go constant mockKey (line 27) | mockKey = "key0000" constant mockSignature (line 28) | mockSignature = "signature" type mockIAMClient (line 31) | type mockIAMClient struct method SignBlob (line 35) | func (m mockIAMClient) SignBlob(context.Context, *credentialspb.SignBl... function TestIAMCredentialsClient (line 42) | func TestIAMCredentialsClient(t *testing.T) { FILE: blob/memblob/example_test.go function ExampleOpenBucket (line 26) | func ExampleOpenBucket() { function Example_openBucketFromURL (line 50) | func Example_openBucketFromURL() { FILE: blob/memblob/memblob.go constant defaultPageSize (line 51) | defaultPageSize = 1000 function init (line 58) | func init() { constant Scheme (line 64) | Scheme = "mem" type URLOpener (line 70) | type URLOpener struct method OpenBucketURL (line 73) | func (*URLOpener) OpenBucketURL(ctx context.Context, u *url.URL) (*blo... type Options (line 86) | type Options struct type blobEntry (line 92) | type blobEntry struct type bucket (line 97) | type bucket struct method Close (line 120) | func (b *bucket) Close() error { method ErrorCode (line 124) | func (b *bucket) ErrorCode(err error) gcerrors.ErrorCode { method ListPaged (line 137) | func (b *bucket) ListPaged(ctx context.Context, opts *driver.ListOptio... method As (line 216) | func (b *bucket) As(i any) bool { return false } method ErrorAs (line 219) | func (b *bucket) ErrorAs(err error, i any) bool { return false } method Attributes (line 222) | func (b *bucket) Attributes(ctx context.Context, key string) (*driver.... method NewRangeReader (line 234) | func (b *bucket) NewRangeReader(ctx context.Context, key string, offse... method NewTypedWriter (line 296) | func (b *bucket) NewTypedWriter(ctx context.Context, key, contentType ... method Copy (line 397) | func (b *bucket) Copy(ctx context.Context, dstKey, srcKey string, opts... method Delete (line 415) | func (b *bucket) Delete(ctx context.Context, key string) error { method SignedURL (line 426) | func (b *bucket) SignedURL(ctx context.Context, key string, opts *driv... function openBucket (line 105) | func openBucket(opts *Options) driver.Bucket { function OpenBucket (line 116) | func OpenBucket(opts *Options) *blob.Bucket { type reader (line 268) | type reader struct method Read (line 273) | func (r *reader) Read(p []byte) (int, error) { method Download (line 277) | func (r *reader) Download(w io.Writer) error { method Close (line 285) | func (r *reader) Close() error { method Attributes (line 289) | func (r *reader) Attributes() *driver.ReaderAttributes { method As (line 293) | func (r *reader) As(i any) bool { return false } type writer (line 327) | type writer struct method Write (line 341) | func (w *writer) Write(p []byte) (n int, err error) { method Upload (line 350) | func (w *writer) Upload(r io.Reader) error { method Close (line 355) | func (w *writer) Close() error { FILE: blob/memblob/memblob_test.go type harness (line 27) | type harness struct method HTTPClient (line 37) | func (h *harness) HTTPClient() *http.Client { method MakeDriver (line 41) | func (h *harness) MakeDriver(ctx context.Context) (driver.Bucket, erro... method MakeDriverForNonexistentBucket (line 49) | func (h *harness) MakeDriverForNonexistentBucket(ctx context.Context) ... method Close (line 54) | func (h *harness) Close() {} function newHarness (line 31) | func newHarness(ctx context.Context, t *testing.T, prefix string) (drive... function TestConformance (line 56) | func TestConformance(t *testing.T) { function TestConformanceWithPrefix (line 65) | func TestConformanceWithPrefix(t *testing.T) { function BenchmarkMemblob (line 75) | func BenchmarkMemblob(b *testing.B) { function TestOpenBucketFromURL (line 79) | func TestOpenBucketFromURL(t *testing.T) { FILE: blob/otel_test.go function TestOpenTelemetry (line 27) | func TestOpenTelemetry(t *testing.T) { FILE: blob/s3blob/example_test.go function ExampleOpenBucket (line 27) | func ExampleOpenBucket() { function Example_openBucketFromURL (line 48) | func Example_openBucketFromURL() { FILE: blob/s3blob/s3blob.go constant defaultPageSize (line 85) | defaultPageSize = 1000 function init (line 87) | func init() { function Dial (line 97) | func Dial(cfg aws.Config) *s3.Client { type urlSessionOpener (line 101) | type urlSessionOpener struct method OpenBucketURL (line 103) | func (o *urlSessionOpener) OpenBucketURL(ctx context.Context, u *url.U... constant Scheme (line 110) | Scheme = "s3" type URLOpener (line 125) | type URLOpener struct method OpenBucketURL (line 149) | func (o *URLOpener) OpenBucketURL(ctx context.Context, u *url.URL) (*b... constant sseTypeParamKey (line 131) | sseTypeParamKey = "ssetype" constant kmsKeyIdParamKey (line 132) | kmsKeyIdParamKey = "kmskeyid" constant accelerateParamKey (line 133) | accelerateParamKey = "accelerate" constant usePathStyleParamKey (line 134) | usePathStyleParamKey = "use_path_style" constant legacyUsePathStyleParamKey (line 135) | legacyUsePathStyleParamKey = "s3ForcePathStyle" constant disableHTTPSParamKey (line 136) | disableHTTPSParamKey = "disable_https" function toServerSideEncryptionType (line 139) | func toServerSideEncryptionType(value string) (types.ServerSideEncryptio... type Options (line 221) | type Options struct function openBucket (line 244) | func openBucket(ctx context.Context, client *s3.Client, bucketName strin... function OpenBucket (line 265) | func OpenBucket(ctx context.Context, client *s3.Client, bucketName strin... type reader (line 276) | type reader struct method Read (line 282) | func (r *reader) Read(p []byte) (int, error) { method Close (line 287) | func (r *reader) Close() error { method As (line 291) | func (r *reader) As(i any) bool { method Attributes (line 300) | func (r *reader) Attributes() *driver.ReaderAttributes { type writer (line 305) | type writer struct method Write (line 324) | func (w *writer) Write(p []byte) (int, error) { method Upload (line 341) | func (w *writer) Upload(r io.Reader) error { method open (line 350) | func (w *writer) open(r io.Reader, closePipeOnError bool) { method Close (line 374) | func (w *writer) Close() error { type bucket (line 391) | type bucket struct method Close (line 401) | func (b *bucket) Close() error { method ErrorCode (line 405) | func (b *bucket) ErrorCode(err error) gcerrors.ErrorCode { method ListPaged (line 430) | func (b *bucket) ListPaged(ctx context.Context, opts *driver.ListOptio... method listObjects (line 498) | func (b *bucket) listObjects(ctx context.Context, in *s3.ListObjectsV2... method As (line 562) | func (b *bucket) As(i any) bool { method ErrorAs (line 572) | func (b *bucket) ErrorAs(err error, i any) bool { method Attributes (line 577) | func (b *bucket) Attributes(ctx context.Context, key string) (*driver.... method NewRangeReader (line 618) | func (b *bucket) NewRangeReader(ctx context.Context, key string, offse... method NewTypedWriter (line 739) | func (b *bucket) NewTypedWriter(ctx context.Context, key, contentType ... method Copy (line 828) | func (b *bucket) Copy(ctx context.Context, dstKey, srcKey string, opts... method Delete (line 861) | func (b *bucket) Delete(ctx context.Context, key string) error { method SignedURL (line 874) | func (b *bucket) SignedURL(ctx context.Context, key string, opts *driv... function eTagToMD5 (line 679) | func eTagToMD5(etag *string) []byte { function getSize (line 700) | func getSize(contentLength int64, contentRange string) int64 { function escapeKey (line 718) | func escapeKey(key string) string { function unescapeKey (line 734) | func unescapeKey(key string) string { FILE: blob/s3blob/s3blob_test.go constant bucketName (line 49) | bucketName = "go-cloud-testing-2" constant region (line 50) | region = "us-west-1" type harness (line 53) | type harness struct method HTTPClient (line 74) | func (h *harness) HTTPClient() *http.Client { method MakeDriver (line 78) | func (h *harness) MakeDriver(ctx context.Context) (driver.Bucket, erro... method MakeDriverForNonexistentBucket (line 82) | func (h *harness) MakeDriverForNonexistentBucket(ctx context.Context) ... method Close (line 86) | func (h *harness) Close() { function newHarness (line 60) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function newHarnessUsingLegacyList (line 67) | func newHarnessUsingLegacyList(ctx context.Context, t *testing.T) (drive... function TestConformance (line 90) | func TestConformance(t *testing.T) { function TestConformanceUsingLegacyList (line 94) | func TestConformanceUsingLegacyList(t *testing.T) { function BenchmarkS3blob (line 98) | func BenchmarkS3blob(b *testing.B) { constant language (line 112) | language = "nl" type verifyContentLanguage (line 116) | type verifyContentLanguage struct method Name (line 120) | func (verifyContentLanguage) Name() string { method BucketCheck (line 124) | func (v verifyContentLanguage) BucketCheck(b *blob.Bucket) error { method ErrorCheck (line 132) | func (v verifyContentLanguage) ErrorCheck(b *blob.Bucket, err error) e... method BeforeRead (line 140) | func (v verifyContentLanguage) BeforeRead(as func(any) bool) error { method BeforeWrite (line 151) | func (v verifyContentLanguage) BeforeWrite(as func(any) bool) error { method BeforeCopy (line 167) | func (v verifyContentLanguage) BeforeCopy(as func(any) bool) error { method BeforeList (line 175) | func (v verifyContentLanguage) BeforeList(as func(any) bool) error { method BeforeSign (line 194) | func (v verifyContentLanguage) BeforeSign(as func(any) bool) error { method AttributesCheck (line 206) | func (v verifyContentLanguage) AttributesCheck(attrs *blob.Attributes)... method ReaderCheck (line 217) | func (v verifyContentLanguage) ReaderCheck(r *blob.Reader) error { method ListObjectCheck (line 228) | func (v verifyContentLanguage) ListObjectCheck(o *blob.ListObject) err... function TestOpenBucket (line 246) | func TestOpenBucket(t *testing.T) { function TestOpenBucketFromURL (line 302) | func TestOpenBucketFromURL(t *testing.T) { function TestChecksumConfigurationPassthrough (line 379) | func TestChecksumConfigurationPassthrough(t *testing.T) { function TestToServerSideEncryptionType (line 454) | func TestToServerSideEncryptionType(t *testing.T) { FILE: blob/wrapped_bucket_test.go function TestPrefixedBucket (line 14) | func TestPrefixedBucket(t *testing.T) { function TestSingleKeyBucket (line 40) | func TestSingleKeyBucket(t *testing.T) { FILE: docstore/awsdynamodb/v2/benchmark_test.go function BenchmarkPutVSTransact (line 31) | func BenchmarkPutVSTransact(b *testing.B) { function putItems (line 76) | func putItems(b *testing.B, db *dynamodb.Client, items []map[string]dyn2... function batchGetTransactWrite (line 105) | func batchGetTransactWrite(b *testing.B, db *dynamodb.Client, items []ma... FILE: docstore/awsdynamodb/v2/codec.go type encoder (line 30) | type encoder struct method EncodeNil (line 34) | func (e *encoder) EncodeNil() { e.av = nullValue } method EncodeBool (line 35) | func (e *encoder) EncodeBool(x bool) { e.av = &dyn2Types.AttributeValu... method EncodeInt (line 36) | func (e *encoder) EncodeInt(x int64) { method EncodeUint (line 39) | func (e *encoder) EncodeUint(x uint64) { method EncodeBytes (line 42) | func (e *encoder) EncodeBytes(x []byte) { e.av = &dyn2Types.Attribute... method EncodeFloat (line 43) | func (e *encoder) EncodeFloat(x float64) { e.av = encodeFloat(x) } method ListIndex (line 45) | func (e *encoder) ListIndex(int) { panic("impossible") } method MapKey (line 46) | func (e *encoder) MapKey(string) { panic("impossible") } method EncodeString (line 48) | func (e *encoder) EncodeString(x string) { method EncodeComplex (line 56) | func (e *encoder) EncodeComplex(x complex128) { method EncodeList (line 60) | func (e *encoder) EncodeList(n int) driver.Encoder { method EncodeMap (line 66) | func (e *encoder) EncodeMap(n int) driver.Encoder { method EncodeSpecial (line 75) | func (e *encoder) EncodeSpecial(v reflect.Value) (bool, error) { type listEncoder (line 86) | type listEncoder struct method ListIndex (line 91) | func (e *listEncoder) ListIndex(i int) { e.s[i] = e.av } type mapEncoder (line 93) | type mapEncoder struct method MapKey (line 98) | func (e *mapEncoder) MapKey(k string) { e.m[k] = e.av } function encodeDoc (line 100) | func encodeDoc(doc driver.Document) (dyn2Types.AttributeValue, error) { function encodeDocKeyFields (line 111) | func encodeDocKeyFields(doc driver.Document, pkey, skey string) (*dyn2Ty... function encodeValue (line 138) | func encodeValue(v any) (dyn2Types.AttributeValue, error) { function encodeFloat (line 146) | func encodeFloat(f float64) dyn2Types.AttributeValue { function decodeDoc (line 152) | func decodeDoc(item dyn2Types.AttributeValue, doc driver.Document) error { type decoder (line 156) | type decoder struct method String (line 160) | func (d decoder) String() string { method AsBool (line 167) | func (d decoder) AsBool() (bool, bool) { method AsNull (line 175) | func (d decoder) AsNull() bool { method AsString (line 183) | func (d decoder) AsString() (string, bool) { method AsInt (line 196) | func (d decoder) AsInt() (int64, bool) { method AsUint (line 208) | func (d decoder) AsUint() (uint64, bool) { method AsFloat (line 220) | func (d decoder) AsFloat() (float64, bool) { method AsComplex (line 232) | func (d decoder) AsComplex() (complex128, bool) { method AsBytes (line 251) | func (d decoder) AsBytes() ([]byte, bool) { method ListLen (line 259) | func (d decoder) ListLen() (int, bool) { method DecodeList (line 267) | func (d decoder) DecodeList(f func(i int, vd driver.Decoder) bool) { method MapLen (line 282) | func (d decoder) MapLen() (int, bool) { method DecodeMap (line 290) | func (d decoder) DecodeMap(f func(key string, vd driver.Decoder, exact... method AsInterface (line 305) | func (d decoder) AsInterface() (any, error) { method AsSpecial (line 362) | func (d decoder) AsSpecial(v reflect.Value) (bool, any, error) { function toGoValue (line 309) | func toGoValue(av dyn2Types.AttributeValue) (any, error) { FILE: docstore/awsdynamodb/v2/codec_test.go function TestEncodeValue (line 42) | func TestEncodeValue(t *testing.T) { function TestDecodeValue (line 100) | func TestDecodeValue(t *testing.T) { function TestDecodeErrorOnUnsupported (line 160) | func TestDecodeErrorOnUnsupported(t *testing.T) { type codecTester (line 176) | type codecTester struct method UnsupportedTypes (line 178) | func (ct *codecTester) UnsupportedTypes() []drivertest.UnsupportedType { method NativeEncode (line 182) | func (ct *codecTester) NativeEncode(obj any) (any, error) { method NativeDecode (line 186) | func (ct *codecTester) NativeDecode(value, dest any) error { method DocstoreEncode (line 190) | func (ct *codecTester) DocstoreEncode(obj any) (any, error) { method DocstoreDecode (line 194) | func (ct *codecTester) DocstoreDecode(value, dest any) error { FILE: docstore/awsdynamodb/v2/dynamo.go type collection (line 64) | type collection struct method Key (line 151) | func (c *collection) Key(doc driver.Document) (any, error) { method RevisionField (line 163) | func (c *collection) RevisionField() string { return c.opts.RevisionFi... method RunActions (line 165) | func (c *collection) RunActions(ctx context.Context, actions []*driver... method runGets (line 180) | func (c *collection) runGets(ctx context.Context, actions []*driver.Ac... method batchGet (line 203) | func (c *collection) batchGet(ctx context.Context, gets []*driver.Acti... method runWrites (line 307) | func (c *collection) runWrites(ctx context.Context, writes []*driver.A... method newWriteOp (line 345) | func (c *collection) newWriteOp(a *driver.Action, opts *driver.RunActi... method newPut (line 358) | func (c *collection) newPut(a *driver.Action, opts *driver.RunActionsO... method runPut (line 416) | func (c *collection) runPut(ctx context.Context, dput *dyn2Types.Put, ... method newDelete (line 442) | func (c *collection) newDelete(a *driver.Action, opts *driver.RunActio... method newUpdate (line 487) | func (c *collection) newUpdate(a *driver.Action, opts *driver.RunActio... method onSuccess (line 551) | func (c *collection) onSuccess(op *writeOp) error { method missingKeyField (line 562) | func (c *collection) missingKeyField(m map[string]dyn2Types.AttributeV... method precondition (line 585) | func (c *collection) precondition(a *driver.Action) (*expression.Condi... method transactWrite (line 640) | func (c *collection) transactWrite(ctx context.Context, actions []*dri... method RevisionToBytes (line 693) | func (c *collection) RevisionToBytes(rev any) ([]byte, error) { method BytesToRevision (line 702) | func (c *collection) BytesToRevision(b []byte) (any, error) { method As (line 706) | func (c *collection) As(i any) bool { method ErrorAs (line 716) | func (c *collection) ErrorAs(err error, i any) bool { method ErrorCode (line 729) | func (c *collection) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 794) | func (c *collection) Close() error { return nil } type FallbackFunc (line 75) | type FallbackFunc type Options (line 78) | type Options struct type RunQueryFunc (line 118) | type RunQueryFunc function OpenCollection (line 121) | func OpenCollection(db *dyn.Client, tableName, partitionKey, sortKey str... function newCollection (line 129) | func newCollection(db *dyn.Client, tableName, partitionKey, sortKey stri... function mapActionIndices (line 298) | func mapActionIndices(actions []*driver.Action, start, end int) map[any]... type writeOp (line 337) | type writeOp struct function revisionPrecondition (line 617) | func revisionPrecondition(doc driver.Document, revField string) (*expres... FILE: docstore/awsdynamodb/v2/dynamo_test.go constant region (line 52) | region = "us-east-2" constant collectionName1 (line 53) | collectionName1 = "docstore-test-1" constant collectionName2 (line 54) | collectionName2 = "docstore-test-2" constant collectionName3 (line 55) | collectionName3 = "docstore-test-3" type harness (line 58) | type harness struct method SupportsAtomicWrites (line 63) | func (h *harness) SupportsAtomicWrites() bool { method BeforeDoTypes (line 79) | func (*harness) BeforeDoTypes() []any { method BeforeQueryTypes (line 86) | func (*harness) BeforeQueryTypes() []any { method RevisionsEqual (line 90) | func (*harness) RevisionsEqual(rev1, rev2 any) bool { method Close (line 94) | func (h *harness) Close() { method MakeCollection (line 98) | func (h *harness) MakeCollection(_ context.Context, kind drivertest.Co... function newHarness (line 67) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function collectHighScores (line 124) | func collectHighScores(ctx context.Context, iter driver.DocumentIterator... type highScoreSliceIterator (line 141) | type highScoreSliceIterator struct method Next (line 146) | func (it *highScoreSliceIterator) Next(ctx context.Context, doc driver... method Stop (line 159) | func (*highScoreSliceIterator) Stop() {} method As (line 160) | func (*highScoreSliceIterator) As(any) bool { return false } type verifyAs (line 162) | type verifyAs struct method Name (line 164) | func (verifyAs) Name() string { method CollectionCheck (line 168) | func (verifyAs) CollectionCheck(coll *docstore.Collection) error { method QueryCheck (line 176) | func (verifyAs) QueryCheck(it *docstore.DocumentIterator) error { method ErrorCheck (line 185) | func (v verifyAs) ErrorCheck(k *docstore.Collection, err error) error { function TestConformance (line 193) | func TestConformance(t *testing.T) { function BenchmarkConformance (line 200) | func BenchmarkConformance(b *testing.B) { function TestQueryErrors (line 214) | func TestQueryErrors(t *testing.T) { FILE: docstore/awsdynamodb/v2/example_test.go function ExampleOpenCollection (line 27) | func ExampleOpenCollection() { function Example_openCollectionFromURL (line 41) | func Example_openCollectionFromURL() { FILE: docstore/awsdynamodb/v2/query.go method RunGetQuery (line 45) | func (c *collection) RunGetQuery(ctx context.Context, q *driver.Query) (... method checkPlan (line 69) | func (c *collection) checkPlan(qr *queryRunner) error { method planQuery (line 76) | func (c *collection) planQuery(q *driver.Query) (*queryRunner, error) { method bestQueryable (line 164) | func (c *collection) bestQueryable(q *driver.Query) (indexName *string, ... function localFieldsIncluded (line 220) | func localFieldsIncluded(q *driver.Query, li dyn2Types.LocalSecondaryInd... function orderingConsistent (line 226) | func orderingConsistent(q *driver.Query, sortField string) bool { method globalFieldsIncluded (line 235) | func (c *collection) globalFieldsIncluded(q *driver.Query, gi dyn2Types.... function keyAttributes (line 269) | func keyAttributes(ks []dyn2Types.KeySchemaElement) (pkey, skey string) { function hasFilter (line 284) | func hasFilter(q *driver.Query, field string) bool { function hasEqualityFilter (line 297) | func hasEqualityFilter(q *driver.Query, field string) bool { type queryRunner (line 306) | type queryRunner struct method run (line 313) | func (qr *queryRunner) run(ctx context.Context, startAfter avmap) (ite... method queryPlan (line 528) | func (qr *queryRunner) queryPlan() string { function processFilters (line 372) | func processFilters(cb expression.Builder, fs []driver.Filter, pkey, ske... function filtersToConditionBuilder (line 393) | func filtersToConditionBuilder(fs []driver.Filter) expression.ConditionB... function toKeyCondition (line 405) | func toKeyCondition(f driver.Filter, pkey, skey string) (expression.KeyC... function toFilter (line 428) | func toFilter(f driver.Filter) expression.ConditionBuilder { function toInCondition (line 451) | func toInCondition(f driver.Filter) expression.ConditionBuilder { type documentIterator (line 462) | type documentIterator struct method Next (line 473) | func (it *documentIterator) Next(ctx context.Context, doc driver.Docum... method next (line 483) | func (it *documentIterator) next(ctx context.Context, doc driver.Docum... method Stop (line 511) | func (it *documentIterator) Stop() { method As (line 516) | func (it *documentIterator) As(i any) bool { method QueryPlan (line 520) | func (c *collection) QueryPlan(q *driver.Query) (string, error) { function InMemorySortFallback (line 547) | func InMemorySortFallback(createDocument func() any) FallbackFunc { type docsForSorting (line 596) | type docsForSorting struct method Len (line 602) | func (d docsForSorting) Len() int { return len(d.docs) } method Swap (line 604) | func (d docsForSorting) Swap(i, j int) { method Less (line 609) | func (d docsForSorting) Less(i, j int) bool { function compare (line 621) | func compare(v1, v2 any) int { type sliceIterator (line 659) | type sliceIterator struct method Next (line 664) | func (it *sliceIterator) Next(ctx context.Context, doc driver.Document... method Stop (line 686) | func (*sliceIterator) Stop() {} method As (line 687) | func (*sliceIterator) As(any) bool { return false } function copyTopLevel (line 673) | func copyTopLevel(dest, src driver.Document) error { FILE: docstore/awsdynamodb/v2/query_test.go function TestPlanQuery (line 34) | func TestPlanQuery(t *testing.T) { function TestQueryNoScans (line 386) | func TestQueryNoScans(t *testing.T) { function keySchema (line 417) | func keySchema(pkey, skey string) []dyn2Types.KeySchemaElement { function indexProjection (line 424) | func indexProjection(fields []string) *dyn2Types.Projection { function TestGlobalFieldsIncluded (line 441) | func TestGlobalFieldsIncluded(t *testing.T) { function TestCompare (line 510) | func TestCompare(t *testing.T) { function TestCopyTopLevel (line 539) | func TestCopyTopLevel(t *testing.T) { function Test_documentIterator_Next (line 585) | func Test_documentIterator_Next(t *testing.T) { FILE: docstore/awsdynamodb/v2/urls.go function init (line 30) | func init() { type lazySessionOpener (line 34) | type lazySessionOpener struct method OpenCollectionURL (line 40) | func (o *lazySessionOpener) OpenCollectionURL(ctx context.Context, u *... constant Scheme (line 53) | Scheme = "dynamodb" type URLOpener (line 71) | type URLOpener struct method OpenCollectionURL (line 75) | func (o *URLOpener) OpenCollectionURL(_ context.Context, u *url.URL) (... method processURL (line 83) | func (o *URLOpener) processURL(u *url.URL) (db *dyn.Client, tableName,... function Dial (line 122) | func Dial(p aws.Config) (*dyn.Client, error) { FILE: docstore/awsdynamodb/v2/urls_test.go function TestProcessURL (line 22) | func TestProcessURL(t *testing.T) { FILE: docstore/docstore.go type Collection (line 49) | type Collection struct method revisionField (line 97) | func (c *Collection) revisionField() string { method Actions (line 116) | func (c *Collection) Actions() *ActionList { method toDriverAction (line 403) | func (c *Collection) toDriverAction(a *Action) (*driver.Action, error) { method Create (line 560) | func (c *Collection) Create(ctx context.Context, doc Document) error { method Replace (line 569) | func (c *Collection) Replace(ctx context.Context, doc Document) error { method Put (line 578) | func (c *Collection) Put(ctx context.Context, doc Document) error { method Delete (line 587) | func (c *Collection) Delete(ctx context.Context, doc Document) error { method Get (line 596) | func (c *Collection) Get(ctx context.Context, doc Document, fps ...Fie... method Update (line 605) | func (c *Collection) Update(ctx context.Context, doc Document, mods Mo... method RevisionToString (line 631) | func (c *Collection) RevisionToString(rev any) (string, error) { method StringToRevision (line 644) | func (c *Collection) StringToRevision(s string) (any, error) { method As (line 663) | func (c *Collection) As(i any) bool { method Close (line 673) | func (c *Collection) Close() error { method checkClosed (line 684) | func (c *Collection) checkClosed() error { method ErrorAs (line 716) | func (c *Collection) ErrorAs(err error, i any) bool { constant pkgName (line 56) | pkgName = "gocloud.dev/docstore" function newCollection (line 70) | func newCollection(d driver.Collection) *Collection { constant DefaultRevisionField (line 95) | DefaultRevisionField = "DocstoreRevision" type FieldPath (line 112) | type FieldPath type ActionList (line 135) | type ActionList struct method add (line 152) | func (l *ActionList) add(a *Action) *ActionList { method Create (line 172) | func (l *ActionList) Create(doc Document) *ActionList { method Replace (line 184) | func (l *ActionList) Replace(doc Document) *ActionList { method Put (line 197) | func (l *ActionList) Put(doc Document) *ActionList { method Delete (line 207) | func (l *ActionList) Delete(doc Document) *ActionList { method Get (line 226) | func (l *ActionList) Get(doc Document, fps ...FieldPath) *ActionList { method Update (line 253) | func (l *ActionList) Update(doc Document, mods Mods) *ActionList { method BeforeDo (line 320) | func (l *ActionList) BeforeDo(f func(asFunc func(any) bool) error) *Ac... method Do (line 335) | func (l *ActionList) Do(ctx context.Context) error { method do (line 340) | func (l *ActionList) do(ctx context.Context, withTracing bool) (err er... method toDriverActions (line 366) | func (l *ActionList) toDriverActions() ([]*driver.Action, error) { method String (line 531) | func (l *ActionList) String() string { method AtomicWrites (line 540) | func (l *ActionList) AtomicWrites() *ActionList { type Action (line 144) | type Action struct method String (line 545) | func (a *Action) String() string { type Mods (line 269) | type Mods function Increment (line 277) | func Increment(amount any) any { type ActionListError (line 284) | type ActionListError method Error (line 291) | func (e ActionListError) Error() string { method Unwrap (line 302) | func (e ActionListError) Unwrap() error { function parseFieldPaths (line 451) | func parseFieldPaths(fps []FieldPath) ([][]string, error) { function toDriverMods (line 463) | func toDriverMods(mods Mods) ([]driver.Mod, error) { function fpHasPrefix (line 506) | func fpHasPrefix(fp, prefix []string) bool { function isIncNumber (line 518) | func isIncNumber(x any) bool { function parseFieldPath (line 612) | func parseFieldPath(fp FieldPath) ([]string, error) { function wrapError (line 693) | func wrapError(c driver.Collection, err error) error { FILE: docstore/docstore_test.go type Book (line 28) | type Book struct type Name (line 35) | type Name struct function TestIsIncNumber (line 39) | func TestIsIncNumber(t *testing.T) { function TestActionsDo (line 52) | func TestActionsDo(t *testing.T) { function TestClosedErrors (line 111) | func TestClosedErrors(t *testing.T) { function TestSerializeRevisionErrors (line 149) | func TestSerializeRevisionErrors(t *testing.T) { type fakeDriverCollection (line 161) | type fakeDriverCollection struct method Key (line 165) | func (fakeDriverCollection) Key(doc driver.Document) (any, error) { method RevisionField (line 174) | func (fakeDriverCollection) RevisionField() string { return DefaultRev... method Close (line 176) | func (fakeDriverCollection) Close() error { return nil } method RunActions (line 178) | func (fakeDriverCollection) RunActions(ctx context.Context, actions []... method RunGetQuery (line 182) | func (fakeDriverCollection) RunGetQuery(context.Context, *driver.Query... type fakeDriverDocumentIterator (line 186) | type fakeDriverDocumentIterator struct method Next (line 190) | func (fakeDriverDocumentIterator) Next(context.Context, driver.Documen... FILE: docstore/driver/actionkind_string.go function _ (line 7) | func _() { constant _ActionKind_name (line 19) | _ActionKind_name = "CreateReplacePutGetDeleteUpdate" method String (line 23) | func (i ActionKind) String() string { FILE: docstore/driver/codec.go type Encoder (line 48) | type Encoder interface function Encode (line 114) | func Encode(v reflect.Value, e Encoder) error { function encode (line 118) | func encode(v reflect.Value, enc Encoder) error { function encodeList (line 211) | func encodeList(v reflect.Value, enc Encoder) error { function encodeMap (line 229) | func encodeMap(v reflect.Value, enc Encoder) error { function stringifyMapKey (line 252) | func stringifyMapKey(k reflect.Value) (string, error) { function encodeStructWithFields (line 274) | func encodeStructWithFields(v reflect.Value, fields fields.List, e Encod... function fieldByIndex (line 301) | func fieldByIndex(v reflect.Value, index []int) (reflect.Value, bool) { type Decoder (line 324) | type Decoder interface function Decode (line 375) | func Decode(v reflect.Value, d Decoder) error { function decode (line 379) | func decode(v reflect.Value, d Decoder) error { function decodeList (line 519) | func decodeList(v reflect.Value, d Decoder) error { function prepareLength (line 561) | func prepareLength(v reflect.Value, wantLen int) error { function decodeMap (line 595) | func decodeMap(v reflect.Value, d Decoder) error { function unstringifyMapKey (line 631) | func unstringifyMapKey(key string, keyType reflect.Type) (reflect.Value,... function decodeStruct (line 673) | func decodeStruct(v reflect.Value, d Decoder) error { function fieldByIndexCreate (line 710) | func fieldByIndexCreate(v reflect.Value, index []int) (reflect.Value, bo... function decodingError (line 726) | func decodingError(v reflect.Value, d Decoder) error { function overflowError (line 730) | func overflowError(x any, t reflect.Type) error { function wrap (line 734) | func wrap(err error, code gcerr.ErrorCode) error { function IsEmptyValue (line 745) | func IsEmptyValue(v reflect.Value) bool { type tagOptions (line 764) | type tagOptions struct function parseTag (line 769) | func parseTag(t reflect.StructTag) (name string, keep bool, other any, e... FILE: docstore/driver/codec_test.go type myString (line 31) | type myString type te (line 33) | type te struct method MarshalText (line 35) | func (e te) MarshalText() ([]byte, error) { method UnmarshalText (line 39) | func (e *te) UnmarshalText(b []byte) error { type special (line 47) | type special method MarshalBinary (line 49) | func (special) MarshalBinary() ([]byte, error) { panic("should never b... method UnmarshalBinary (line 50) | func (*special) UnmarshalBinary([]byte) error { panic("should never b... type badSpecial (line 52) | type badSpecial type Embed1 (line 54) | type Embed1 struct type Embed2 (line 57) | type Embed2 struct type embed3 (line 61) | type embed3 struct type embed4 (line 65) | type embed4 struct type MyStruct (line 69) | type MyStruct struct function TestEncode (line 84) | func TestEncode(t *testing.T) { type badBinaryMarshaler (line 204) | type badBinaryMarshaler struct method MarshalBinary (line 206) | func (badBinaryMarshaler) MarshalBinary() ([]byte, error) { return nil... method UnmarshalBinary (line 207) | func (*badBinaryMarshaler) UnmarshalBinary([]byte) error { return err... type badTextMarshaler (line 209) | type badTextMarshaler struct method MarshalText (line 211) | func (badTextMarshaler) MarshalText() ([]byte, error) { return nil, er... method UnmarshalText (line 212) | func (*badTextMarshaler) UnmarshalText([]byte) error { return errors.... function TestEncodeErrors (line 214) | func TestEncodeErrors(t *testing.T) { type testEncoder (line 237) | type testEncoder struct method EncodeNil (line 241) | func (e *testEncoder) EncodeNil() { e.val = nil } method EncodeBool (line 242) | func (e *testEncoder) EncodeBool(x bool) { e.val = x } method EncodeString (line 243) | func (e *testEncoder) EncodeString(x string) { e.val = x } method EncodeInt (line 244) | func (e *testEncoder) EncodeInt(x int64) { e.val = x } method EncodeUint (line 245) | func (e *testEncoder) EncodeUint(x uint64) { e.val = x } method EncodeFloat (line 246) | func (e *testEncoder) EncodeFloat(x float64) { e.val = x } method EncodeBytes (line 247) | func (e *testEncoder) EncodeBytes(x []byte) { e.val = x } method EncodeSpecial (line 254) | func (e *testEncoder) EncodeSpecial(v reflect.Value) (bool, error) { method ListIndex (line 264) | func (e *testEncoder) ListIndex(int) { panic("impossible") } method MapKey (line 265) | func (e *testEncoder) MapKey(string) { panic("impossible") } method EncodeList (line 267) | func (e *testEncoder) EncodeList(n int) Encoder { method EncodeMap (line 273) | func (e *testEncoder) EncodeMap(n int) Encoder { type listEncoder (line 279) | type listEncoder struct method ListIndex (line 284) | func (e *listEncoder) ListIndex(i int) { e.s[i] = e.val } type mapEncoder (line 286) | type mapEncoder struct method MapKey (line 291) | func (e *mapEncoder) MapKey(k string) { e.m[k] = e.val } function TestDecode (line 293) | func TestDecode(t *testing.T) { function TestDecodeErrors (line 459) | func TestDecodeErrors(t *testing.T) { function TestDecodeFail (line 583) | func TestDecodeFail(t *testing.T) { type testDecoder (line 597) | type testDecoder struct method String (line 602) | func (d testDecoder) String() string { method AsNull (line 606) | func (d testDecoder) AsNull() bool { method AsBool (line 610) | func (d testDecoder) AsBool() (bool, bool) { x, ok := d.val.(bool)... method AsString (line 611) | func (d testDecoder) AsString() (string, bool) { x, ok := d.val.(strin... method AsInt (line 613) | func (d testDecoder) AsInt() (int64, bool) { method AsUint (line 624) | func (d testDecoder) AsUint() (uint64, bool) { method AsFloat (line 635) | func (d testDecoder) AsFloat() (float64, bool) { x, ok := d.val.(float... method AsBytes (line 636) | func (d testDecoder) AsBytes() ([]byte, bool) { x, ok := d.val.([]byt... method ListLen (line 638) | func (d testDecoder) ListLen() (int, bool) { method DecodeList (line 646) | func (d testDecoder) DecodeList(f func(i int, vd Decoder) bool) { method MapLen (line 654) | func (d testDecoder) MapLen() (int, bool) { method DecodeMap (line 661) | func (d testDecoder) DecodeMap(f func(key string, vd Decoder, exactMat... method AsInterface (line 669) | func (d testDecoder) AsInterface() (any, error) { method AsSpecial (line 673) | func (d testDecoder) AsSpecial(v reflect.Value) (bool, any, error) { type failDecoder (line 685) | type failDecoder struct method String (line 687) | func (failDecoder) String() string { ret... method AsNull (line 688) | func (failDecoder) AsNull() bool { ret... method AsBool (line 689) | func (failDecoder) AsBool() (bool, bool) { ret... method AsString (line 690) | func (failDecoder) AsString() (string, bool) { ret... method AsInt (line 691) | func (failDecoder) AsInt() (int64, bool) { ret... method AsUint (line 692) | func (failDecoder) AsUint() (uint64, bool) { ret... method AsFloat (line 693) | func (failDecoder) AsFloat() (float64, bool) { ret... method AsBytes (line 694) | func (failDecoder) AsBytes() ([]byte, bool) { ret... method ListLen (line 695) | func (failDecoder) ListLen() (int, bool) { ret... method DecodeList (line 696) | func (failDecoder) DecodeList(func(i int, vd Decoder) bool) { pan... method MapLen (line 697) | func (failDecoder) MapLen() (int, bool) { ret... method DecodeMap (line 698) | func (failDecoder) DecodeMap(func(string, Decoder, bool) bool) { pan... method AsSpecial (line 699) | func (failDecoder) AsSpecial(v reflect.Value) (bool, any, error) { ret... method AsInterface (line 700) | func (failDecoder) AsInterface() (any, error) { ret... FILE: docstore/driver/compare.go function CompareTimes (line 28) | func CompareTimes(t1, t2 time.Time) int { function CompareNumbers (line 47) | func CompareNumbers(n1, n2 any) (int, error) { function toBigFloat (line 67) | func toBigFloat(x reflect.Value) (*big.Float, error) { FILE: docstore/driver/compare_test.go function TestCompareTimes (line 23) | func TestCompareTimes(t *testing.T) { function TestCompareNumbers (line 41) | func TestCompareNumbers(t *testing.T) { FILE: docstore/driver/document.go type Document (line 27) | type Document struct method GetField (line 63) | func (d Document) GetField(field string) (any, error) { method getDocument (line 80) | func (d Document) getDocument(fp []string, create bool) (Document, err... method Get (line 104) | func (d Document) Get(fp []string) (any, error) { method structField (line 112) | func (d Document) structField(name string) (reflect.Value, error) { method Set (line 129) | func (d Document) Set(fp []string, val any) error { method SetField (line 138) | func (d Document) SetField(field string, value any) error { method FieldNames (line 156) | func (d Document) FieldNames() []string { method Encode (line 171) | func (d Document) Encode(e Encoder) error { method Decode (line 179) | func (d Document) Decode(dec Decoder) error { method HasField (line 187) | func (d Document) HasField(field string) bool { method HasFieldFold (line 193) | func (d Document) HasFieldFold(field string) bool { method hasField (line 197) | func (d Document) hasField(field string, exactMatch bool) bool { function NewDocument (line 36) | func NewDocument(doc any) (Document, error) { FILE: docstore/driver/document_test.go type S (line 27) | type S struct function TestNewDocument (line 32) | func TestNewDocument(t *testing.T) { function TestGet (line 66) | func TestGet(t *testing.T) { function TestSet (line 103) | func TestSet(t *testing.T) { function TestGetField (line 143) | func TestGetField(t *testing.T) { function TestFieldNames (line 183) | func TestFieldNames(t *testing.T) { function TestHasField (line 218) | func TestHasField(t *testing.T) { function TestHasFieldFold (line 258) | func TestHasFieldFold(t *testing.T) { FILE: docstore/driver/driver.go type Collection (line 27) | type Collection interface type DeleteQueryer (line 102) | type DeleteQueryer interface type UpdateQueryer (line 109) | type UpdateQueryer interface type ActionKind (line 114) | type ActionKind constant Create (line 118) | Create ActionKind = iota constant Replace (line 119) | Replace constant Put (line 120) | Put constant Get (line 121) | Get constant Delete (line 122) | Delete constant Update (line 123) | Update type Action (line 128) | type Action struct type Mod (line 142) | type Mod struct type IncOp (line 148) | type IncOp struct type ActionListError (line 154) | type ActionListError function NewActionListError (line 162) | func NewActionListError(errs []error) ActionListError { type RunActionsOptions (line 176) | type RunActionsOptions struct type Query (line 185) | type Query struct type Filter (line 220) | type Filter struct type DocumentIterator (line 227) | type DocumentIterator interface constant EqualOp (line 245) | EqualOp = "=" FILE: docstore/driver/util.go function UniqueString (line 27) | func UniqueString() string { return uuid.New().String() } function SplitActions (line 35) | func SplitActions(actions []*Action, split func(a, b *Action) bool) [][]... function GroupActions (line 58) | func GroupActions(actions []*Action) (beforeGets, getList, writeList, wr... function AsFunc (line 111) | func AsFunc(val any) func(any) bool { function GroupByFieldPath (line 129) | func GroupByFieldPath(gets []*Action) [][]*Action { function fpsEqual (line 150) | func fpsEqual(fps1, fps2 [][]string) bool { function FieldPathsEqual (line 164) | func FieldPathsEqual(fp1, fp2 []string) bool { function FieldPathEqualsField (line 178) | func FieldPathEqualsField(fp []string, s string) bool { type Throttle (line 184) | type Throttle struct method Acquire (line 204) | func (t *Throttle) Acquire() { method Release (line 212) | func (t *Throttle) Release() { method Wait (line 221) | func (t *Throttle) Wait() { function NewThrottle (line 192) | func NewThrottle(max int) *Throttle { FILE: docstore/driver/util_test.go function TestSplitActions (line 25) | func TestSplitActions(t *testing.T) { function TestGroupActions (line 75) | func TestGroupActions(t *testing.T) { method String (line 155) | func (a *Action) String() string { // for TestGroupActions function TestAsFunc (line 159) | func TestAsFunc(t *testing.T) { function TestGroupByFieldPath (line 176) | func TestGroupByFieldPath(t *testing.T) { FILE: docstore/drivertest/driverbenchmark.go function RunBenchmarks (line 28) | func RunBenchmarks(b *testing.B, coll *docstore.Collection) { function benchmarkSingleActionPut (line 48) | func benchmarkSingleActionPut(b *testing.B, n int, coll *docstore.Collec... function benchmarkSingleActionGet (line 69) | func benchmarkSingleActionGet(b *testing.B, n int, coll *docstore.Collec... function benchmarkActionListPut (line 97) | func benchmarkActionListPut(b *testing.B, n int, coll *docstore.Collecti... function benchmarkActionListGet (line 120) | func benchmarkActionListGet(b *testing.B, n int, coll *docstore.Collecti... FILE: docstore/drivertest/drivertest.go type ByteArray (line 42) | type ByteArray type CollectionKind (line 45) | type CollectionKind constant SingleKey (line 50) | SingleKey CollectionKind = iota constant TwoKey (line 55) | TwoKey constant AltRev (line 59) | AltRev constant NoRev (line 62) | NoRev type Harness (line 67) | type Harness interface type HarnessMaker (line 94) | type HarnessMaker type UnsupportedType (line 101) | type UnsupportedType constant Uint (line 108) | Uint UnsupportedType = iota constant Arrays (line 110) | Arrays constant NanosecondTimes (line 112) | NanosecondTimes constant BinarySet (line 114) | BinarySet type CodecTester (line 119) | type CodecTester interface type AsTest (line 128) | type AsTest interface type verifyAsFailsOnNil (line 140) | type verifyAsFailsOnNil struct method Name (line 142) | func (verifyAsFailsOnNil) Name() string { method CollectionCheck (line 146) | func (verifyAsFailsOnNil) CollectionCheck(coll *docstore.Collection) e... method QueryCheck (line 153) | func (verifyAsFailsOnNil) QueryCheck(it *docstore.DocumentIterator) er... method ErrorCheck (line 160) | func (v verifyAsFailsOnNil) ErrorCheck(c *docstore.Collection, err err... function RunConformanceTests (line 171) | func RunConformanceTests(t *testing.T, newHarness HarnessMaker, ct Codec... function withCollection (line 219) | func withCollection(t *testing.T, newHarness HarnessMaker, kind Collecti... function withRevCollections (line 235) | func withRevCollections(t *testing.T, newHarness HarnessMaker, f func(*t... function withColl (line 266) | func withColl(t *testing.T, h Harness, kind CollectionKind, f func(*test... constant KeyField (line 281) | KeyField = "name" constant AlternateRevisionField (line 285) | AlternateRevisionField = "Etag" function newDoc (line 289) | func newDoc(doc any) any { function key (line 299) | func key(doc any) any { function setKey (line 309) | func setKey(doc, key any) { function revision (line 318) | func revision(doc any, revField string) any { function setRevision (line 331) | func setRevision(doc, rev any, revField string) { type docstruct (line 344) | type docstruct struct function nonexistentDoc (line 357) | func nonexistentDoc() docmap { return docmap{KeyField: "doesNotExist"} } function testCreate (line 359) | func testCreate(t *testing.T, coll *docstore.Collection, revField string) { function testPut (line 422) | func testPut(t *testing.T, coll *docstore.Collection, revField string) { function testReplace (line 515) | func testReplace(t *testing.T, coll *docstore.Collection, revField strin... function checkNoRevisionField (line 565) | func checkNoRevisionField(t *testing.T, doc any, revField string) { function checkHasRevisionField (line 577) | func checkHasRevisionField(t *testing.T, doc any, revField string) { function testGet (line 589) | func testGet(t *testing.T, coll *docstore.Collection, revField string) { function testDelete (line 698) | func testDelete(t *testing.T, coll *docstore.Collection, revField string) { function testUpdate (line 756) | func testUpdate(t *testing.T, coll *docstore.Collection, revField string) { function testRevisionField (line 868) | func testRevisionField(t *testing.T, coll *docstore.Collection, revField... function testSerializeRevision (line 913) | func testSerializeRevision(t *testing.T, h Harness, coll *docstore.Colle... function testData (line 939) | func testData(t *testing.T, _ Harness, coll *docstore.Collection) { function testTypeDrivenDecode (line 988) | func testTypeDrivenDecode(t *testing.T, ct CodecTester) { function testBlindDecode (line 1122) | func testBlindDecode(t *testing.T, ct CodecTester) { function testBlindDecode1 (line 1132) | func testBlindDecode1(t *testing.T, encode func(any) (any, error), decod... type docstoreRoundTrip (line 1201) | type docstoreRoundTrip struct type nativeMinimal (line 1223) | type nativeMinimal struct function testProto (line 1243) | func testProto(t *testing.T, _ Harness, coll *docstore.Collection) { type HighScore (line 1280) | type HighScore struct method key (line 1304) | func (h *HighScore) key() string { method String (line 1315) | func (h *HighScore) String() string { function newHighScore (line 1289) | func newHighScore() any { return &HighScore{} } function HighScoreKey (line 1293) | func HighScoreKey(doc docstore.Document) any { function barConcat (line 1311) | func barConcat(a, b any) string { return fmt.Sprintf("%v|%v", a, b) } function highScoreLess (line 1313) | func highScoreLess(h1, h2 *HighScore) bool { return h1.key() < h2.key() } function date (line 1319) | func date(month, day int) time.Time { constant game1 (line 1324) | game1 = "Praise All Monsters" constant game2 (line 1325) | game2 = "Zombie DMV" constant game3 (line 1326) | game3 = "Days Gone" function addHighScores (line 1340) | func addHighScores(t *testing.T, coll *docstore.Collection) { function testGetQueryKeyField (line 1353) | func testGetQueryKeyField(t *testing.T, coll *docstore.Collection, revFi... function sortByKeyField (line 1393) | func sortByKeyField(d1, d2 docmap) bool { return d1[KeyField].(string) <... function testActionsWithCompositeID (line 1397) | func testActionsWithCompositeID(t *testing.T, _ Harness, coll *docstore.... function testGetQuery (line 1429) | func testGetQuery(t *testing.T, _ Harness, coll *docstore.Collection) { function filterHighScores (line 1710) | func filterHighScores(hs []*HighScore, f func(*HighScore) bool) []*HighS... function ClearCollection (line 1722) | func ClearCollection(fataler interface { function forEach (line 1748) | func forEach(ctx context.Context, iter *docstore.DocumentIterator, creat... function mustCollect (line 1765) | func mustCollect(ctx context.Context, t *testing.T, iter *docstore.Docum... function mustCollectHighScores (line 1777) | func mustCollectHighScores(ctx context.Context, t *testing.T, iter *docs... function collectHighScores (line 1787) | func collectHighScores(ctx context.Context, iter *docstore.DocumentItera... function testMultipleActions (line 1796) | func testMultipleActions(t *testing.T, coll *docstore.Collection, revFie... function testAtomicWrites (line 1913) | func testAtomicWrites(t *testing.T, coll *docstore.Collection, revField ... function testAtomicWritesFail (line 1996) | func testAtomicWritesFail(t *testing.T, coll *docstore.Collection, revFi... function testActionsOnStructNoRev (line 2075) | func testActionsOnStructNoRev(t *testing.T, _ Harness, coll *docstore.Co... function testExampleInDoc (line 2107) | func testExampleInDoc(t *testing.T, _ Harness, coll *docstore.Collection) { function testBeforeDo (line 2176) | func testBeforeDo(t *testing.T, newHarness HarnessMaker) { function testBeforeQuery (line 2241) | func testBeforeQuery(t *testing.T, newHarness HarnessMaker) { function testAs (line 2283) | func testAs(t *testing.T, coll *docstore.Collection, st AsTest) { function clone (line 2330) | func clone(m docmap) docmap { function cmpDiff (line 2336) | func cmpDiff(a, b any, opts ...cmp.Option) string { function checkCode (line 2341) | func checkCode(t *testing.T, err error, code gcerrors.ErrorCode) { FILE: docstore/drivertest/util.go function MakeUniqueStringDeterministicForTesting (line 29) | func MakeUniqueStringDeterministicForTesting(seed int64) { type randReader (line 34) | type randReader struct method Read (line 39) | func (r *randReader) Read(buf []byte) (int, error) { function MustDocument (line 46) | func MustDocument(doc any) driver.Document { FILE: docstore/example_test.go type Player (line 33) | type Player struct function ExampleCollection_Actions_bulkWrite (line 39) | func ExampleCollection_Actions_bulkWrite() { function ExampleCollection_Actions_getAfterWrite (line 57) | func ExampleCollection_Actions_getAfterWrite() { function ExampleCollection_Update (line 74) | func ExampleCollection_Update() { function ExampleOpenCollection (line 100) | func ExampleOpenCollection() { function ExampleCollection_As (line 114) | func ExampleCollection_As() { function ExampleCollection_ErrorAs (line 142) | func ExampleCollection_ErrorAs() { function ExampleQuery_Get (line 169) | func ExampleQuery_Get() { function ExampleQuery_Get_full (line 193) | func ExampleQuery_Get_full() { function Example_optimisticLocking (line 233) | func Example_optimisticLocking() { FILE: docstore/gcpfirestore/codec.go function encodeDoc (line 34) | func encodeDoc(doc driver.Document, nameField string) (*pb.Document, err... function encodeValue (line 50) | func encodeValue(x any) (*pb.Value, error) { type encoder (line 59) | type encoder struct method EncodeNil (line 65) | func (e *encoder) EncodeNil() { e.pv = nullValue } method EncodeBool (line 66) | func (e *encoder) EncodeBool(x bool) { e.pv = &pb.Value{ValueType:... method EncodeInt (line 67) | func (e *encoder) EncodeInt(x int64) { e.pv = &pb.Value{ValueType:... method EncodeUint (line 68) | func (e *encoder) EncodeUint(x uint64) { e.pv = &pb.Value{ValueType:... method EncodeBytes (line 69) | func (e *encoder) EncodeBytes(x []byte) { e.pv = &pb.Value{ValueType:... method EncodeFloat (line 70) | func (e *encoder) EncodeFloat(x float64) { e.pv = floatval(x) } method EncodeString (line 71) | func (e *encoder) EncodeString(x string) { e.pv = &pb.Value{ValueType:... method ListIndex (line 73) | func (e *encoder) ListIndex(int) { panic("impossible") } method MapKey (line 74) | func (e *encoder) MapKey(string) { panic("impossible") } method EncodeList (line 76) | func (e *encoder) EncodeList(n int) driver.Encoder { method EncodeMap (line 82) | func (e *encoder) EncodeMap(n int) driver.Encoder { method EncodeSpecial (line 96) | func (e *encoder) EncodeSpecial(v reflect.Value) (bool, error) { type listEncoder (line 121) | type listEncoder struct method ListIndex (line 126) | func (e *listEncoder) ListIndex(i int) { e.s[i] = e.pv } type mapEncoder (line 128) | type mapEncoder struct method MapKey (line 133) | func (e *mapEncoder) MapKey(k string) { e.m[k] = e.pv } function floatval (line 135) | func floatval(x float64) *pb.Value { return &pb.Value{ValueType: &pb.Val... function decodeDoc (line 140) | func decodeDoc(pdoc *pb.Document, ddoc driver.Document, nameField, revFi... type decoder (line 158) | type decoder struct method String (line 162) | func (d decoder) String() string { // for debugging method AsNull (line 166) | func (d decoder) AsNull() bool { method AsBool (line 171) | func (d decoder) AsBool() (bool, bool) { method AsString (line 178) | func (d decoder) AsString() (string, bool) { method AsInt (line 185) | func (d decoder) AsInt() (int64, bool) { method AsUint (line 192) | func (d decoder) AsUint() (uint64, bool) { method AsFloat (line 199) | func (d decoder) AsFloat() (float64, bool) { method AsBytes (line 206) | func (d decoder) AsBytes() ([]byte, bool) { method AsInterface (line 214) | func (d decoder) AsInterface() (any, error) { method ListLen (line 265) | func (d decoder) ListLen() (int, bool) { method DecodeList (line 273) | func (d decoder) DecodeList(f func(int, driver.Decoder) bool) { method MapLen (line 281) | func (d decoder) MapLen() (int, bool) { method DecodeMap (line 289) | func (d decoder) DecodeMap(f func(string, driver.Decoder, bool) bool) { method AsSpecial (line 297) | func (d decoder) AsSpecial(v reflect.Value) (bool, any, error) { function decodeValue (line 218) | func decodeValue(v *pb.Value) (any, error) { FILE: docstore/gcpfirestore/codec_test.go function TestCodecSpecial (line 31) | func TestCodecSpecial(t *testing.T) { FILE: docstore/gcpfirestore/example_test.go function ExampleOpenCollection (line 26) | func ExampleOpenCollection() { function ExampleOpenCollectionWithNameFunc (line 47) | func ExampleOpenCollectionWithNameFunc() { function Example_openCollectionFromURL (line 79) | func Example_openCollectionFromURL() { FILE: docstore/gcpfirestore/fs.go function Dial (line 97) | func Dial(ctx context.Context, ts gcp.TokenSource) (*vkit.Client, func()... type collection (line 124) | type collection struct method Key (line 234) | func (c *collection) Key(doc driver.Document) (any, error) { method RevisionField (line 261) | func (c *collection) RevisionField() string { method RunActions (line 266) | func (c *collection) RunActions(ctx context.Context, actions []*driver... method runGets (line 300) | func (c *collection) runGets(ctx context.Context, actions []*driver.Ac... method batchGet (line 308) | func (c *collection) batchGet(ctx context.Context, gets []*driver.Acti... method newGetRequest (line 363) | func (c *collection) newGetRequest(gets []*driver.Action) (*pb.BatchGe... method buildCommitCalls (line 388) | func (c *collection) buildCommitCalls(actions []*driver.Action, errs [... method buildAtomicWritesCommitCall (line 420) | func (c *collection) buildAtomicWritesCommitCall(actions []*driver.Act... method actionToWrites (line 437) | func (c *collection) actionToWrites(a *driver.Action) ([]*pb.Write, st... method putWrite (line 494) | func (c *collection) putWrite(doc driver.Document, docName string, pc ... method deleteWrite (line 506) | func (c *collection) deleteWrite(doc driver.Document, docName string) ... method updateWrites (line 519) | func (c *collection) updateWrites(doc driver.Document, docName string,... method doCommitCall (line 603) | func (c *collection) doCommitCall(ctx context.Context, call *commitCal... method commit (line 650) | func (c *collection) commit(ctx context.Context, ws []*pb.Write, opts ... method revisionPrecondition (line 744) | func (c *collection) revisionPrecondition(doc driver.Document) (*pb.Pr... method revisionTimestamp (line 754) | func (c *collection) revisionTimestamp(doc driver.Document) (*tspb.Tim... method ErrorCode (line 778) | func (c *collection) ErrorCode(err error) gcerrors.ErrorCode { method RevisionToBytes (line 796) | func (c *collection) RevisionToBytes(rev any) ([]byte, error) { method BytesToRevision (line 805) | func (c *collection) BytesToRevision(b []byte) (any, error) { method As (line 813) | func (c *collection) As(i any) bool { method ErrorAs (line 823) | func (c *collection) ErrorAs(err error, i any) bool { method Close (line 837) | func (c *collection) Close() error { return nil } type Options (line 134) | type Options struct function CollectionResourceID (line 150) | func CollectionResourceID(projectID, collPath string) string { function CollectionResourceIDWithDatabase (line 156) | func CollectionResourceIDWithDatabase(projectID, databaseID, collPath st... function OpenCollection (line 170) | func OpenCollection(client *vkit.Client, collResourceID, nameField strin... function OpenCollectionWithNameFunc (line 196) | func OpenCollectionWithNameFunc(client *vkit.Client, collResourceID stri... function newCollection (line 206) | func newCollection(client *vkit.Client, collResourceID, nameField string... type commitCall (line 381) | type commitCall struct function newUpdateWrites (line 531) | func newUpdateWrites(docPath string, ts *tspb.Timestamp, fields map[stri... function processMods (line 568) | func processMods(mods []driver.Mod) (fields map[string]*pb.Value, maskPa... function hasFollowingTransform (line 635) | func hasFollowingTransform(writes []*pb.Write, i int) bool { function setAtFieldPath (line 675) | func setAtFieldPath(m map[string]*pb.Value, fp []string, val *pb.Value) ... function getParentMap (line 689) | func getParentMap(m map[string]*pb.Value, fp []string, create bool) (map... function toServiceFieldPath (line 712) | func toServiceFieldPath(fp []string) string { function toServiceFieldPathComponent (line 726) | func toServiceFieldPathComponent(key string) string { function preconditionFromTimestamp (line 771) | func preconditionFromTimestamp(ts *tspb.Timestamp) *pb.Precondition { constant resourcePrefixHeader (line 784) | resourcePrefixHeader = "google-cloud-resource-prefix" function withResourceHeader (line 788) | func withResourceHeader(ctx context.Context, resource string) context.Co... FILE: docstore/gcpfirestore/fs_test.go constant projectID (line 36) | projectID = "go-cloud-test-216917" constant collectionName1 (line 37) | collectionName1 = "docstore-test-1" constant collectionName2 (line 38) | collectionName2 = "docstore-test-2" constant collectionName3 (line 39) | collectionName3 = "docstore-test-3" constant endPoint (line 40) | endPoint = "firestore.googleapis.com:443" type harness (line 43) | type harness struct method SupportsAtomicWrites (line 48) | func (h *harness) SupportsAtomicWrites() bool { method MakeCollection (line 64) | func (h *harness) MakeCollection(_ context.Context, kind drivertest.Co... method BeforeDoTypes (line 81) | func (*harness) BeforeDoTypes() []any { method BeforeQueryTypes (line 85) | func (*harness) BeforeQueryTypes() []any { method RevisionsEqual (line 89) | func (*harness) RevisionsEqual(rev1, rev2 any) bool { method Close (line 93) | func (h *harness) Close() { function newHarness (line 52) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... type codecTester (line 99) | type codecTester struct method UnsupportedTypes (line 103) | func (*codecTester) UnsupportedTypes() []drivertest.UnsupportedType { method NativeEncode (line 107) | func (c *codecTester) NativeEncode(x any) (any, error) { method NativeDecode (line 111) | func (c *codecTester) NativeDecode(value, dest any) error { method DocstoreEncode (line 115) | func (c *codecTester) DocstoreEncode(x any) (any, error) { method DocstoreDecode (line 126) | func (c *codecTester) DocstoreDecode(value, dest any) error { type verifyAs (line 133) | type verifyAs struct method Name (line 135) | func (verifyAs) Name() string { method CollectionCheck (line 139) | func (verifyAs) CollectionCheck(coll *docstore.Collection) error { method QueryCheck (line 147) | func (verifyAs) QueryCheck(it *docstore.DocumentIterator) error { method ErrorCheck (line 156) | func (v verifyAs) ErrorCheck(c *docstore.Collection, err error) error { function TestConformance (line 164) | func TestConformance(t *testing.T) { function BenchmarkConformance (line 173) | func BenchmarkConformance(b *testing.B) { function TestResourceIDRegexp (line 188) | func TestResourceIDRegexp(t *testing.T) { FILE: docstore/gcpfirestore/native_codec_test.go type nativeCodec (line 37) | type nativeCodec struct method interceptUnary (line 76) | func (c *nativeCodec) interceptUnary(_ context.Context, method string,... method interceptStream (line 85) | func (c *nativeCodec) interceptStream(ctx context.Context, desc *grpc.... method Encode (line 113) | func (c *nativeCodec) Encode(x any) (*pb.Document, error) { method Decode (line 122) | func (c *nativeCodec) Decode(value *pb.Document, dest any) error { function newNativeCodec (line 42) | func newNativeCodec() (*nativeCodec, error) { type clientStream (line 90) | type clientStream struct method RecvMsg (line 95) | func (cs *clientStream) RecvMsg(m any) error { method Context (line 106) | func (cs *clientStream) Context() context.Context { return cs.ctx } method SendMsg (line 107) | func (cs *clientStream) SendMsg(m any) error { return nil } method Header (line 108) | func (cs *clientStream) Header() (metadata.MD, error) { return nil, nil } method Trailer (line 109) | func (cs *clientStream) Trailer() metadata.MD { return nil } method CloseSend (line 110) | func (cs *clientStream) CloseSend() error { return nil } function TestNativeCodec (line 131) | func TestNativeCodec(t *testing.T) { FILE: docstore/gcpfirestore/query.go method RunGetQuery (line 35) | func (c *collection) RunGetQuery(ctx context.Context, q *driver.Query) (... method newDocIterator (line 39) | func (c *collection) newDocIterator(ctx context.Context, q *driver.Query... type docIterator (line 71) | type docIterator struct method Next (line 81) | func (it *docIterator) Next(ctx context.Context, doc driver.Document) ... method nextResponse (line 89) | func (it *docIterator) nextResponse(ctx context.Context) (*pb.RunQuery... method evaluateLocalFilters (line 110) | func (it *docIterator) evaluateLocalFilters(pdoc *pb.Document) (bool, ... method Stop (line 190) | func (it *docIterator) Stop() { it.cancel() } method As (line 192) | func (it *docIterator) As(i any) bool { function evaluateFilter (line 131) | func evaluateFilter(f driver.Filter, doc driver.Document) bool { function applyComparison (line 173) | func applyComparison(op string, c int) bool { method queryToProto (line 203) | func (c *collection) queryToProto(q *driver.Query) (*pb.StructuredQuery,... function splitFilters (line 273) | func splitFilters(fs []driver.Filter) (sendToFirestore, evaluateLocally ... method filterToProto (line 292) | func (c *collection) filterToProto(f driver.Filter) (*pb.StructuredQuery... function unaryOpFor (line 326) | func unaryOpFor(value any) (pb.StructuredQuery_UnaryFilter_Operator, boo... function isNaN (line 337) | func isNaN(x any) bool { function fieldRef (line 348) | func fieldRef(fp []string) *pb.StructuredQuery_FieldReference { function newFieldFilter (line 352) | func newFieldFilter(fp []string, op string, val *pb.Value) (*pb.Structur... method QueryPlan (line 386) | func (c *collection) QueryPlan(q *driver.Query) (string, error) { FILE: docstore/gcpfirestore/query_test.go function TestFilterToProto (line 29) | func TestFilterToProto(t *testing.T) { function TestSplitFilters (line 88) | func TestSplitFilters(t *testing.T) { function TestEvaluateFilter (line 145) | func TestEvaluateFilter(t *testing.T) { FILE: docstore/gcpfirestore/urls.go function init (line 31) | func init() { type lazyCredsOpener (line 35) | type lazyCredsOpener struct method OpenCollectionURL (line 41) | func (o *lazyCredsOpener) OpenCollectionURL(ctx context.Context, u *ur... constant Scheme (line 68) | Scheme = "firestore" type URLOpener (line 82) | type URLOpener struct method OpenCollectionURL (line 89) | func (o *URLOpener) OpenCollectionURL(ctx context.Context, u *url.URL)... FILE: docstore/gcpfirestore/urls_test.go function TestOpenCollectionFromURL (line 25) | func TestOpenCollectionFromURL(t *testing.T) { FILE: docstore/internal/fields/fields.go type Field (line 75) | type Field struct type ParseTagFunc (line 89) | type ParseTagFunc type ValidateFunc (line 93) | type ValidateFunc type LeafTypesFunc (line 97) | type LeafTypesFunc type Cache (line 102) | type Cache struct method Fields (line 171) | func (c *Cache) Fields(t reflect.Type) (List, error) { method cachedTypeFields (line 228) | func (c *Cache) cachedTypeFields(t reflect.Type) (List, error) { method typeFields (line 245) | func (c *Cache) typeFields(t reflect.Type) ([]Field, error) { method listFields (line 277) | func (c *Cache) listFields(t reflect.Type) ([]Field, error) { function NewCache (line 121) | func NewCache(parseTag ParseTagFunc, validate ValidateFunc, leafTypes Le... type fieldScan (line 146) | type fieldScan struct type List (line 179) | type List method MatchExact (line 183) | func (l List) MatchExact(name string) *Field { method MatchExactBytes (line 188) | func (l List) MatchExactBytes(name []byte) *Field { method MatchFold (line 201) | func (l List) MatchFold(name string) *Field { method MatchFoldBytes (line 206) | func (l List) MatchFoldBytes(name []byte) *Field { type cacheValue (line 220) | type cacheValue struct function newField (line 396) | func newField(f reflect.StructField, tagName string, other any, index []... type byName (line 419) | type byName method Len (line 421) | func (x byName) Len() int { return len(x) } method Swap (line 423) | func (x byName) Swap(i, j int) { x[i], x[j] = x[j], x[i] } method Less (line 425) | func (x byName) Less(i, j int) bool { type byIndex (line 439) | type byIndex method Len (line 441) | func (x byIndex) Len() int { return len(x) } method Swap (line 443) | func (x byIndex) Swap(i, j int) { x[i], x[j] = x[j], x[i] } method Less (line 445) | func (x byIndex) Less(i, j int) bool { function dominantField (line 465) | func dominantField(fs []Field) (Field, bool) { function ParseStandardTag (line 484) | func ParseStandardTag(key string, t reflect.StructTag) (name string, kee... FILE: docstore/internal/fields/fields_test.go type embed1 (line 28) | type embed1 struct type embed2 (line 35) | type embed2 struct type embed3 (line 41) | type embed3 struct type embed4 (line 46) | type embed4 struct type embed5 (line 52) | type embed5 struct type Anonymous (line 56) | type Anonymous type S1 (line 58) | type S1 struct type Time (line 67) | type Time struct function field (line 73) | func field(name string, tval any, index ...int) *Field { function tfield (line 82) | func tfield(name string, tval any, index ...int) *Field { function TestFieldsNoTags (line 92) | func TestFieldsNoTags(t *testing.T) { function TestAgainstJSONEncodingNoTags (line 113) | func TestAgainstJSONEncodingNoTags(t *testing.T) { function TestAgainstJSONEncodingEmbeddedTime (line 159) | func TestAgainstJSONEncodingEmbeddedTime(t *testing.T) { type S2 (line 182) | type S2 struct type Embed (line 195) | type Embed struct type tEmbed1 (line 199) | type tEmbed1 struct type tEmbed2 (line 204) | type tEmbed2 struct function jsonTagParser (line 209) | func jsonTagParser(t reflect.StructTag) (name string, keep bool, other a... function validateFunc (line 214) | func validateFunc(t reflect.Type) (err error) { function TestFieldsWithTags (line 228) | func TestFieldsWithTags(t *testing.T) { function TestAgainstJSONEncodingWithTags (line 247) | func TestAgainstJSONEncodingWithTags(t *testing.T) { function TestUnexportedAnonymousNonStruct (line 278) | func TestUnexportedAnonymousNonStruct(t *testing.T) { function TestUnexportedAnonymousStruct (line 301) | func TestUnexportedAnonymousStruct(t *testing.T) { function TestDominantField (line 320) | func TestDominantField(t *testing.T) { function TestIgnore (line 349) | func TestIgnore(t *testing.T) { function TestParsedTag (line 363) | func TestParsedTag(t *testing.T) { function TestValidateFunc (line 382) | func TestValidateFunc(t *testing.T) { function compareFields (line 403) | func compareFields(got []Field, want []*Field) (msg string, ok bool) { function fieldsEqual (line 417) | func fieldsEqual(f1, f2 *Field) bool { function setFields (line 430) | func setFields(fields []Field, dst, src any) { function jsonRoundTrip (line 440) | func jsonRoundTrip(t *testing.T, in, out any) { type S3 (line 452) | type S3 struct type S4 (line 461) | type S4 struct function TestMatchExact (line 466) | func TestMatchExact(t *testing.T) { function TestMatchFold (line 494) | func TestMatchFold(t *testing.T) { function TestAgainstJSONMatchingField (line 525) | func TestAgainstJSONMatchingField(t *testing.T) { function TestTagErrors (line 562) | func TestTagErrors(t *testing.T) { FILE: docstore/internal/fields/fold.go constant caseMask (line 26) | caseMask = ^byte(0x20) constant kelvin (line 27) | kelvin = '\u212a' constant smallLongEss (line 28) | smallLongEss = '\u017f' function foldFunc (line 47) | func foldFunc(s []byte) func(s, t []byte) bool { function equalFoldRight (line 75) | func equalFoldRight(s, t []byte) bool { function asciiEqualFold (line 120) | func asciiEqualFold(s, t []byte) bool { function simpleLetterEqualFold (line 144) | func simpleLetterEqualFold(s, t []byte) bool { FILE: docstore/internal/fields/fold_test.go function TestFold (line 55) | func TestFold(t *testing.T) { function TestFoldAgainstUnicode (line 67) | func TestFoldAgainstUnicode(t *testing.T) { function isASCIILetter (line 127) | func isASCIILetter(b byte) bool { FILE: docstore/memdocstore/codec.go function encodeDoc (line 28) | func encodeDoc(doc driver.Document) (storedDoc, error) { function encodeValue (line 36) | func encodeValue(v any) (any, error) { type encoder (line 44) | type encoder struct method EncodeNil (line 48) | func (e *encoder) EncodeNil() { e.val = nil } method EncodeBool (line 49) | func (e *encoder) EncodeBool(x bool) { e.val = x } method EncodeInt (line 50) | func (e *encoder) EncodeInt(x int64) { e.val = x } method EncodeUint (line 51) | func (e *encoder) EncodeUint(x uint64) { e.val = int64(x) } method EncodeBytes (line 52) | func (e *encoder) EncodeBytes(x []byte) { e.val = x } method EncodeFloat (line 53) | func (e *encoder) EncodeFloat(x float64) { e.val = x } method EncodeString (line 54) | func (e *encoder) EncodeString(x string) { e.val = x } method ListIndex (line 55) | func (e *encoder) ListIndex(int) { panic("impossible") } method MapKey (line 56) | func (e *encoder) MapKey(string) { panic("impossible") } method EncodeSpecial (line 60) | func (e *encoder) EncodeSpecial(v reflect.Value) (bool, error) { method EncodeList (line 68) | func (e *encoder) EncodeList(n int) driver.Encoder { method EncodeMap (line 87) | func (e *encoder) EncodeMap(n int) driver.Encoder { type listEncoder (line 75) | type listEncoder struct method ListIndex (line 80) | func (e *listEncoder) ListIndex(i int) { e.s[i] = e.val } type mapEncoder (line 82) | type mapEncoder struct method MapKey (line 93) | func (e *mapEncoder) MapKey(k string) { e.m[k] = e.val } function decodeDoc (line 98) | func decodeDoc(m storedDoc, ddoc driver.Document, fps [][]string) error { type decoder (line 122) | type decoder struct method String (line 126) | func (d decoder) String() string { method AsNull (line 130) | func (d decoder) AsNull() bool { method AsBool (line 134) | func (d decoder) AsBool() (bool, bool) { method AsString (line 139) | func (d decoder) AsString() (string, bool) { method AsInt (line 144) | func (d decoder) AsInt() (int64, bool) { method AsUint (line 149) | func (d decoder) AsUint() (uint64, bool) { method AsFloat (line 154) | func (d decoder) AsFloat() (float64, bool) { method AsBytes (line 159) | func (d decoder) AsBytes() ([]byte, bool) { method AsInterface (line 164) | func (d decoder) AsInterface() (any, error) { method ListLen (line 168) | func (d decoder) ListLen() (int, bool) { method DecodeList (line 175) | func (d decoder) DecodeList(f func(i int, d2 driver.Decoder) bool) { method MapLen (line 183) | func (d decoder) MapLen() (int, bool) { method DecodeMap (line 190) | func (d decoder) DecodeMap(f func(key string, d2 driver.Decoder, _ boo... method AsSpecial (line 198) | func (d decoder) AsSpecial(v reflect.Value) (bool, any, error) { FILE: docstore/memdocstore/codec_test.go type aStruct (line 25) | type aStruct struct type embed (line 36) | type embed struct function TestEncodeDoc (line 40) | func TestEncodeDoc(t *testing.T) { function TestDecodeDoc (line 99) | func TestDecodeDoc(t *testing.T) { FILE: docstore/memdocstore/example_test.go function ExampleOpenCollection (line 25) | func ExampleOpenCollection() { function ExampleOpenCollectionWithKeyFunc (line 37) | func ExampleOpenCollectionWithKeyFunc() { function Example_openCollectionFromURL (line 60) | func Example_openCollectionFromURL() { FILE: docstore/memdocstore/mem.go type Options (line 59) | type Options struct function OpenCollection (line 90) | func OpenCollection(keyField string, opts *Options) (*docstore.Collectio... function OpenCollectionWithKeyFunc (line 106) | func OpenCollectionWithKeyFunc(keyFunc func(docstore.Document) any, opts... function newCollection (line 114) | func newCollection(keyField string, keyFunc func(docstore.Document) any,... type storedDoc (line 145) | type storedDoc type collection (line 147) | type collection struct method Key (line 156) | func (c *collection) Key(doc driver.Document) (any, error) { method RevisionField (line 168) | func (c *collection) RevisionField() string { method ErrorCode (line 173) | func (c *collection) ErrorCode(err error) gcerrors.ErrorCode { method RunActions (line 178) | func (c *collection) RunActions(ctx context.Context, actions []*driver... method runAtomicWrites (line 219) | func (c *collection) runAtomicWrites(ctx context.Context, actions []*d... method runAction (line 277) | func (c *collection) runAction(ctx context.Context, a *driver.Action) ... method executeAction (line 318) | func (c *collection) executeAction(a *driver.Action, current storedDoc... method update (line 370) | func (c *collection) update(doc storedDoc, mods []driver.Mod) error { method changeRevision (line 453) | func (c *collection) changeRevision(doc storedDoc) { method checkRevision (line 458) | func (c *collection) checkRevision(arg driver.Document, current stored... method RevisionToBytes (line 555) | func (c *collection) RevisionToBytes(rev any) ([]byte, error) { method BytesToRevision (line 564) | func (c *collection) BytesToRevision(b []byte) (any, error) { method As (line 569) | func (c *collection) As(i any) bool { return false } method ErrorAs (line 572) | func (c *collection) ErrorAs(err error, i any) bool { return false } method Close (line 577) | func (c *collection) Close() error { function add (line 422) | func add(x, y any) (any, error) { function getAtFieldPath (line 484) | func getAtFieldPath(m map[string]any, fp []string, nested bool) (result ... function setAtFieldPath (line 523) | func setAtFieldPath(m map[string]any, fp []string, val any) error { function getParentMap (line 537) | func getParentMap(m map[string]any, fp []string, create bool) (map[strin... function loadDocs (line 588) | func loadDocs(filename string) (mapOfDocs, error) { function saveDocs (line 609) | func saveDocs(filename string, m mapOfDocs) error { FILE: docstore/memdocstore/mem_test.go type harness (line 31) | type harness struct method MakeCollection (line 39) | func (h *harness) MakeCollection(_ context.Context, kind drivertest.Co... method BeforeDoTypes (line 52) | func (*harness) BeforeDoTypes() []any { return nil } method BeforeQueryTypes (line 53) | func (*harness) BeforeQueryTypes() []any { return nil } method RevisionsEqual (line 55) | func (*harness) RevisionsEqual(rev1, rev2 any) bool { return rev1 == r... method SupportsAtomicWrites (line 57) | func (*harness) SupportsAtomicWrites() bool { return true } method Close (line 59) | func (*harness) Close() {} function newHarness (line 33) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function TestConformance (line 61) | func TestConformance(t *testing.T) { function TestUpdateEncodesValues (line 72) | func TestUpdateEncodesValues(t *testing.T) { function TestUpdateAtomic (line 103) | func TestUpdateAtomic(t *testing.T) { function TestQueryNested (line 136) | func TestQueryNested(t *testing.T) { function TestSortDocs (line 272) | func TestSortDocs(t *testing.T) { function TestSaveAndLoad (line 307) | func TestSaveAndLoad(t *testing.T) { FILE: docstore/memdocstore/query.go method RunGetQuery (line 28) | func (c *collection) RunGetQuery(_ context.Context, q *driver.Query) (dr... function filtersMatch (line 77) | func filtersMatch(fs []driver.Filter, doc storedDoc, nested bool) bool { function filterMatches (line 86) | func filterMatches(f driver.Filter, doc storedDoc, nested bool) bool { function applyComparison (line 102) | func applyComparison(op string, c int) bool { function compare (line 123) | func compare(x1, x2 any, op string) (int, bool) { function sortDocs (line 183) | func sortDocs(docs []storedDoc, field string, asc bool) { type docIterator (line 196) | type docIterator struct method Next (line 203) | func (it *docIterator) Next(ctx context.Context, doc driver.Document) ... method Stop (line 219) | func (it *docIterator) Stop() { it.err = io.EOF } method As (line 221) | func (it *docIterator) As(i any) bool { return false } method QueryPlan (line 223) | func (c *collection) QueryPlan(q *driver.Query) (string, error) { FILE: docstore/memdocstore/urls.go function init (line 27) | func init() { constant Scheme (line 33) | Scheme = "mem" type URLOpener (line 44) | type URLOpener struct method OpenCollectionURL (line 55) | func (o *URLOpener) OpenCollectionURL(ctx context.Context, u *url.URL)... type urlColl (line 49) | type urlColl struct FILE: docstore/memdocstore/urls_test.go function TestOpenCollectionFromURL (line 24) | func TestOpenCollectionFromURL(t *testing.T) { FILE: docstore/mongodocstore/codec.go function encodeDoc (line 34) | func encodeDoc(doc driver.Document, lowercaseFields bool) (map[string]in... function encodeValue (line 42) | func encodeValue(x interface{}) (interface{}, error) { type encoder (line 50) | type encoder struct method EncodeNil (line 55) | func (e *encoder) EncodeNil() { e.val = nil } method EncodeBool (line 56) | func (e *encoder) EncodeBool(x bool) { e.val = x } method EncodeInt (line 57) | func (e *encoder) EncodeInt(x int64) { e.val = x } method EncodeUint (line 58) | func (e *encoder) EncodeUint(x uint64) { e.val = int64(x) } method EncodeBytes (line 59) | func (e *encoder) EncodeBytes(x []byte) { e.val = x } method EncodeFloat (line 60) | func (e *encoder) EncodeFloat(x float64) { e.val = x } method EncodeString (line 61) | func (e *encoder) EncodeString(x string) { e.val = x } method ListIndex (line 62) | func (e *encoder) ListIndex(int) { panic("impossible") } method MapKey (line 63) | func (e *encoder) MapKey(string) { panic("impossible") } method EncodeSpecial (line 70) | func (e *encoder) EncodeSpecial(v reflect.Value) (bool, error) { method EncodeList (line 80) | func (e *encoder) EncodeList(n int) driver.Encoder { method EncodeMap (line 100) | func (e *encoder) EncodeMap(n int) driver.Encoder { type listEncoder (line 87) | type listEncoder struct method ListIndex (line 92) | func (e *listEncoder) ListIndex(i int) { e.s[i] = e.val } type mapEncoder (line 94) | type mapEncoder struct method MapKey (line 106) | func (e *mapEncoder) MapKey(k string) { function decodeDoc (line 116) | func decodeDoc(m map[string]interface{}, ddoc driver.Document, idField s... type decoder (line 128) | type decoder struct method String (line 133) | func (d decoder) String() string { method AsNull (line 137) | func (d decoder) AsNull() bool { method AsBool (line 141) | func (d decoder) AsBool() (bool, bool) { method AsString (line 146) | func (d decoder) AsString() (string, bool) { method AsInt (line 151) | func (d decoder) AsInt() (int64, bool) { method AsUint (line 162) | func (d decoder) AsUint() (uint64, bool) { method AsFloat (line 167) | func (d decoder) AsFloat() (float64, bool) { method AsBytes (line 172) | func (d decoder) AsBytes() ([]byte, bool) { method AsInterface (line 183) | func (d decoder) AsInterface() (interface{}, error) { method ListLen (line 218) | func (d decoder) ListLen() (int, bool) { method DecodeList (line 225) | func (d decoder) DecodeList(f func(i int, d2 driver.Decoder) bool) { method MapLen (line 233) | func (d decoder) MapLen() (int, bool) { method DecodeMap (line 240) | func (d decoder) DecodeMap(f func(key string, d2 driver.Decoder, exact... method AsSpecial (line 248) | func (d decoder) AsSpecial(v reflect.Value) (bool, interface{}, error) { function toGoValue (line 187) | func toGoValue(v interface{}) (interface{}, error) { function bsonDateTimeToTime (line 258) | func bsonDateTimeToTime(dt primitive.DateTime) time.Time { FILE: docstore/mongodocstore/cosmos_test.go function TestConformanceCosmos (line 32) | func TestConformanceCosmos(t *testing.T) { FILE: docstore/mongodocstore/docdb_test.go constant connectionStringTemplate (line 15) | connectionStringTemplate = "mongodb://%s:%s@%s/?connect=direct&connectTi... function TestConformanceDocDB (line 29) | func TestConformanceDocDB(t *testing.T) { function newDocDBTestClient (line 46) | func newDocDBTestClient(t *testing.T) *mongo.Client { FILE: docstore/mongodocstore/example_test.go function ExampleOpenCollection (line 25) | func ExampleOpenCollection() { function ExampleOpenCollectionWithIDFunc (line 42) | func ExampleOpenCollectionWithIDFunc() { function Example_openCollectionFromURL (line 70) | func Example_openCollectionFromURL() { FILE: docstore/mongodocstore/mongo.go function Dial (line 80) | func Dial(ctx context.Context, uri string) (*mongo.Client, error) { type collection (line 101) | type collection struct method Key (line 184) | func (c *collection) Key(doc driver.Document) (interface{}, error) { method RevisionField (line 196) | func (c *collection) RevisionField() string { method RunActions (line 205) | func (c *collection) RunActions(ctx context.Context, actions []*driver... method runGets (line 229) | func (c *collection) runGets(ctx context.Context, gets []*driver.Actio... method bulkFind (line 238) | func (c *collection) bulkFind(ctx context.Context, gets []*driver.Acti... method projectionDoc (line 295) | func (c *collection) projectionDoc(fps [][]string) bson.D { method toMongoFieldPath (line 306) | func (c *collection) toMongoFieldPath(fp []string) string { method prepareCreate (line 319) | func (c *collection) prepareCreate(a *driver.Action) (mdoc, createdID ... method prepareReplace (line 339) | func (c *collection) prepareReplace(a *driver.Action) (filter bson.D, ... method encodeDoc (line 357) | func (c *collection) encodeDoc(doc driver.Document, id interface{}) (m... method prepareUpdate (line 376) | func (c *collection) prepareUpdate(a *driver.Action) (filter bson.D, u... method newUpdateDoc (line 392) | func (c *collection) newUpdateDoc(mods []driver.Mod, writeRevision boo... method makeFilter (line 435) | func (c *collection) makeFilter(id interface{}, doc driver.Document) (... method bulkWrite (line 454) | func (c *collection) bulkWrite(ctx context.Context, actions []*driver.... method txWrite (line 566) | func (c *collection) txWrite(ctx context.Context, actions []*driver.Ac... method determineDeleteErrors (line 693) | func (c *collection) determineDeleteErrors(ctx context.Context, models... method newCreateModel (line 722) | func (c *collection) newCreateModel(a *driver.Action) (*mongo.InsertOn... method newDeleteModel (line 730) | func (c *collection) newDeleteModel(a *driver.Action) (*mongo.DeleteOn... method newReplaceModel (line 742) | func (c *collection) newReplaceModel(a *driver.Action, upsert bool) (*... method newUpdateModel (line 754) | func (c *collection) newUpdateModel(a *driver.Action) (*mongo.UpdateOn... method RevisionToBytes (line 766) | func (c *collection) RevisionToBytes(rev interface{}) ([]byte, error) { method hasField (line 774) | func (c *collection) hasField(doc driver.Document, field string) bool { method BytesToRevision (line 782) | func (c *collection) BytesToRevision(b []byte) (interface{}, error) { method As (line 787) | func (c *collection) As(i interface{}) bool { method ErrorAs (line 797) | func (c *collection) ErrorAs(err error, i interface{}) bool { method ErrorCode (line 819) | func (c *collection) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 833) | func (c *collection) Close() error { return nil } type Options (line 110) | type Options struct function OpenCollection (line 138) | func OpenCollection(mcoll *mongo.Collection, idField string, opts *Optio... function OpenCollectionWithIDFunc (line 151) | func OpenCollectionWithIDFunc(mcoll *mongo.Collection, idFunc func(docst... function newCollection (line 159) | func newCollection(mcoll *mongo.Collection, idField string, idFunc func(... constant mongoIDField (line 203) | mongoIDField = "_id" function sliceToLower (line 313) | func sliceToLower(s []string) { constant mongoDupKeyCode (line 837) | mongoDupKeyCode = 11000 function translateMongoCode (line 839) | func translateMongoCode(code int) gcerrors.ErrorCode { FILE: docstore/mongodocstore/mongo_test.go constant serverURIV3 (line 39) | serverURIV3 = "mongodb://localhost:27020" constant serverURIV4 (line 40) | serverURIV4 = "mongodb://localhost:27017/?directConnection=true" constant dbName (line 41) | dbName = "docstore-test" constant collectionName1 (line 42) | collectionName1 = "docstore-test-1" constant collectionName2 (line 43) | collectionName2 = "docstore-test-2" constant collectionName3 (line 44) | collectionName3 = "docstore-test-3" type harness (line 47) | type harness struct method MakeCollection (line 52) | func (h *harness) MakeCollection(ctx context.Context, kind drivertest.... method SupportsAtomicWrites (line 82) | func (h *harness) SupportsAtomicWrites() bool { return h.supportAtomic... method BeforeDoTypes (line 84) | func (*harness) BeforeDoTypes() []interface{} { method BeforeQueryTypes (line 91) | func (*harness) BeforeQueryTypes() []interface{} { method RevisionsEqual (line 95) | func (*harness) RevisionsEqual(rev1, rev2 interface{}) bool { method Close (line 99) | func (*harness) Close() {} type codecTester (line 101) | type codecTester struct method UnsupportedTypes (line 103) | func (codecTester) UnsupportedTypes() []drivertest.UnsupportedType { method DocstoreEncode (line 107) | func (codecTester) DocstoreEncode(x interface{}) (interface{}, error) { method DocstoreDecode (line 115) | func (codecTester) DocstoreDecode(value, dest interface{}) error { method NativeEncode (line 123) | func (codecTester) NativeEncode(x interface{}) (interface{}, error) { method NativeDecode (line 127) | func (codecTester) NativeDecode(value, dest interface{}) error { type verifyAs (line 131) | type verifyAs struct method Name (line 133) | func (verifyAs) Name() string { method CollectionCheck (line 137) | func (verifyAs) CollectionCheck(coll *docstore.Collection) error { method QueryCheck (line 145) | func (verifyAs) QueryCheck(it *docstore.DocumentIterator) error { method ErrorCheck (line 153) | func (verifyAs) ErrorCheck(c *docstore.Collection, err error) error { function TestConformance (line 166) | func TestConformance(t *testing.T) { function testConformance (line 172) | func testConformance(t *testing.T, serverURI string, supportsAtomicWrite... function newTestClient (line 182) | func newTestClient(t *testing.T, serverURI string) *mongo.Client { function BenchmarkConformance (line 198) | func BenchmarkConformance(b *testing.B) { function TestLowercaseFields (line 224) | func TestLowercaseFields(t *testing.T) { FILE: docstore/mongodocstore/query.go method RunGetQuery (line 29) | func (c *collection) RunGetQuery(ctx context.Context, q *driver.Query) (... method filtersToBSON (line 88) | func (c *collection) filtersToBSON(fs []driver.Filter) (bson.D, error) { method filterToBSON (line 107) | func (c *collection) filterToBSON(f driver.Filter) (bson.E, error) { type docIterator (line 123) | type docIterator struct method Next (line 130) | func (it *docIterator) Next(ctx context.Context, doc driver.Document) ... method nextMap (line 138) | func (it *docIterator) nextMap(ctx context.Context) (map[string]interf... method Stop (line 152) | func (it *docIterator) Stop() { method As (line 157) | func (it *docIterator) As(i interface{}) bool { method QueryPlan (line 166) | func (c *collection) QueryPlan(q *driver.Query) (string, error) { method RunDeleteQuery (line 170) | func (c *collection) RunDeleteQuery(ctx context.Context, q *driver.Query... method RunUpdateQuery (line 184) | func (c *collection) RunUpdateQuery(ctx context.Context, q *driver.Query... FILE: docstore/mongodocstore/urls.go function init (line 30) | func init() { type defaultDialer (line 36) | type defaultDialer struct method OpenCollectionURL (line 43) | func (o *defaultDialer) OpenCollectionURL(ctx context.Context, u *url.... constant Scheme (line 68) | Scheme = "mongo" type URLOpener (line 80) | type URLOpener struct method OpenCollectionURL (line 90) | func (o *URLOpener) OpenCollectionURL(ctx context.Context, u *url.URL)... FILE: docstore/mongodocstore/urls_test.go function fakeConnectionStringInEnv (line 26) | func fakeConnectionStringInEnv() func() { function TestOpenCollectionURL (line 34) | func TestOpenCollectionURL(t *testing.T) { function TestDefaultDialerOpenCollectionURL (line 68) | func TestDefaultDialerOpenCollectionURL(t *testing.T) { FILE: docstore/otel_test.go function TestOpenTelemetry (line 26) | func TestOpenTelemetry(t *testing.T) { FILE: docstore/query.go type Query (line 29) | type Query struct method Where (line 43) | func (q *Query) Where(fp FieldPath, op string, value any) *Query { method Offset (line 128) | func (q *Query) Offset(n int) *Query { method Limit (line 146) | func (q *Query) Limit(n int) *Query { method OrderBy (line 173) | func (q *Query) OrderBy(field, direction string) *Query { method BeforeQuery (line 195) | func (q *Query) BeforeQuery(f func(asFunc func(any) bool) error) *Query { method Get (line 204) | func (q *Query) Get(ctx context.Context, fps ...FieldPath) *DocumentIt... method get (line 209) | func (q *Query) get(ctx context.Context, withTracing bool, fps ...Fiel... method initGet (line 228) | func (q *Query) initGet(fps []FieldPath) error { method invalidf (line 256) | func (q *Query) invalidf(format string, args ...any) *Query { method Plan (line 314) | func (q *Query) Plan(fps ...FieldPath) (string, error) { method Query (line 36) | func (c *Collection) Query() *Query { type valueValidator (line 67) | type valueValidator function validEqualValue (line 79) | func validEqualValue(v any) bool { function validFilterValue (line 89) | func validFilterValue(v any) bool { function validFilterSlice (line 110) | func validFilterSlice(v any) bool { constant Ascending (line 162) | Ascending = "asc" constant Descending (line 163) | Descending = "desc" type DocumentIterator (line 264) | type DocumentIterator struct method Next (line 273) | func (it *DocumentIterator) Next(ctx context.Context, dst Document) er... method Stop (line 292) | func (it *DocumentIterator) Stop() { method As (line 304) | func (it *DocumentIterator) As(i any) bool { FILE: docstore/query_test.go function TestQueryValidFilter (line 26) | func TestQueryValidFilter(t *testing.T) { function TestInvalidQuery (line 50) | func TestInvalidQuery(t *testing.T) { FILE: docstore/urls.go type CollectionURLOpener (line 29) | type CollectionURLOpener interface type URLMux (line 38) | type URLMux struct method CollectionSchemes (line 43) | func (mux *URLMux) CollectionSchemes() []string { return mux.schemes.S... method ValidCollectionScheme (line 46) | func (mux *URLMux) ValidCollectionScheme(scheme string) bool { return ... method RegisterCollection (line 50) | func (mux *URLMux) RegisterCollection(scheme string, opener Collection... method OpenCollection (line 56) | func (mux *URLMux) OpenCollection(ctx context.Context, urlstr string) ... method OpenCollectionURL (line 66) | func (mux *URLMux) OpenCollectionURL(ctx context.Context, u *url.URL) ... function DefaultURLMux (line 79) | func DefaultURLMux() *URLMux { function OpenCollection (line 87) | func OpenCollection(ctx context.Context, urlstr string) (*Collection, er... FILE: docstore/urls_test.go function TestURLMux (line 26) | func TestURLMux(t *testing.T) { type fakeOpener (line 117) | type fakeOpener struct method OpenCollectionURL (line 121) | func (o *fakeOpener) OpenCollectionURL(ctx context.Context, u *url.URL... FILE: gcerrors/errors.go constant OK (line 33) | OK ErrorCode = gcerr.OK constant Unknown (line 36) | Unknown ErrorCode = gcerr.Unknown constant NotFound (line 39) | NotFound ErrorCode = gcerr.NotFound constant AlreadyExists (line 42) | AlreadyExists ErrorCode = gcerr.AlreadyExists constant InvalidArgument (line 45) | InvalidArgument ErrorCode = gcerr.InvalidArgument constant Internal (line 49) | Internal ErrorCode = gcerr.Internal constant Unimplemented (line 52) | Unimplemented ErrorCode = gcerr.Unimplemented constant FailedPrecondition (line 55) | FailedPrecondition ErrorCode = gcerr.FailedPrecondition constant PermissionDenied (line 58) | PermissionDenied ErrorCode = gcerr.PermissionDenied constant ResourceExhausted (line 62) | ResourceExhausted ErrorCode = gcerr.ResourceExhausted constant Canceled (line 65) | Canceled ErrorCode = gcerr.Canceled constant DeadlineExceeded (line 68) | DeadlineExceeded ErrorCode = gcerr.DeadlineExceeded function Code (line 76) | func Code(err error) ErrorCode { FILE: gcerrors/errors_test.go type wrappedErr (line 25) | type wrappedErr struct method Error (line 29) | func (w wrappedErr) Error() string { return "wrapped" } method Unwrap (line 31) | func (w wrappedErr) Unwrap() error { return w.err } function TestCode (line 33) | func TestCode(t *testing.T) { FILE: gcp/cloudsql/cloudsql.go function NewCertSource (line 35) | func NewCertSource(c *gcp.HTTPClient) *certs.RemoteCertSource { function NewCertSourceWithIAM (line 41) | func NewCertSourceWithIAM(c *gcp.HTTPClient, t oauth2.TokenSource) *cert... FILE: gcp/gcp.go type ProjectID (line 36) | type ProjectID type TokenSource (line 40) | type TokenSource type HTTPClient (line 44) | type HTTPClient struct function NewAnonymousHTTPClient (line 49) | func NewAnonymousHTTPClient(transport http.RoundTripper) *HTTPClient { function NewHTTPClient (line 58) | func NewHTTPClient(transport http.RoundTripper, ts TokenSource) (*HTTPCl... function DefaultTransport (line 73) | func DefaultTransport() http.RoundTripper { function DefaultCredentials (line 79) | func DefaultCredentials(ctx context.Context) (*google.Credentials, error) { function DefaultCredentialsWithParams (line 90) | func DefaultCredentialsWithParams(ctx context.Context, params google.Cre... function CredentialsTokenSource (line 102) | func CredentialsTokenSource(creds *google.Credentials) TokenSource { function DefaultProjectID (line 110) | func DefaultProjectID(creds *google.Credentials) (ProjectID, error) { FILE: gcp/gcp_test.go function TestNewHTTPClient (line 26) | func TestNewHTTPClient(t *testing.T) { function TestCredentialsTokenSource (line 42) | func TestCredentialsTokenSource(t *testing.T) { function TestDefaultProjectID (line 57) | func TestDefaultProjectID(t *testing.T) { function TestDefaultCredentialsWithParams (line 72) | func TestDefaultCredentialsWithParams(t *testing.T) { FILE: gcp/gcpcloud/example_test.go function Example (line 33) | func Example() { function setup (line 59) | func setup(ctx context.Context) (*server.Server, func(), error) { function greet (line 74) | func greet(w http.ResponseWriter, req *http.Request) { FILE: internal/escape/escape.go constant NonUTF8String (line 26) | NonUTF8String = "\xbd\xb2" function IsASCIIAlphanumeric (line 29) | func IsASCIIAlphanumeric(r rune) bool { function HexEscape (line 56) | func HexEscape(s string, shouldEscape func(s []rune, i int) bool) string { function unescape (line 94) | func unescape(r []rune, i int) (bool, rune, int) { function HexUnescape (line 134) | func HexUnescape(s string) string { function URLEscape (line 161) | func URLEscape(s string) string { function URLUnescape (line 167) | func URLUnescape(s string) string { function makeASCIIString (line 174) | func makeASCIIString(start, end int) string { FILE: internal/escape/escape_test.go function TestHexEscape (line 21) | func TestHexEscape(t *testing.T) { function TestHexEscapeUnescapeWeirdStrings (line 70) | func TestHexEscapeUnescapeWeirdStrings(t *testing.T) { function TestHexUnescapeOnInvalid (line 80) | func TestHexUnescapeOnInvalid(t *testing.T) { FILE: internal/gcerr/errorcode_string.go constant _ErrorCode_name (line 7) | _ErrorCode_name = "OKUnknownNotFoundAlreadyExistsInvalidArgumentInternal... method String (line 11) | func (i ErrorCode) String() string { FILE: internal/gcerr/gcerr.go type ErrorCode (line 32) | type ErrorCode constant OK (line 37) | OK ErrorCode = 0 constant Unknown (line 40) | Unknown ErrorCode = 1 constant NotFound (line 43) | NotFound ErrorCode = 2 constant AlreadyExists (line 46) | AlreadyExists ErrorCode = 3 constant InvalidArgument (line 49) | InvalidArgument ErrorCode = 4 constant Internal (line 53) | Internal ErrorCode = 5 constant Unimplemented (line 56) | Unimplemented ErrorCode = 6 constant FailedPrecondition (line 59) | FailedPrecondition ErrorCode = 7 constant PermissionDenied (line 62) | PermissionDenied ErrorCode = 8 constant ResourceExhausted (line 66) | ResourceExhausted ErrorCode = 9 constant Canceled (line 69) | Canceled ErrorCode = 10 constant DeadlineExceeded (line 72) | DeadlineExceeded ErrorCode = 11 type Error (line 87) | type Error struct method Error (line 96) | func (e *Error) Error() string { method Format (line 101) | func (e *Error) Format(s fmt.State, c rune) { method FormatError (line 106) | func (e *Error) FormatError(p xerrors.Printer) (next error) { method Unwrap (line 117) | func (e *Error) Unwrap() error { function New (line 125) | func New(c ErrorCode, err error, callDepth int, msg string) *Error { function Newf (line 135) | func Newf(c ErrorCode, err error, format string, args ...any) *Error { function DoNotWrap (line 143) | func DoNotWrap(err error) bool { function GRPCCode (line 159) | func GRPCCode(err error) ErrorCode { function ErrorAs (line 190) | func ErrorAs(err error, target any, errorAs func(error, any) bool) bool { FILE: internal/gcerr/gcerr_test.go function TestNewf (line 26) | func TestNewf(t *testing.T) { function TestFormatting (line 35) | func TestFormatting(t *testing.T) { function TestError (line 105) | func TestError(t *testing.T) { FILE: internal/openurl/openurl.go type SchemeMap (line 27) | type SchemeMap struct method Register (line 38) | func (m *SchemeMap) Register(api, typ, scheme string, value any) { method FromString (line 58) | func (m *SchemeMap) FromString(typ, urlstr string) (any, *url.URL, err... method FromURL (line 71) | func (m *SchemeMap) FromURL(typ string, u *url.URL) (any, error) { method Schemes (line 90) | func (m *SchemeMap) Schemes() []string { method ValidScheme (line 100) | func (m *SchemeMap) ValidScheme(scheme string) bool { FILE: internal/openurl/openurl_test.go function TestSchemeMap (line 23) | func TestSchemeMap(t *testing.T) { FILE: internal/otel/metrics.go constant unitDimensionless (line 30) | unitDimensionless = "1" constant unitMilliseconds (line 31) | unitMilliseconds = "ms" constant unitBytes (line 32) | unitBytes = "By" function Views (line 46) | func Views(pkg string) []sdkmetric.View { function CounterView (line 90) | func CounterView(pkg string, meterName string, description string) []sdk... function LatencyMeasure (line 109) | func LatencyMeasure(pkg string, provider string) metric.Float64Histogram { function DimensionlessMeasure (line 134) | func DimensionlessMeasure(pkg string, provider string, meterName string,... function BytesMeasure (line 154) | func BytesMeasure(pkg string, provider string, meterName string, descrip... FILE: internal/otel/trace.go constant startTimeContextKey (line 40) | startTimeContextKey = "spanStartTimeCtxKey" constant methodNameContextKey (line 41) | methodNameContextKey = "methodNameCtxKey" type Tracer (line 45) | type Tracer struct method Start (line 86) | func (t *Tracer) Start(ctx context.Context, methodName string) (contex... method End (line 95) | func (t *Tracer) End(ctx context.Context, span trace.Span, err error) { function ProviderName (line 55) | func ProviderName(driver any) string { function NewTracer (line 68) | func NewTracer(pkg string, provider string) *Tracer { FILE: internal/otel/trace_test.go type testDriver (line 21) | type testDriver struct function TestProviderName (line 23) | func TestProviderName(t *testing.T) { FILE: internal/releasehelper/releasehelper.go function printHelp (line 62) | func printHelp() { function cmdCheck (line 71) | func cmdCheck(s string) []byte { type GoMod (line 88) | type GoMod struct type Module (line 97) | type Module struct type Require (line 103) | type Require struct type Replace (line 110) | type Replace struct function parseModuleInfo (line 116) | func parseModuleInfo(path string) GoMod { function runOnGomod (line 134) | func runOnGomod(path string, reqHandler func(gomodPath, mod, modPath str... function gomodAddReplace (line 166) | func gomodAddReplace(path string) { function gomodDropReplace (line 172) | func gomodDropReplace(path string) { function gomodSetVersion (line 178) | func gomodSetVersion(path, v string) { function gomodTag (line 184) | func gomodTag(path, v string) { function validSemanticVersion (line 194) | func validSemanticVersion(v string) bool { function main (line 202) | func main() { FILE: internal/releasehelper/releasehelper_test.go function createFilesForTest (line 50) | func createFilesForTest(root string) error { function Test (line 69) | func Test(t *testing.T) { FILE: internal/retry/retry.go function Call (line 39) | func Call(ctx context.Context, bo gax.Backoff, isRetryable func(error) b... function call (line 44) | func call(ctx context.Context, bo gax.Backoff, isRetryable func(error) b... type ContextError (line 68) | type ContextError struct method Error (line 73) | func (e *ContextError) Error() string { method Is (line 78) | func (e *ContextError) Is(target error) bool { FILE: internal/retry/retry_test.go function retryable (line 33) | func retryable(err error) bool { function TestCall (line 37) | func TestCall(t *testing.T) { function TestCallCancel (line 94) | func TestCallCancel(t *testing.T) { function equalContextError (line 126) | func equalContextError(got error, want *ContextError) bool { function TestErrorsIs (line 134) | func TestErrorsIs(t *testing.T) { FILE: internal/testing/oteltest/diff.go type Call (line 36) | type Call struct function formatSpanData (line 42) | func formatSpanData(s sdktrace.ReadOnlySpan) string { function formatCall (line 50) | func formatCall(c *Call) string { function Diff (line 69) | func Diff(gotSpans []sdktrace.ReadOnlySpan, gotMetrics []metricdata.Scop... function mapStatusCode (line 81) | func mapStatusCode(code gcerrors.ErrorCode) codes.Code { function diffSpans (line 89) | func diffSpans(got []sdktrace.ReadOnlySpan, prefix string, want []Call) ... function DiffMetrics (line 120) | func DiffMetrics(got []metricdata.ScopeMetrics, prefix, provider string,... FILE: internal/testing/oteltest/exporter.go type TestExporter (line 35) | type TestExporter struct method GetSpans (line 153) | func (te *TestExporter) GetSpans() tracetest.SpanStubs { method GetMetrics (line 158) | func (te *TestExporter) GetMetrics(ctx context.Context) []metricdata.S... method ForceFlush (line 166) | func (te *TestExporter) ForceFlush(ctx context.Context) error { method Shutdown (line 171) | func (te *TestExporter) Shutdown(ctx context.Context) error { type metricExporter (line 44) | type metricExporter struct method Temporality (line 68) | func (e *metricExporter) Temporality(kind sdkmetric.InstrumentKind) me... method Aggregation (line 73) | func (e *metricExporter) Aggregation(kind sdkmetric.InstrumentKind) sd... method Export (line 78) | func (e *metricExporter) Export(ctx context.Context, data *metricdata.... method GetMetrics (line 84) | func (e *metricExporter) GetMetrics() []metricdata.ScopeMetrics { method ForceFlush (line 91) | func (e *metricExporter) ForceFlush(ctx context.Context) error { method Reset (line 101) | func (e *metricExporter) Reset() { method Shutdown (line 108) | func (e *metricExporter) Shutdown(ctx context.Context) error { function newMetricExporter (line 55) | func newMetricExporter() *metricExporter { function NewTestExporter (line 117) | func NewTestExporter(t *testing.T, views []sdkmetric.View) *TestExporter { FILE: internal/testing/oteltest/init.go function configureTraceProvider (line 29) | func configureTraceProvider(serviceName string, exporter sdktrace.SpanEx... function configureMeterProvider (line 75) | func configureMeterProvider(serviceName string, reader sdkmetric.Reader,... FILE: internal/testing/setup/setup.go function FakeGCPCredentials (line 47) | func FakeGCPCredentials(ctx context.Context) (*google.Credentials, error) { function awsV2Config (line 51) | func awsV2Config(ctx context.Context, region string, client *http.Client... function NewRecordReplayClient (line 73) | func NewRecordReplayClient(ctx context.Context, t *testing.T, rf func(r ... function NewAWSv2Config (line 120) | func NewAWSv2Config(ctx context.Context, t *testing.T, region string, sc... function NewGCPClient (line 151) | func NewGCPClient(ctx context.Context, t *testing.T) (client *gcp.HTTPCl... function NewGCPgRPCConn (line 182) | func NewGCPgRPCConn(ctx context.Context, t *testing.T, endPoint, api str... function NewAzureTestBlobClient (line 211) | func NewAzureTestBlobClient(ctx context.Context, t *testing.T) (*http.Cl... function NewAzureKeyVaultTestClient (line 230) | func NewAzureKeyVaultTestClient(ctx context.Context, t *testing.T) (*htt... function FakeGCPDefaultCredentials (line 244) | func FakeGCPDefaultCredentials(t *testing.T) func() { function newGCPRecordDialOptions (line 267) | func newGCPRecordDialOptions(t *testing.T, filename string) (opts []grpc... function newGCPReplayer (line 288) | func newGCPReplayer(t *testing.T, filename string) (*grpcreplay.Replayer... function HasDockerTestEnvironment (line 308) | func HasDockerTestEnvironment() bool { FILE: internal/testing/terraform/terraform.go function ReadOutput (line 26) | func ReadOutput(dir string) (map[string]Output, error) { type Output (line 41) | type Output struct FILE: internal/testing/test-summary/test-summary.go type TestEvent (line 40) | type TestEvent struct function main (line 49) | func main() { function run (line 61) | func run(r io.Reader) (msg string, failures bool, err error) { FILE: internal/testing/test-summary/test-summary_test.go function Test (line 24) | func Test(t *testing.T) { constant testOutput (line 41) | testOutput = `{"Time":"2019-05-09T16:39:56.83133991-04:00","Action":"run... FILE: internal/useragent/useragent.go constant prefix (line 29) | prefix = "go-cloud" constant version (line 30) | version = "0.45.0" function ClientOption (line 34) | func ClientOption(api string) option.ClientOption { function GRPCDialOption (line 39) | func GRPCDialOption(api string) grpc.DialOption { function AzureUserAgentPrefix (line 44) | func AzureUserAgentPrefix(api string) string { function userAgentString (line 48) | func userAgentString(api string) string { type userAgentTransport (line 54) | type userAgentTransport struct method RoundTrip (line 59) | func (t *userAgentTransport) RoundTrip(req *http.Request) (*http.Respo... function HTTPClient (line 71) | func HTTPClient(client *http.Client, api string) *http.Client { FILE: internal/website/gatherexamples/gatherexamples.go function main (line 59) | func main() { constant gatherLoadMode (line 111) | gatherLoadMode packages.LoadMode = packages.NeedName | constant pragmaPrefix (line 124) | pragmaPrefix = "// PRAGMA: " constant inclusionComment (line 128) | inclusionComment = pragmaPrefix + "This example is used on gocloud.dev; ... type example (line 130) | type example struct function gather (line 137) | func gather(pkgs []*packages.Package) (map[string]example, error) { function rewriteBlock (line 207) | func rewriteBlock(block string) (_ string, blankImports []string) { function nextLine (line 269) | func nextLine(s string) (line, tail string) { function formatImports (line 279) | func formatImports(usedPackages map[string]string) string { FILE: internal/website/gatherexamples/gatherexamples_test.go function TestGather (line 26) | func TestGather(t *testing.T) { function TestFormatImports (line 296) | func TestFormatImports(t *testing.T) { FILE: mysql/awsmysql/awsmysql.go type URLOpener (line 68) | type URLOpener struct method OpenMySQLURL (line 88) | func (uo *URLOpener) OpenMySQLURL(ctx context.Context, u *url.URL) (*s... constant Scheme (line 81) | Scheme = "awsmysql" function init (line 83) | func init() { type connector (line 143) | type connector struct method Connect (line 152) | func (c *connector) Connect(ctx context.Context) (driver.Conn, error) { method Driver (line 182) | func (c *connector) Driver() driver.Driver { FILE: mysql/awsmysql/awsmysql_test.go function TestOpen (line 26) | func TestOpen(t *testing.T) { function TestOpenIAM (line 60) | func TestOpenIAM(t *testing.T) { FILE: mysql/awsmysql/example_test.go function Example (line 25) | func Example() { FILE: mysql/awsmysql/otel_test.go function TestOpenTelemetry (line 31) | func TestOpenTelemetry(t *testing.T) { FILE: mysql/azuremysql/azuremysql.go type URLOpener (line 44) | type URLOpener struct method OpenMySQLURL (line 61) | func (uo *URLOpener) OpenMySQLURL(ctx context.Context, u *url.URL) (*s... constant Scheme (line 54) | Scheme = "azuremysql" function init (line 56) | func init() { type connector (line 88) | type connector struct method Connect (line 95) | func (c *connector) Connect(ctx context.Context) (driver.Conn, error) { method Driver (line 118) | func (c *connector) Driver() driver.Driver { FILE: mysql/azuremysql/azuremysql_test.go function TestURLOpener (line 31) | func TestURLOpener(t *testing.T) { FILE: mysql/azuremysql/example_test.go function Example (line 25) | func Example() { FILE: mysql/example_test.go function ExampleOpen (line 24) | func ExampleOpen() { FILE: mysql/gcpmysql/example_test.go function Example (line 25) | func Example() { FILE: mysql/gcpmysql/gcpmysql.go constant Scheme (line 50) | Scheme = "gcpmysql" function init (line 52) | func init() { type lazyCredsOpener (line 58) | type lazyCredsOpener struct method OpenMySQLURL (line 64) | func (o *lazyCredsOpener) OpenMySQLURL(ctx context.Context, u *url.URL... type URLOpener (line 87) | type URLOpener struct method OpenMySQLURL (line 97) | func (uo *URLOpener) OpenMySQLURL(ctx context.Context, u *url.URL) (*s... function configFromURL (line 124) | func configFromURL(u *url.URL) (*mysql.Config, error) { function instanceFromURL (line 153) | func instanceFromURL(u *url.URL) (instance, db string, _ error) { FILE: mysql/gcpmysql/gcpmysql_test.go function TestOpen (line 29) | func TestOpen(t *testing.T) { function TestInstanceFromURL (line 65) | func TestInstanceFromURL(t *testing.T) { function Test_configFromURL (line 136) | func Test_configFromURL(t *testing.T) { FILE: mysql/mysql.go constant Scheme (line 33) | Scheme = "mysql" function init (line 35) | func init() { type URLOpener (line 41) | type URLOpener struct method OpenMySQLURL (line 46) | func (uo *URLOpener) OpenMySQLURL(_ context.Context, u *url.URL) (*sql... function ConfigFromURL (line 61) | func ConfigFromURL(u *url.URL) (cfg *mysql.Config, err error) { type MySQLURLOpener (line 91) | type MySQLURLOpener interface type URLMux (line 100) | type URLMux struct method RegisterMySQL (line 106) | func (mux *URLMux) RegisterMySQL(scheme string, opener MySQLURLOpener) { method OpenMySQL (line 112) | func (mux *URLMux) OpenMySQL(ctx context.Context, urlstr string) (*sql... method OpenMySQLURL (line 122) | func (mux *URLMux) OpenMySQLURL(ctx context.Context, u *url.URL) (*sql... function DefaultURLMux (line 135) | func DefaultURLMux() *URLMux { function Open (line 145) | func Open(ctx context.Context, urlstr string) (*sql.DB, error) { FILE: mysql/mysql_test.go function TestOpen (line 26) | func TestOpen(t *testing.T) { function TestConfigFromURL (line 60) | func TestConfigFromURL(t *testing.T) { FILE: postgres/awspostgres/awspostgres.go type URLOpener (line 48) | type URLOpener struct method OpenPostgresURL (line 65) | func (uo *URLOpener) OpenPostgresURL(ctx context.Context, u *url.URL) ... constant Scheme (line 58) | Scheme = "awspostgres" function init (line 60) | func init() { type pqDriver (line 93) | type pqDriver struct method Open (line 98) | func (d pqDriver) Open(name string) (driver.Conn, error) { method OpenConnector (line 103) | func (d pqDriver) OpenConnector(name string) (driver.Connector, error) { type connector (line 107) | type connector struct method Connect (line 113) | func (c connector) Connect(context.Context) (driver.Conn, error) { method Driver (line 121) | func (c connector) Driver() driver.Driver { type dialer (line 125) | type dialer struct method dial (line 129) | func (d dialer) dial(ctx context.Context, network, address string) (ne... method Dial (line 177) | func (d dialer) Dial(network, address string) (net.Conn, error) { method DialTimeout (line 181) | func (d dialer) DialTimeout(network, address string, timeout time.Dura... FILE: postgres/awspostgres/awspostgres_test.go function TestURLOpener (line 26) | func TestURLOpener(t *testing.T) { FILE: postgres/awspostgres/example_test.go function Example (line 25) | func Example() { FILE: postgres/example_test.go function ExampleOpen (line 24) | func ExampleOpen() { FILE: postgres/gcppostgres/example_test.go function Example (line 25) | func Example() { FILE: postgres/gcppostgres/gcppostgres.go constant Scheme (line 53) | Scheme = "gcppostgres" function init (line 55) | func init() { type lazyCredsOpener (line 61) | type lazyCredsOpener struct method OpenPostgresURL (line 67) | func (o *lazyCredsOpener) OpenPostgresURL(ctx context.Context, u *url.... type URLOpener (line 90) | type URLOpener struct method OpenPostgresURL (line 100) | func (uo *URLOpener) OpenPostgresURL(ctx context.Context, u *url.URL) ... function instanceFromURL (line 136) | func instanceFromURL(u *url.URL) (instance, db string, _ error) { type pqDriver (line 148) | type pqDriver struct method Open (line 154) | func (d pqDriver) Open(name string) (driver.Conn, error) { method OpenConnector (line 159) | func (d pqDriver) OpenConnector(name string) (driver.Connector, error) { type connector (line 163) | type connector struct method Connect (line 170) | func (c connector) Connect(context.Context) (driver.Conn, error) { method Driver (line 178) | func (c connector) Driver() driver.Driver { type dialer (line 182) | type dialer struct method Dial (line 187) | func (d dialer) Dial(network, address string) (net.Conn, error) { method DialTimeout (line 191) | func (d dialer) DialTimeout(network, address string, timeout time.Dura... FILE: postgres/gcppostgres/gcppostgres_test.go function TestURLOpener (line 27) | func TestURLOpener(t *testing.T) { function TestInstanceFromURL (line 93) | func TestInstanceFromURL(t *testing.T) { FILE: postgres/postgres.go constant Scheme (line 31) | Scheme = "postgres" function init (line 33) | func init() { type URLOpener (line 39) | type URLOpener struct method OpenPostgresURL (line 44) | func (uo *URLOpener) OpenPostgresURL(ctx context.Context, u *url.URL) ... type connector (line 51) | type connector struct method Connect (line 56) | func (c connector) Connect(ctx context.Context) (driver.Conn, error) { method Driver (line 60) | func (c connector) Driver() driver.Driver { type PostgresURLOpener (line 69) | type PostgresURLOpener interface type URLMux (line 79) | type URLMux struct method RegisterPostgres (line 85) | func (mux *URLMux) RegisterPostgres(scheme string, opener PostgresURLO... method OpenPostgres (line 91) | func (mux *URLMux) OpenPostgres(ctx context.Context, urlstr string) (*... method OpenPostgresURL (line 101) | func (mux *URLMux) OpenPostgresURL(ctx context.Context, u *url.URL) (*... function DefaultURLMux (line 114) | func DefaultURLMux() *URLMux { function Open (line 124) | func Open(ctx context.Context, urlstr string) (*sql.DB, error) { FILE: postgres/postgres_test.go function TestOpen (line 31) | func TestOpen(t *testing.T) { FILE: pubsub/acks_test.go type ackingDriverSub (line 30) | type ackingDriverSub struct method ReceiveBatch (line 36) | func (s *ackingDriverSub) ReceiveBatch(ctx context.Context, maxMessage... method SendAcks (line 47) | func (s *ackingDriverSub) SendAcks(ctx context.Context, ackIDs []drive... method IsRetryable (line 51) | func (*ackingDriverSub) IsRetryable(error) bool { return f... method ErrorCode (line 52) | func (*ackingDriverSub) ErrorCode(error) gcerrors.ErrorCode { return g... method CanNack (line 53) | func (*ackingDriverSub) CanNack() bool { return f... method Close (line 54) | func (*ackingDriverSub) Close() error { return n... function TestAckTriggersDriverSendAcksForOneMessage (line 56) | func TestAckTriggersDriverSendAcksForOneMessage(t *testing.T) { function TestMultipleAcksCanGoIntoASingleBatch (line 89) | func TestMultipleAcksCanGoIntoASingleBatch(t *testing.T) { function TestTooManyAcksForASingleBatchGoIntoMultipleBatches (line 134) | func TestTooManyAcksForASingleBatchGoIntoMultipleBatches(t *testing.T) { function TestAckDoesNotBlock (line 188) | func TestAckDoesNotBlock(t *testing.T) { function TestDoubleAckCausesPanic (line 212) | func TestDoubleAckCausesPanic(t *testing.T) { function TestConcurrentDoubleAckCausesPanic (line 239) | func TestConcurrentDoubleAckCausesPanic(t *testing.T) { function TestSubShutdownCanBeCanceledEvenWithHangingSendAcks (line 281) | func TestSubShutdownCanBeCanceledEvenWithHangingSendAcks(t *testing.T) { function TestReceiveReturnsErrorFromSendAcks (line 313) | func TestReceiveReturnsErrorFromSendAcks(t *testing.T) { type callbackDriverSub (line 356) | type callbackDriverSub struct method ReceiveBatch (line 363) | func (s *callbackDriverSub) ReceiveBatch(ctx context.Context, maxMessa... method SendAcks (line 367) | func (s *callbackDriverSub) SendAcks(ctx context.Context, acks []drive... method IsRetryable (line 371) | func (*callbackDriverSub) IsRetryable(error) bool { return... method ErrorCode (line 372) | func (*callbackDriverSub) ErrorCode(error) gcerrors.ErrorCode { return... method CanNack (line 373) | func (*callbackDriverSub) CanNack() bool { return... method Close (line 374) | func (*callbackDriverSub) Close() error { return... function TestReceiveReturnsAckErrorOnNoMoreMessages (line 383) | func TestReceiveReturnsAckErrorOnNoMoreMessages(t *testing.T) { FILE: pubsub/awssnssqs/awssnssqs.go constant base64EncodedKey (line 98) | base64EncodedKey = "base64encoded" constant noMessagesPollDuration (line 101) | noMessagesPollDuration = 250 * time.Millisecond function init (line 129) | func init() { function DialSNS (line 143) | func DialSNS(cfg aws.Config) *sns.Client { function DialSQS (line 148) | func DialSQS(cfg aws.Config) *sqs.Client { type lazySessionOpener (line 154) | type lazySessionOpener struct method defaultOpener (line 160) | func (o *lazySessionOpener) defaultOpener(u *url.URL) (*URLOpener, err... method OpenTopicURL (line 164) | func (o *lazySessionOpener) OpenTopicURL(ctx context.Context, u *url.U... method OpenSubscriptionURL (line 172) | func (o *lazySessionOpener) OpenSubscriptionURL(ctx context.Context, u... constant SNSScheme (line 182) | SNSScheme = "awssns" constant SQSScheme (line 187) | SQSScheme = "awssqs" type URLOpener (line 209) | type URLOpener struct method OpenTopicURL (line 217) | func (o *URLOpener) OpenTopicURL(ctx context.Context, u *url.URL) (*pu... method OpenSubscriptionURL (line 238) | func (o *URLOpener) OpenSubscriptionURL(ctx context.Context, u *url.UR... type snsTopic (line 274) | type snsTopic struct method SendBatch (line 415) | func (t *snsTopic) SendBatch(ctx context.Context, dms []*driver.Messag... method IsRetryable (line 517) | func (t *snsTopic) IsRetryable(error) bool { method As (line 523) | func (t *snsTopic) As(i any) bool { method ErrorAs (line 533) | func (t *snsTopic) ErrorAs(err error, i any) bool { method ErrorCode (line 538) | func (t *snsTopic) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 543) | func (*snsTopic) Close() error { return nil } type BodyBase64Encoding (line 282) | type BodyBase64Encoding method wantEncode (line 301) | func (e BodyBase64Encoding) wantEncode(b []byte) bool { constant NonUTF8Only (line 290) | NonUTF8Only BodyBase64Encoding = 0 constant Always (line 295) | Always BodyBase64Encoding = 1 constant Never (line 298) | Never BodyBase64Encoding = 2 type TopicOptions (line 314) | type TopicOptions struct function OpenSNSTopic (line 325) | func OpenSNSTopic(ctx context.Context, client *sns.Client, topicARN stri... function openSNSTopic (line 337) | func openSNSTopic(ctx context.Context, client *sns.Client, topicARN stri... function encodeMetadata (line 348) | func encodeMetadata(md map[string]string) map[string]string { function maybeEncodeBody (line 373) | func maybeEncodeBody(body []byte, opt BodyBase64Encoding) (string, bool) { constant MetadataKeyDeduplicationID (line 400) | MetadataKeyDeduplicationID = "DeduplicationId" constant MetadataKeyMessageGroupID (line 401) | MetadataKeyMessageGroupID = "MessageGroupId" function reviseSnsEntryAttributes (line 405) | func reviseSnsEntryAttributes(dm *driver.Message, entry *snstypes.Publis... type sqsTopic (line 545) | type sqsTopic struct method SendBatch (line 584) | func (t *sqsTopic) SendBatch(ctx context.Context, dms []*driver.Messag... method IsRetryable (line 654) | func (t *sqsTopic) IsRetryable(error) bool { method As (line 660) | func (t *sqsTopic) As(i any) bool { method ErrorAs (line 670) | func (t *sqsTopic) ErrorAs(err error, i any) bool { method ErrorCode (line 675) | func (t *sqsTopic) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 680) | func (*sqsTopic) Close() error { return nil } function OpenSQSTopic (line 553) | func OpenSQSTopic(ctx context.Context, client *sqs.Client, qURL string, ... function openSQSTopic (line 565) | func openSQSTopic(ctx context.Context, client *sqs.Client, qURL string, ... function reviseSqsEntryAttributes (line 574) | func reviseSqsEntryAttributes(dm *driver.Message, entry *sqstypes.SendMe... function errorCode (line 682) | func errorCode(err error) gcerrors.ErrorCode { type subscription (line 736) | type subscription struct method ReceiveBatch (line 805) | func (s *subscription) ReceiveBatch(ctx context.Context, maxMessages i... method SendAcks (line 917) | func (s *subscription) SendAcks(ctx context.Context, ids []driver.AckI... method CanNack (line 939) | func (s *subscription) CanNack() bool { return true } method SendNacks (line 942) | func (s *subscription) SendNacks(ctx context.Context, ids []driver.Ack... method IsRetryable (line 978) | func (*subscription) IsRetryable(error) bool { method As (line 984) | func (s *subscription) As(i any) bool { method ErrorAs (line 994) | func (s *subscription) ErrorAs(err error, i any) bool { method ErrorCode (line 999) | func (s *subscription) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 1008) | func (*subscription) Close() error { return nil } type SubscriptionOptions (line 743) | type SubscriptionOptions struct function OpenSubscription (line 784) | func OpenSubscription(ctx context.Context, client *sqs.Client, qURL stri... function openSubscription (line 796) | func openSubscription(ctx context.Context, client *sqs.Client, qURL stri... function extractBody (line 878) | func extractBody(bodyStr string, rawAttrs map[string]string, raw bool) (... function errorAs (line 1003) | func errorAs(err error, i any) bool { FILE: pubsub/awssnssqs/awssnssqs_test.go constant region (line 43) | region = "us-east-2" constant accountNumber (line 44) | accountNumber = "456752665576" type topicKind (line 49) | type topicKind constant topicKindSNS (line 52) | topicKindSNS = topicKind("SNS") constant topicKindSNSRaw (line 53) | topicKindSNSRaw = topicKind("SNSRaw") constant topicKindSQS (line 54) | topicKindSQS = topicKind("SQS") type harness (line 57) | type harness struct method CreateTopic (line 78) | func (h *harness) CreateTopic(ctx context.Context, testName string) (d... method MakeNonexistentTopic (line 127) | func (h *harness) MakeNonexistentTopic(ctx context.Context) (driver.To... method CreateSubscription (line 140) | func (h *harness) CreateSubscription(ctx context.Context, dt driver.To... method MakeNonexistentSubscription (line 226) | func (h *harness) MakeNonexistentSubscription(ctx context.Context) (dr... method Close (line 231) | func (h *harness) Close() { method MaxBatchSizes (line 235) | func (h *harness) MaxBatchSizes() (int, int) { method SupportsMultipleSubscriptions (line 242) | func (h *harness) SupportsMultipleSubscriptions() bool { type harnessOption (line 69) | type harnessOption function newHarness (line 71) | func newHarness(ctx context.Context, t *testing.T, topicKind topicKind) ... function convertStringToPtrMap (line 86) | func convertStringToPtrMap(m map[string]string) map[string]*string { function createTopic (line 97) | func createTopic(ctx context.Context, topicName string, snsClient *sns.C... function createSubscription (line 145) | func createSubscription(ctx context.Context, dt driver.Topic, subName st... function createSQSQueue (line 185) | func createSQSQueue(ctx context.Context, sqsClient *sqs.Client, topicNam... function TestConformanceSNSTopic (line 248) | func TestConformanceSNSTopic(t *testing.T) { function TestConformanceSNSTopicRaw (line 258) | func TestConformanceSNSTopicRaw(t *testing.T) { function TestConformanceSQSTopic (line 268) | func TestConformanceSQSTopic(t *testing.T) { type awsAsTest (line 278) | type awsAsTest struct method Name (line 282) | func (awsAsTest) Name() string { method TopicCheck (line 286) | func (t awsAsTest) TopicCheck(topic *pubsub.Topic) error { method SubscriptionCheck (line 304) | func (t awsAsTest) SubscriptionCheck(sub *pubsub.Subscription) error { method TopicErrorCheck (line 312) | func (t awsAsTest) TopicErrorCheck(topic *pubsub.Topic, err error) err... method SubscriptionErrorCheck (line 332) | func (t awsAsTest) SubscriptionErrorCheck(s *pubsub.Subscription, err ... method MessageCheck (line 343) | func (t awsAsTest) MessageCheck(m *pubsub.Message) error { method BeforeSend (line 351) | func (t awsAsTest) BeforeSend(as func(any) bool) error { method AfterSend (line 373) | func (t awsAsTest) AfterSend(as func(any) bool) error { function sanitize (line 395) | func sanitize(s string) string { function BenchmarkSNSSQS (line 409) | func BenchmarkSNSSQS(b *testing.B) { function BenchmarkSQS (line 413) | func BenchmarkSQS(b *testing.B) { function benchmark (line 417) | func benchmark(b *testing.B, topicKind topicKind) { function TestOpenTopicFromURL (line 450) | func TestOpenTopicFromURL(t *testing.T) { function TestOpenSubscriptionFromURL (line 485) | func TestOpenSubscriptionFromURL(t *testing.T) { function TestFIFO (line 524) | func TestFIFO(t *testing.T) { function testFIFOTopic (line 562) | func testFIFOTopic(t *testing.T, kind topicKind) { FILE: pubsub/awssnssqs/example_test.go function ExampleOpenSNSTopic (line 28) | func ExampleOpenSNSTopic() { function ExampleOpenSQSTopic (line 47) | func ExampleOpenSQSTopic() { function Example_openSNSTopicFromURL (line 66) | func Example_openSNSTopicFromURL() { function Example_openSQSTopicFromURL (line 82) | func Example_openSQSTopicFromURL() { function ExampleOpenSubscription (line 97) | func ExampleOpenSubscription() { function Example_openSubscriptionFromURL (line 117) | func Example_openSubscriptionFromURL() { FILE: pubsub/azuresb/azuresb.go constant defaultListenerTimeout (line 80) | defaultListenerTimeout = 2 * time.Second function init (line 98) | func init() { type defaultOpener (line 107) | type defaultOpener struct method defaultOpener (line 113) | func (o *defaultOpener) defaultOpener() (*URLOpener, error) { method OpenTopicURL (line 126) | func (o *defaultOpener) OpenTopicURL(ctx context.Context, u *url.URL) ... method OpenSubscriptionURL (line 134) | func (o *defaultOpener) OpenSubscriptionURL(ctx context.Context, u *ur... constant Scheme (line 143) | Scheme = "azuresb" type URLOpener (line 154) | type URLOpener struct method sbClient (line 176) | func (o *URLOpener) sbClient(kind string, u *url.URL) (*servicebus.Cli... method OpenTopicURL (line 199) | func (o *URLOpener) OpenTopicURL(ctx context.Context, u *url.URL) (*pu... method OpenSubscriptionURL (line 216) | func (o *URLOpener) OpenSubscriptionURL(ctx context.Context, u *url.UR... type topic (line 255) | type topic struct method SendBatch (line 319) | func (t *topic) SendBatch(ctx context.Context, dms []*driver.Message) ... method IsRetryable (line 356) | func (t *topic) IsRetryable(err error) bool { method As (line 361) | func (t *topic) As(i any) bool { method ErrorAs (line 371) | func (*topic) ErrorAs(err error, i any) bool { method ErrorCode (line 396) | func (*topic) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 402) | func (*topic) Close() error { return nil } type TopicOptions (line 260) | type TopicOptions struct function NewClientFromConnectionString (line 267) | func NewClientFromConnectionString(connectionString string, opts *servic... function NewClientFromServiceBusHostname (line 274) | func NewClientFromServiceBusHostname(serviceBusHostname string, opts *se... function NewSender (line 287) | func NewSender(sbClient *servicebus.Client, topicName string, opts *serv... function NewReceiver (line 292) | func NewReceiver(sbClient *servicebus.Client, topicName, subscriptionNam... function OpenTopic (line 297) | func OpenTopic(ctx context.Context, sbSender *servicebus.Sender, opts *T... function openTopic (line 311) | func openTopic(ctx context.Context, sbSender *servicebus.Sender, _ *Topi... function errorAs (line 375) | func errorAs(err error, i any) bool { type subscription (line 404) | type subscription struct method IsRetryable (line 463) | func (s *subscription) IsRetryable(err error) bool { method As (line 469) | func (s *subscription) As(i any) bool { method ErrorAs (line 479) | func (s *subscription) ErrorAs(err error, i any) bool { method ErrorCode (line 483) | func (s *subscription) ErrorCode(err error) gcerrors.ErrorCode { method ReceiveBatch (line 489) | func (s *subscription) ReceiveBatch(ctx context.Context, maxMessages i... method SendAcks (line 532) | func (s *subscription) SendAcks(ctx context.Context, ids []driver.AckI... method CanNack (line 548) | func (s *subscription) CanNack() bool { method SendNacks (line 556) | func (s *subscription) SendNacks(ctx context.Context, ids []driver.Ack... method Close (line 618) | func (*subscription) Close() error { return nil } type SubscriptionOptions (line 410) | type SubscriptionOptions struct function OpenSubscription (line 432) | func OpenSubscription(ctx context.Context, sbClient *servicebus.Client, ... function openSubscription (line 446) | func openSubscription(ctx context.Context, sbClient *servicebus.Client, ... function messageAsFunc (line 520) | func messageAsFunc(sbmsg *servicebus.ReceivedMessage) func(any) bool { function errorCode (line 571) | func errorCode(err error) (gcerrors.ErrorCode, bool) { FILE: pubsub/azuresb/azuresb_test.go constant nonexistentTopicName (line 42) | nonexistentTopicName = "nonexistent-topic" constant maxNameLen (line 47) | maxNameLen = 40 type harness (line 50) | type harness struct method CreateTopic (line 93) | func (h *harness) CreateTopic(ctx context.Context, testName string) (d... method MakeNonexistentTopic (line 112) | func (h *harness) MakeNonexistentTopic(ctx context.Context) (driver.To... method CreateSubscription (line 125) | func (h *harness) CreateSubscription(ctx context.Context, dt driver.To... method MakeNonexistentSubscription (line 158) | func (h *harness) MakeNonexistentSubscription(ctx context.Context) (dr... method Close (line 172) | func (h *harness) Close() { method MaxBatchSizes (line 176) | func (h *harness) MaxBatchSizes() (int, int) { return sendBatcherOpts.... method SupportsMultipleSubscriptions (line 178) | func (h *harness) SupportsMultipleSubscriptions() bool { return true } function newHarness (line 60) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function newHarnessUsingAutodelete (line 83) | func newHarnessUsingAutodelete(ctx context.Context, t *testing.T) (drive... function TestConformance (line 182) | func TestConformance(t *testing.T) { function TestConformanceWithAutodelete (line 190) | func TestConformanceWithAutodelete(t *testing.T) { type sbAsTest (line 198) | type sbAsTest struct method Name (line 200) | func (sbAsTest) Name() string { method TopicCheck (line 204) | func (sbAsTest) TopicCheck(topic *pubsub.Topic) error { method SubscriptionCheck (line 216) | func (sbAsTest) SubscriptionCheck(sub *pubsub.Subscription) error { method TopicErrorCheck (line 228) | func (sbAsTest) TopicErrorCheck(t *pubsub.Topic, err error) error { method SubscriptionErrorCheck (line 232) | func (sbAsTest) SubscriptionErrorCheck(s *pubsub.Subscription, err err... method MessageCheck (line 236) | func (sbAsTest) MessageCheck(m *pubsub.Message) error { method BeforeSend (line 248) | func (sbAsTest) BeforeSend(as func(any) bool) error { method AfterSend (line 256) | func (sbAsTest) AfterSend(as func(any) bool) error { function sanitize (line 260) | func sanitize(s string) string { function createTopic (line 274) | func createTopic(ctx context.Context, topicName string, adminClient *adm... function deleteTopic (line 287) | func deleteTopic(ctx context.Context, topicName string, adminClient *adm... function createSubscription (line 297) | func createSubscription(ctx context.Context, topicName, subscriptionName... function deleteSubscription (line 310) | func deleteSubscription(ctx context.Context, topicName, subscriptionName... function BenchmarkAzureServiceBusPubSub (line 326) | func BenchmarkAzureServiceBusPubSub(b *testing.B) { function fakeConnectionStringInEnv (line 399) | func fakeConnectionStringInEnv() func() { function TestOpenTopicFromURL (line 407) | func TestOpenTopicFromURL(t *testing.T) { function TestOpenSubscriptionFromURL (line 433) | func TestOpenSubscriptionFromURL(t *testing.T) { FILE: pubsub/azuresb/example_test.go function ExampleOpenTopic (line 27) | func ExampleOpenTopic() { function Example_openTopicFromURL (line 59) | func Example_openTopicFromURL() { function ExampleOpenSubscription (line 75) | func ExampleOpenSubscription() { function Example_openSubscriptionFromURL (line 104) | func Example_openSubscriptionFromURL() { function ExampleOpenSubscription_inReceiveAndDeleteMode (line 122) | func ExampleOpenSubscription_inReceiveAndDeleteMode() { FILE: pubsub/batcher/batcher.go function Split (line 38) | func Split(n int, opts *Options) []int { type Batcher (line 62) | type Batcher struct method Add (line 162) | func (b *Batcher) Add(ctx context.Context, item any) error { method AddNoWait (line 176) | func (b *Batcher) AddNoWait(item any) <-chan error { method handleBatch (line 208) | func (b *Batcher) handleBatch(batch []waiter) { method nextBatch (line 223) | func (b *Batcher) nextBatch() []waiter { method callHandler (line 258) | func (b *Batcher) callHandler(batch []waiter) { method Shutdown (line 287) | func (b *Batcher) Shutdown() { type sizableItem (line 77) | type sizableItem interface type waiter (line 81) | type waiter struct type Options (line 87) | type Options struct method NewMergedOptions (line 116) | func (o *Options) NewMergedOptions(opts *Options) *Options { function newOptionsWithDefaults (line 101) | func newOptionsWithDefaults(opts *Options) Options { function New (line 151) | func New(itemType reflect.Type, opts *Options, handler func(any) error) ... FILE: pubsub/batcher/batcher_test.go function TestSplit (line 32) | func TestSplit(t *testing.T) { function TestSequential (line 69) | func TestSequential(t *testing.T) { type sizableItem (line 91) | type sizableItem struct method ByteSize (line 95) | func (i *sizableItem) ByteSize() int { function TestPreventsAddingItemsLargerThanBatchMaxByteSize (line 99) | func TestPreventsAddingItemsLargerThanBatchMaxByteSize(t *testing.T) { function TestBatchingConsidersMaxSizeAndMaxByteSize (line 118) | func TestBatchingConsidersMaxSizeAndMaxByteSize(t *testing.T) { function TestMinBatchSize (line 157) | func TestMinBatchSize(t *testing.T) { function TestSaturation (line 174) | func TestSaturation(t *testing.T) { function TestShutdown (line 238) | func TestShutdown(t *testing.T) { function TestMinBatchSizeFlushesOnShutdown (line 275) | func TestMinBatchSizeFlushesOnShutdown(t *testing.T) { function TestItemCanBeInterface (line 300) | func TestItemCanBeInterface(t *testing.T) { FILE: pubsub/benchmark_test.go constant runFor (line 32) | runFor = 25 * time.Second constant reportWarmup (line 34) | reportWarmup = 500 * time.Millisecond constant reportPeriodWarmup (line 36) | reportPeriodWarmup = 50 * time.Millisecond constant reportPeriod (line 37) | reportPeriod = 1 * time.Second constant numLinesPerTest (line 41) | numLinesPerTest = 50 constant smoothing (line 43) | smoothing = 5 type fakeSub (line 46) | type fakeSub struct method SendAcks (line 53) | func (*fakeSub) SendAcks(ctx context.Context, ackIDs []driver.AckID) e... method CanNack (line 54) | func (*fakeSub) CanNack() bool ... method Close (line 55) | func (*fakeSub) Close() error ... method ReceiveBatch (line 57) | func (s *fakeSub) ReceiveBatch(ctx context.Context, maxMessages int) (... method inMiddleThird (line 67) | func (s *fakeSub) inMiddleThird() bool { function TestReceivePerformance (line 74) | func TestReceivePerformance(t *testing.T) { function runBenchmark (line 187) | func runBenchmark(t *testing.T, description string, numGoRoutines int, r... FILE: pubsub/driver/driver.go type AckID (line 27) | type AckID type AckInfo (line 30) | type AckInfo struct type Message (line 39) | type Message struct method ByteSize (line 82) | func (m *Message) ByteSize() int { type Topic (line 89) | type Topic interface type Subscription (line 139) | type Subscription interface FILE: pubsub/drivertest/drivertest.go type Harness (line 42) | type Harness interface type HarnessMaker (line 77) | type HarnessMaker type AsTest (line 90) | type AsTest interface type verifyAsFailsOnNil (line 119) | type verifyAsFailsOnNil struct method Name (line 121) | func (verifyAsFailsOnNil) Name() string { method TopicCheck (line 125) | func (verifyAsFailsOnNil) TopicCheck(t *pubsub.Topic) error { method SubscriptionCheck (line 132) | func (verifyAsFailsOnNil) SubscriptionCheck(s *pubsub.Subscription) er... method TopicErrorCheck (line 139) | func (verifyAsFailsOnNil) TopicErrorCheck(t *pubsub.Topic, err error) ... method SubscriptionErrorCheck (line 149) | func (verifyAsFailsOnNil) SubscriptionErrorCheck(s *pubsub.Subscriptio... method MessageCheck (line 159) | func (verifyAsFailsOnNil) MessageCheck(m *pubsub.Message) error { method BeforeSend (line 166) | func (verifyAsFailsOnNil) BeforeSend(as func(any) bool) error { method AfterSend (line 173) | func (verifyAsFailsOnNil) AfterSend(as func(any) bool) error { function RunConformanceTests (line 181) | func RunConformanceTests(t *testing.T, newHarness HarnessMaker, asTests ... function RunBenchmarks (line 215) | func RunBenchmarks(b *testing.B, topic *pubsub.Topic, sub *pubsub.Subscr... function testNonExistentTopicSucceedsOnOpenButFailsOnSend (line 226) | func testNonExistentTopicSucceedsOnOpenButFailsOnSend(t *testing.T, newH... function testNonExistentSubscriptionSucceedsOnOpenButFailsOnReceive (line 257) | func testNonExistentSubscriptionSucceedsOnOpenButFailsOnReceive(t *testi... function testSendReceive (line 289) | func testSendReceive(t *testing.T, newHarness HarnessMaker) { function testSendReceiveTwo (line 323) | func testSendReceiveTwo(t *testing.T, newHarness HarnessMaker) { function testSendReceiveJSON (line 373) | func testSendReceiveJSON(t *testing.T, newHarness HarnessMaker) { function testNack (line 406) | func testNack(t *testing.T, newHarness HarnessMaker) { function testBatching (line 485) | func testBatching(t *testing.T, newHarness HarnessMaker) { function testDoubleAck (line 568) | func testDoubleAck(t *testing.T, newHarness HarnessMaker) { function publishN (line 661) | func publishN(ctx context.Context, t *testing.T, topic *pubsub.Topic, n ... function receiveN (line 679) | func receiveN(ctx context.Context, t *testing.T, sub *pubsub.Subscriptio... function diffMessageSets (line 698) | func diffMessageSets(got, want []*pubsub.Message) string { function testErrorOnSendToClosedTopic (line 706) | func testErrorOnSendToClosedTopic(t *testing.T, newHarness HarnessMaker) { function testErrorOnReceiveFromClosedSubscription (line 738) | func testErrorOnReceiveFromClosedSubscription(t *testing.T, newHarness H... function testCancelSendReceive (line 772) | func testCancelSendReceive(t *testing.T, newHarness HarnessMaker) { function testMetadata (line 805) | func testMetadata(t *testing.T, newHarness HarnessMaker) { function testNonUTF8MessageBody (line 879) | func testNonUTF8MessageBody(t *testing.T, newHarness HarnessMaker) { function isCanceled (line 928) | func isCanceled(err error) bool { function makePair (line 938) | func makePair(ctx context.Context, t *testing.T, h Harness) (*pubsub.Top... function testAs (line 966) | func testAs(t *testing.T, newHarness HarnessMaker, st AsTest) { function benchmark (line 1059) | func benchmark(b *testing.B, topic *pubsub.Topic, sub *pubsub.Subscripti... function publishNConcurrently (line 1101) | func publishNConcurrently(topic *pubsub.Topic, nMessages, nGoroutines in... function receiveNConcurrently (line 1107) | func receiveNConcurrently(sub *pubsub.Subscription, nMessages, nGoroutin... function runConcurrently (line 1120) | func runConcurrently(n, g int, f func(context.Context) error) error { FILE: pubsub/example_test.go function ExampleTopic_Send (line 29) | func ExampleTopic_Send() { function ExampleSubscription_Receive (line 50) | func ExampleSubscription_Receive() { function ExampleSubscription_Receive_concurrent (line 71) | func ExampleSubscription_Receive_concurrent() { function ExampleMessage_As (line 117) | func ExampleMessage_As() { function ExampleSubscription_As (line 141) | func ExampleSubscription_As() { function ExampleSubscription_ErrorAs (line 160) | func ExampleSubscription_ErrorAs() { function ExampleTopic_As (line 184) | func ExampleTopic_As() { function ExampleTopic_ErrorAs (line 203) | func ExampleTopic_ErrorAs() { FILE: pubsub/gcppubsub/example_test.go function ExampleOpenTopic (line 29) | func ExampleOpenTopic() { function Example_openTopicFromURL (line 63) | func Example_openTopicFromURL() { function ExampleOpenSubscription (line 76) | func ExampleOpenSubscription() { function Example_extendingAckDeadline (line 112) | func Example_extendingAckDeadline() { function Example_openSubscriptionFromURL (line 156) | func Example_openSubscriptionFromURL() { FILE: pubsub/gcppubsub/gcppubsub.go function init (line 107) | func init() { type lazyCredsOpener (line 125) | type lazyCredsOpener struct method defaultConn (line 131) | func (o *lazyCredsOpener) defaultConn(ctx context.Context) (*URLOpener... method OpenTopicURL (line 163) | func (o *lazyCredsOpener) OpenTopicURL(ctx context.Context, u *url.URL... method OpenSubscriptionURL (line 171) | func (o *lazyCredsOpener) OpenSubscriptionURL(ctx context.Context, u *... constant Scheme (line 180) | Scheme = "gcppubsub" type URLOpener (line 195) | type URLOpener struct method OpenTopicURL (line 207) | func (o *URLOpener) OpenTopicURL(ctx context.Context, u *url.URL) (*pu... method OpenSubscriptionURL (line 241) | func (o *URLOpener) OpenSubscriptionURL(ctx context.Context, u *url.UR... type topic (line 282) | type topic struct method SendBatch (line 372) | func (t *topic) SendBatch(ctx context.Context, dms []*driver.Message) ... method IsRetryable (line 415) | func (t *topic) IsRetryable(error) bool { method As (line 421) | func (t *topic) As(i any) bool { method ErrorAs (line 431) | func (*topic) ErrorAs(err error, i any) bool { method ErrorCode (line 448) | func (*topic) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 453) | func (*topic) Close() error { return nil } function Dial (line 291) | func Dial(ctx context.Context, ts gcp.TokenSource) (*grpc.ClientConn, fu... function dialEmulator (line 310) | func dialEmulator(ctx context.Context, e string) (*grpc.ClientConn, erro... function PublisherClient (line 321) | func PublisherClient(ctx context.Context, conn *grpc.ClientConn) (*raw.P... function SubscriberClient (line 326) | func SubscriberClient(ctx context.Context, conn *grpc.ClientConn) (*raw.... type TopicOptions (line 331) | type TopicOptions struct function OpenTopic (line 340) | func OpenTopic(client *raw.PublisherClient, projectID gcp.ProjectID, top... function OpenTopicByPath (line 354) | func OpenTopicByPath(client *raw.PublisherClient, topicPath string, opts... function openTopic (line 367) | func openTopic(client *raw.PublisherClient, topicPath string) driver.Top... function errorAs (line 435) | func errorAs(err error, i any) bool { type subscription (line 455) | type subscription struct method ReceiveBatch (line 527) | func (s *subscription) ReceiveBatch(ctx context.Context, maxMessages i... method SendAcks (line 585) | func (s *subscription) SendAcks(ctx context.Context, ids []driver.AckI... method CanNack (line 594) | func (s *subscription) CanNack() bool { return true } method SendNacks (line 597) | func (s *subscription) SendNacks(ctx context.Context, ids []driver.Ack... method IsRetryable (line 613) | func (s *subscription) IsRetryable(err error) bool { method As (line 620) | func (s *subscription) As(i any) bool { method ErrorAs (line 630) | func (*subscription) ErrorAs(err error, i any) bool { method ErrorCode (line 634) | func (*subscription) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 639) | func (*subscription) Close() error { return nil } type SubscriptionOptions (line 462) | type SubscriptionOptions struct function OpenSubscription (line 485) | func OpenSubscription(client *raw.SubscriberClient, projectID gcp.Projec... function OpenSubscriptionByPath (line 502) | func OpenSubscriptionByPath(client *raw.SubscriberClient, subscriptionPa... function openSubscription (line 516) | func openSubscription(client *raw.SubscriberClient, subscriptionPath str... function messageAsFunc (line 568) | func messageAsFunc(pm *pb.PubsubMessage, rm *pb.ReceivedMessage) func(an... function queryParameterInt (line 641) | func queryParameterInt(value []string) (int, error) { function queryParameterBool (line 649) | func queryParameterBool(value []string) (bool, error) { FILE: pubsub/gcppubsub/gcppubsub_test.go constant projectID (line 38) | projectID = "go-cloud-test-216917" type harness (line 40) | type harness struct method CreateTopic (line 63) | func (h *harness) CreateTopic(ctx context.Context, testName string) (d... method MakeNonexistentTopic (line 93) | func (h *harness) MakeNonexistentTopic(ctx context.Context) (driver.To... method CreateSubscription (line 97) | func (h *harness) CreateSubscription(ctx context.Context, dt driver.To... method MakeNonexistentSubscription (line 131) | func (h *harness) MakeNonexistentSubscription(ctx context.Context) (dr... method Close (line 135) | func (h *harness) Close() { method MaxBatchSizes (line 141) | func (h *harness) MaxBatchSizes() (int, int) { method SupportsMultipleSubscriptions (line 145) | func (*harness) SupportsMultipleSubscriptions() bool { return true } function newHarness (line 48) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function createTopic (line 81) | func createTopic(ctx context.Context, pubClient *raw.PublisherClient, to... function createSubscription (line 115) | func createSubscription(ctx context.Context, subClient *raw.SubscriberCl... function TestConformance (line 147) | func TestConformance(t *testing.T) { function BenchmarkGcpPubSub (line 152) | func BenchmarkGcpPubSub(b *testing.B) { type gcpAsTest (line 199) | type gcpAsTest struct method Name (line 201) | func (gcpAsTest) Name() string { method TopicCheck (line 205) | func (gcpAsTest) TopicCheck(topic *pubsub.Topic) error { method SubscriptionCheck (line 217) | func (gcpAsTest) SubscriptionCheck(sub *pubsub.Subscription) error { method TopicErrorCheck (line 229) | func (gcpAsTest) TopicErrorCheck(t *pubsub.Topic, err error) error { method SubscriptionErrorCheck (line 240) | func (gcpAsTest) SubscriptionErrorCheck(sub *pubsub.Subscription, err ... method MessageCheck (line 251) | func (gcpAsTest) MessageCheck(m *pubsub.Message) error { method BeforeSend (line 267) | func (gcpAsTest) BeforeSend(as func(any) bool) error { method AfterSend (line 275) | func (gcpAsTest) AfterSend(as func(any) bool) error { function sanitize (line 283) | func sanitize(testName string) string { function TestOpenTopic (line 287) | func TestOpenTopic(t *testing.T) { function TestOpenSubscription (line 331) | func TestOpenSubscription(t *testing.T) { function TestOpenTopicFromURL (line 375) | func TestOpenTopicFromURL(t *testing.T) { function TestOpenSubscriptionFromURL (line 409) | func TestOpenSubscriptionFromURL(t *testing.T) { FILE: pubsub/gcppubsubv2/example_test.go function ExampleOpenTopic (line 26) | func ExampleOpenTopic() { function Example_openTopicFromURL (line 58) | func Example_openTopicFromURL() { function ExampleOpenSubscription (line 71) | func ExampleOpenSubscription() { function Example_openSubscriptionFromURL (line 104) | func Example_openSubscriptionFromURL() { FILE: pubsub/gcppubsubv2/gcppubsub.go function init (line 111) | func init() { type lazyCredsOpener (line 128) | type lazyCredsOpener struct method defaultConn (line 134) | func (o *lazyCredsOpener) defaultConn(ctx context.Context) (*URLOpener... method OpenTopicURL (line 166) | func (o *lazyCredsOpener) OpenTopicURL(ctx context.Context, u *url.URL... method OpenSubscriptionURL (line 174) | func (o *lazyCredsOpener) OpenSubscriptionURL(ctx context.Context, u *... constant Scheme (line 183) | Scheme = "gcppubsubv2" type URLOpener (line 197) | type URLOpener struct method OpenTopicURL (line 209) | func (o *URLOpener) OpenTopicURL(ctx context.Context, u *url.URL) (*pu... method OpenSubscriptionURL (line 243) | func (o *URLOpener) OpenSubscriptionURL(ctx context.Context, u *url.UR... type topic (line 277) | type topic struct method SendBatch (line 362) | func (t *topic) SendBatch(ctx context.Context, dms []*driver.Message) ... method IsRetryable (line 405) | func (t *topic) IsRetryable(error) bool { method As (line 411) | func (t *topic) As(i any) bool { method ErrorAs (line 421) | func (*topic) ErrorAs(err error, i any) bool { method ErrorCode (line 438) | func (*topic) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 443) | func (*topic) Close() error { return nil } function Dial (line 285) | func Dial(ctx context.Context, ts gcp.TokenSource) (*grpc.ClientConn, fu... function dialEmulator (line 304) | func dialEmulator(ctx context.Context, e string) (*grpc.ClientConn, erro... function Client (line 316) | func Client(ctx context.Context, projectID gcp.ProjectID, conn *grpc.Cli... type TopicOptions (line 324) | type TopicOptions struct function OpenTopic (line 332) | func OpenTopic(client *raw.Client, topicName string, opts *TopicOptions)... function OpenTopicByPath (line 346) | func OpenTopicByPath(client *raw.Client, topicPath string, opts *TopicOp... function openTopic (line 357) | func openTopic(publisher *raw.Publisher) driver.Topic { function errorAs (line 425) | func errorAs(err error, i any) bool { type ackableMsg (line 445) | type ackableMsg struct type subscription (line 450) | type subscription struct method ReceiveBatch (line 528) | func (s *subscription) ReceiveBatch(ctx context.Context, maxMessages i... method SendAcks (line 608) | func (s *subscription) SendAcks(ctx context.Context, ids []driver.AckI... method CanNack (line 622) | func (s *subscription) CanNack() bool { return true } method SendNacks (line 625) | func (s *subscription) SendNacks(ctx context.Context, ids []driver.Ack... method IsRetryable (line 639) | func (s *subscription) IsRetryable(err error) bool { method As (line 646) | func (s *subscription) As(i any) bool { method ErrorAs (line 656) | func (*subscription) ErrorAs(err error, i any) bool { method ErrorCode (line 660) | func (*subscription) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 665) | func (s *subscription) Close() error { type SubscriptionOptions (line 467) | type SubscriptionOptions struct function OpenSubscription (line 480) | func OpenSubscription(client *raw.Client, subscriptionName string, opts ... function OpenSubscriptionByPath (line 496) | func OpenSubscriptionByPath(client *raw.Client, subscriptionPath string,... function openSubscription (line 506) | func openSubscription(subscriber *raw.Subscriber, opts *SubscriptionOpti... function queryParameterInt (line 670) | func queryParameterInt(value []string) (int, error) { FILE: pubsub/gcppubsubv2/gcppubsub_test.go constant projectID (line 38) | projectID = "go-cloud-test-216917" type harness (line 40) | type harness struct method CreateTopic (line 57) | func (h *harness) CreateTopic(ctx context.Context, testName string) (d... method MakeNonexistentTopic (line 95) | func (h *harness) MakeNonexistentTopic(ctx context.Context) (driver.To... method CreateSubscription (line 99) | func (h *harness) CreateSubscription(ctx context.Context, dt driver.To... method MakeNonexistentSubscription (line 134) | func (h *harness) MakeNonexistentSubscription(ctx context.Context) (dr... method Close (line 138) | func (h *harness) Close() { method MaxBatchSizes (line 143) | func (h *harness) MaxBatchSizes() (int, int) { method SupportsMultipleSubscriptions (line 147) | func (*harness) SupportsMultipleSubscriptions() bool { return true } function newHarness (line 47) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function topicPath (line 62) | func topicPath(topicName string) string { function subscriptionPath (line 65) | func subscriptionPath(subName string) string { function createTopic (line 69) | func createTopic(ctx context.Context, client *raw.Client, topicName stri... function deleteTopic (line 89) | func deleteTopic(ctx context.Context, client *raw.Client, topicName stri... function createSubscription (line 104) | func createSubscription(ctx context.Context, client *raw.Client, dt driv... function deleteSubscription (line 128) | func deleteSubscription(ctx context.Context, client *raw.Client, subName... function TestConformance (line 149) | func TestConformance(t *testing.T) { function BenchmarkGcpPubSub (line 157) | func BenchmarkGcpPubSub(b *testing.B) { type gcpAsTest (line 198) | type gcpAsTest struct method Name (line 200) | func (gcpAsTest) Name() string { method TopicCheck (line 204) | func (gcpAsTest) TopicCheck(topic *pubsub.Topic) error { method SubscriptionCheck (line 216) | func (gcpAsTest) SubscriptionCheck(sub *pubsub.Subscription) error { method TopicErrorCheck (line 228) | func (gcpAsTest) TopicErrorCheck(t *pubsub.Topic, err error) error { method SubscriptionErrorCheck (line 239) | func (gcpAsTest) SubscriptionErrorCheck(sub *pubsub.Subscription, err ... method MessageCheck (line 250) | func (gcpAsTest) MessageCheck(m *pubsub.Message) error { method BeforeSend (line 262) | func (gcpAsTest) BeforeSend(as func(any) bool) error { method AfterSend (line 270) | func (gcpAsTest) AfterSend(as func(any) bool) error { function sanitize (line 278) | func sanitize(testName string) string { function TestOpenTopic (line 282) | func TestOpenTopic(t *testing.T) { function TestOpenSubscription (line 326) | func TestOpenSubscription(t *testing.T) { function TestOpenTopicFromURL (line 370) | func TestOpenTopicFromURL(t *testing.T) { function TestOpenSubscriptionFromURL (line 404) | func TestOpenSubscriptionFromURL(t *testing.T) { FILE: pubsub/kafkapubsub/example_test.go function ExampleOpenTopic (line 25) | func ExampleOpenTopic() { function ExampleOpenSubscription (line 43) | func ExampleOpenSubscription() { function Example_openTopicFromURL (line 63) | func Example_openTopicFromURL() { function Example_openSubscriptionFromURL (line 79) | func Example_openSubscriptionFromURL() { FILE: pubsub/kafkapubsub/kafka.go function init (line 85) | func init() { type defaultOpener (line 92) | type defaultOpener struct method defaultOpener (line 98) | func (o *defaultOpener) defaultOpener() (*URLOpener, error) { method OpenTopicURL (line 117) | func (o *defaultOpener) OpenTopicURL(ctx context.Context, u *url.URL) ... method OpenSubscriptionURL (line 125) | func (o *defaultOpener) OpenSubscriptionURL(ctx context.Context, u *ur... constant Scheme (line 134) | Scheme = "kafka" type URLOpener (line 149) | type URLOpener struct method OpenTopicURL (line 163) | func (o *URLOpener) OpenTopicURL(ctx context.Context, u *url.URL) (*pu... method OpenSubscriptionURL (line 182) | func (o *URLOpener) OpenSubscriptionURL(ctx context.Context, u *url.UR... function MinimalConfig (line 212) | func MinimalConfig() *sarama.Config { type topic (line 219) | type topic struct method SendBatch (line 267) | func (t *topic) SendBatch(ctx context.Context, dms []*driver.Message) ... method Close (line 319) | func (t *topic) Close() error { method IsRetryable (line 324) | func (t *topic) IsRetryable(error) bool { method As (line 329) | func (t *topic) As(i any) bool { method ErrorAs (line 338) | func (t *topic) ErrorAs(err error, i any) bool { method ErrorCode (line 343) | func (t *topic) ErrorCode(err error) gcerrors.ErrorCode { type TopicOptions (line 226) | type TopicOptions struct function OpenTopic (line 244) | func OpenTopic(brokers []string, config *sarama.Config, topicName string... function openTopic (line 255) | func openTopic(brokers []string, config *sarama.Config, topicName string... function errorCode (line 347) | func errorCode(err error) gcerrors.ErrorCode { type subscription (line 360) | type subscription struct method Setup (line 463) | func (s *subscription) Setup(sess sarama.ConsumerGroupSession) error { method Cleanup (line 476) | func (s *subscription) Cleanup(sarama.ConsumerGroupSession) error { method ConsumeClaim (line 488) | func (s *subscription) ConsumeClaim(sess sarama.ConsumerGroupSession, ... method ReceiveBatch (line 502) | func (s *subscription) ReceiveBatch(ctx context.Context, maxMessages i... method SendAcks (line 600) | func (s *subscription) SendAcks(ctx context.Context, ids []driver.AckI... method CanNack (line 624) | func (s *subscription) CanNack() bool { method SendNacks (line 631) | func (s *subscription) SendNacks(ctx context.Context, ids []driver.Ack... method Close (line 636) | func (s *subscription) Close() error { method IsRetryable (line 644) | func (*subscription) IsRetryable(error) bool { method As (line 649) | func (s *subscription) As(i any) bool { method ErrorAs (line 664) | func (s *subscription) ErrorAs(err error, i any) bool { method ErrorCode (line 669) | func (*subscription) ErrorCode(err error) gcerrors.ErrorCode { type ackInfo (line 377) | type ackInfo struct type SubscriptionOptions (line 383) | type SubscriptionOptions struct function OpenSubscription (line 404) | func OpenSubscription(brokers []string, config *sarama.Config, group str... function openSubscription (line 415) | func openSubscription(brokers []string, config *sarama.Config, group str... function errorAs (line 673) | func errorAs(err error, i any) bool { FILE: pubsub/kafkapubsub/kafka_test.go type harness (line 49) | type harness struct method CreateTopic (line 85) | func (h *harness) CreateTopic(ctx context.Context, testName string) (d... method MakeNonexistentTopic (line 100) | func (h *harness) MakeNonexistentTopic(ctx context.Context) (driver.To... method CreateSubscription (line 104) | func (h *harness) CreateSubscription(ctx context.Context, dt driver.To... method MakeNonexistentSubscription (line 110) | func (h *harness) MakeNonexistentSubscription(ctx context.Context) (dr... method Close (line 115) | func (h *harness) Close() {} method MaxBatchSizes (line 117) | func (h *harness) MaxBatchSizes() (int, int) { return sendBatcherOpts.... method SupportsMultipleSubscriptions (line 119) | func (*harness) SupportsMultipleSubscriptions() bool { return true } function newHarness (line 55) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function createKafkaTopic (line 62) | func createKafkaTopic(topicName string, partitions int32) (func(), error) { function TestConformance (line 121) | func TestConformance(t *testing.T) { type asTest (line 126) | type asTest struct method Name (line 128) | func (asTest) Name() string { method TopicCheck (line 132) | func (asTest) TopicCheck(topic *pubsub.Topic) error { method SubscriptionCheck (line 140) | func (asTest) SubscriptionCheck(sub *pubsub.Subscription) error { method TopicErrorCheck (line 152) | func (asTest) TopicErrorCheck(t *pubsub.Topic, err error) error { method SubscriptionErrorCheck (line 160) | func (asTest) SubscriptionErrorCheck(s *pubsub.Subscription, err error... method MessageCheck (line 168) | func (asTest) MessageCheck(m *pubsub.Message) error { method BeforeSend (line 176) | func (asTest) BeforeSend(as func(any) bool) error { method AfterSend (line 184) | func (asTest) AfterSend(as func(any) bool) error { function TestKafkaKey (line 189) | func TestKafkaKey(t *testing.T) { function TestMultiplePartionsWithRebalancing (line 285) | func TestMultiplePartionsWithRebalancing(t *testing.T) { function sanitize (line 426) | func sanitize(testName string) string { function BenchmarkKafka (line 430) | func BenchmarkKafka(b *testing.B) { function fakeConnectionStringInEnv (line 458) | func fakeConnectionStringInEnv() func() { function TestOpenTopicFromURL (line 466) | func TestOpenTopicFromURL(t *testing.T) { function TestOpenSubscriptionFromURL (line 503) | func TestOpenSubscriptionFromURL(t *testing.T) { FILE: pubsub/mempubsub/conformance_test.go type harness (line 26) | type harness struct method CreateTopic (line 34) | func (h *harness) CreateTopic(ctx context.Context, testName string) (d... method MakeNonexistentTopic (line 39) | func (h *harness) MakeNonexistentTopic(ctx context.Context) (driver.To... method CreateSubscription (line 44) | func (h *harness) CreateSubscription(ctx context.Context, dt driver.To... method MakeNonexistentSubscription (line 50) | func (h *harness) MakeNonexistentSubscription(ctx context.Context) (dr... method Close (line 54) | func (h *harness) Close() {} method MaxBatchSizes (line 56) | func (h *harness) MaxBatchSizes() (int, int) { return 0, 0 } method SupportsMultipleSubscriptions (line 58) | func (*harness) SupportsMultipleSubscriptions() bool { return true } function newHarness (line 28) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function TestConformance (line 60) | func TestConformance(t *testing.T) { function BenchmarkMemPubSub (line 64) | func BenchmarkMemPubSub(b *testing.B) { FILE: pubsub/mempubsub/example_test.go function ExampleNewSubscription (line 26) | func ExampleNewSubscription() { function ExampleNewTopic (line 40) | func ExampleNewTopic() { function Example_openSubscriptionFromURL (line 49) | func Example_openSubscriptionFromURL() { function Example_openTopicFromURL (line 70) | func Example_openTopicFromURL() { FILE: pubsub/mempubsub/mem.go function init (line 58) | func init() { constant Scheme (line 65) | Scheme = "mem" type URLOpener (line 74) | type URLOpener struct method OpenTopicURL (line 80) | func (o *URLOpener) OpenTopicURL(ctx context.Context, u *url.URL) (*pu... method OpenSubscriptionURL (line 99) | func (o *URLOpener) OpenSubscriptionURL(ctx context.Context, u *url.UR... type topic (line 129) | type topic struct method SendBatch (line 156) | func (t *topic) SendBatch(ctx context.Context, ms []*driver.Message) e... method IsRetryable (line 198) | func (*topic) IsRetryable(error) bool { return false } method As (line 204) | func (t *topic) As(i any) bool { method ErrorAs (line 214) | func (*topic) ErrorAs(error, any) bool { method ErrorCode (line 219) | func (*topic) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 227) | func (*topic) Close() error { return nil } type TopicOptions (line 136) | type TopicOptions struct function NewTopic (line 142) | func NewTopic() *pubsub.Topic { function NewTopicWithOptions (line 147) | func NewTopicWithOptions(opts *TopicOptions) *pubsub.Topic { type SubscriptionOptions (line 230) | type SubscriptionOptions struct type subscription (line 238) | type subscription struct method add (line 284) | func (s *subscription) add(ms []*driver.Message) { method receiveNoWait (line 297) | func (s *subscription) receiveNoWait(now time.Time, max int) []*driver... method ReceiveBatch (line 318) | func (s *subscription) ReceiveBatch(ctx context.Context, maxMessages i... method wait (line 332) | func (s *subscription) wait(ctx context.Context, dur time.Duration) er... method SendAcks (line 345) | func (s *subscription) SendAcks(ctx context.Context, ackIDs []driver.A... method CanNack (line 367) | func (s *subscription) CanNack() bool { return true } method SendNacks (line 370) | func (s *subscription) SendNacks(ctx context.Context, ackIDs []driver.... method IsRetryable (line 390) | func (*subscription) IsRetryable(error) bool { return false } method As (line 393) | func (s *subscription) As(i any) bool { return false } method ErrorAs (line 396) | func (*subscription) ErrorAs(error, any) bool { method ErrorCode (line 401) | func (*subscription) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 409) | func (*subscription) Close() error { return nil } function NewSubscription (line 249) | func NewSubscription(pstopic *pubsub.Topic, ackDeadline time.Duration) *... function NewSubscriptionWithOptions (line 254) | func NewSubscriptionWithOptions(pstopic *pubsub.Topic, ackDeadline time.... function newSubscription (line 265) | func newSubscription(topic *topic, ackDeadline time.Duration) *subscript... type message (line 279) | type message struct constant pollDuration (line 315) | pollDuration = 250 * time.Millisecond FILE: pubsub/mempubsub/mem_test.go function TestReceive (line 26) | func TestReceive(t *testing.T) { function TestOpenTopicFromURL (line 79) | func TestOpenTopicFromURL(t *testing.T) { function TestOpenSubscriptionFromURL (line 102) | func TestOpenSubscriptionFromURL(t *testing.T) { function TestSendNoSubs (line 132) | func TestSendNoSubs(t *testing.T) { FILE: pubsub/natspubsub/example_test.go function ExampleOpenTopic (line 27) | func ExampleOpenTopic() { function ExampleOpenSubscription (line 45) | func ExampleOpenSubscription() { function ExampleOpenSubscription_queue (line 66) | func ExampleOpenSubscription_queue() { function Example_openTopicFromURL (line 87) | func Example_openTopicFromURL() { function Example_openSubscriptionFromURL (line 103) | func Example_openSubscriptionFromURL() { function Example_openQueueSubscriptionFromURL (line 119) | func Example_openQueueSubscriptionFromURL() { function ExampleOpenSubscriptionV2 (line 136) | func ExampleOpenSubscriptionV2() { function ExampleOpenTopicV2 (line 157) | func ExampleOpenTopicV2() { function Example_openTopicV2FromURL (line 176) | func Example_openTopicV2FromURL() { function Example_openSubscriptionV2FromURL (line 194) | func Example_openSubscriptionV2FromURL() { FILE: pubsub/natspubsub/nats.go function init (line 111) | func init() { type defaultDialer (line 119) | type defaultDialer struct method defaultConn (line 127) | func (o *defaultDialer) defaultConn(ctx context.Context) error { method OpenTopicURL (line 149) | func (o *defaultDialer) OpenTopicURL(ctx context.Context, u *url.URL) ... method OpenSubscriptionURL (line 164) | func (o *defaultDialer) OpenSubscriptionURL(ctx context.Context, u *ur... type serverVersion (line 145) | type serverVersion struct function parseServerVersion (line 181) | func parseServerVersion(version string) (serverVersion, error) { constant Scheme (line 206) | Scheme = "nats" type URLOpener (line 213) | type URLOpener struct method OpenTopicURL (line 227) | func (o *URLOpener) OpenTopicURL(ctx context.Context, u *url.URL) (*pu... method OpenSubscriptionURL (line 242) | func (o *URLOpener) OpenSubscriptionURL(ctx context.Context, u *url.UR... constant natsV2QueryParameter (line 224) | natsV2QueryParameter = "natsv2" type TopicOptions (line 265) | type TopicOptions struct type SubscriptionOptions (line 269) | type SubscriptionOptions struct type topic (line 275) | type topic struct method SendBatch (line 326) | func (t *topic) SendBatch(ctx context.Context, msgs []*driver.Message)... method sendMessage (line 356) | func (t *topic) sendMessage(m *driver.Message) error { method sendMessageV2 (line 381) | func (t *topic) sendMessageV2(m *driver.Message) error { method IsRetryable (line 410) | func (*topic) IsRetryable(error) bool { return false } method As (line 413) | func (t *topic) As(i any) bool { method ErrorAs (line 423) | func (*topic) ErrorAs(error, any) bool { method ErrorCode (line 428) | func (*topic) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 447) | func (*topic) Close() error { return nil } function OpenTopic (line 284) | func OpenTopic(nc *nats.Conn, subject string, _ *TopicOptions) (*pubsub.... function OpenTopicV2 (line 298) | func OpenTopicV2(nc *nats.Conn, subject string, _ *TopicOptions) (*pubsu... function openTopic (line 308) | func openTopic(nc *nats.Conn, subject string, useV2 bool) (driver.Topic,... type subscription (line 449) | type subscription struct method ReceiveBatch (line 497) | func (s *subscription) ReceiveBatch(ctx context.Context, _ int) ([]*dr... method SendAcks (line 550) | func (s *subscription) SendAcks(ctx context.Context, ids []driver.AckI... method CanNack (line 556) | func (s *subscription) CanNack() bool { return false } method SendNacks (line 560) | func (s *subscription) SendNacks(ctx context.Context, ids []driver.Ack... method IsRetryable (line 565) | func (s *subscription) IsRetryable(error) bool { return false } method As (line 568) | func (s *subscription) As(i any) bool { method ErrorAs (line 578) | func (*subscription) ErrorAs(error, any) bool { method ErrorCode (line 583) | func (*subscription) ErrorCode(err error) gcerrors.ErrorCode { method Close (line 604) | func (*subscription) Close() error { return nil } function OpenSubscription (line 459) | func OpenSubscription(nc *nats.Conn, subject string, opts *SubscriptionO... function OpenSubscriptionV2 (line 474) | func OpenSubscriptionV2(nc *nats.Conn, subject string, opts *Subscriptio... function openSubscription (line 482) | func openSubscription(nc *nats.Conn, subject string, opts *SubscriptionO... function decode (line 525) | func decode(msg *nats.Msg) (*driver.Message, error) { function messageAsFunc (line 538) | func messageAsFunc(msg *nats.Msg) func(any) bool { function encodeMessage (line 606) | func encodeMessage(dm *driver.Message) ([]byte, error) { function decodeMessage (line 621) | func decodeMessage(data []byte, dm *driver.Message) error { function queryUseV2 (line 633) | func queryUseV2(q url.Values) (bool, error) { function encodeMessageV2 (line 660) | func encodeMessageV2(dm *driver.Message, sub string) *nats.Msg { function decodeMessageV2 (line 675) | func decodeMessageV2(msg *nats.Msg) (*driver.Message, error) { FILE: pubsub/natspubsub/nats_test.go constant testPort (line 36) | testPort = 11222 constant benchPort (line 37) | benchPort = 9222 type harness (line 40) | type harness struct method CreateTopic (line 68) | func (h *harness) CreateTopic(ctx context.Context, testName string) (d... method MakeNonexistentTopic (line 77) | func (h *harness) MakeNonexistentTopic(ctx context.Context) (driver.To... method CreateSubscription (line 82) | func (h *harness) CreateSubscription(ctx context.Context, dt driver.To... method CreateQueueSubscription (line 96) | func (h *harness) CreateQueueSubscription(ctx context.Context, dt driv... method MakeNonexistentSubscription (line 110) | func (h *harness) MakeNonexistentSubscription(ctx context.Context) (dr... method Close (line 114) | func (h *harness) Close() { method MaxBatchSizes (line 119) | func (h *harness) MaxBatchSizes() (int, int) { return 0, 0 } method SupportsMultipleSubscriptions (line 121) | func (*harness) SupportsMultipleSubscriptions() bool { return true } function newHarness (line 46) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function newHarnessV2 (line 57) | func newHarnessV2(ctx context.Context, t *testing.T) (drivertest.Harness... type natsAsTest (line 123) | type natsAsTest struct method Name (line 127) | func (natsAsTest) Name() string { method TopicCheck (line 131) | func (natsAsTest) TopicCheck(topic *pubsub.Topic) error { method SubscriptionCheck (line 143) | func (natsAsTest) SubscriptionCheck(sub *pubsub.Subscription) error { method TopicErrorCheck (line 155) | func (natsAsTest) TopicErrorCheck(t *pubsub.Topic, err error) error { method SubscriptionErrorCheck (line 163) | func (natsAsTest) SubscriptionErrorCheck(s *pubsub.Subscription, err e... method MessageCheck (line 171) | func (natsAsTest) MessageCheck(m *pubsub.Message) error { method BeforeSend (line 183) | func (n natsAsTest) BeforeSend(as func(any) bool) error { method AfterSend (line 199) | func (natsAsTest) AfterSend(as func(any) bool) error { function TestConformance (line 203) | func TestConformance(t *testing.T) { function TestConformanceV2 (line 208) | func TestConformanceV2(t *testing.T) { function TestInteropWithDirectNATS (line 216) | func TestInteropWithDirectNATS(t *testing.T) { function TestInteropWithDirectNATSV2 (line 268) | func TestInteropWithDirectNATSV2(t *testing.T) { function TestErrorCode (line 324) | func TestErrorCode(t *testing.T) { function BenchmarkNatsQueuePubSub (line 425) | func BenchmarkNatsQueuePubSub(b *testing.B) { function BenchmarkNatsPubSub (line 469) | func BenchmarkNatsPubSub(b *testing.B) { function fakeConnectionStringInEnv (line 512) | func fakeConnectionStringInEnv() func() { function TestOpenTopicFromURL (line 520) | func TestOpenTopicFromURL(t *testing.T) { function TestOpenSubscriptionFromURL (line 552) | func TestOpenSubscriptionFromURL(t *testing.T) { function TestCodec (line 595) | func TestCodec(t *testing.T) { FILE: pubsub/pub_test.go type funcTopic (line 27) | type funcTopic struct method SendBatch (line 33) | func (t *funcTopic) SendBatch(ctx context.Context, ms []*driver.Messag... method IsRetryable (line 37) | func (t *funcTopic) IsRetryable(error) bool { return false } method Close (line 38) | func (t *funcTopic) Close() error { function TestTopicShutdownCanBeCanceledEvenWithHangingSend (line 43) | func TestTopicShutdownCanBeCanceledEvenWithHangingSend(t *testing.T) { function TestTopicCloseIsCalled (line 83) | func TestTopicCloseIsCalled(t *testing.T) { FILE: pubsub/pubsub.go type Message (line 92) | type Message struct method Ack (line 156) | func (m *Message) Ack() { method Nackable (line 172) | func (m *Message) Nackable() bool { method Nack (line 192) | func (m *Message) Nack() { method As (line 210) | func (m *Message) As(i any) bool { type Topic (line 218) | type Topic struct method Send (line 232) | func (t *Topic) Send(ctx context.Context, m *Message) (err error) { method Shutdown (line 270) | func (t *Topic) Shutdown(ctx context.Context) (err error) { method As (line 301) | func (t *Topic) As(i any) bool { method ErrorAs (line 309) | func (t *Topic) ErrorAs(err error, i any) bool { function newSendBatcher (line 317) | func newSendBatcher(ctx context.Context, t *Topic, dt driver.Topic, opts... function newTopic (line 336) | func newTopic(d driver.Topic, opts *batcher.Options) *Topic { constant pkgName (line 347) | pkgName = "gocloud.dev/pubsub" type Subscription (line 358) | type Subscription struct method updateBatchSize (line 448) | func (s *Subscription) updateBatchSize() int { method Receive (line 516) | func (s *Subscription) Receive(ctx context.Context) (_ *Message, err e... method getNextBatch (line 642) | func (s *Subscription) getNextBatch(nMessages int) chan msgsOrError { method Shutdown (line 681) | func (s *Subscription) Shutdown(ctx context.Context) (err error) { method As (line 721) | func (s *Subscription) As(i any) bool { method ErrorAs (line 729) | func (s *Subscription) ErrorAs(err error, i any) bool { constant desiredQueueDuration (line 399) | desiredQueueDuration = 2 * time.Second constant expectedReceiveBatchDuration (line 404) | expectedReceiveBatchDuration = 1 * time.Second constant prefetchRatio (line 411) | prefetchRatio = float64(expectedReceiveBatchDuration) / float64(desiredQ... constant initialBatchSize (line 414) | initialBatchSize = 1 constant decay (line 421) | decay = 0.5 constant maxGrowthFactor (line 426) | maxGrowthFactor = 2.0 constant maxShrinkFactor (line 433) | maxShrinkFactor = 0.75 constant maxBatchSize (line 438) | maxBatchSize = 3000 type msgsOrError (line 635) | type msgsOrError struct function newSubscription (line 745) | func newSubscription(ds driver.Subscription, recvBatchOpts, ackBatcherOp... function newAckBatcher (line 760) | func newAckBatcher(ctx context.Context, s *Subscription, ds driver.Subsc... type errorCoder (line 804) | type errorCoder interface function wrapError (line 808) | func wrapError(ec errorCoder, err error) error { type TopicURLOpener (line 823) | type TopicURLOpener interface type SubscriptionURLOpener (line 832) | type SubscriptionURLOpener interface type URLMux (line 842) | type URLMux struct method TopicSchemes (line 848) | func (mux *URLMux) TopicSchemes() []string { return mux.topicSchemes.S... method ValidTopicScheme (line 851) | func (mux *URLMux) ValidTopicScheme(scheme string) bool { return mux.t... method SubscriptionSchemes (line 854) | func (mux *URLMux) SubscriptionSchemes() []string { return mux.subscri... method ValidSubscriptionScheme (line 857) | func (mux *URLMux) ValidSubscriptionScheme(scheme string) bool { method RegisterTopic (line 863) | func (mux *URLMux) RegisterTopic(scheme string, opener TopicURLOpener) { method RegisterSubscription (line 869) | func (mux *URLMux) RegisterSubscription(scheme string, opener Subscrip... method OpenTopic (line 875) | func (mux *URLMux) OpenTopic(ctx context.Context, urlstr string) (*Top... method OpenSubscription (line 885) | func (mux *URLMux) OpenSubscription(ctx context.Context, urlstr string... method OpenTopicURL (line 895) | func (mux *URLMux) OpenTopicURL(ctx context.Context, u *url.URL) (*Top... method OpenSubscriptionURL (line 905) | func (mux *URLMux) OpenSubscriptionURL(ctx context.Context, u *url.URL... function DefaultURLMux (line 919) | func DefaultURLMux() *URLMux { function OpenTopic (line 927) | func OpenTopic(ctx context.Context, urlstr string) (*Topic, error) { function OpenSubscription (line 935) | func OpenSubscription(ctx context.Context, urlstr string) (*Subscription... FILE: pubsub/pubsub_test.go type driverTopic (line 35) | type driverTopic struct method SendBatch (line 40) | func (t *driverTopic) SendBatch(ctx context.Context, ms []*driver.Mess... method IsRetryable (line 53) | func (*driverTopic) IsRetryable(error) bool { return false } method ErrorCode (line 54) | func (*driverTopic) ErrorCode(error) gcerrors.ErrorCode { return gcerr... method Close (line 55) | func (*driverTopic) Close() error { return nil } type driverSub (line 57) | type driverSub struct method ReceiveBatch (line 72) | func (s *driverSub) ReceiveBatch(ctx context.Context, maxMessages int)... method grabQueue (line 86) | func (s *driverSub) grabQueue(maxMessages int) []*driver.Message { method SendAcks (line 101) | func (s *driverSub) SendAcks(ctx context.Context, ackIDs []driver.AckI... method IsRetryable (line 105) | func (*driverSub) IsRetryable(error) bool { return false } method ErrorCode (line 106) | func (*driverSub) ErrorCode(error) gcerrors.ErrorCode { return gcerror... method CanNack (line 107) | func (*driverSub) CanNack() bool { return false } method Close (line 108) | func (*driverSub) Close() error { return nil } function NewDriverSub (line 64) | func NewDriverSub() *driverSub { function TestSendReceive (line 110) | func TestSendReceive(t *testing.T) { function TestConcurrentReceivesGetAllTheMessages (line 139) | func TestConcurrentReceivesGetAllTheMessages(t *testing.T) { function TestCancelSend (line 206) | func TestCancelSend(t *testing.T) { function TestCancelReceive (line 226) | func TestCancelReceive(t *testing.T) { type blockingDriverSub (line 238) | type blockingDriverSub struct method ReceiveBatch (line 243) | func (b blockingDriverSub) ReceiveBatch(ctx context.Context, maxMessag... method CanNack (line 248) | func (blockingDriverSub) CanNack() bool { return false } method IsRetryable (line 249) | func (blockingDriverSub) IsRetryable(error) bool { return false } method Close (line 250) | func (blockingDriverSub) Close() error { return nil } function TestCancelTwoReceives (line 252) | func TestCancelTwoReceives(t *testing.T) { type secondReceiveBlockedDriverSub (line 285) | type secondReceiveBlockedDriverSub struct method ReceiveBatch (line 290) | func (s *secondReceiveBlockedDriverSub) ReceiveBatch(ctx context.Conte... method CanNack (line 299) | func (*secondReceiveBlockedDriverSub) CanNack() bool ... method SendAcks (line 300) | func (*secondReceiveBlockedDriverSub) SendAcks(_ context.Context, _ []... method IsRetryable (line 301) | func (*secondReceiveBlockedDriverSub) IsRetryable(error) bool ... method Close (line 302) | func (*secondReceiveBlockedDriverSub) Close() error ... function TestIndependentBatchReturn (line 306) | func TestIndependentBatchReturn(t *testing.T) { function TestRetryTopic (line 327) | func TestRetryTopic(t *testing.T) { function isRetryable (line 344) | func isRetryable(err error) bool { constant nRetryCalls (line 348) | nRetryCalls = 2 type failTopic (line 353) | type failTopic struct method SendBatch (line 358) | func (t *failTopic) SendBatch(ctx context.Context, ms []*driver.Messag... method IsRetryable (line 366) | func (*failTopic) IsRetryable(err error) bool { return isRetry... method ErrorCode (line 367) | func (*failTopic) ErrorCode(error) gcerrors.ErrorCode { return gcerror... method Close (line 368) | func (*failTopic) Close() error { return nil } function TestRetryReceive (line 370) | func TestRetryReceive(t *testing.T) { function TestBatchSizeDecays (line 387) | func TestBatchSizeDecays(t *testing.T) { function TestRetryReceiveInBatchesDoesntRace (line 449) | func TestRetryReceiveInBatchesDoesntRace(t *testing.T) { type failSub (line 485) | type failSub struct method ReceiveBatch (line 493) | func (t *failSub) ReceiveBatch(ctx context.Context, maxMessages int) (... method SendAcks (line 509) | func (*failSub) SendAcks(ctx context.Context, ackIDs []driver.AckID) e... method IsRetryable (line 510) | func (*failSub) IsRetryable(err error) bool ... method CanNack (line 511) | func (*failSub) CanNack() bool ... method Close (line 512) | func (*failSub) Close() error ... type erroringTopic (line 518) | type erroringTopic struct method SendBatch (line 522) | func (erroringTopic) SendBatch(context.Context, []*driver.Message) err... method IsRetryable (line 523) | func (erroringTopic) IsRetryable(err error) bool ... method ErrorCode (line 524) | func (erroringTopic) ErrorCode(error) gcerrors.ErrorCode ... method Close (line 525) | func (erroringTopic) Close() error ... type erroringSubscription (line 527) | type erroringSubscription struct method ReceiveBatch (line 531) | func (erroringSubscription) ReceiveBatch(context.Context, int) ([]*dri... method SendAcks (line 535) | func (erroringSubscription) SendAcks(context.Context, []driver.AckID) ... method IsRetryable (line 536) | func (erroringSubscription) IsRetryable(err error) bool ... method ErrorCode (line 537) | func (erroringSubscription) ErrorCode(error) gcerrors.ErrorCode ... method CanNack (line 538) | func (erroringSubscription) CanNack() bool ... method Close (line 539) | func (erroringSubscription) Close() error ... function TestErrorsAreWrapped (line 543) | func TestErrorsAreWrapped(t *testing.T) { function TestOpenTelemetry (line 575) | func TestOpenTelemetry(t *testing.T) { function TestURLMux (line 629) | func TestURLMux(t *testing.T) { type fakeOpener (line 764) | type fakeOpener struct method OpenTopicURL (line 768) | func (o *fakeOpener) OpenTopicURL(ctx context.Context, u *url.URL) (*T... method OpenSubscriptionURL (line 776) | func (o *fakeOpener) OpenSubscriptionURL(ctx context.Context, u *url.U... FILE: pubsub/rabbitpubsub/amqp.go constant wait (line 32) | wait = false constant mandatory (line 36) | mandatory = true constant immediate (line 39) | immediate = false type amqpConnection (line 43) | type amqpConnection interface type amqpChannel (line 49) | type amqpChannel interface type connection (line 68) | type connection struct method Channel (line 74) | func (c *connection) Channel() (amqpChannel, error) { method Close (line 86) | func (c *connection) Close() error { type channel (line 91) | type channel struct method Publish (line 95) | func (ch *channel) Publish(exchange, routingKey string, msg amqp.Publi... method PublishWithContext (line 99) | func (ch *channel) PublishWithContext(ctx context.Context, exchange, r... method Consume (line 103) | func (ch *channel) Consume(queue, consumer string) (<-chan amqp.Delive... method Ack (line 112) | func (ch *channel) Ack(tag uint64) error { method Nack (line 116) | func (ch *channel) Nack(tag uint64) error { method Confirm (line 120) | func (ch *channel) Confirm() error { method Cancel (line 124) | func (ch *channel) Cancel(consumer string) error { method Close (line 128) | func (ch *channel) Close() error { method NotifyPublish (line 132) | func (ch *channel) NotifyPublish(c chan amqp.Confirmation) chan amqp.C... method NotifyReturn (line 136) | func (ch *channel) NotifyReturn(c chan amqp.Return) chan amqp.Return { method NotifyClose (line 140) | func (ch *channel) NotifyClose(c chan *amqp.Error) chan *amqp.Error { method ExchangeDeclare (line 144) | func (ch *channel) ExchangeDeclare(name string) error { method QueueDeclareAndBind (line 155) | func (ch *channel) QueueDeclareAndBind(queueName, exchangeName string)... method ExchangeDelete (line 168) | func (ch *channel) ExchangeDelete(name string) error { method QueueDelete (line 172) | func (ch *channel) QueueDelete(qname string) error { method Qos (line 177) | func (ch *channel) Qos(prefetchCount, prefetchSize int, global bool) e... FILE: pubsub/rabbitpubsub/example_test.go function ExampleOpenTopic (line 26) | func ExampleOpenTopic() { function ExampleOpenSubscription (line 40) | func ExampleOpenSubscription() { function Example_openTopicFromURL (line 54) | func Example_openTopicFromURL() { function Example_openSubscriptionFromURL (line 70) | func Example_openSubscriptionFromURL() { FILE: pubsub/rabbitpubsub/fake_test.go type fakeConnection (line 31) | type fakeConnection struct method Channel (line 75) | func (c *fakeConnection) Channel() (amqpChannel, error) { method Close (line 86) | func (c *fakeConnection) Close() error { type fakeChannel (line 39) | type fakeChannel struct method getExchange (line 96) | func (ch *fakeChannel) getExchange(name string) (*exchange, error) { method errorf (line 106) | func (ch *fakeChannel) errorf(code int, reasonFormat string, args ...a... method isClosed (line 112) | func (ch *fakeChannel) isClosed() bool { method ExchangeDeclare (line 118) | func (ch *fakeChannel) ExchangeDeclare(name string) error { method QueueDeclareAndBind (line 135) | func (ch *fakeChannel) QueueDeclareAndBind(queueName, exchangeName str... method Publish (line 155) | func (ch *fakeChannel) Publish(exchangeName, routingKey string, pub am... method PublishWithContext (line 159) | func (ch *fakeChannel) PublishWithContext(ctx context.Context, method Consume (line 223) | func (ch *fakeChannel) Consume(queueName, consumerName string) (<-chan... method takeOneMessage (line 272) | func (ch *fakeChannel) takeOneMessage(q *queue) (amqp.Delivery, bool) { method Ack (line 285) | func (ch *fakeChannel) Ack(tag uint64) error { method Nack (line 303) | func (ch *fakeChannel) Nack(tag uint64) error { method Cancel (line 321) | func (ch *fakeChannel) Cancel(consumerName string) error { method NotifyPublish (line 339) | func (ch *fakeChannel) NotifyPublish(c chan amqp.Confirmation) chan am... method NotifyReturn (line 348) | func (ch *fakeChannel) NotifyReturn(c chan amqp.Return) chan amqp.Retu... method NotifyClose (line 357) | func (ch *fakeChannel) NotifyClose(c chan *amqp.Error) chan *amqp.Error { method Close (line 366) | func (ch *fakeChannel) Close() error { method ExchangeDelete (line 384) | func (ch *fakeChannel) ExchangeDelete(name string) error { method QueueDelete (line 392) | func (ch *fakeChannel) QueueDelete(name string) error { method Qos (line 400) | func (ch *fakeChannel) Qos(_, _ int, _ bool) error { type exchange (line 56) | type exchange struct type queue (line 61) | type queue struct function newFakeConnection (line 66) | func newFakeConnection() *fakeConnection { function chanIsClosed (line 409) | func chanIsClosed(ch chan struct{}) bool { function closeChan (line 420) | func closeChan(ch chan struct{}) { FILE: pubsub/rabbitpubsub/rabbit.go function init (line 36) | func init() { type defaultDialer (line 44) | type defaultDialer struct method defaultConn (line 50) | func (o *defaultDialer) defaultConn(ctx context.Context) (*URLOpener, ... method OpenTopicURL (line 74) | func (o *defaultDialer) OpenTopicURL(ctx context.Context, u *url.URL) ... method OpenSubscriptionURL (line 82) | func (o *defaultDialer) OpenSubscriptionURL(ctx context.Context, u *ur... constant Scheme (line 91) | Scheme = "rabbit" type URLOpener (line 103) | type URLOpener struct method OpenTopicURL (line 114) | func (o *URLOpener) OpenTopicURL(ctx context.Context, u *url.URL) (*pu... method OpenSubscriptionURL (line 134) | func (o *URLOpener) OpenSubscriptionURL(ctx context.Context, u *url.UR... type topic (line 158) | type topic struct method establishChannel (line 227) | func (t *topic) establishChannel(ctx context.Context) error { method SendBatch (line 274) | func (t *topic) SendBatch(ctx context.Context, ms []*driver.Message) e... method receiveFromPublishChannels (line 347) | func (t *topic) receiveFromPublishChannels(ctx context.Context, nMessa... method IsRetryable (line 462) | func (*topic) IsRetryable(err error) bool { method ErrorCode (line 466) | func (*topic) ErrorCode(err error) gcerrors.ErrorCode { method As (line 525) | func (t *topic) As(i any) bool { method ErrorAs (line 539) | func (*topic) ErrorAs(err error, i any) bool { method Close (line 564) | func (*topic) Close() error { return nil } type TopicOptions (line 172) | type TopicOptions struct type SubscriptionOptions (line 182) | type SubscriptionOptions struct function OpenTopic (line 206) | func OpenTopic(conn *amqp.Connection, name string, opts *TopicOptions) *... function newTopic (line 210) | func newTopic(conn amqpConnection, name string, opts *TopicOptions) *top... function runWithContext (line 262) | func runWithContext(ctx context.Context, f func() error) error { type MultiError (line 411) | type MultiError method Error (line 413) | func (m MultiError) Error() string { function closeErr (line 425) | func closeErr(closec <-chan *amqp.Error) error { function toRoutingKeyAndAMQPPublishing (line 443) | func toRoutingKeyAndAMQPPublishing(m *driver.Message, opts *TopicOptions... function errorCode (line 481) | func errorCode(err error) gcerrors.ErrorCode { function isRetryable (line 492) | func isRetryable(err error) bool { function errorAs (line 543) | func errorAs(err error, i any) bool { function OpenSubscription (line 579) | func OpenSubscription(conn *amqp.Connection, name string, opts *Subscrip... type subscription (line 583) | type subscription struct method establishChannel (line 615) | func (s *subscription) establishChannel(ctx context.Context) error { method ReceiveBatch (line 667) | func (s *subscription) ReceiveBatch(ctx context.Context, maxMessages i... method SendAcks (line 758) | func (s *subscription) SendAcks(ctx context.Context, ackIDs []driver.A... method CanNack (line 763) | func (s *subscription) CanNack() bool { return true } method SendNacks (line 766) | func (s *subscription) SendNacks(ctx context.Context, ackIDs []driver.... method sendAcksOrNacks (line 770) | func (s *subscription) sendAcksOrNacks(ctx context.Context, ackIDs []d... method IsRetryable (line 802) | func (*subscription) IsRetryable(err error) bool { method ErrorCode (line 806) | func (*subscription) ErrorCode(err error) gcerrors.ErrorCode { method As (line 811) | func (s *subscription) As(i any) bool { method ErrorAs (line 825) | func (*subscription) ErrorAs(err error, i any) bool { method Close (line 830) | func (*subscription) Close() error { return nil } function newSubscription (line 600) | func newSubscription(conn amqpConnection, name string, opts *Subscriptio... function applyOptionsToChannel (line 654) | func applyOptionsToChannel(opts *SubscriptionOptions, ch amqpChannel) er... function toDriverMessage (line 723) | func toDriverMessage(d amqp.Delivery, opts *SubscriptionOptions) *driver... FILE: pubsub/rabbitpubsub/rabbit_test.go constant rabbitURL (line 41) | rabbitURL = "amqp://guest:guest@localhost:5672/" function mustDialRabbit (line 45) | func mustDialRabbit(t testing.TB) amqpConnection { function TestConformance (line 64) | func TestConformance(t *testing.T) { function BenchmarkRabbit (line 88) | func BenchmarkRabbit(b *testing.B) { type harness (line 110) | type harness struct method CreateTopic (line 116) | func (h *harness) CreateTopic(_ context.Context, testName string) (dt ... method MakeNonexistentTopic (line 131) | func (h *harness) MakeNonexistentTopic(context.Context) (driver.Topic,... method CreateSubscription (line 135) | func (h *harness) CreateSubscription(_ context.Context, dt driver.Topi... method MakeNonexistentSubscription (line 151) | func (h *harness) MakeNonexistentSubscription(_ context.Context) (driv... method Close (line 155) | func (h *harness) Close() { method MaxBatchSizes (line 159) | func (h *harness) MaxBatchSizes() (int, int) { return 0, 0 } method SupportsMultipleSubscriptions (line 161) | func (*harness) SupportsMultipleSubscriptions() bool { return true } function TestUnroutable (line 163) | func TestUnroutable(t *testing.T) { function TestErrorCode (line 198) | func TestErrorCode(t *testing.T) { function TestOpens (line 215) | func TestOpens(t *testing.T) { function TestIsRetryable (line 229) | func TestIsRetryable(t *testing.T) { function TestRunWithContext (line 247) | func TestRunWithContext(t *testing.T) { function declareExchange (line 266) | func declareExchange(conn amqpConnection, name string) error { function bindQueue (line 275) | func bindQueue(conn amqpConnection, queueName, exchangeName string) error { type rabbitAsTest (line 284) | type rabbitAsTest struct method Name (line 288) | func (rabbitAsTest) Name() string { method TopicCheck (line 292) | func (r rabbitAsTest) TopicCheck(topic *pubsub.Topic) error { method SubscriptionCheck (line 306) | func (r rabbitAsTest) SubscriptionCheck(sub *pubsub.Subscription) error { method TopicErrorCheck (line 320) | func (rabbitAsTest) TopicErrorCheck(t *pubsub.Topic, err error) error { method SubscriptionErrorCheck (line 341) | func (rabbitAsTest) SubscriptionErrorCheck(s *pubsub.Subscription, err... method MessageCheck (line 362) | func (r rabbitAsTest) MessageCheck(m *pubsub.Message) error { method BeforeSend (line 376) | func (rabbitAsTest) BeforeSend(as func(any) bool) error { method AfterSend (line 384) | func (rabbitAsTest) AfterSend(as func(any) bool) error { function TestOpenTopicFromURL (line 388) | func TestOpenTopicFromURL(t *testing.T) { function TestOpenSubscriptionFromURL (line 435) | func TestOpenSubscriptionFromURL(t *testing.T) { FILE: pubsub/sub_test.go type scriptedSub (line 26) | type scriptedSub struct method ReceiveBatch (line 39) | func (s *scriptedSub) ReceiveBatch(ctx context.Context, maxMessages in... method SendAcks (line 45) | func (s *scriptedSub) SendAcks(ctx context.Context, ackIDs []driver.Ac... method CanNack (line 49) | func (*scriptedSub) CanNack() bool { return false } method Close (line 50) | func (s *scriptedSub) Close() error { function TestReceiveWithEmptyBatchReturnedFromDriver (line 55) | func TestReceiveWithEmptyBatchReturnedFromDriver(t *testing.T) { function TestSubscriptionCloseIsCalled (line 74) | func TestSubscriptionCloseIsCalled(t *testing.T) { FILE: runtimevar/awsparamstore/awsparamstore.go function init (line 57) | func init() { function Dial (line 67) | func Dial(cfg aws.Config) *ssm.Client { type URLOpener (line 81) | type URLOpener struct method OpenVariableURL (line 108) | func (o *URLOpener) OpenVariableURL(ctx context.Context, u *url.URL) (... type lazySessionOpener (line 92) | type lazySessionOpener struct method OpenVariableURL (line 98) | func (o *lazySessionOpener) OpenVariableURL(ctx context.Context, u *ur... constant Scheme (line 104) | Scheme = "awsparamstore" type Options (line 135) | type Options struct function OpenVariable (line 146) | func OpenVariable(client *ssm.Client, name string, decoder *runtimevar.D... function newWatcher (line 152) | func newWatcher(client *ssm.Client, name string, decoder *runtimevar.Dec... type state (line 165) | type state struct method Value (line 174) | func (s *state) Value() (any, error) { method UpdateTime (line 179) | func (s *state) UpdateTime() time.Time { method As (line 184) | func (s *state) As(i any) bool { function errorState (line 196) | func errorState(err error, prevS driver.State) driver.State { function equivalentError (line 224) | func equivalentError(err1, err2 error) bool { type watcher (line 233) | type watcher struct method WatchVariable (line 259) | func (w *watcher) WatchVariable(ctx context.Context, prev driver.State... method Close (line 289) | func (w *watcher) Close() error { method ErrorAs (line 294) | func (w *watcher) ErrorAs(err error, i any) bool { method ErrorCode (line 307) | func (w *watcher) ErrorCode(err error) gcerrors.ErrorCode { function getParameter (line 244) | func getParameter(ctx context.Context, client *ssm.Client, name string) ... function getErrorCode (line 298) | func getErrorCode(err error) string { FILE: runtimevar/awsparamstore/awsparamstore_test.go constant region (line 35) | region = "us-east-2" type harness (line 37) | type harness struct method MakeWatcher (line 49) | func (h *harness) MakeWatcher(ctx context.Context, name string, decode... method CreateVariable (line 53) | func (h *harness) CreateVariable(ctx context.Context, name string, val... method UpdateVariable (line 63) | func (h *harness) UpdateVariable(ctx context.Context, name string, val... method DeleteVariable (line 67) | func (h *harness) DeleteVariable(ctx context.Context, name string) err... method Close (line 72) | func (h *harness) Close() { method Mutable (line 76) | func (h *harness) Mutable() bool { return true } function newHarness (line 42) | func newHarness(t *testing.T) (drivertest.Harness, error) { function TestConformance (line 78) | func TestConformance(t *testing.T) { type verifyAs (line 82) | type verifyAs struct method Name (line 85) | func (verifyAs) Name() string { method SnapshotCheck (line 89) | func (v verifyAs) SnapshotCheck(s *runtimevar.Snapshot) error { method ErrorCheck (line 97) | func (va verifyAs) ErrorCheck(v *runtimevar.Variable, err error) error { function TestOpenVariable (line 107) | func TestOpenVariable(t *testing.T) { FILE: runtimevar/awsparamstore/example_test.go function ExampleOpenVariable (line 27) | func ExampleOpenVariable() { function Example_openVariableFromURL (line 47) | func Example_openVariableFromURL() { FILE: runtimevar/awssecretsmanager/awssecretsmanager.go function init (line 57) | func init() { function Dial (line 67) | func Dial(cfg aws.Config) *secretsmanager.Client { type URLOpener (line 82) | type URLOpener struct method OpenVariableURL (line 109) | func (o *URLOpener) OpenVariableURL(ctx context.Context, u *url.URL) (... type lazySessionOpener (line 93) | type lazySessionOpener struct method OpenVariableURL (line 99) | func (o *lazySessionOpener) OpenVariableURL(ctx context.Context, u *ur... constant Scheme (line 105) | Scheme = "awssecretsmanager" type Options (line 135) | type Options struct function OpenVariable (line 147) | func OpenVariable(client *secretsmanager.Client, name string, decoder *r... type state (line 154) | type state struct method Value (line 164) | func (s *state) Value() (any, error) { method UpdateTime (line 169) | func (s *state) UpdateTime() time.Time { method As (line 174) | func (s *state) As(i any) bool { function errorState (line 188) | func errorState(err error, prevS driver.State) driver.State { function equivalentError (line 213) | func equivalentError(err1, err2 error) bool { type watcher (line 222) | type watcher struct method WatchVariable (line 266) | func (w *watcher) WatchVariable(ctx context.Context, prev driver.State... method Close (line 321) | func (w *watcher) Close() error { method ErrorAs (line 326) | func (w *watcher) ErrorAs(err error, i any) bool { method ErrorCode (line 339) | func (w *watcher) ErrorCode(err error) gcerrors.ErrorCode { function newWatcher (line 233) | func newWatcher(client *secretsmanager.Client, name string, decoder *run... function getSecretValue (line 245) | func getSecretValue(ctx context.Context, client *secretsmanager.Client, ... function describeSecret (line 255) | func describeSecret(ctx context.Context, client *secretsmanager.Client, ... function getErrorCode (line 330) | func getErrorCode(err error) string { FILE: runtimevar/awssecretsmanager/awssecretsmanager_test.go constant region (line 43) | region = "us-east-2" type harness (line 45) | type harness struct method MakeWatcher (line 106) | func (h *harness) MakeWatcher(_ context.Context, name string, decoder ... method CreateVariable (line 110) | func (h *harness) CreateVariable(ctx context.Context, name string, val... method UpdateVariable (line 133) | func (h *harness) UpdateVariable(ctx context.Context, name string, val... method DeleteVariable (line 168) | func (h *harness) DeleteVariable(ctx context.Context, name string) err... method Close (line 196) | func (h *harness) Close() { method Mutable (line 200) | func (h *harness) Mutable() bool { return true } function waitForMutation (line 54) | func waitForMutation(ctx context.Context, check func() error) error { function generateClientRequestToken (line 81) | func generateClientRequestToken(name string, data []byte) string { function newHarness (line 96) | func newHarness(t *testing.T) (drivertest.Harness, error) { function TestConformance (line 202) | func TestConformance(t *testing.T) { type verifyAs (line 206) | type verifyAs struct method Name (line 209) | func (verifyAs) Name() string { method SnapshotCheck (line 213) | func (v verifyAs) SnapshotCheck(s *runtimevar.Snapshot) error { method ErrorCheck (line 225) | func (va verifyAs) ErrorCheck(v *runtimevar.Variable, err error) error { function TestOpenVariable (line 235) | func TestOpenVariable(t *testing.T) { FILE: runtimevar/awssecretsmanager/example_test.go function ExampleOpenVariable (line 27) | func ExampleOpenVariable() { function Example_openVariableFromURL (line 48) | func Example_openVariableFromURL() { FILE: runtimevar/blobvar/blobvar.go function init (line 52) | func init() { type defaultOpener (line 56) | type defaultOpener struct method OpenVariableURL (line 62) | func (o *defaultOpener) OpenVariableURL(ctx context.Context, u *url.UR... constant Scheme (line 83) | Scheme = "blob" type URLOpener (line 92) | type URLOpener struct method OpenVariableURL (line 106) | func (o *URLOpener) OpenVariableURL(ctx context.Context, u *url.URL) (... type Options (line 136) | type Options struct function OpenVariable (line 146) | func OpenVariable(bucket *blob.Bucket, key string, decoder *runtimevar.D... function newWatcher (line 150) | func newWatcher(bucket *blob.Bucket, key string, decoder *runtimevar.Dec... type state (line 164) | type state struct method Value (line 172) | func (s *state) Value() (any, error) { method UpdateTime (line 177) | func (s *state) UpdateTime() time.Time { method As (line 182) | func (s *state) As(i any) bool { function errorState (line 188) | func errorState(err error, prevS driver.State) driver.State { type watcher (line 207) | type watcher struct method WatchVariable (line 216) | func (w *watcher) WatchVariable(ctx context.Context, prev driver.State... method Close (line 237) | func (w *watcher) Close() error { method ErrorAs (line 244) | func (w *watcher) ErrorAs(err error, i any) bool { method ErrorCode (line 249) | func (*watcher) ErrorCode(err error) gcerrors.ErrorCode { FILE: runtimevar/blobvar/blobvar_test.go type harness (line 34) | type harness struct method MakeWatcher (line 52) | func (h *harness) MakeWatcher(ctx context.Context, name string, decode... method CreateVariable (line 56) | func (h *harness) CreateVariable(ctx context.Context, name string, val... method UpdateVariable (line 60) | func (h *harness) UpdateVariable(ctx context.Context, name string, val... method DeleteVariable (line 64) | func (h *harness) DeleteVariable(ctx context.Context, name string) err... method Close (line 68) | func (h *harness) Close() { method Mutable (line 73) | func (h *harness) Mutable() bool { return true } function newHarness (line 39) | func newHarness(t *testing.T) (drivertest.Harness, error) { function TestConformance (line 75) | func TestConformance(t *testing.T) { type verifyAs (line 79) | type verifyAs struct method Name (line 81) | func (verifyAs) Name() string { method SnapshotCheck (line 85) | func (verifyAs) SnapshotCheck(s *runtimevar.Snapshot) error { method ErrorCheck (line 89) | func (verifyAs) ErrorCheck(v *runtimevar.Variable, err error) error { function TestOpenVariable (line 97) | func TestOpenVariable(t *testing.T) { FILE: runtimevar/blobvar/example_test.go function ExampleOpenVariable (line 27) | func ExampleOpenVariable() { function Example_openVariableFromURL (line 57) | func Example_openVariableFromURL() { FILE: runtimevar/constantvar/constantvar.go function init (line 43) | func init() { constant Scheme (line 48) | Scheme = "constant" type URLOpener (line 65) | type URLOpener struct method OpenVariableURL (line 73) | func (o *URLOpener) OpenVariableURL(ctx context.Context, u *url.URL) (... function New (line 107) | func New(value any) *runtimevar.Variable { function NewBytes (line 114) | func NewBytes(b []byte, decoder *runtimevar.Decoder) *runtimevar.Variable { function NewFromEnv (line 129) | func NewFromEnv(envVarName string, decoder *runtimevar.Decoder) *runtime... function NewError (line 141) | func NewError(err error) *runtimevar.Variable { type watcher (line 146) | type watcher struct method Value (line 153) | func (w *watcher) Value() (any, error) { method UpdateTime (line 158) | func (w *watcher) UpdateTime() time.Time { method As (line 163) | func (w *watcher) As(i any) bool { method WatchVariable (line 168) | func (w *watcher) WatchVariable(ctx context.Context, prev driver.State... method Close (line 180) | func (*watcher) Close() error { return nil } method ErrorAs (line 183) | func (*watcher) ErrorAs(err error, i any) bool { return false } method ErrorCode (line 186) | func (*watcher) ErrorCode(err error) gcerrors.ErrorCode { FILE: runtimevar/constantvar/constantvar_test.go type harness (line 29) | type harness struct method MakeWatcher (line 40) | func (h *harness) MakeWatcher(ctx context.Context, name string, decode... method CreateVariable (line 54) | func (h *harness) CreateVariable(ctx context.Context, name string, val... method UpdateVariable (line 59) | func (h *harness) UpdateVariable(ctx context.Context, name string, val... method DeleteVariable (line 63) | func (h *harness) DeleteVariable(ctx context.Context, name string) err... method Close (line 67) | func (h *harness) Close() {} method Mutable (line 69) | func (h *harness) Mutable() bool { return false } function newHarness (line 34) | func newHarness(t *testing.T) (drivertest.Harness, error) { function TestConformance (line 71) | func TestConformance(t *testing.T) { type verifyAs (line 75) | type verifyAs struct method Name (line 77) | func (verifyAs) Name() string { method SnapshotCheck (line 81) | func (verifyAs) SnapshotCheck(s *runtimevar.Snapshot) error { method ErrorCheck (line 89) | func (verifyAs) ErrorCheck(v *runtimevar.Variable, err error) error { function TestNew (line 97) | func TestNew(t *testing.T) { function TestNewBytes (line 113) | func TestNewBytes(t *testing.T) { function TestNewFromEnv (line 138) | func TestNewFromEnv(t *testing.T) { function TestNewError (line 167) | func TestNewError(t *testing.T) { function TestOpenVariable (line 178) | func TestOpenVariable(t *testing.T) { function TestDecryptWithNoURLEnv (line 227) | func TestDecryptWithNoURLEnv(t *testing.T) { FILE: runtimevar/constantvar/example_test.go function ExampleNew (line 28) | func ExampleNew() { function ExampleNewBytes (line 44) | func ExampleNewBytes() { function ExampleNewFromEnv (line 60) | func ExampleNewFromEnv() { function ExampleNewError (line 77) | func ExampleNewError() { function Example_openVariableFromURL (line 96) | func Example_openVariableFromURL() { FILE: runtimevar/driver/driver.go constant DefaultWaitDuration (line 28) | DefaultWaitDuration = 30 * time.Second function WaitDuration (line 31) | func WaitDuration(d time.Duration) time.Duration { type State (line 39) | type State interface type Watcher (line 63) | type Watcher interface FILE: runtimevar/drivertest/drivertest.go type Harness (line 33) | type Harness interface type HarnessMaker (line 52) | type HarnessMaker type AsTest (line 60) | type AsTest interface type verifyAsFailsOnNil (line 71) | type verifyAsFailsOnNil struct method Name (line 73) | func (verifyAsFailsOnNil) Name() string { method SnapshotCheck (line 77) | func (verifyAsFailsOnNil) SnapshotCheck(v *runtimevar.Snapshot) error { method ErrorCheck (line 84) | func (verifyAsFailsOnNil) ErrorCheck(v *runtimevar.Variable, err error... function RunConformanceTests (line 96) | func RunConformanceTests(t *testing.T, newHarness HarnessMaker, asTests ... function waitTimeForBlockingCheck (line 137) | func waitTimeForBlockingCheck() time.Duration { function testNonExistentVariable (line 144) | func testNonExistentVariable(t *testing.T, newHarness HarnessMaker) { function testString (line 172) | func testString(t *testing.T, newHarness HarnessMaker) { type Message (line 239) | type Message struct function testJSON (line 243) | func testJSON(t *testing.T, newHarness HarnessMaker) { function testInvalidJSON (line 296) | func testInvalidJSON(t *testing.T, newHarness HarnessMaker) { function testUpdate (line 339) | func testUpdate(t *testing.T, newHarness HarnessMaker) { function testDelete (line 433) | func testDelete(t *testing.T, newHarness HarnessMaker) { function testUpdateWithErrors (line 528) | func testUpdateWithErrors(t *testing.T, newHarness HarnessMaker) { function testAs (line 625) | func testAs(t *testing.T, newHarness HarnessMaker, st AsTest) { FILE: runtimevar/etcdvar/etcdvar.go function init (line 52) | func init() { constant Scheme (line 57) | Scheme = "etcd" type defaultDialer (line 59) | type defaultDialer struct method OpenVariableURL (line 65) | func (o *defaultDialer) OpenVariableURL(ctx context.Context, u *url.UR... type URLOpener (line 92) | type URLOpener struct method OpenVariableURL (line 105) | func (o *URLOpener) OpenVariableURL(ctx context.Context, u *url.URL) (... type Options (line 122) | type Options struct function OpenVariable (line 133) | func OpenVariable(cli *clientv3.Client, name string, decoder *runtimevar... function newWatcher (line 137) | func newWatcher(cli *clientv3.Client, name string, decoder *runtimevar.D... type state (line 157) | type state struct method Value (line 166) | func (s *state) Value() (any, error) { method UpdateTime (line 171) | func (s *state) UpdateTime() time.Time { method As (line 176) | func (s *state) As(i any) bool { type watcher (line 189) | type watcher struct method WatchVariable (line 202) | func (w *watcher) WatchVariable(ctx context.Context, _ driver.State) (... method updateState (line 214) | func (w *watcher) updateState(s, prev *state) *state { method watch (line 251) | func (w *watcher) watch(ctx context.Context, cli *clientv3.Client, nam... method Close (line 298) | func (w *watcher) Close() error { method ErrorAs (line 308) | func (w *watcher) ErrorAs(err error, i any) bool { method ErrorCode (line 320) | func (*watcher) ErrorCode(err error) gcerrors.ErrorCode { function equivalentError (line 234) | func equivalentError(err1, err2 error) bool { FILE: runtimevar/etcdvar/etcdvar_test.go type harness (line 36) | type harness struct method MakeWatcher (line 51) | func (h *harness) MakeWatcher(ctx context.Context, name string, decode... method CreateVariable (line 55) | func (h *harness) CreateVariable(ctx context.Context, name string, val... method UpdateVariable (line 60) | func (h *harness) UpdateVariable(ctx context.Context, name string, val... method DeleteVariable (line 64) | func (h *harness) DeleteVariable(ctx context.Context, name string) err... method Mutable (line 69) | func (h *harness) Mutable() bool { return true } method Close (line 71) | func (h *harness) Close() {} function newHarness (line 40) | func newHarness(t *testing.T) (drivertest.Harness, error) { function TestConformance (line 73) | func TestConformance(t *testing.T) { type verifyAs (line 77) | type verifyAs struct method Name (line 79) | func (verifyAs) Name() string { method SnapshotCheck (line 83) | func (verifyAs) SnapshotCheck(s *runtimevar.Snapshot) error { method ErrorCheck (line 91) | func (verifyAs) ErrorCheck(v *runtimevar.Variable, err error) error { function TestEquivalentError (line 107) | func TestEquivalentError(t *testing.T) { function TestNoConnectionError (line 127) | func TestNoConnectionError(t *testing.T) { function TestOpenVariable (line 147) | func TestOpenVariable(t *testing.T) { FILE: runtimevar/etcdvar/example_test.go function ExampleOpenVariable (line 26) | func ExampleOpenVariable() { function Example_openVariableFromURL (line 43) | func Example_openVariableFromURL() { FILE: runtimevar/example_openvariable_test.go function Example_openVariableFromURL (line 26) | func Example_openVariableFromURL() { FILE: runtimevar/example_test.go function Example_jsonDecoder (line 31) | func Example_jsonDecoder() { function Example_stringDecoder (line 67) | func Example_stringDecoder() { function ExampleVariable_Latest (line 86) | func ExampleVariable_Latest() { function ExampleSnapshot_As (line 99) | func ExampleSnapshot_As() { function ExampleVariable_ErrorAs (line 124) | func ExampleVariable_ErrorAs() { function ExampleVariable_Watch (line 147) | func ExampleVariable_Watch() { function ExampleDecryptDecode (line 181) | func ExampleDecryptDecode() { FILE: runtimevar/filevar/example_test.go function ExampleOpenVariable (line 27) | func ExampleOpenVariable() { function Example_openVariableFromURL (line 56) | func Example_openVariableFromURL() { FILE: runtimevar/filevar/filevar.go function init (line 59) | func init() { constant Scheme (line 64) | Scheme = "file" type URLOpener (line 78) | type URLOpener struct method OpenVariableURL (line 89) | func (o *URLOpener) OpenVariableURL(ctx context.Context, u *url.URL) (... type Options (line 121) | type Options struct function OpenVariable (line 131) | func OpenVariable(path string, decoder *runtimevar.Decoder, opts *Option... function newWatcher (line 139) | func newWatcher(path string, decoder *runtimevar.Decoder, opts *Options)... type errNotExist (line 179) | type errNotExist struct method Error (line 183) | func (e *errNotExist) Error() string { type state (line 188) | type state struct method Value (line 195) | func (s *state) Value() (any, error) { method UpdateTime (line 199) | func (s *state) UpdateTime() time.Time { method As (line 203) | func (s *state) As(i any) bool { type watcher (line 208) | type watcher struct method WatchVariable (line 225) | func (w *watcher) WatchVariable(ctx context.Context, _ driver.State) (... method updateState (line 237) | func (w *watcher) updateState(s, prev *state) *state { method watch (line 258) | func (w *watcher) watch(ctx context.Context, notifier *fsnotify.Watche... method Close (line 326) | func (w *watcher) Close() error { method ErrorAs (line 338) | func (w *watcher) ErrorAs(err error, i any) bool { return false } method ErrorCode (line 341) | func (*watcher) ErrorCode(err error) gcerrors.ErrorCode { FILE: runtimevar/filevar/filevar_test.go type harness (line 35) | type harness struct method MakeWatcher (line 51) | func (h *harness) MakeWatcher(ctx context.Context, name string, decode... method CreateVariable (line 57) | func (h *harness) CreateVariable(ctx context.Context, name string, val... method UpdateVariable (line 72) | func (h *harness) UpdateVariable(ctx context.Context, name string, val... method DeleteVariable (line 76) | func (h *harness) DeleteVariable(ctx context.Context, name string) err... method Close (line 81) | func (h *harness) Close() { method Mutable (line 85) | func (h *harness) Mutable() bool { return true } function newHarness (line 40) | func newHarness(t *testing.T) (drivertest.Harness, error) { function TestConformance (line 87) | func TestConformance(t *testing.T) { type verifyAs (line 91) | type verifyAs struct method Name (line 93) | func (verifyAs) Name() string { method SnapshotCheck (line 97) | func (verifyAs) SnapshotCheck(s *runtimevar.Snapshot) error { method ErrorCheck (line 105) | func (verifyAs) ErrorCheck(v *runtimevar.Variable, err error) error { function TestOpenVariable (line 115) | func TestOpenVariable(t *testing.T) { function TestOpenVariableURL (line 175) | func TestOpenVariableURL(t *testing.T) { function setupTestSecrets (line 274) | func setupTestSecrets(ctx context.Context, dir, secretsPath string) (fun... FILE: runtimevar/gcpruntimeconfig/example_test.go function ExampleOpenVariable (line 26) | func ExampleOpenVariable() { function Example_openVariableFromURL (line 65) | func Example_openVariableFromURL() { FILE: runtimevar/gcpruntimeconfig/gcpruntimeconfig.go constant endPoint (line 65) | endPoint = "runtimeconfig.googleapis.com:443" function Dial (line 74) | func Dial(ctx context.Context, ts gcp.TokenSource) (pb.RuntimeConfigMana... function init (line 86) | func init() { type lazyCredsOpener (line 98) | type lazyCredsOpener struct method OpenVariableURL (line 104) | func (o *lazyCredsOpener) OpenVariableURL(ctx context.Context, u *url.... constant Scheme (line 125) | Scheme = "gcpruntimeconfig" type URLOpener (line 140) | type URLOpener struct method OpenVariableURL (line 154) | func (o *URLOpener) OpenVariableURL(ctx context.Context, u *url.URL) (... type Options (line 180) | type Options struct function OpenVariable (line 202) | func OpenVariable(client pb.RuntimeConfigManagerClient, variableKey stri... function newWatcher (line 212) | func newWatcher(client pb.RuntimeConfigManagerClient, variableKey string... function VariableKey (line 231) | func VariableKey(projectID gcp.ProjectID, configID, variableName string)... type state (line 236) | type state struct method Value (line 245) | func (s *state) Value() (any, error) { method UpdateTime (line 250) | func (s *state) UpdateTime() time.Time { method As (line 255) | func (s *state) As(i any) bool { function errorState (line 269) | func errorState(err error, prevS driver.State) driver.State { function equivalentError (line 288) | func equivalentError(err1, err2 error) bool { type watcher (line 298) | type watcher struct method WatchVariable (line 306) | func (w *watcher) WatchVariable(ctx context.Context, prev driver.State... method Close (line 332) | func (w *watcher) Close() error { method ErrorAs (line 337) | func (w *watcher) ErrorAs(err error, i any) bool { method ErrorCode (line 348) | func (*watcher) ErrorCode(err error) gcerrors.ErrorCode { function bytesFromProto (line 352) | func bytesFromProto(vpb *pb.Variable) []byte { function parseUpdateTime (line 360) | func parseUpdateTime(vpb *pb.Variable) (time.Time, error) { FILE: runtimevar/gcpruntimeconfig/gcpruntimeconfig_test.go constant projectID (line 37) | projectID = "go-cloud-test-216917" constant configID (line 41) | configID = "go_cloud_runtimeconfigurator_test" function configPath (line 44) | func configPath() string { function variableKey (line 48) | func variableKey(variableName string) string { type harness (line 52) | type harness struct method MakeWatcher (line 80) | func (h *harness) MakeWatcher(ctx context.Context, name string, decode... method CreateVariable (line 84) | func (h *harness) CreateVariable(ctx context.Context, name string, val... method UpdateVariable (line 95) | func (h *harness) UpdateVariable(ctx context.Context, name string, val... method DeleteVariable (line 105) | func (h *harness) DeleteVariable(ctx context.Context, name string) err... method Close (line 110) | func (h *harness) Close() { method Mutable (line 114) | func (h *harness) Mutable() bool { return true } function newHarness (line 57) | func newHarness(t *testing.T) (drivertest.Harness, error) { function TestConformance (line 116) | func TestConformance(t *testing.T) { type verifyAs (line 120) | type verifyAs struct method Name (line 122) | func (verifyAs) Name() string { method SnapshotCheck (line 126) | func (verifyAs) SnapshotCheck(s *runtimevar.Snapshot) error { method ErrorCheck (line 134) | func (verifyAs) ErrorCheck(v *runtimevar.Variable, err error) error { function TestEquivalentError (line 144) | func TestEquivalentError(t *testing.T) { function TestNoConnectionError (line 164) | func TestNoConnectionError(t *testing.T) { function TestOpenVariable (line 190) | func TestOpenVariable(t *testing.T) { FILE: runtimevar/gcpsecretmanager/example_test.go function ExampleOpenVariable (line 26) | func ExampleOpenVariable() { function Example_openVariableFromURL (line 67) | func Example_openVariableFromURL() { FILE: runtimevar/gcpsecretmanager/gcpsecretmanager.go function Dial (line 71) | func Dial(ctx context.Context, ts gcp.TokenSource) (*secretmanager.Clien... function init (line 86) | func init() { type lazyCredsOpener (line 98) | type lazyCredsOpener struct method OpenVariableURL (line 104) | func (o *lazyCredsOpener) OpenVariableURL(ctx context.Context, u *url.... constant Scheme (line 125) | Scheme = "gcpsecretmanager" type URLOpener (line 140) | type URLOpener struct method OpenVariableURL (line 154) | func (o *URLOpener) OpenVariableURL(ctx context.Context, u *url.URL) (... type Options (line 180) | type Options struct function OpenVariable (line 211) | func OpenVariable(client *secretmanager.Client, secretKey string, decode... constant latestVersion (line 221) | latestVersion = "/versions/latest" function newWatcher (line 223) | func newWatcher(client *secretmanager.Client, secretKey string, decoder ... function SecretKey (line 242) | func SecretKey(projectID gcp.ProjectID, secretID string) string { type state (line 247) | type state struct method Value (line 256) | func (s *state) Value() (any, error) { method UpdateTime (line 261) | func (s *state) UpdateTime() time.Time { method As (line 266) | func (s *state) As(i any) bool { function errorState (line 280) | func errorState(err error, prevS driver.State) driver.State { function equivalentError (line 299) | func equivalentError(err1, err2 error) bool { type watcher (line 308) | type watcher struct method WatchVariable (line 316) | func (w *watcher) WatchVariable(ctx context.Context, prev driver.State... method Close (line 357) | func (w *watcher) Close() error { method ErrorAs (line 362) | func (w *watcher) ErrorAs(err error, i any) bool { method ErrorCode (line 373) | func (*watcher) ErrorCode(err error) gcerrors.ErrorCode { FILE: runtimevar/gcpsecretmanager/gcpsecretmanager_test.go constant projectID (line 40) | projectID = "go-cloud-test-216917" function secretKey (line 42) | func secretKey(secretID string) string { type harness (line 46) | type harness struct method MakeWatcher (line 71) | func (h *harness) MakeWatcher(_ context.Context, name string, decoder ... method CreateVariable (line 75) | func (h *harness) CreateVariable(ctx context.Context, name string, val... method UpdateVariable (line 103) | func (h *harness) UpdateVariable(ctx context.Context, name string, val... method DeleteVariable (line 112) | func (h *harness) DeleteVariable(ctx context.Context, name string) err... method Close (line 116) | func (h *harness) Close() { method Mutable (line 120) | func (h *harness) Mutable() bool { return true } function newHarness (line 51) | func newHarness(t *testing.T) (drivertest.Harness, error) { function TestConformance (line 122) | func TestConformance(t *testing.T) { type verifyAs (line 126) | type verifyAs struct method Name (line 128) | func (verifyAs) Name() string { method SnapshotCheck (line 132) | func (verifyAs) SnapshotCheck(s *runtimevar.Snapshot) error { method ErrorCheck (line 140) | func (verifyAs) ErrorCheck(v *runtimevar.Variable, err error) error { function TestEquivalentError (line 150) | func TestEquivalentError(t *testing.T) { function TestNoConnectionError (line 170) | func TestNoConnectionError(t *testing.T) { function TestOpenVariable (line 201) | func TestOpenVariable(t *testing.T) { function openVariable (line 243) | func openVariable(ctx context.Context, URL string) (err error) { FILE: runtimevar/hashivault/example_test.go function ExampleOpenVariable (line 26) | func ExampleOpenVariable() { function Example_openVariableFromURL (line 50) | func Example_openVariableFromURL() { FILE: runtimevar/hashivault/hashivault.go function init (line 55) | func init() { constant Scheme (line 60) | Scheme = "hashivault" type SecretError (line 63) | type SecretError struct method Error (line 70) | func (e *SecretError) Error() string { function newNotFoundError (line 74) | func newNotFoundError(path string) *SecretError { function newInvalidDataError (line 81) | func newInvalidDataError(path, reason string) *SecretError { type Config (line 89) | type Config struct function Dial (line 99) | func Dial(ctx context.Context, cfg *Config) (*api.Client, error) { function getVaultURL (line 113) | func getVaultURL() (string, error) { function getVaultToken (line 123) | func getVaultToken() string { type defaultDialer (line 133) | type defaultDialer struct method OpenVariableURL (line 139) | func (o *defaultDialer) OpenVariableURL(ctx context.Context, u *url.UR... type URLOpener (line 171) | type URLOpener struct method OpenVariableURL (line 184) | func (o *URLOpener) OpenVariableURL(ctx context.Context, u *url.URL) (... type Options (line 229) | type Options struct function OpenVariable (line 248) | func OpenVariable(client *api.Client, secretPath string, decoder *runtim... function newWatcher (line 256) | func newWatcher(client *api.Client, secretPath string, decoder *runtimev... type state (line 291) | type state struct method Value (line 300) | func (s *state) Value() (any, error) { method UpdateTime (line 305) | func (s *state) UpdateTime() time.Time { method As (line 310) | func (s *state) As(i any) bool { function errorState (line 322) | func errorState(err error, prevS driver.State) driver.State { function equivalentError (line 337) | func equivalentError(err1, err2 error) bool { type watcher (line 352) | type watcher struct method WatchVariable (line 362) | func (w *watcher) WatchVariable(ctx context.Context, prev driver.State... method Close (line 433) | func (w *watcher) Close() error { method ErrorAs (line 438) | func (w *watcher) ErrorAs(err error, i any) bool { method ErrorCode (line 457) | func (w *watcher) ErrorCode(err error) gcerrors.ErrorCode { FILE: runtimevar/hashivault/hashivault_test.go constant apiAddress (line 38) | apiAddress = "http://127.0.0.1:8200" constant testToken (line 39) | testToken = "faketoken" type harness (line 42) | type harness struct method MakeWatcher (line 46) | func (h *harness) MakeWatcher(ctx context.Context, name string, decode... method CreateVariable (line 50) | func (h *harness) CreateVariable(ctx context.Context, name string, val... method UpdateVariable (line 61) | func (h *harness) UpdateVariable(ctx context.Context, name string, val... method DeleteVariable (line 65) | func (h *harness) DeleteVariable(ctx context.Context, name string) err... method Close (line 70) | func (h *harness) Close() {} method Mutable (line 72) | func (h *harness) Mutable() bool { function newHarness (line 76) | func newHarness(t *testing.T) (drivertest.Harness, error) { function TestConformance (line 103) | func TestConformance(t *testing.T) { type verifyAs (line 107) | type verifyAs struct method Name (line 109) | func (verifyAs) Name() string { method SnapshotCheck (line 113) | func (verifyAs) SnapshotCheck(s *runtimevar.Snapshot) error { method ErrorCheck (line 121) | func (verifyAs) ErrorCheck(v *runtimevar.Variable, err error) error { function TestNoConfigError (line 132) | func TestNoConfigError(t *testing.T) { function TestEquivalentError (line 138) | func TestEquivalentError(t *testing.T) { function TestWatcherErrorCode (line 170) | func TestWatcherErrorCode(t *testing.T) { function TestEngineVersionPaths (line 219) | func TestEngineVersionPaths(t *testing.T) { function TestInvalidEngineVersion (line 263) | func TestInvalidEngineVersion(t *testing.T) { function fakeConnectionStringInEnv (line 281) | func fakeConnectionStringInEnv() func() { function alternativeConnectionStringEnvVars (line 292) | func alternativeConnectionStringEnvVars() func() { function unsetConnectionStringEnvVars (line 303) | func unsetConnectionStringEnvVars() func() { function TestGetVaultConnectionDetails (line 320) | func TestGetVaultConnectionDetails(t *testing.T) { function TestOpenVariableURL (line 373) | func TestOpenVariableURL(t *testing.T) { FILE: runtimevar/httpvar/example_test.go function ExampleOpenVariable (line 26) | func ExampleOpenVariable() { function Example_openVariableFromURL (line 40) | func Example_openVariableFromURL() { FILE: runtimevar/httpvar/httpvar.go function init (line 51) | func init() { type URLOpener (line 69) | type URLOpener struct method OpenVariableURL (line 82) | func (o *URLOpener) OpenVariableURL(ctx context.Context, u *url.URL) (... type Options (line 110) | type Options struct type RequestError (line 117) | type RequestError struct method Error (line 121) | func (e *RequestError) Error() string { function newRequestError (line 125) | func newRequestError(response *http.Response) *RequestError { function OpenVariable (line 131) | func OpenVariable(client *http.Client, urlStr string, decoder *runtimeva... type state (line 140) | type state struct method Value (line 149) | func (s *state) Value() (any, error) { method UpdateTime (line 154) | func (s *state) UpdateTime() time.Time { method As (line 159) | func (s *state) As(i any) bool { function errorState (line 173) | func errorState(err error, prevS driver.State) driver.State { function equivalentError (line 192) | func equivalentError(err1, err2 error) bool { type watcher (line 208) | type watcher struct method WatchVariable (line 216) | func (w *watcher) WatchVariable(ctx context.Context, prev driver.State... method Close (line 261) | func (w *watcher) Close() error { method ErrorAs (line 266) | func (w *watcher) ErrorAs(err error, i any) bool { method ErrorCode (line 283) | func (*watcher) ErrorCode(err error) gcerrors.ErrorCode { function newWatcher (line 301) | func newWatcher(client *http.Client, endpoint *url.URL, decoder *runtime... FILE: runtimevar/httpvar/httpvar_test.go type harness (line 36) | type harness struct method MakeWatcher (line 40) | func (h *harness) MakeWatcher(ctx context.Context, name string, decode... method CreateVariable (line 48) | func (h *harness) CreateVariable(ctx context.Context, name string, val... method UpdateVariable (line 53) | func (h *harness) UpdateVariable(ctx context.Context, name string, val... method DeleteVariable (line 58) | func (h *harness) DeleteVariable(ctx context.Context, name string) err... method Close (line 63) | func (h *harness) Close() { method Mutable (line 67) | func (h *harness) Mutable() bool { function newHarness (line 71) | func newHarness(t *testing.T) (drivertest.Harness, error) { function TestConformance (line 79) | func TestConformance(t *testing.T) { type verifyAs (line 83) | type verifyAs struct method Name (line 85) | func (verifyAs) Name() string { method SnapshotCheck (line 89) | func (verifyAs) SnapshotCheck(s *runtimevar.Snapshot) error { method ErrorCheck (line 102) | func (verifyAs) ErrorCheck(v *runtimevar.Variable, err error) error { function TestOpenVariable (line 126) | func TestOpenVariable(t *testing.T) { function TestEquivalentError (line 146) | func TestEquivalentError(t *testing.T) { function TestWatcher_ErrorCode (line 168) | func TestWatcher_ErrorCode(t *testing.T) { function TestWatcher_WatchVariable (line 198) | func TestWatcher_WatchVariable(t *testing.T) { function TestWithAuth (line 224) | func TestWithAuth(t *testing.T) { function TestOpenVariableURL (line 285) | func TestOpenVariableURL(t *testing.T) { type mockServer (line 347) | type mockServer struct method SetResponse (line 355) | func (m *mockServer) SetResponse(name string, response any) { method DeleteResponse (line 359) | func (m *mockServer) DeleteResponse(name string) { function newMockServer (line 363) | func newMockServer() *mockServer { FILE: runtimevar/otel_test.go constant pkgName (line 27) | pkgName = "gocloud.dev/runtimevar" constant driver (line 28) | driver = "gocloud.dev/runtimevar/constantvar" function TestOpenTelemetry (line 31) | func TestOpenTelemetry(t *testing.T) { FILE: runtimevar/runtimevar.go type Snapshot (line 58) | type Snapshot struct method As (line 73) | func (s *Snapshot) As(i any) bool { constant pkgName (line 80) | pkgName = "gocloud.dev/runtimevar" type Variable (line 89) | type Variable struct method Watch (line 158) | func (c *Variable) Watch(ctx context.Context) (Snapshot, error) { method background (line 178) | func (c *Variable) background(ctx context.Context) { method haveGood (line 235) | func (c *Variable) haveGood() bool { method Latest (line 251) | func (c *Variable) Latest(ctx context.Context) (Snapshot, error) { method CheckHealth (line 271) | func (c *Variable) CheckHealth() error { method Close (line 282) | func (c *Variable) Close() error { method ErrorAs (line 325) | func (c *Variable) ErrorAs(err error, i any) bool { function newVar (line 115) | func newVar(w driver.Watcher) *Variable { function wrapError (line 311) | func wrapError(w driver.Watcher, err error) error { type VariableURLOpener (line 334) | type VariableURLOpener interface type URLMux (line 344) | type URLMux struct method VariableSchemes (line 349) | func (mux *URLMux) VariableSchemes() []string { return mux.schemes.Sch... method ValidVariableScheme (line 352) | func (mux *URLMux) ValidVariableScheme(scheme string) bool { return mu... method RegisterVariable (line 356) | func (mux *URLMux) RegisterVariable(scheme string, opener VariableURLO... method OpenVariable (line 362) | func (mux *URLMux) OpenVariable(ctx context.Context, urlstr string) (*... method OpenVariableURL (line 372) | func (mux *URLMux) OpenVariableURL(ctx context.Context, u *url.URL) (*... function DefaultURLMux (line 385) | func DefaultURLMux() *URLMux { function OpenVariable (line 393) | func OpenVariable(ctx context.Context, urlstr string) (*Variable, error) { type Decode (line 401) | type Decode type Decoder (line 408) | type Decoder struct method Decode (line 427) | func (d *Decoder) Decode(ctx context.Context, b []byte) (any, error) { function NewDecoder (line 419) | func NewDecoder(obj any, fn Decode) *Decoder { function JSONDecode (line 445) | func JSONDecode(ctx context.Context, data []byte, obj any) error { function GobDecode (line 450) | func GobDecode(ctx context.Context, data []byte, obj any) error { function StringDecode (line 455) | func StringDecode(ctx context.Context, b []byte, obj any) error { function BytesDecode (line 462) | func BytesDecode(ctx context.Context, b []byte, obj any) error { function DecryptDecode (line 473) | func DecryptDecode(k *secrets.Keeper, post Decode) Decode { function DecoderByName (line 504) | func DecoderByName(ctx context.Context, decoderName string, dflt *Decode... function decryptByName (line 531) | func decryptByName(ctx context.Context, decoderName string) (*secrets.Ke... function maybeDecrypt (line 553) | func maybeDecrypt(ctx context.Context, k *secrets.Keeper, dec *Decoder) ... FILE: runtimevar/runtimevar_test.go constant blockingCheckDelay (line 40) | blockingCheckDelay = 25 * time.Millisecond type state (line 43) | type state struct method Value (line 49) | func (s *state) Value() (any, error) { return s.val, s.err } method UpdateTime (line 50) | func (s *state) UpdateTime() time.Time { return s.updateTime } method As (line 51) | func (s *state) As(i any) bool { return false } type fakeWatcher (line 54) | type fakeWatcher struct method Set (line 62) | func (w *fakeWatcher) Set(s *state) { method WatchVariable (line 69) | func (w *fakeWatcher) WatchVariable(ctx context.Context, prev driver.S... method Close (line 82) | func (*fakeWatcher) Close() error { return nil } method ErrorCode (line 83) | func (*fakeWatcher) ErrorCode(error) gcerrors.ErrorCode { return gcerr... function TestVariable_Watch (line 85) | func TestVariable_Watch(t *testing.T) { function TestVariable_Latest (line 191) | func TestVariable_Latest(t *testing.T) { function TestVariable_LatestBlockedDuringClose (line 347) | func TestVariable_LatestBlockedDuringClose(t *testing.T) { type erroringWatcher (line 377) | type erroringWatcher struct method WatchVariable (line 381) | func (b *erroringWatcher) WatchVariable(ctx context.Context, prev driv... method Close (line 385) | func (b *erroringWatcher) Close() error { method ErrorCode (line 389) | func (b *erroringWatcher) ErrorCode(err error) gcerrors.ErrorCode { function TestErrorsAreWrapped (line 395) | func TestErrorsAreWrapped(t *testing.T) { function TestURLMux (line 420) | func TestURLMux(t *testing.T) { type fakeOpener (line 523) | type fakeOpener struct method OpenVariableURL (line 527) | func (o *fakeOpener) OpenVariableURL(ctx context.Context, u *url.URL) ... function TestDecoder (line 535) | func TestDecoder(t *testing.T) { function gobMarshal (line 609) | func gobMarshal(v any) ([]byte, error) { function TestStringDecoder (line 617) | func TestStringDecoder(t *testing.T) { function TestBytesDecoder (line 628) | func TestBytesDecoder(t *testing.T) { function TestDecryptDecoder (line 639) | func TestDecryptDecoder(t *testing.T) { FILE: samples/appengine/helloworld.go function main (line 29) | func main() { function handle (line 42) | func handle(w http.ResponseWriter, r *http.Request) { FILE: samples/gocdk-blob/main.go constant helpSuffix (line 37) | helpSuffix = ` function main (line 45) | func main() { function run (line 49) | func run() int { type downloadCmd (line 60) | type downloadCmd struct method Name (line 62) | func (*downloadCmd) Name() string { return "download" } method Synopsis (line 63) | func (*downloadCmd) Synopsis() string { return "Output a blob to stdou... method Usage (line 64) | func (*downloadCmd) Usage() string { method SetFlags (line 73) | func (*downloadCmd) SetFlags(_ *flag.FlagSet) {} method Execute (line 75) | func (*downloadCmd) Execute(ctx context.Context, f *flag.FlagSet, _ ..... type listCmd (line 108) | type listCmd struct method Name (line 113) | func (*listCmd) Name() string { return "ls" } method Synopsis (line 114) | func (*listCmd) Synopsis() string { return "List blobs in a bucket" } method Usage (line 115) | func (*listCmd) Usage() string { method SetFlags (line 124) | func (cmd *listCmd) SetFlags(f *flag.FlagSet) { method Execute (line 129) | func (cmd *listCmd) Execute(ctx context.Context, f *flag.FlagSet, _ ..... type uploadCmd (line 163) | type uploadCmd struct method Name (line 165) | func (*uploadCmd) Name() string { return "upload" } method Synopsis (line 166) | func (*uploadCmd) Synopsis() string { return "Upload a blob from stdin" } method Usage (line 167) | func (*uploadCmd) Usage() string { method SetFlags (line 176) | func (*uploadCmd) SetFlags(_ *flag.FlagSet) {} method Execute (line 178) | func (*uploadCmd) Execute(ctx context.Context, f *flag.FlagSet, _ ...a... FILE: samples/gocdk-blob/main_test.go function Test (line 29) | func Test(t *testing.T) { FILE: samples/gocdk-docstore/main.go constant helpSuffix (line 38) | helpSuffix = ` function main (line 46) | func main() { function run (line 50) | func run() int { type Message (line 61) | type Message struct method String (line 68) | func (m Message) String() string { type listCmd (line 72) | type listCmd struct method Name (line 76) | func (*listCmd) Name() string { return "ls" } method Synopsis (line 77) | func (*listCmd) Synopsis() string { return "List items in a collection" } method Usage (line 78) | func (*listCmd) Usage() string { method SetFlags (line 87) | func (cmd *listCmd) SetFlags(f *flag.FlagSet) { method Execute (line 91) | func (cmd *listCmd) Execute(ctx context.Context, f *flag.FlagSet, _ ..... type putCmd (line 127) | type putCmd struct method Name (line 132) | func (*putCmd) Name() string { return "put" } method Synopsis (line 133) | func (*putCmd) Synopsis() string { return "Put an item from stdin" } method Usage (line 134) | func (*putCmd) Usage() string { method SetFlags (line 143) | func (p *putCmd) SetFlags(f *flag.FlagSet) { method Execute (line 148) | func (p *putCmd) Execute(ctx context.Context, f *flag.FlagSet, _ ...an... type updateCmd (line 183) | type updateCmd struct method Name (line 185) | func (*updateCmd) Name() string { return "update" } method Synopsis (line 186) | func (*updateCmd) Synopsis() string { return "Update an item in a coll... method Usage (line 187) | func (*updateCmd) Usage() string { method SetFlags (line 196) | func (*updateCmd) SetFlags(_ *flag.FlagSet) {} method Execute (line 198) | func (cmd *updateCmd) Execute(ctx context.Context, f *flag.FlagSet, _ ... type deleteCmd (line 225) | type deleteCmd struct method Name (line 229) | func (*deleteCmd) Name() string { return "delete" } method Synopsis (line 230) | func (*deleteCmd) Synopsis() string { return "Delete items in a collec... method Usage (line 231) | func (*deleteCmd) Usage() string { method SetFlags (line 240) | func (cmd *deleteCmd) SetFlags(f *flag.FlagSet) { method Execute (line 244) | func (cmd *deleteCmd) Execute(ctx context.Context, f *flag.FlagSet, _ ... FILE: samples/gocdk-docstore/main_test.go function Test (line 26) | func Test(t *testing.T) { FILE: samples/gocdk-pubsub/main.go constant helpSuffix (line 39) | helpSuffix = ` function main (line 47) | func main() { function run (line 51) | func run() int { type pubCmd (line 61) | type pubCmd struct method Name (line 63) | func (*pubCmd) Name() string { return "pub" } method Synopsis (line 64) | func (*pubCmd) Synopsis() string { return "Publish a message to a topi... method Usage (line 65) | func (*pubCmd) Usage() string { method SetFlags (line 74) | func (*pubCmd) SetFlags(_ *flag.FlagSet) {} method Execute (line 76) | func (*pubCmd) Execute(ctx context.Context, f *flag.FlagSet, _ ...any)... type subCmd (line 113) | type subCmd struct method Name (line 117) | func (*subCmd) Name() string { return "sub" } method Synopsis (line 118) | func (*subCmd) Synopsis() string { return "Receive messages from a sub... method Usage (line 119) | func (*subCmd) Usage() string { method SetFlags (line 128) | func (cmd *subCmd) SetFlags(f *flag.FlagSet) { method Execute (line 132) | func (cmd *subCmd) Execute(ctx context.Context, f *flag.FlagSet, _ ...... FILE: samples/gocdk-pubsub/main_test.go function Test (line 31) | func Test(t *testing.T) { constant rabbitURL (line 48) | rabbitURL = "amqp://guest:guest@localhost:5672/" constant topicName (line 51) | topicName = "sample-topic" constant subscriptionName (line 52) | subscriptionName = "sample-subscription" function initRabbit (line 56) | func initRabbit() error { FILE: samples/gocdk-runtimevar/main.go constant helpSuffix (line 40) | helpSuffix = ` function main (line 48) | func main() { function run (line 52) | func run(ctx context.Context) int { type catCmd (line 62) | type catCmd struct method Name (line 64) | func (*catCmd) Name() string { return "cat" } method Synopsis (line 65) | func (*catCmd) Synopsis() string { return "Print a variable's value to... method Usage (line 66) | func (*catCmd) Usage() string { method SetFlags (line 75) | func (*catCmd) SetFlags(_ *flag.FlagSet) {} method Execute (line 77) | func (*catCmd) Execute(ctx context.Context, f *flag.FlagSet, _ ...any)... type watchCmd (line 101) | type watchCmd struct method Name (line 103) | func (*watchCmd) Name() string { return "watch" } method Synopsis (line 104) | func (*watchCmd) Synopsis() string { return "Watch a variable's value ... method Usage (line 105) | func (*watchCmd) Usage() string { method SetFlags (line 114) | func (*watchCmd) SetFlags(_ *flag.FlagSet) {} method Execute (line 116) | func (*watchCmd) Execute(ctx context.Context, f *flag.FlagSet, _ ...an... FILE: samples/gocdk-runtimevar/main_test.go function Test (line 27) | func Test(t *testing.T) { FILE: samples/gocdk-secrets/main.go constant helpSuffix (line 38) | helpSuffix = ` function main (line 46) | func main() { function run (line 50) | func run() int { type decryptCmd (line 60) | type decryptCmd struct method Name (line 65) | func (*decryptCmd) Name() string { return "decrypt" } method Synopsis (line 66) | func (*decryptCmd) Synopsis() string { return "Decrypt data" } method Usage (line 67) | func (*decryptCmd) Usage() string { method SetFlags (line 76) | func (cmd *decryptCmd) SetFlags(f *flag.FlagSet) { method Execute (line 81) | func (cmd *decryptCmd) Execute(ctx context.Context, f *flag.FlagSet, _... type encryptCmd (line 122) | type encryptCmd struct method Name (line 127) | func (*encryptCmd) Name() string { return "encrypt" } method Synopsis (line 128) | func (*encryptCmd) Synopsis() string { return "Encrypt data" } method Usage (line 129) | func (*encryptCmd) Usage() string { method SetFlags (line 138) | func (cmd *encryptCmd) SetFlags(f *flag.FlagSet) { method Execute (line 143) | func (cmd *encryptCmd) Execute(ctx context.Context, f *flag.FlagSet, _... FILE: samples/gocdk-secrets/main_test.go function Test (line 26) | func Test(t *testing.T) { FILE: samples/guestbook/aws/provision_db/main.go function main (line 31) | func main() { function provisionDb (line 56) | func provisionDb(dbHost, region, securityGroupID, dbName, dbPassword, sc... function run (line 124) | func run(args ...string) (stdout string, err error) { FILE: samples/guestbook/gcp/deploy/main.go function main (line 31) | func main() { function deploy (line 42) | func deploy(guestbookDir, tfStatePath string) error { type service (line 166) | type service struct type status (line 167) | type status struct type loadBalancer (line 168) | type loadBalancer struct type ingress (line 169) | type ingress struct type gcloud (line 172) | type gcloud struct method cmd (line 176) | func (gcp *gcloud) cmd(args ...string) *exec.Cmd { function run (line 184) | func run(args ...string) (stdout string, err error) { function runb (line 189) | func runb(args ...string) (stdout []byte, err error) { FILE: samples/guestbook/gcp/provision_db/main.go function main (line 30) | func main() { type key (line 55) | type key struct function provisionDB (line 59) | func provisionDB(projectID, serviceAccount, dbInstance, dbName, dbPasswo... function run (line 139) | func run(args ...string) (stdout string, err error) { type gcloud (line 150) | type gcloud struct method cmd (line 155) | func (gcp *gcloud) cmd(args ...string) []string { FILE: samples/guestbook/inject_aws.go function setupAWS (line 43) | func setupAWS(ctx context.Context, flags *cliFlags) (*server.Server, fun... function awsBucket (line 59) | func awsBucket(ctx context.Context, client *s3.Client, flags *cliFlags) ... function openAWSDatabase (line 69) | func openAWSDatabase(ctx context.Context, opener *awsmysql.URLOpener, fl... function awsMOTDVar (line 84) | func awsMOTDVar(ctx context.Context, client *ssm.Client, flags *cliFlags... FILE: samples/guestbook/inject_azure.go function setupAzure (line 43) | func setupAzure(ctx context.Context, flags *cliFlags) (*server.Server, f... function bucketName (line 64) | func bucketName(flags *cliFlags) azureblob.ContainerName { function azureBucket (line 70) | func azureBucket(ctx context.Context, client *azcontainer.Client, flags ... function azureMOTDVar (line 80) | func azureMOTDVar(ctx context.Context, b *blob.Bucket, flags *cliFlags) ... FILE: samples/guestbook/inject_gcp.go function setupGCP (line 44) | func setupGCP(ctx context.Context, flags *cliFlags) (*server.Server, fun... function gcpBucket (line 60) | func gcpBucket(ctx context.Context, flags *cliFlags, client *gcp.HTTPCli... function openGCPDatabase (line 70) | func openGCPDatabase(ctx context.Context, opener *gcpmysql.URLOpener, id... function gcpMOTDVar (line 85) | func gcpMOTDVar(ctx context.Context, client pb.RuntimeConfigManagerClien... FILE: samples/guestbook/inject_local.go function setupLocal (line 41) | func setupLocal(ctx context.Context, flags *cliFlags) (*server.Server, f... function localBucket (line 63) | func localBucket(flags *cliFlags) (*blob.Bucket, error) { function dialLocalSQL (line 69) | func dialLocalSQL(flags *cliFlags) (*sql.DB, error) { function localRuntimeVar (line 83) | func localRuntimeVar(flags *cliFlags) (*runtimevar.Variable, func(), err... FILE: samples/guestbook/localdb/main.go function main (line 33) | func main() { function runLocalDB (line 47) | func runLocalDB(containerName, guestbookDir string) error { FILE: samples/guestbook/main.go type cliFlags (line 42) | type cliFlags struct function main (line 58) | func main() { function newRouter (line 123) | func newRouter(app *application) *mux.Router { type application (line 133) | type application struct method index (line 152) | func (app *application) index(w http.ResponseWriter, r *http.Request) { method sign (line 257) | func (app *application) sign(w http.ResponseWriter, r *http.Request) { method serveBlob (line 279) | func (app *application) serveBlob(w http.ResponseWriter, r *http.Reque... function newApplication (line 141) | func newApplication(db *sql.DB, bucket *blob.Bucket, motdVar *runtimevar... type greeting (line 217) | type greeting struct function appHealthChecks (line 302) | func appHealthChecks(db *sql.DB) ([]health.Checker, func()) { FILE: samples/guestbook/schema.sql type greetings (line 15) | CREATE TABLE greetings ( FILE: samples/guestbook/telemetry.go function newResource (line 51) | func newResource() *resource.Resource { function newPropagationTextMap (line 55) | func newPropagationTextMap() propagation.TextMapPropagator { function newTraceExporter (line 60) | func newTraceExporter(ctx context.Context) (sdktrace.SpanExporter, error) { function newTraceSampler (line 71) | func newTraceSampler(ctx context.Context) sdktrace.Sampler { function NewTraceProvider (line 78) | func NewTraceProvider(ctx context.Context, exporter sdktrace.SpanExporte... function newMetricsReader (line 91) | func newMetricsReader(ctx context.Context) (sdkmetric.Reader, error) { function NewMeterProvider (line 104) | func NewMeterProvider(ctx context.Context, reader sdkmetric.Reader) (*sd... function NewLogsExporter (line 116) | func NewLogsExporter(ctx context.Context) (sdklog.Exporter, error) { function NewLoggerProvider (line 129) | func NewLoggerProvider(ctx context.Context, res *resource.Resource, expo... FILE: samples/guestbook/wire_gen.go function setupAWS (line 48) | func setupAWS(ctx context.Context, flags *cliFlags) (*server.Server, fun... function setupAzure (line 142) | func setupAzure(ctx context.Context, flags *cliFlags) (*server.Server, f... function setupGCP (line 199) | func setupGCP(ctx context.Context, flags *cliFlags) (*server.Server, fun... function setupLocal (line 309) | func setupLocal(ctx context.Context, flags *cliFlags) (*server.Server, f... function awsBucket (line 369) | func awsBucket(ctx context.Context, client *s3.Client, flags *cliFlags) ... function openAWSDatabase (line 379) | func openAWSDatabase(ctx context.Context, opener *awsmysql.URLOpener, fl... function awsMOTDVar (line 394) | func awsMOTDVar(ctx context.Context, client *ssm.Client, flags *cliFlags... function bucketName (line 402) | func bucketName(flags *cliFlags) azureblob.ContainerName { function azureBucket (line 408) | func azureBucket(ctx context.Context, client *container.Client, flags *c... function azureMOTDVar (line 418) | func azureMOTDVar(ctx context.Context, b *blob.Bucket, flags *cliFlags) ... function gcpBucket (line 428) | func gcpBucket(ctx context.Context, flags *cliFlags, client *gcp.HTTPCli... function openGCPDatabase (line 438) | func openGCPDatabase(ctx context.Context, opener *gcpmysql.URLOpener, id... function gcpMOTDVar (line 453) | func gcpMOTDVar(ctx context.Context, client runtimeconfig.RuntimeConfigM... function localBucket (line 468) | func localBucket(flags *cliFlags) (*blob.Bucket, error) { function dialLocalSQL (line 474) | func dialLocalSQL(flags *cliFlags) (*sql.DB, error) { function localRuntimeVar (line 488) | func localRuntimeVar(flags *cliFlags) (*runtimevar.Variable, func(), err... FILE: samples/order/common.go type Order (line 22) | type Order struct type OrderRequest (line 35) | type OrderRequest struct FILE: samples/order/frontend.go type frontend (line 42) | type frontend struct method run (line 70) | func (f *frontend) run(ctx context.Context, port int) error { method orderForm (line 96) | func (*frontend) orderForm(w http.ResponseWriter, r *http.Request) err... method createOrder (line 105) | func (f *frontend) createOrder(w http.ResponseWriter, r *http.Request)... method doCreateOrder (line 133) | func (f *frontend) doCreateOrder(ctx context.Context, email string, fi... method listOrders (line 180) | func (f *frontend) listOrders(w http.ResponseWriter, r *http.Request) ... method showImage (line 202) | func (f *frontend) showImage(w http.ResponseWriter, r *http.Request) e... method newID (line 221) | func (f *frontend) newID() string { function init (line 53) | func init() { function wrapHTTPError (line 87) | func wrapHTTPError(f func(http.ResponseWriter, *http.Request) error) fun... function executeTemplate (line 227) | func executeTemplate(t *template.Template, data any, w http.ResponseWrit... FILE: samples/order/frontend_test.go function TestOrderForm (line 30) | func TestOrderForm(t *testing.T) { function TestCreateOrder (line 63) | func TestCreateOrder(t *testing.T) { function TestListOrders (line 94) | func TestListOrders(t *testing.T) { function testConfig (line 151) | func testConfig(name string) config { function clearCollection (line 161) | func clearCollection(ctx context.Context, coll *docstore.Collection) err... FILE: samples/order/order.go function main (line 51) | func main() { type config (line 91) | type config struct function setup (line 99) | func setup(conf config) (_ *frontend, _ *processor, cleanup func(), err ... FILE: samples/order/processor.go type processor (line 45) | type processor struct method run (line 52) | func (p *processor) run(ctx context.Context) error { method handleRequest (line 62) | func (p *processor) handleRequest(ctx context.Context) error { method processOrder (line 163) | func (p *processor) processOrder(ctx context.Context, order *Order) er... function createOrFindOrder (line 130) | func createOrFindOrder(ctx context.Context, coll *docstore.Collection, r... FILE: samples/order/processor_test.go function TestHandleRequest (line 31) | func TestHandleRequest(t *testing.T) { function TestProcessOrder (line 57) | func TestProcessOrder(t *testing.T) { function copyFileToBucket (line 106) | func copyFileToBucket(filename string, bucket *blob.Bucket) (err error) { FILE: samples/server/main.go type GlobalMonitoredResource (line 39) | type GlobalMonitoredResource struct method MonitoredResource (line 44) | func (g GlobalMonitoredResource) MonitoredResource() (string, map[stri... function helloHandler (line 48) | func helloHandler(w http.ResponseWriter, req *http.Request) { function mainHandler (line 52) | func mainHandler(w http.ResponseWriter, req *http.Request) { type customHealthCheck (line 59) | type customHealthCheck struct method CheckHealth (line 64) | func (h *customHealthCheck) CheckHealth() error { function main (line 73) | func main() { FILE: samples/tutorial/main.go function main (line 31) | func main() { FILE: secrets/awskms/example_test.go function ExampleOpenKeeper (line 26) | func ExampleOpenKeeper() { function Example_openFromURL (line 48) | func Example_openFromURL() { FILE: secrets/awskms/kms.go function init (line 54) | func init() { function Dial (line 64) | func Dial(cfg aws.Config) (*kms.Client, error) { type lazySessionOpener (line 72) | type lazySessionOpener struct method OpenKeeperURL (line 78) | func (o *lazySessionOpener) OpenKeeperURL(ctx context.Context, u *url.... constant Scheme (line 84) | Scheme = "awskms" type URLOpener (line 100) | type URLOpener struct method OpenKeeperURL (line 126) | func (o *URLOpener) OpenKeeperURL(ctx context.Context, u *url.URL) (*s... function addEncryptionContextFromURLParams (line 109) | func addEncryptionContextFromURLParams(opts *KeeperOptions, u url.Values... function OpenKeeper (line 155) | func OpenKeeper(client *kms.Client, keyID string, opts *KeeperOptions) *... type keeper (line 168) | type keeper struct method Decrypt (line 175) | func (k *keeper) Decrypt(ctx context.Context, ciphertext []byte) ([]by... method Encrypt (line 187) | func (k *keeper) Encrypt(ctx context.Context, plaintext []byte) ([]byt... method Close (line 200) | func (k *keeper) Close() error { return nil } method ErrorAs (line 203) | func (k *keeper) ErrorAs(err error, i any) bool { method ErrorCode (line 208) | func (k *keeper) ErrorCode(err error) gcerrors.ErrorCode { type KeeperOptions (line 235) | type KeeperOptions struct FILE: secrets/awskms/kms_test.go constant keyID1 (line 36) | keyID1 = "alias/test-secrets" constant keyID2 (line 37) | keyID2 = "alias/test-secrets2" constant region (line 38) | region = "us-east-2" type harness (line 41) | type harness struct method MakeDriver (line 46) | func (h *harness) MakeDriver(ctx context.Context) (driver.Keeper, driv... method Close (line 50) | func (h *harness) Close() { function listExistingAliases (line 55) | func listExistingAliases(ctx context.Context, client *kms.Client) (map[s... function createKey (line 74) | func createKey(ctx context.Context, client *kms.Client, keyID string) er... function newHarness (line 88) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function TestConformance (line 115) | func TestConformance(t *testing.T) { type verifyAs (line 119) | type verifyAs struct method Name (line 122) | func (v verifyAs) Name() string { method ErrorCheck (line 126) | func (v verifyAs) ErrorCheck(k *secrets.Keeper, err error) error { function TestEncryptionContext (line 141) | func TestEncryptionContext(t *testing.T) { function TestOpenKeeper (line 183) | func TestOpenKeeper(t *testing.T) { FILE: secrets/azurekeyvault/akv.go function init (line 67) | func init() { type ClientMakerT (line 78) | type ClientMakerT type defaultDialer (line 81) | type defaultDialer struct method OpenKeeperURL (line 83) | func (o *defaultDialer) OpenKeeperURL(ctx context.Context, u *url.URL)... constant Scheme (line 89) | Scheme = "azurekeyvault" type URLOpener (line 103) | type URLOpener struct method OpenKeeperURL (line 112) | func (o *URLOpener) OpenKeeperURL(ctx context.Context, u *url.URL) (*s... type keeper (line 126) | type keeper struct method Encrypt (line 220) | func (k *keeper) Encrypt(ctx context.Context, plaintext []byte) ([]byt... method Decrypt (line 232) | func (k *keeper) Decrypt(ctx context.Context, ciphertext []byte) ([]by... method Close (line 244) | func (k *keeper) Close() error { return nil } method ErrorAs (line 247) | func (k *keeper) ErrorAs(err error, i any) bool { method ErrorCode (line 252) | func (k *keeper) ErrorCode(err error) gcerrors.ErrorCode { type KeeperOptions (line 135) | type KeeperOptions struct function DefaultClientMaker (line 154) | func DefaultClientMaker(keyVaultURI string) (*azkeys.Client, error) { function OpenKeeper (line 179) | func OpenKeeper(clientMaker ClientMakerT, keyID string, opts *KeeperOpti... function openKeeper (line 187) | func openKeeper(clientMaker ClientMakerT, keyID string, opts *KeeperOpti... FILE: secrets/azurekeyvault/akv_test.go constant keyID1 (line 69) | keyID1 = "https://go-cdk.vault.azure.net/keys/test1" constant keyID2 (line 70) | keyID2 = "https://go-cdk.vault.azure.net/keys/test2" type harness (line 73) | type harness struct method MakeDriver (line 78) | func (h *harness) MakeDriver(ctx context.Context) (driver.Keeper, driv... method Close (line 90) | func (h *harness) Close() { type dummyToken (line 94) | type dummyToken struct method GetToken (line 96) | func (*dummyToken) GetToken(ctx context.Context, opts policy.TokenRequ... function newHarness (line 100) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function initEnv (line 131) | func initEnv() { function TestConformance (line 144) | func TestConformance(t *testing.T) { type verifyAs (line 148) | type verifyAs struct method Name (line 150) | func (v verifyAs) Name() string { method ErrorCheck (line 154) | func (v verifyAs) ErrorCheck(k *secrets.Keeper, err error) error { function dummyClientMaker (line 164) | func dummyClientMaker(s string) (*azkeys.Client, error) { function TestOpenKeeper (line 168) | func TestOpenKeeper(t *testing.T) { function TestKeyIDRE (line 202) | func TestKeyIDRE(t *testing.T) { FILE: secrets/azurekeyvault/example_test.go function ExampleOpenKeeper (line 25) | func ExampleOpenKeeper() { function Example_openFromURL (line 40) | func Example_openFromURL() { FILE: secrets/driver/driver.go type Keeper (line 29) | type Keeper interface FILE: secrets/drivertest/drivertest.go type Harness (line 32) | type Harness interface type HarnessMaker (line 42) | type HarnessMaker type AsTest (line 47) | type AsTest interface type verifyAsFailsOnNil (line 54) | type verifyAsFailsOnNil struct method Name (line 56) | func (v verifyAsFailsOnNil) Name() string { method ErrorCheck (line 60) | func (v verifyAsFailsOnNil) ErrorCheck(k *secrets.Keeper, err error) (... function RunConformanceTests (line 71) | func RunConformanceTests(t *testing.T, newHarness HarnessMaker, asTests ... function testEncryptDecrypt (line 100) | func testEncryptDecrypt(t *testing.T, newHarness HarnessMaker) { function testMultipleEncryptionsNotEqual (line 136) | func testMultipleEncryptionsNotEqual(t *testing.T, newHarness HarnessMak... function testMultipleKeys (line 183) | func testMultipleKeys(t *testing.T, newHarness HarnessMaker) { function testDecryptMalformedError (line 238) | func testDecryptMalformedError(t *testing.T, newHarness HarnessMaker) { function testAs (line 290) | func testAs(t *testing.T, newHarness HarnessMaker, tc AsTest) { FILE: secrets/example_openkeeper_test.go function Example_openFromURL (line 26) | func Example_openFromURL() { FILE: secrets/example_test.go function Example (line 28) | func Example() { function Example_errorAs (line 58) | func Example_errorAs() { function ExampleKeeper_Encrypt (line 83) | func ExampleKeeper_Encrypt() { function ExampleKeeper_Decrypt (line 99) | func ExampleKeeper_Decrypt() { FILE: secrets/gcpkms/example_test.go function ExampleOpenKeeper (line 25) | func ExampleOpenKeeper() { function Example_openFromURL (line 49) | func Example_openFromURL() { FILE: secrets/gcpkms/kms.go constant endPoint (line 55) | endPoint = "cloudkms.googleapis.com:443" function Dial (line 59) | func Dial(ctx context.Context, ts gcp.TokenSource) (*cloudkms.KeyManagem... function init (line 64) | func init() { type lazyCredsOpener (line 77) | type lazyCredsOpener struct method OpenKeeperURL (line 83) | func (o *lazyCredsOpener) OpenKeeperURL(ctx context.Context, u *url.UR... constant Scheme (line 104) | Scheme = "gcpkms" type URLOpener (line 116) | type URLOpener struct method OpenKeeperURL (line 125) | func (o *URLOpener) OpenKeeperURL(ctx context.Context, u *url.URL) (*s... function OpenKeeper (line 149) | func OpenKeeper(client *cloudkms.KeyManagementClient, keyResourceID stri... function KeyResourceID (line 162) | func KeyResourceID(projectID, location, keyRing, key string) string { type keeper (line 168) | type keeper struct method Decrypt (line 175) | func (k *keeper) Decrypt(ctx context.Context, ciphertext []byte) ([]by... method Encrypt (line 189) | func (k *keeper) Encrypt(ctx context.Context, plaintext []byte) ([]byt... method Close (line 203) | func (k *keeper) Close() error { return nil } method ErrorAs (line 206) | func (k *keeper) ErrorAs(err error, i any) bool { method ErrorCode (line 220) | func (k *keeper) ErrorCode(err error) gcerrors.ErrorCode { type KeeperOptions (line 225) | type KeeperOptions struct FILE: secrets/gcpkms/kms_test.go constant project (line 38) | project = "go-cloud-test-216917" constant location (line 39) | location = "global" constant keyRing (line 40) | keyRing = "test" constant keyID1 (line 41) | keyID1 = "password" constant keyID2 (line 42) | keyID2 = "password2" type harness (line 45) | type harness struct method MakeDriver (line 50) | func (h *harness) MakeDriver(ctx context.Context) (driver.Keeper, driv... method Close (line 55) | func (h *harness) Close() { function newHarness (line 59) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function TestConformance (line 76) | func TestConformance(t *testing.T) { type verifyAs (line 80) | type verifyAs struct method Name (line 82) | func (v verifyAs) Name() string { method ErrorCheck (line 86) | func (v verifyAs) ErrorCheck(k *secrets.Keeper, err error) error { function TestNoConnectionError (line 96) | func TestNoConnectionError(t *testing.T) { function TestAdditionalAuthenticatedData (line 114) | func TestAdditionalAuthenticatedData(t *testing.T) { function TestOpenKeeper (line 152) | func TestOpenKeeper(t *testing.T) { FILE: secrets/hashivault/example_test.go function ExampleOpenKeeper (line 26) | func ExampleOpenKeeper() { function Example_openFromURL (line 47) | func Example_openFromURL() { FILE: secrets/hashivault/vault.go type Config (line 49) | type Config struct function Dial (line 59) | func Dial(ctx context.Context, cfg *Config) (*api.Client, error) { function init (line 73) | func init() { function getVaultURL (line 79) | func getVaultURL() (string, error) { function getVaultToken (line 96) | func getVaultToken() string { type defaultDialer (line 112) | type defaultDialer struct method OpenKeeperURL (line 118) | func (o *defaultDialer) OpenKeeperURL(ctx context.Context, u *url.URL)... constant Scheme (line 141) | Scheme = "hashivault" type URLOpener (line 149) | type URLOpener struct method OpenKeeperURL (line 158) | func (o *URLOpener) OpenKeeperURL(ctx context.Context, u *url.URL) (*s... function newKeeper (line 170) | func newKeeper(client *api.Client, keyID string, opts *KeeperOptions) *k... function OpenKeeper (line 187) | func OpenKeeper(client *api.Client, keyID string, opts *KeeperOptions) *... type keeper (line 191) | type keeper struct method Decrypt (line 199) | func (k *keeper) Decrypt(ctx context.Context, ciphertext []byte) ([]by... method Encrypt (line 213) | func (k *keeper) Encrypt(ctx context.Context, plaintext []byte) ([]byt... method Close (line 227) | func (k *keeper) Close() error { return nil } method ErrorAs (line 230) | func (k *keeper) ErrorAs(err error, i any) bool { method ErrorCode (line 235) | func (k *keeper) ErrorCode(error) gcerrors.ErrorCode { type KeeperOptions (line 242) | type KeeperOptions struct FILE: secrets/hashivault/vault_test.go constant keyID1 (line 36) | keyID1 = "test-secrets" constant keyID2 (line 37) | keyID2 = "test-secrets2" constant apiAddress (line 38) | apiAddress = "http://127.0.0.1:8200" constant testToken (line 39) | testToken = "faketoken" type harness (line 45) | type harness struct method MakeDriver (line 50) | func (h *harness) MakeDriver(ctx context.Context) (driver.Keeper, driv... method Close (line 54) | func (h *harness) Close() {} function newHarness (line 56) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function TestConformance (line 88) | func TestConformance(t *testing.T) { type verifyAs (line 92) | type verifyAs struct method Name (line 94) | func (v verifyAs) Name() string { method ErrorCheck (line 98) | func (v verifyAs) ErrorCheck(k *secrets.Keeper, err error) error { function TestNoSessionProvidedError (line 108) | func TestNoSessionProvidedError(t *testing.T) { function TestNoConnectionError (line 114) | func TestNoConnectionError(t *testing.T) { function fakeConnectionStringInEnv (line 136) | func fakeConnectionStringInEnv() func() { function alternativeConnectionStringEnvVars (line 147) | func alternativeConnectionStringEnvVars() func() { function unsetConnectionStringEnvVars (line 158) | func unsetConnectionStringEnvVars() func() { function TestOpenKeeper (line 175) | func TestOpenKeeper(t *testing.T) { function TestGetVaultConnectionDetails (line 205) | func TestGetVaultConnectionDetails(t *testing.T) { FILE: secrets/localsecrets/example_test.go function ExampleNewKeeper (line 25) | func ExampleNewKeeper() { function Example_openFromURL (line 36) | func Example_openFromURL() { FILE: secrets/localsecrets/localsecrets.go function init (line 45) | func init() { constant Scheme (line 53) | Scheme = "base64key" type URLOpener (line 63) | type URLOpener struct method OpenKeeperURL (line 66) | func (o *URLOpener) OpenKeeperURL(ctx context.Context, u *url.URL) (*s... type keeper (line 85) | type keeper struct method Encrypt (line 141) | func (k *keeper) Encrypt(ctx context.Context, message []byte) ([]byte,... method Decrypt (line 154) | func (k *keeper) Decrypt(ctx context.Context, message []byte) ([]byte,... method Close (line 169) | func (k *keeper) Close() error { return nil } method ErrorAs (line 172) | func (k *keeper) ErrorAs(err error, i any) bool { method ErrorCode (line 177) | func (k *keeper) ErrorCode(error) gcerrors.ErrorCode { return gcerrors... function NewKeeper (line 91) | func NewKeeper(sk [32]byte) *secrets.Keeper { function Base64KeyStd (line 100) | func Base64KeyStd(base64str string) ([32]byte, error) { function Base64Key (line 107) | func Base64Key(base64str string) ([32]byte, error) { function base64Key (line 111) | func base64Key(base64str string, encoding *base64.Encoding) ([32]byte, e... function NewRandomKey (line 127) | func NewRandomKey() ([32]byte, error) { constant nonceSize (line 137) | nonceSize = 24 FILE: secrets/localsecrets/localsecrets_test.go type harness (line 29) | type harness struct method MakeDriver (line 31) | func (h *harness) MakeDriver(ctx context.Context) (driver.Keeper, driv... method Close (line 43) | func (h *harness) Close() {} function newHarness (line 45) | func newHarness(ctx context.Context, t *testing.T) (drivertest.Harness, ... function TestConformance (line 51) | func TestConformance(t *testing.T) { type verifyAs (line 55) | type verifyAs struct method Name (line 57) | func (v verifyAs) Name() string { method ErrorCheck (line 61) | func (v verifyAs) ErrorCheck(k *secrets.Keeper, err error) error { function TestSmallData (line 69) | func TestSmallData(t *testing.T) { function TestOpenKeeper (line 120) | func TestOpenKeeper(t *testing.T) { FILE: secrets/secrets.go type Keeper (line 55) | type Keeper struct method Encrypt (line 88) | func (k *Keeper) Encrypt(ctx context.Context, plaintext []byte) (ciphe... method Decrypt (line 106) | func (k *Keeper) Decrypt(ctx context.Context, ciphertext []byte) (plai... method Close (line 126) | func (k *Keeper) Close() error { method ErrorAs (line 144) | func (k *Keeper) ErrorAs(err error, i any) bool { function newKeeper (line 70) | func newKeeper(k driver.Keeper) *Keeper { constant pkgName (line 77) | pkgName = "gocloud.dev/secrets" function wrapError (line 148) | func wrapError(k *Keeper, err error) error { type KeeperURLOpener (line 163) | type KeeperURLOpener interface type URLMux (line 173) | type URLMux struct method KeeperSchemes (line 178) | func (mux *URLMux) KeeperSchemes() []string { return mux.schemes.Schem... method ValidKeeperScheme (line 181) | func (mux *URLMux) ValidKeeperScheme(scheme string) bool { return mux.... method RegisterKeeper (line 185) | func (mux *URLMux) RegisterKeeper(scheme string, opener KeeperURLOpene... method OpenKeeper (line 191) | func (mux *URLMux) OpenKeeper(ctx context.Context, urlstr string) (*Ke... method OpenKeeperURL (line 201) | func (mux *URLMux) OpenKeeperURL(ctx context.Context, u *url.URL) (*Ke... function DefaultURLMux (line 214) | func DefaultURLMux() *URLMux { function OpenKeeper (line 222) | func OpenKeeper(ctx context.Context, urlstr string) (*Keeper, error) { FILE: secrets/secrets_test.go type erroringKeeper (line 33) | type erroringKeeper struct method Decrypt (line 37) | func (k *erroringKeeper) Decrypt(ctx context.Context, b []byte) ([]byt... method Encrypt (line 41) | func (k *erroringKeeper) Encrypt(ctx context.Context, b []byte) ([]byt... method Close (line 45) | func (k *erroringKeeper) Close() error { return ... method ErrorCode (line 46) | func (k *erroringKeeper) ErrorCode(error) gcerrors.ErrorCode { return ... function TestErrorsAreWrapped (line 48) | func TestErrorsAreWrapped(t *testing.T) { function TestKeeperIsClosed (line 78) | func TestKeeperIsClosed(t *testing.T) { function TestOpenTelemetry (line 94) | func TestOpenTelemetry(t *testing.T) { function TestURLMux (line 126) | func TestURLMux(t *testing.T) { type fakeOpener (line 231) | type fakeOpener struct method OpenKeeperURL (line 235) | func (o *fakeOpener) OpenKeeperURL(ctx context.Context, u *url.URL) (*... FILE: server/driver/driver.go type Server (line 25) | type Server interface type TLSServer (line 46) | type TLSServer interface FILE: server/example_test.go function ExampleServer (line 34) | func ExampleServer() { function ExampleServer_withRequestLogger (line 51) | func ExampleServer_withRequestLogger() { type customHealthCheck (line 77) | type customHealthCheck struct method CheckHealth (line 86) | func (h *customHealthCheck) CheckHealth() error { function ExampleServer_withHealthChecks (line 95) | func ExampleServer_withHealthChecks() { function ExampleServer_Shutdown (line 129) | func ExampleServer_Shutdown() { FILE: server/health/health.go type Handler (line 25) | type Handler struct method Add (line 30) | func (h *Handler) Add(c Checker) { method ServeHTTP (line 35) | func (h *Handler) ServeHTTP(w http.ResponseWriter, _ *http.Request) { function writeHeaders (line 45) | func writeHeaders(statusLen string, w http.ResponseWriter) { function writeUnhealthy (line 51) | func writeUnhealthy(w http.ResponseWriter) { function HandleLive (line 64) | func HandleLive(w http.ResponseWriter, _ *http.Request) { function writeHealthy (line 68) | func writeHealthy(w http.ResponseWriter) { type Checker (line 84) | type Checker interface type CheckerFunc (line 91) | type CheckerFunc method CheckHealth (line 94) | func (f CheckerFunc) CheckHealth() error { FILE: server/health/health_test.go function TestNewHandler (line 25) | func TestNewHandler(t *testing.T) { function TestChecker (line 37) | func TestChecker(t *testing.T) { function check (line 77) | func check(s *httptest.Server) (code int, err error) { type checker (line 86) | type checker struct method CheckHealth (line 91) | func (c *checker) CheckHealth() error { method set (line 97) | func (c *checker) set(e error) { FILE: server/health/sqlhealth/sqlhealth.go type Checker (line 26) | type Checker struct method CheckHealth (line 84) | func (c *Checker) CheckHealth() error { method Stop (line 97) | func (c *Checker) Stop() { function New (line 35) | func New(db *sql.DB) *Checker { FILE: server/health/sqlhealth/sqlhealth_test.go function TestCheck (line 30) | func TestCheck(t *testing.T) { type stubConnector (line 50) | type stubConnector struct method setHealthy (line 55) | func (c *stubConnector) setHealthy(h bool) { method Connect (line 61) | func (c *stubConnector) Connect(ctx context.Context) (driver.Conn, err... method Driver (line 65) | func (c *stubConnector) Driver() driver.Driver { type stubConn (line 69) | type stubConn struct method Prepare (line 73) | func (conn *stubConn) Prepare(query string) (driver.Stmt, error) { method Close (line 77) | func (conn *stubConn) Close() error { method Begin (line 81) | func (conn *stubConn) Begin() (driver.Tx, error) { method Ping (line 85) | func (conn *stubConn) Ping(ctx context.Context) error { FILE: server/requestlog/ncsa.go type NCSALogger (line 27) | type NCSALogger struct method Log (line 46) | func (l *NCSALogger) Log(ent *Entry) { method log (line 52) | func (l *NCSALogger) log(ent *Entry) error { function NewNCSALogger (line 37) | func NewNCSALogger(w io.Writer, onErr func(error)) *NCSALogger { function formatEntry (line 60) | func formatEntry(b []byte, ent *Entry) []byte { FILE: server/requestlog/ncsa_test.go function TestNCSALog (line 25) | func TestNCSALog(t *testing.T) { FILE: server/requestlog/requestlog.go type Logger (line 33) | type Logger interface type Handler (line 38) | type Handler struct method ServeHTTP (line 54) | func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { function NewHandler (line 45) | func NewHandler(log Logger, h http.Handler) *Handler { function cloneRequestWithoutBody (line 98) | func cloneRequestWithoutBody(r *http.Request) *http.Request { type Entry (line 105) | type Entry struct function ipFromHostPort (line 140) | func ipFromHostPort(hp string) string { type readCounterCloser (line 151) | type readCounterCloser struct method Read (line 157) | func (rcc *readCounterCloser) Read(p []byte) (n int, err error) { method Close (line 166) | func (rcc *readCounterCloser) Close() error { type writeCounter (line 171) | type writeCounter method Write (line 173) | func (wc *writeCounter) Write(p []byte) (n int, err error) { function headerSize (line 178) | func headerSize(h http.Header) int64 { type responseStats (line 184) | type responseStats struct method Header (line 192) | func (r *responseStats) Header() http.Header { method WriteHeader (line 196) | func (r *responseStats) WriteHeader(statusCode int) { method Write (line 205) | func (r *responseStats) Write(p []byte) (n int, err error) { method size (line 214) | func (r *responseStats) size() (hdr, body int64) { method Hijack (line 224) | func (r *responseStats) Hijack() (_ net.Conn, _ *bufio.ReadWriter, err... method Flush (line 236) | func (r *responseStats) Flush() { FILE: server/requestlog/requestlog_test.go function TestHandler (line 31) | func TestHandler(t *testing.T) { type testSpanHandler (line 96) | type testSpanHandler struct method ServeHTTP (line 101) | func (sh *testSpanHandler) ServeHTTP(w http.ResponseWriter, r *http.Re... type contextKey (line 113) | type contextKey constant testContextKey (line 115) | testContextKey = contextKey("baggage") function roundTrip (line 117) | func roundTrip(r *http.Request, h http.Handler) (*Entry, *trace.SpanCont... type captureLogger (line 137) | type captureLogger struct method Log (line 141) | func (cl *captureLogger) Log(ent *Entry) { FILE: server/requestlog/stackdriver.go type StackdriverLogger (line 29) | type StackdriverLogger struct method Log (line 51) | func (l *StackdriverLogger) Log(ent *Entry) { method log (line 57) | func (l *StackdriverLogger) log(ent *Entry) error { function NewStackdriverLogger (line 40) | func NewStackdriverLogger(w io.Writer, onErr func(error)) *StackdriverLo... function appendLatency (line 109) | func appendLatency(b []byte, d time.Duration) []byte { FILE: server/requestlog/stackdriver_test.go function TestStackdriverLog (line 33) | func TestStackdriverLog(t *testing.T) { function parseLatency (line 134) | func parseLatency(s string) string { function jsonString (line 148) | func jsonString(obj map[string]any, k string) string { function jsonNumber (line 153) | func jsonNumber(obj map[string]any, k string) float64 { function BenchmarkStackdriverLog (line 158) | func BenchmarkStackdriverLog(b *testing.B) { function BenchmarkE2E (line 189) | func BenchmarkE2E(b *testing.B) { function benchHandler (line 214) | func benchHandler(w http.ResponseWriter, r *http.Request) { FILE: server/sdserver/server.go function NewResource (line 57) | func NewResource(ctx context.Context) (*resource.Resource, error) { function NewTextMapPropagator (line 74) | func NewTextMapPropagator() propagation.TextMapPropagator { function NewTraceSampler (line 83) | func NewTraceSampler(ctx context.Context) sdktrace.Sampler { function NewTraceExporter (line 88) | func NewTraceExporter(projectID gcp.ProjectID) (sdktrace.SpanExporter, e... function NewTraceProvider (line 100) | func NewTraceProvider(ctx context.Context, exporter sdktrace.SpanExporte... function NewMetricsReader (line 117) | func NewMetricsReader(projectID gcp.ProjectID) (sdkmetric.Reader, error) { function NewMeterProvider (line 129) | func NewMeterProvider(ctx context.Context, reader sdkmetric.Reader) (*sd... function NewRequestLogger (line 144) | func NewRequestLogger() *requestlog.StackdriverLogger { FILE: server/server.go type Server (line 49) | type Server struct method init (line 99) | func (srv *Server) init() { method ListenAndServe (line 143) | func (srv *Server) ListenAndServe(addr string) error { method ListenAndServeTLS (line 152) | func (srv *Server) ListenAndServeTLS(addr, certFile, keyFile string) e... method Shutdown (line 163) | func (srv *Server) Shutdown(ctx context.Context) error { type Options (line 62) | type Options struct function New (line 84) | func New(h http.Handler, opts *Options) *Server { type DefaultDriver (line 171) | type DefaultDriver struct method ListenAndServe (line 188) | func (dd *DefaultDriver) ListenAndServe(addr string, h http.Handler) e... method ListenAndServeTLS (line 198) | func (dd *DefaultDriver) ListenAndServeTLS(addr, certFile, keyFile str... method Shutdown (line 206) | func (dd *DefaultDriver) Shutdown(ctx context.Context) error { function NewDefaultDriver (line 176) | func NewDefaultDriver() *DefaultDriver { FILE: server/server_test.go constant certFile (line 28) | certFile = "my-cert" constant keyFile (line 29) | keyFile = "my-key" function TestListenAndServe (line 32) | func TestListenAndServe(t *testing.T) { function TestListenAndServeTLSNoSupported (line 50) | func TestListenAndServeTLSNoSupported(t *testing.T) { function TestListenAndServeTLS (line 59) | func TestListenAndServeTLS(t *testing.T) { function TestMiddleware (line 80) | func TestMiddleware(t *testing.T) { type testDriverNoTLS (line 129) | type testDriverNoTLS method ListenAndServe (line 131) | func (td *testDriverNoTLS) ListenAndServe(addr string, h http.Handler)... method Shutdown (line 135) | func (td *testDriverNoTLS) Shutdown(ctx context.Context) error { type testDriver (line 139) | type testDriver struct method ListenAndServe (line 145) | func (td *testDriver) ListenAndServe(addr string, h http.Handler) error { method ListenAndServeTLS (line 151) | func (td *testDriver) ListenAndServeTLS(addr, certFile, keyFile string... method Shutdown (line 159) | func (td *testDriver) Shutdown(ctx context.Context) error { type testLogger (line 163) | type testLogger struct method Log (line 167) | func (tl *testLogger) Log(ent *requestlog.Entry) { FILE: server/xrayserver/server.go function NewResource (line 69) | func NewResource(ctx context.Context) (*resource.Resource, error) { function NewTextMapPropagator (line 86) | func NewTextMapPropagator() *xray.Propagator { function NewTraceSampler (line 91) | func NewTraceSampler() sdktrace.Sampler { function NewTraceExporter (line 95) | func NewTraceExporter(ctx context.Context) (sdktrace.SpanExporter, error) { function NewTraceProvider (line 106) | func NewTraceProvider(ctx context.Context, exp sdktrace.SpanExporter, sa... function NewMetricsReader (line 125) | func NewMetricsReader(ctx context.Context) (sdkmetric.Reader, error) { function NewMeterProvider (line 139) | func NewMeterProvider(ctx context.Context, reader sdkmetric.Reader) (*sd... function NewRequestLogger (line 154) | func NewRequestLogger() *requestlog.NCSALogger {