readiness

package
v0.0.90 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const CHECKING = 0
View Source
const FAILED = 2
View Source
const SUCCESS = 1
View Source
const TYPE_COMMAND = "command"
View Source
const TYPE_URL = "url"

Variables

This section is empty.

Functions

func Ready

func Ready(client *client.Http, container platforms.IContainer, user *authentication.User, channel chan *ReadinessState, logger *zap.Logger) (bool, error)

func SolveReadiness

func SolveReadiness(client *client.Http, user *authentication.User, container platforms.IContainer, logger *zap.Logger, readiness *Readiness, channel chan *ReadinessState) error

Types

type Readiness

type Readiness struct {
	Name       string
	URL        string
	Command    []string
	Type       string
	Timeout    string
	Solved     bool
	BodyUnpack map[string]string  `json:"-"`
	Function   func() error       `json:"-"`
	Ctx        context.Context    `json:"-"`
	Cancel     context.CancelFunc `json:"-"`
}

func NewReadinessFromDefinition

func NewReadinessFromDefinition(client *client.Http, user *authentication.User, container platforms.IContainer, readiness v1.ContainerReadiness) (*Readiness, error)

type ReadinessResult

type ReadinessResult struct {
	Data string
}

type ReadinessState

type ReadinessState struct {
	State int8
}

Jump to

Keyboard shortcuts

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