tenantcluster

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsTimeout

func IsTimeout(err error) bool

IsTimeout asserts timeoutError.

Types

type Config

type Config struct {
	CertsSearcher certs.Interface
	Logger        micrologger.Logger

	CertID certs.Cert
}

Config represents the configuration used to create a new tenant cluster service.

type Interface

type Interface interface {
	// NewRestConfig returns a Kubernetes REST config for the specified tenant
	// cluster.
	NewRestConfig(ctx context.Context, clusterID, apiDomain string) (*rest.Config, error)
}

type TenantCluster

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

TenantCluster provides functionality for connecting to tenant clusters.

func New

func New(config Config) (*TenantCluster, error)

New creates a new tenant cluster service.

func (*TenantCluster) NewRestConfig

func (t *TenantCluster) NewRestConfig(ctx context.Context, clusterID, apiDomain string) (*rest.Config, error)

Jump to

Keyboard shortcuts

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