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 WithClusterStatusK8sVersion(v string) 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 WithProviderStatusCAPIContracts(coreAndProvidersContracts ...string) Opt
- func WithProvidersStatus(providers ...string) Opt
- func WithServiceK8sConstraint(v string) Opt
- func WithValidationStatus(validationStatus v1alpha1.TemplateValidationStatus) Opt
- type Template
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 WithConfigStatus ¶
func WithHelmSpec ¶
func WithLabels ¶
func WithNamespace ¶
func WithProviderStatusCAPIContracts ¶ added in v0.0.4
func WithProvidersStatus ¶
func WithServiceK8sConstraint ¶ added in v0.0.3
func WithValidationStatus ¶
func WithValidationStatus(validationStatus v1alpha1.TemplateValidationStatus) Opt
Click to show internal directories.
Click to hide internal directories.