cluster

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChillSecretKey = "chill-secret"
)

Variables

This section is empty.

Functions

func GetKubeconfigPath

func GetKubeconfigPath(forceConfig string) (string, error)

Types

type ClusterManager

type ClusterManager interface {
	GetKnative() (v1.ServingV1Interface, error)
	GetKubernetesClient() (*kubernetes.Clientset, error)
	GetLockerClient() (dynamic.Interface, error)
	GetServiceIdentifier(serviceName string, version version.Version) string
	GetRevisionPath(serviceName string, version version.Version) string
	GetServiceAndVersion(revisionPath string) (string, *version.Version, error)
	// GetInternalServiceHost returns best host compatible with version matching constraints
	GetInternalServiceHost(serviceName string, version version.Version, c constraint.Constraint) (string, error)
	SetSecret(key string, value string) error
	GetSecret(key string) (string, error)
	SetRegistry(serviceName string, server string, login string, password string) error
	GetRegistry(serviceName string, server string) (string, string, error)
}

func NewForKubernetes

func NewForKubernetes(forceConfig string, namespace string) (ClusterManager, error)

Jump to

Keyboard shortcuts

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