Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FailedToParseContext = func(err error) error { return eris.Wrap(err, "Could not parse target kube context information") } NoSmhInstallationFound = func(path string) error { return eris.Errorf("Could not find a Service Mesh Hub installation in the cluster pointed "+ "to by the kube config %s", path) } CouldNotVerifyMaster = func(err error, path string) error { return eris.Wrapf(err, "Could not verify whether a Service Mesh Hub installation is present "+ "in the cluster pointed to by the kube config %s", path) } FileDoesNotExist = func(err error, path string) error { return eris.Wrapf(err, "Kube config at %s does not exist", path) } )
Functions ¶
This section is empty.
Types ¶
type MasterKubeConfigVerifier ¶
type MasterKubeConfigVerifier interface {
Verify(masterKubeConfigPath string, masterContext string) (err error)
}
Verify that the cluster pointed to by the given kube config is actually a Service Mesh Hub installation
func NewMasterKubeConfigVerifier ¶
func NewMasterKubeConfigVerifier(kubeLoader kubeconfig.KubeLoader) MasterKubeConfigVerifier
type OnMasterVerificationSuccess ¶
Accepts the validated master kube REST config
Click to show internal directories.
Click to hide internal directories.