Documentation
¶
Overview ¶
Code generated generate_clients.go. DO NOT EDIT.
Index ¶
- func IgnoreUnexported() cmp.Option
- func NamespaceInterceptor(namespace string) connect.UnaryInterceptorFunc
- type Apiv1
- type Client
- type ClientCall
- type DialConfig
- type TestClientInterceptor
- func (t *TestClientInterceptor) WrapStreamingClient(connect.StreamingClientFunc) connect.StreamingClientFunc
- func (t *TestClientInterceptor) WrapStreamingHandler(connect.StreamingHandlerFunc) connect.StreamingHandlerFunc
- func (t *TestClientInterceptor) WrapUnary(next connect.UnaryFunc) connect.UnaryFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IgnoreUnexported ¶
func NamespaceInterceptor ¶
func NamespaceInterceptor(namespace string) connect.UnaryInterceptorFunc
Types ¶
type Apiv1 ¶
type Apiv1 interface {
Health() apiv1connect.HealthServiceClient
Project() apiv1connect.ProjectServiceClient
ProjectMember() apiv1connect.ProjectMemberServiceClient
Tenant() apiv1connect.TenantServiceClient
TenantMember() apiv1connect.TenantMemberServiceClient
Version() apiv1connect.VersionServiceClient
}
type Client ¶
type Client interface {
Apiv1() Apiv1
}
func New ¶
func New(config *DialConfig) (Client, error)
type ClientCall ¶
type DialConfig ¶
type DialConfig struct {
BaseURL string
Token string
Namespace string
// Optional client Interceptors
Interceptors []connect.Interceptor
UserAgent string
Transport http.RoundTripper
Log *slog.Logger
}
DialConfig is the configuration to create an tenant-apiserver connection
func (*DialConfig) HttpClient ¶
func (d *DialConfig) HttpClient() *http.Client
type TestClientInterceptor ¶
type TestClientInterceptor struct {
// contains filtered or unexported fields
}
func NewTestInterceptor ¶
func NewTestInterceptor(t *testing.T, calls []ClientCall) *TestClientInterceptor
func (*TestClientInterceptor) WrapStreamingClient ¶
func (t *TestClientInterceptor) WrapStreamingClient(connect.StreamingClientFunc) connect.StreamingClientFunc
func (*TestClientInterceptor) WrapStreamingHandler ¶
func (t *TestClientInterceptor) WrapStreamingHandler(connect.StreamingHandlerFunc) connect.StreamingHandlerFunc
Click to show internal directories.
Click to hide internal directories.