colima

package
v1.27.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package colima provides a cluster.Manager implementation using Colima.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidMemoryFormat is returned when memory format is invalid.
	ErrInvalidMemoryFormat = fmt.Errorf("invalid memory format")
	// ErrInvalidMemoryValue is returned when memory value cannot be parsed.
	ErrInvalidMemoryValue = fmt.Errorf("invalid memory value")
	// ErrK3SVersionNotDefined is returned when GL_K3S_VERSION is not defined in .gitlab-ci-other-versions.yml.
	ErrK3SVersionNotDefined = fmt.Errorf("required fallback GL_K3S_VERSION is not defined in .gitlab-ci-other-versions.yml")
)

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

Driver implements cluster.Manager using Colima as the backend.

func NewDriver

func NewDriver(profileName string, executor executor.CommandRunner) *Driver

NewDriver creates a new Colima driver with the given profile name.

func (*Driver) Destroy

func (d *Driver) Destroy(ctx context.Context) error

Destroy completely removes the Colima cluster and all its data.

func (*Driver) Start

func (d *Driver) Start(ctx context.Context, cfg types.ClusterConfig) error

Start starts the Colima cluster with the given configuration.

func (*Driver) Status

func (d *Driver) Status(ctx context.Context) (*cluster.Status, error)

Status returns the current status of the Colima cluster.

func (*Driver) Stop

func (d *Driver) Stop(ctx context.Context) error

Stop stops the Colima cluster.

Jump to

Keyboard shortcuts

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