strings

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

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