driver

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Create(config.ParticleConfiguration, cmd.Cmd) error
	Destroy(config.ParticleConfiguration, cmd.Cmd) error
}

Driver is the interface that manages the kubernetes clusters. It always receives the particle configuration, a cmd.Cmd interface and returns error.

type Kind

type Kind struct {
	Logger *log.Entry
}

Kind is an implementation of the driver interface. It uses kind to manage the kubernetes cluster: https://kind.sigs.k8s.io/

func (*Kind) Create

func (k *Kind) Create(configuration config.ParticleConfiguration, cmd cmd.Cmd) error

Create creates the kubernetes cluster. It will need the k8s cluster version, which is in the configuration, and the name will be created from the path of execution, to give it a more unique name. It's basicallt a wrap for the "kind" command. All of its configuration can be don trough particle's configuration.

func (*Kind) Destroy

func (k *Kind) Destroy(configuration config.ParticleConfiguration, cmd cmd.Cmd) error

Destroy destroys the kubernetes cluster. Not much to add to it.

Jump to

Keyboard shortcuts

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