tenantcluster: github.com/giantswarm/tenantcluster Index | Files | Directories

package tenantcluster

import "github.com/giantswarm/tenantcluster"

Index

Package Files

error.go spec.go tenantcluster.go

func IsInvalidConfig Uses

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsTimeout Uses

func IsTimeout(err error) bool

IsTimeout asserts timeoutError.

type Config Uses

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 Uses

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 Uses

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

TenantCluster provides functionality for connecting to tenant clusters.

func New Uses

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

New creates a new tenant cluster service.

func (*TenantCluster) NewRestConfig Uses

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

Directories

PathSynopsis
tenantclustertest

Package tenantcluster imports 6 packages (graph) and is imported by 41 packages. Updated 2020-01-19. Refresh now. Tools for package owners.