Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EphemeralCluster ¶
type EphemeralCluster struct {
// contains filtered or unexported fields
}
EphemeralCluster is a wrapper around a Kind kubernetes cluster
func NewEphemeralCluster ¶
func NewEphemeralCluster() *EphemeralCluster
func (*EphemeralCluster) Client ¶
func (ec *EphemeralCluster) Client() *kubernetes.Clientset
func (*EphemeralCluster) KubeConfigFilePath ¶
func (ec *EphemeralCluster) KubeConfigFilePath() string
func (*EphemeralCluster) Start ¶
func (ec *EphemeralCluster) Start() error
func (*EphemeralCluster) Stop ¶
func (ec *EphemeralCluster) Stop() error
type GenericCluster ¶
type GenericCluster struct {
// contains filtered or unexported fields
}
GenericCluster is a wrapper around a kubernetes clientset and a kubeconfig file.
func NewExistingCluster ¶
func NewExistingCluster(kubeconfig string) (*GenericCluster, error)
NewExistingCluster creates a new GenericCluster from an existing kubeconfig file.
Example:
c, err := resources.NewExistingCluster("/Users/billy.bob/path/to/kubeconfig") require.NoError(t, err)
func (*GenericCluster) Client ¶
func (gc *GenericCluster) Client() *kubernetes.Clientset
func (*GenericCluster) KubeConfigFilePath ¶
func (gc *GenericCluster) KubeConfigFilePath() string
Click to show internal directories.
Click to hide internal directories.