common

package
v0.0.0-...-ae3d3cc Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleResource

type SimpleResource[T client.Object] struct {
	*types.ConvergedGroup

	DisableUpdate bool
	Obj           T
	// contains filtered or unexported fields
}

func NewSimpleResource

func NewSimpleResource[T client.Object](typeName string, obj T) *SimpleResource[T]

func NewSimpleResourceWithOnCreate

func NewSimpleResourceWithOnCreate[T client.Object](typeName string, obj T, onCreate func(T)) *SimpleResource[T]

func (*SimpleResource[T]) Create

func (s *SimpleResource[T]) Create() (client.Object, error)

func (*SimpleResource[T]) Name

func (s *SimpleResource[T]) Name() string

func (*SimpleResource[T]) Runtime

func (s *SimpleResource[T]) Runtime() client.Object

Runtime returns a new instance of the object without calling DeepCopy. This method uses reflection to create a new instance of the object. If the object is a pointer, it will be dereferenced before creating a new instance. Returns a pointer to the new instance of the object.

func (*SimpleResource[T]) Type

func (s *SimpleResource[T]) Type() string

Jump to

Keyboard shortcuts

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