resources

package
v0.0.0-...-01573f9 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGeneratorRouteName

func GetGeneratorRouteName(a *api.Apicurito) string

func GetUIRouteName

func GetUIRouteName(a *api.Apicurito) string

func Normalize

func Normalize(in corev1.ResourceList) (out corev1.ResourceList)

Normalize transforms each resource.Quantity item into a canonical form, so reflect.DeepEquals works correctly.

Types

type Generator

type Generator interface {
	Generate() (rs []client.Object, err error)
	Routes() (rs []client.Object)
}

type Resource

type Resource struct {
	Client    client.Client
	Apicurito *v1alpha1.Apicurito
	Cfg       *configuration.Config
	Logger    logr.Logger
}

func (Resource) Generate

func (r Resource) Generate() (rs []client.Object, err error)

func (Resource) Routes

func (r Resource) Routes() (rs []client.Object)

Jump to

Keyboard shortcuts

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