local

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const LocalHelmVersionCheck = "local-helm-version"

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

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

local.Checker checks the local environment.

func NewChecker

func NewChecker(opts ...Option) *Checker

func (*Checker) CheckLocalHelmVersion

func (l *Checker) CheckLocalHelmVersion(ctx context.Context) *api.CheckResult

func (*Checker) Run

func (l *Checker) Run(ctx context.Context) error

func (*Checker) Validate

func (l *Checker) Validate() error

type ExecF

type ExecF func(ctx context.Context, name string, args ...string) ([]byte, error)

type LookPathF

type LookPathF func(string) (string, error)

type Option

type Option func(*Checker)

func WithCoderVersion

func WithCoderVersion(version *semver.Version) Option

func WithExecF

func WithExecF(f ExecF) Option

func WithLogger

func WithLogger(log slog.Logger) Option

func WithLookPathF

func WithLookPathF(f LookPathF) Option

func WithTarget

func WithTarget(t api.CheckTarget) Option

func WithWriter

func WithWriter(writer api.ResultWriter) Option

type VersionRequirement

type VersionRequirement struct {
	Coder          *semver.Version
	HelmConstraint *semver.Constraints
}

Jump to

Keyboard shortcuts

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