core

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMap

type ConfigMap struct {
	*common.SimpleResource[*v1.ConfigMap]
}

func NewConfigMap

func NewConfigMap(configMap *v1.ConfigMap) *ConfigMap

func NewConfigMapWithOnCreate

func NewConfigMapWithOnCreate(configMap *v1.ConfigMap, onCreate func(*v1.ConfigMap)) *ConfigMap

type PersistentVolumeClaim

type PersistentVolumeClaim struct {
	*common.SimpleResource[*v1.PersistentVolumeClaim]
}

func NewPersistentVolumeClaim

func NewPersistentVolumeClaim(pvc *v1.PersistentVolumeClaim) *PersistentVolumeClaim

type Secret

type Secret struct {
	*common.SimpleResource[*v1.Secret]
}

func NewSecret

func NewSecret(secret *v1.Secret) *Secret

func NewSecretWithOnCreate

func NewSecretWithOnCreate(secret *v1.Secret, onCreate func(*v1.Secret)) *Secret

NewSecretWithOnCreate is a helper function to create a Secret with a onCreate function The onCreate function is called when the Secret is required to be created or updated Due to the nature of the Secret, we do not want to generate the secret unless it is required to be created or updated

func (*Secret) Update

func (c *Secret) Update(ctx context.Context, fromApiServer runtime.Object) error

type Service

type Service struct {
	*common.SimpleResource[*v1.Service]
}

func NewService

func NewService(service *v1.Service) *Service

Jump to

Keyboard shortcuts

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