node

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package node is used for status related functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RetryFunc

type RetryFunc func(context.Context) error

RetryFunc is a function that takes context and returns an error

func HTTPStatusFunc

func HTTPStatusFunc(h *cluster.ZarfHost, url string, expected ...int) RetryFunc

HTTPStatusFunc returns a function that returns an error unless the expected status code is returned for a HTTP get to the url

func ServiceRunningFunc

func ServiceRunningFunc(h *cluster.ZarfHost, service string) RetryFunc

ServiceRunningFunc returns a function that returns an error until the service is running on the host

func ServiceStoppedFunc

func ServiceStoppedFunc(h *cluster.ZarfHost, service string) RetryFunc

ServiceStoppedFunc returns a function that returns an error if the service is not running on the host

Jump to

Keyboard shortcuts

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