bundle

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateBundleFunction

type CreateBundleFunction func() ObjectsBundle

CreateBundleFunction is a function that specifies how to create a bundle.

type CreateObjectFunction

type CreateObjectFunction func() metav1.Object

CreateObjectFunction is a function that specifies how to create an object.

type ExtractObjectNameFunction

type ExtractObjectNameFunction func(metav1.Object) string

ExtractObjectNameFunction is a function that specifies how to extract a name from an object.

type ObjectsBundle

type ObjectsBundle interface {
	// AddObject adds an object to the bundle.
	AddObject(object metav1.Object, objectUID string)
	// AddDeletedObject adds a deleted object to the bundle.
	AddDeletedObject(object metav1.Object)
}

ObjectsBundle bundles together a set of k8s objects to be sent to leaf hubs via transport layer.

func NewBaseObjectsBundle

func NewBaseObjectsBundle() ObjectsBundle

NewBaseObjectsBundle creates a new base bundle with no data in it.

Jump to

Keyboard shortcuts

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