Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Project() v1.ProjectServiceClient ProjectMember() v1.ProjectMemberServiceClient Tenant() v1.TenantServiceClient TenantMember() v1.TenantMemberServiceClient Close() error }
Client defines the client API
type GRPCClient ¶
type GRPCClient struct {
// contains filtered or unexported fields
}
GRPCClient is a Client implementation with grpc transport.
func (GRPCClient) Project ¶
func (c GRPCClient) Project() v1.ProjectServiceClient
Project is the root accessor for project related functions
func (GRPCClient) ProjectMember ¶ added in v0.11.0
func (c GRPCClient) ProjectMember() v1.ProjectMemberServiceClient
ProjectMember is the root accessor for project member related functions
func (GRPCClient) Tenant ¶
func (c GRPCClient) Tenant() v1.TenantServiceClient
Tenant is the root accessor for tenant related functions
func (GRPCClient) TenantMember ¶ added in v0.11.2
func (c GRPCClient) TenantMember() v1.TenantMemberServiceClient
Tenant is the root accessor for tenant related functions
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
func NewMock ¶
func NewMock(psc v1.ProjectServiceClient, tsc v1.TenantServiceClient, pmsc v1.ProjectMemberServiceClient, tmsc v1.TenantMemberServiceClient) *MockClient
func (*MockClient) Close ¶
func (c *MockClient) Close() error
func (*MockClient) Project ¶
func (c *MockClient) Project() v1.ProjectServiceClient
func (*MockClient) ProjectMember ¶ added in v0.11.1
func (c *MockClient) ProjectMember() v1.ProjectMemberServiceClient
func (*MockClient) Tenant ¶
func (c *MockClient) Tenant() v1.TenantServiceClient
func (*MockClient) TenantMember ¶ added in v0.11.2
func (c *MockClient) TenantMember() v1.TenantMemberServiceClient
Click to show internal directories.
Click to hide internal directories.