tenantcluster

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 14

README

CircleCI

tenantcluster

Package tenantcluster implements primitives for access management of Giant Swarm Kubernetes tenant clusters.

License

tenantcluster is under the Apache 2.0 license. See the LICENSE file for details.

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