Documentation ¶
Index ¶
- Constants
- func NewClusterTemplate(opts ...Opt) *v1alpha1.ClusterTemplate
- func NewProviderTemplate(opts ...Opt) *v1alpha1.ProviderTemplate
- func NewServiceTemplate(opts ...Opt) *v1alpha1.ServiceTemplate
- type Opt
- func ManagedByHMC() Opt
- func WithConfigStatus(config string) Opt
- func WithHelmSpec(helmSpec v1alpha1.HelmSpec) Opt
- func WithLabels(labels map[string]string) Opt
- func WithName(name string) Opt
- func WithNamespace(namespace string) Opt
- func WithProviders(providers v1alpha1.Providers) Opt
- func WithProvidersStatus(providers v1alpha1.Providers) Opt
- func WithValidationStatus(validationStatus v1alpha1.TemplateValidationStatus) Opt
- type Template
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 WithHelmSpec ¶
func WithLabels ¶
func WithNamespace ¶
func WithProviders ¶
func WithProvidersStatus ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.