Documentation ¶
Index ¶
- func NewFakeAssertServerWithList(listResults []*assetpb.Asset, err error) (*asset.Client, error)
- func NewFakeAssetServer(searchResults []*assetpb.ResourceSearchResult, err error) (*asset.Client, error)
- func NewFakeStorageServer(routes map[string]http.HandlerFunc) (*storage.Client, *httptest.Server, error)
- type FakeAssetServer
- type FakeStorageServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeAssetServer ¶
func NewFakeStorageServer ¶
Types ¶
type FakeAssetServer ¶
type FakeAssetServer struct { SearchAllResourcesResults []*assetpb.ResourceSearchResult ListAssetsResults []*assetpb.Asset assetpb.UnimplementedAssetServiceServer // contains filtered or unexported fields }
func (*FakeAssetServer) ListAssets ¶
func (s *FakeAssetServer) ListAssets(context.Context, *assetpb.ListAssetsRequest) (*assetpb.ListAssetsResponse, error)
func (*FakeAssetServer) SearchAllResources ¶
func (s *FakeAssetServer) SearchAllResources(context.Context, *assetpb.SearchAllResourcesRequest) (*assetpb.SearchAllResourcesResponse, error)
type FakeStorageServer ¶
type FakeStorageServer struct {
// contains filtered or unexported fields
}
func (*FakeStorageServer) ServeHTTP ¶
func (s *FakeStorageServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.