dependency

package
v0.0.87 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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CHECKING = 0
View Source
const FAILED = 2
View Source
const SUCCESS = 1

Variables

This section is empty.

Functions

func Ready

func Ready(registry *registry.Registry, group string, name string, dependsOn []v1.ContainerDependsOn, channel chan *State) (bool, error)

func SolveDepends

func SolveDepends(registry *registry.Registry, myGroup string, myName string, depend *Dependency, channel chan *State) error

Types

type Dependency

type Dependency struct {
	Name     string
	Group    string
	Timeout  string
	Ctx      context.Context
	Function func() error
	Cancel   context.CancelFunc
}

func NewDependencyFromDefinition

func NewDependencyFromDefinition(depend v1.ContainerDependsOn) *Dependency

type Result

type Result struct {
	Data string
}

type State

type State struct {
	State int8
	Error error
}

Jump to

Keyboard shortcuts

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