util

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InstallPriorities = generateInstallPriorities()

Functions

func FilterCrdResources

func FilterCrdResources(resources interface{}) interface{}

Filter resources that are Custom Resource Definitions.

func FilterNonCrdResources

func FilterNonCrdResources(resources interface{}) interface{}

Filter resources that are Custom Resource Definitions.

func SortResourcesByKind

func SortResourcesByKind(infos interface{}, ordering KindSortOrder)

func StreamDecode

func StreamDecode(negotiator client_negotiator.ExtendedClientNegotiator, bigManifest io.ReadCloser, infoCreator *resource.ResourceCreator) ([]*resource.Resource, error)

func StreamEncode

func StreamEncode(negotiator client_negotiator.ExtendedClientNegotiator, infos []*resource.Resource, w io.Writer) error

Types

type KindSortOrder

type KindSortOrder int

KindSortOrder is an ordering of Kinds.

const (
	InstallOrder KindSortOrder = iota
	UninstallOrder
)

type ResourceDiff

type ResourceDiff struct {
	*resource.ResourceId
	From *resource.Resource
	To   *resource.Resource
}

func CompareResourceSet

func CompareResourceSet(from []*resource.Resource, to []*resource.Resource) []*ResourceDiff

Jump to

Keyboard shortcuts

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