apiclient

package
v0.0.0-...-f79a1ae Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockClient

func NewMockClient(t testing.TB) (*APIClient, *MockServers)

Types

type APIClient

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

func New

func New(target string, opts ...grpc.DialOption) (*APIClient, error)

func (*APIClient) AuditLogs

func (a *APIClient) AuditLogs() protoapi.AuditLogsClient

func (*APIClient) Close

func (a *APIClient) Close() error

func (*APIClient) Reconcilers

func (a *APIClient) Reconcilers() protoapi.ReconcilersClient

func (*APIClient) Teams

func (a *APIClient) Teams() protoapi.TeamsClient

func (*APIClient) Users

func (a *APIClient) Users() protoapi.UsersClient

type MockServers

type MockServers struct {
	AuditLogs   *protoapi.MockAuditLogsServer
	Reconcilers *protoapi.MockReconcilersServer
	Teams       *protoapi.MockTeamsServer
	Users       *protoapi.MockUsersServer
}

type TestingHelpers

type TestingHelpers struct {
	testing.TB
	// contains filtered or unexported fields
}

func (*TestingHelpers) Errorf

func (t *TestingHelpers) Errorf(format string, args ...interface{})

func (*TestingHelpers) Fail

func (t *TestingHelpers) Fail()

func (*TestingHelpers) FailNow

func (t *TestingHelpers) FailNow()

func (*TestingHelpers) Logf

func (t *TestingHelpers) Logf(format string, args ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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