dependency

package
v0.0.0-...-88edc58 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Depends

func Depends(mgr *manager.Manager, host string, depend *Dependency, ch chan State)

func Ready

func Ready(mgr *manager.Manager, group string, name string, dependsOn []v1.DependsOn) (bool, error)

func SolveDepends

func SolveDepends(mgr *manager.Manager, depend *Dependency, c chan State)

Types

type Dependency

type Dependency struct {
	Name     string
	Operator string
	Timeout  string
	Body     map[string]any
	Solved   bool
	Ctx      context.Context
}

func NewDependencyFromDefinition

func NewDependencyFromDefinition(depend v1.DependsOn) *Dependency

type Result

type Result struct {
	Data string
}

type State

type State struct {
	Name       string
	Success    bool
	Missing    bool
	Timeout    bool
	Error      error
	TryToSolve bool
	Depend     *Dependency
}

Jump to

Keyboard shortcuts

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