client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Code generated generate_clients.go. DO NOT EDIT.

Index

Constants

View Source
const (
	TokenEnvName     = "FCO_APIV1_TOKEN"
	TokenFileEnvName = "FCO_APIV1_TOKEN_FILE"
	BaseURLEnvName   = "FCO_APIV1_URL"
)

Variables

This section is empty.

Functions

func IgnoreUnexported

func IgnoreUnexported() cmp.Option

Types

type Client

type Client interface {
	Apimvmv1() Apimvmv1
	Apiv1() Apiv1
}

func New

func New(config *DialConfig) (Client, error)

type ClientCall

type ClientCall struct {
	WantRequest  proto.Message
	WantResponse func() connect.AnyResponse
	WantError    *connect.Error
}

type DialConfig

type DialConfig struct {
	// BaseUrl points to the apiv1 url where the apiserver is reachable
	BaseURL string
	// Token to be used to talk to the apiserver, the string representation of the token.
	// If Token is specified, TokenFile cannot be specified.
	// It is possible to renew this token automatically, see TokenRenewal.
	Token string
	// Tokenfile path to a file containing the string representation of the token.
	// If Tokenfile is specified, Token cannot be specified.
	TokenFile string

	// Optional client Interceptors
	Interceptors []connect.Interceptor

	UserAgent string

	// Transport optional, can be used to configure how the http transport works.
	Transport http.RoundTripper

	Log *slog.Logger
	// contains filtered or unexported fields
}

DialConfig is the configuration to create a api-server 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 (*TestClientInterceptor) WrapStreamingHandler

func (*TestClientInterceptor) WrapUnary

Jump to

Keyboard shortcuts

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