strings

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ORCK8SPrefix = "openstack.k-orc.cloud"

Variables

This section is empty.

Functions

func GetFinalizerName

func GetFinalizerName(controllerName string) string

GetFinalizerName returns the finalizer to be used for the given actuator

The returned string is of the form:

openstack.k-orc.cloud/<controllername>

func GetSSAFieldOwner

func GetSSAFieldOwner(controllerName string) client.FieldOwner

GetSSAFieldOwner returns a field owner string for a controller without a transaction identifier. It is intended to be used when setting fields owned by a controller to an object it does not control, e.g. a Finalizer.

The returned string is of the form:

openstack.k-orc.cloud/<controllername>controller

func GetSSAFieldOwnerWithTxn

func GetSSAFieldOwnerWithTxn(controllerName string, txn SSATransactionID) client.FieldOwner

GetSSAFieldOwnerWithTxn returns a field owner string for a specific named SSA transaction. It is intended to be used when setting fields owned by a controller to objects it controls.

The returned string is of the form:

openstack.k-orc.cloud/<controllername>controller/<txn>

Types

type SSATransactionID

type SSATransactionID string
const (
	// Field owner of the object finalizer.
	SSATransactionFinalizer SSATransactionID = "finalizer"
	SSATransactionStatus    SSATransactionID = "status"
)

Jump to

Keyboard shortcuts

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