bastion

package
v1.33.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BastionTimeToLive is the duration the ExpirationTimestamp of a bastion will be extended
	// by on every heartbeat.
	BastionTimeToLive = 1 * time.Hour
)

Variables

View Source
var StatusStrategy = bastionStatusStrategy{Strategy}

StatusStrategy defines the storage strategy for the status subresource of Bastions.

View Source
var Strategy = bastionStrategy{api.Scheme, names.SimpleNameGenerator, BastionTimeToLive}

Strategy defines the storage strategy for Bastions.

Functions

func GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)

GetAttrs returns labels and fields of a given object for filtering purposes.

func MatchBastion

func MatchBastion(label labels.Selector, field fields.Selector) storage.SelectionPredicate

MatchBastion returns a generic matcher for a given label and field selector.

func SeedNameTriggerFunc

func SeedNameTriggerFunc(obj runtime.Object) string

SeedNameTriggerFunc returns spec.seedName of given Bastion.

func ToSelectableFields

func ToSelectableFields(bastion *operations.Bastion) fields.Set

ToSelectableFields returns a field set that represents the object TODO: fields are not labels, and the validation rules for them do not apply.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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