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

package tenantcluster

import "github.com/giantswarm/tenantcluster"

Index

Package Files

error.go spec.go tenantcluster.go

Constants

const (
    TillerDefaultNamespace = "giantswarm"
)

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
    EnsureTillerInstalledMaxWait time.Duration
    TillerNamespace              string
}

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

type Interface Uses

type Interface interface {
    // NewG8sClient returns a new generated clientset for a tenant cluster.
    NewG8sClient(ctx context.Context, clusterID, apiDomain string) (versioned.Interface, error)
    // NewHelmClient returns a new Giant Swarm Helm client for a tenant cluster.
    NewHelmClient(ctx context.Context, clusterID, apiDomain string) (helmclient.Interface, error)
    // NewK8sClient returns a new Kubernetes clientset for a tenant cluster.
    NewK8sClient(ctx context.Context, clusterID, apiDomain string) (kubernetes.Interface, 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) NewG8sClient Uses

func (g *TenantCluster) NewG8sClient(ctx context.Context, clusterID, apiDomain string) (versioned.Interface, error)

NewG8sClient returns a generated clientset for the specified tenant cluster.

func (*TenantCluster) NewHelmClient Uses

func (g *TenantCluster) NewHelmClient(ctx context.Context, clusterID, apiDomain string) (helmclient.Interface, error)

NewHelmClient returns a Helm client for the specified tenant cluster.

func (*TenantCluster) NewK8sClient Uses

func (g *TenantCluster) NewK8sClient(ctx context.Context, clusterID, apiDomain string) (kubernetes.Interface, error)

NewK8sClient returns a Kubernetes clientset for the specified tenant cluster.

Directories

PathSynopsis
tenantclustertest

Package tenantcluster imports 10 packages (graph) and is imported by 45 packages. Updated 2019-08-25. Refresh now. Tools for package owners.