client

package
v1.19.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is wrapper on a HTTP client.

func MakeClient

func MakeClient(logger *zap.Logger, executorURL string) *Client

MakeClient initializes and returns a Client instance.

func (*Client) GetServiceForFunction

func (c *Client) GetServiceForFunction(ctx context.Context, fn *fv1.Function) (string, error)

GetServiceForFunction returns the service name for a given function.

func (*Client) TapService

func (c *Client) TapService(fnMeta metav1.ObjectMeta, executorType fv1.ExecutorType, serviceURL url.URL)

TapService sends a TapServiceRequest over the request channel.

func (*Client) UnTapService added in v1.11.0

func (c *Client) UnTapService(ctx context.Context, fnMeta metav1.ObjectMeta, executorType fv1.ExecutorType, serviceURL *url.URL) error

UnTapService sends a request to /v2/unTapService.

type TapServiceRequest added in v1.7.0

type TapServiceRequest struct {
	FnMetadata     metav1.ObjectMeta
	FnExecutorType fv1.ExecutorType
	ServiceURL     string
}

TapServiceRequest represents

Jump to

Keyboard shortcuts

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