template

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultName      = "template"
	DefaultNamespace = "default"
)

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 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 WithProviders

func WithProviders(providers v1alpha1.Providers) Opt

func WithProvidersStatus

func WithProvidersStatus(providers v1alpha1.Providers) Opt

func WithValidationStatus

func WithValidationStatus(validationStatus v1alpha1.TemplateValidationStatus) Opt

type Template

type Template struct {
	metav1.ObjectMeta `json:",inline"`
	Spec              v1alpha1.TemplateSpecCommon   `json:"spec"`
	Status            v1alpha1.TemplateStatusCommon `json:"status"`
}

func NewTemplate

func NewTemplate(opts ...Opt) *Template

Jump to

Keyboard shortcuts

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