providers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderInterface

type ProviderInterface interface {
	GetSSHConfig(name string) (string, *ssh.ClientConfig, error)
	GetKubeconfigPath() (string, error)
}

Hides away specific characteristics of the K8s cluster. This should enable the same tests to be run on a variety of providers.

func NewVagrantProvider

func NewVagrantProvider(configPath string) (ProviderInterface, error)

NewVagrantProvider returns an implementation of ProviderInterface which is suitable for a Kubernetes test cluster created with the provided Vagrantfile. configPath is unused for the vagrant provider

type VagrantProvider

type VagrantProvider struct{}

func (*VagrantProvider) GetKubeconfigPath

func (provider *VagrantProvider) GetKubeconfigPath() (string, error)

func (*VagrantProvider) GetSSHConfig

func (provider *VagrantProvider) GetSSHConfig(name string) (string, *ssh.ClientConfig, error)

Jump to

Keyboard shortcuts

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