google

package
v0.40.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeAssertServerWithList

func NewFakeAssertServerWithList(listResults []*assetpb.Asset, err error) (*asset.Client, error)

func NewFakeAssetServer

func NewFakeAssetServer(searchResults []*assetpb.ResourceSearchResult, err error) (*asset.Client, error)

func NewFakeStorageServer

func NewFakeStorageServer(routes map[string]http.HandlerFunc) (*storage.Client, *httptest.Server, error)

Types

type FakeAssetServer

type FakeAssetServer struct {
	SearchAllResourcesResults []*assetpb.ResourceSearchResult
	ListAssetsResults         []*assetpb.Asset

	assetpb.UnimplementedAssetServiceServer
	// contains filtered or unexported fields
}

type FakeStorageServer

type FakeStorageServer struct {
	// contains filtered or unexported fields
}

func (*FakeStorageServer) ServeHTTP

func (s *FakeStorageServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL