tenantclient

package
v5.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotAvailable

func IsNotAvailable(err error) bool

IsNotAvailable asserts notAvailableError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

Types

type Config

type Config struct {
	BaseDomain    basedomain.Interface
	K8sClient     k8sclient.Interface
	Logger        micrologger.Logger
	TenantCluster tenantcluster.Interface
}

type Interface

type Interface interface {
	// K8sClient returns client interface of the corresponding cluster object
	K8sClient(ctx context.Context, obj interface{}) (client.Interface, error)
}

type TenantClient

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

func New

func New(c Config) (*TenantClient, error)

func (*TenantClient) K8sClient

func (c *TenantClient) K8sClient(ctx context.Context, obj interface{}) (k8sclient.Interface, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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