client

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package client provides the Runtime SDK client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtensionNameFromHandlerName added in v1.5.2

func ExtensionNameFromHandlerName(registeredHandlerName string) (string, error)

ExtensionNameFromHandlerName extracts the extension name from the canonical name of a registered runtime extension handler.

func NameForHandler added in v1.5.2

func NameForHandler(handler runtimehooksv1.ExtensionHandler, extensionConfig *runtimev1.ExtensionConfig) (string, error)

NameForHandler constructs a canonical name for a registered runtime extension handler.

func New

func New(options Options) runtimeclient.Client

New returns a new Client.

Types

type Options

type Options struct {
	Catalog  *runtimecatalog.Catalog
	Registry runtimeregistry.ExtensionRegistry
	Client   ctrlclient.Client
}

Options are creation options for a Client.

Directories

Path Synopsis
Package fake is used to help with testing functions that need a fake RuntimeClient.
Package fake is used to help with testing functions that need a fake RuntimeClient.

Jump to

Keyboard shortcuts

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