Help us shape the future of Go! Take the 2026 Go Developer Survey

context

package
v1.154.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 4 Imported by: 46

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GardenContext

type GardenContext interface {
	GetCluster(ctx context.Context) (*extensionscontroller.Cluster, error)
}

GardenContext wraps the actual context and cluster object.

func NewGardenContext

func NewGardenContext(client client.Client, object client.Object) GardenContext

NewGardenContext creates a context object.

func NewInternalGardenContext

func NewInternalGardenContext(cluster *extensionscontroller.Cluster) GardenContext

NewInternalGardenContext creates a context object from a Cluster object.

Jump to

Keyboard shortcuts

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