dependency

package
Version: v0.16.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 5 Imported by: 7

Documentation

Overview

Package dependency contains an utility for sorting a set of Kubernetes resource objects that implement the Dependent interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

Sort sorts the Dependent slice based on their listed dependencies using Tarjan's strongly connected components algorithm.

Types

type CircularDependencyError

type CircularDependencyError [][]string

CircularDependencyError contains the circular dependency chains that were detected while sorting the Dependent dependencies.

func (CircularDependencyError) Error

func (e CircularDependencyError) Error() string

type Dependent

type Dependent interface {
	client.Object
	meta.ObjectWithDependencies
}

Dependent interface defines methods that a Kubernetes resource object should implement in order to use the dependency package for ordering dependencies.

Source Files

Jump to

Keyboard shortcuts

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