template

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultName      = "template"
	DefaultNamespace = metav1.NamespaceDefault
)

Variables

This section is empty.

Functions

func NewClusterTemplate

func NewClusterTemplate(opts ...Opt) *v1alpha1.ClusterTemplate

func NewProviderTemplate

func NewProviderTemplate(opts ...Opt) *v1alpha1.ProviderTemplate

func NewServiceTemplate

func NewServiceTemplate(opts ...Opt) *v1alpha1.ServiceTemplate

Types

type Opt

type Opt func(template Template)

func ManagedByHMC

func ManagedByHMC() Opt

func WithClusterStatusK8sVersion added in v0.0.3

func WithClusterStatusK8sVersion(v string) Opt

func WithConfigStatus

func WithConfigStatus(config string) Opt

func WithHelmSpec

func WithHelmSpec(helmSpec v1alpha1.HelmSpec) Opt

func WithLabels

func WithLabels(labels map[string]string) Opt

func WithName

func WithName(name string) Opt

func WithNamespace

func WithNamespace(namespace string) Opt

func WithProviderStatusCAPIContracts added in v0.0.4

func WithProviderStatusCAPIContracts(coreAndProvidersContracts ...string) Opt

func WithProvidersStatus

func WithProvidersStatus(providers ...string) Opt

func WithServiceK8sConstraint added in v0.0.3

func WithServiceK8sConstraint(v string) Opt

func WithValidationStatus

func WithValidationStatus(validationStatus v1alpha1.TemplateValidationStatus) Opt

type Template

type Template interface {
	client.Object
	GetHelmSpec() *v1alpha1.HelmSpec
	GetCommonStatus() *v1alpha1.TemplateStatusCommon
}

Jump to

Keyboard shortcuts

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