Documentation ¶
Index ¶
- func ColumnNullable(name string) *types.Column
- func ColumnRepeated(name string) *types.Column
- func ColumnRequired(name string) *types.Column
- type Dataset
- type Emulator
- func (e *Emulator) Cleanup()
- func (e *Emulator) EnableMock(debugRequest bool, log zerolog.Logger, mocks ...*EndpointMock)
- func (e *Emulator) Endpoint() string
- func (e *Emulator) Serve(ctx context.Context, httpAddr, grpcAddr string) error
- func (e *Emulator) TestServer()
- func (e *Emulator) WithProject(projectID string, datasets ...*Dataset)
- func (e *Emulator) WithSource(projectID string, source server.Source)
- type EndpointMock
- type PolicyMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColumnNullable ¶
func ColumnRepeated ¶
func ColumnRequired ¶
Types ¶
type Emulator ¶
type Emulator struct {
// contains filtered or unexported fields
}
func (*Emulator) EnableMock ¶
func (e *Emulator) EnableMock(debugRequest bool, log zerolog.Logger, mocks ...*EndpointMock)
func (*Emulator) TestServer ¶
func (e *Emulator) TestServer()
func (*Emulator) WithProject ¶
type EndpointMock ¶
type EndpointMock struct { Path string Method string Handler http.HandlerFunc }
func DatasetTableIAMPolicySetMock ¶
func DatasetTableIAMPolicySetMock(project, dataset, table string, log zerolog.Logger, into *iampb.SetIamPolicyRequest) *EndpointMock
type PolicyMock ¶
type PolicyMock struct {
// contains filtered or unexported fields
}
func NewPolicyMock ¶
func NewPolicyMock(log zerolog.Logger) *PolicyMock
func (*PolicyMock) GetPolicy ¶
func (p *PolicyMock) GetPolicy() http.HandlerFunc
func (*PolicyMock) Mocks ¶
func (p *PolicyMock) Mocks() []*EndpointMock
func (*PolicyMock) SetPolicy ¶
func (p *PolicyMock) SetPolicy() http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.