Documentation ¶
Index ¶
- func RelaxedJSONPathExpression(pathExpression string) (string, error)
- type GenericClusterObjectTemplate
- func (t *GenericClusterObjectTemplate) ClientObject() client.Object
- func (t *GenericClusterObjectTemplate) GetConditions() *[]metav1.Condition
- func (t *GenericClusterObjectTemplate) GetGeneration() int64
- func (t *GenericClusterObjectTemplate) GetSources() []corev1alpha1.ObjectTemplateSource
- func (t *GenericClusterObjectTemplate) GetTemplate() string
- func (t *GenericClusterObjectTemplate) UpdatePhase()
- type GenericObjectTemplate
- func (t *GenericObjectTemplate) ClientObject() client.Object
- func (t *GenericObjectTemplate) GetConditions() *[]metav1.Condition
- func (t *GenericObjectTemplate) GetGeneration() int64
- func (t *GenericObjectTemplate) GetSources() []corev1alpha1.ObjectTemplateSource
- func (t *GenericObjectTemplate) GetTemplate() string
- func (t *GenericObjectTemplate) UpdatePhase()
- type GenericObjectTemplateController
- type JSONPathFormatError
- type SourceError
- type SourceKeyNotFoundError
- type TemplateContext
- type TemplateError
- type TemplateTransformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RelaxedJSONPathExpression ¶ added in v1.6.0
RelaxedJSONPathExpression attempts to be flexible with JSONPath expressions, it accepts:
- metadata.name (no leading '.' or curly braces '{...}'
- {metadata.name} (no leading '.')
- .metadata.name (no curly braces '{...}')
- {.metadata.name} (complete expression)
And transforms them all into a valid jsonpath expression:
{.metadata.name}
Types ¶
type GenericClusterObjectTemplate ¶
type GenericClusterObjectTemplate struct {
corev1alpha1.ClusterObjectTemplate
}
func (*GenericClusterObjectTemplate) ClientObject ¶
func (t *GenericClusterObjectTemplate) ClientObject() client.Object
func (*GenericClusterObjectTemplate) GetConditions ¶
func (t *GenericClusterObjectTemplate) GetConditions() *[]metav1.Condition
func (*GenericClusterObjectTemplate) GetGeneration ¶ added in v1.5.0
func (t *GenericClusterObjectTemplate) GetGeneration() int64
func (*GenericClusterObjectTemplate) GetSources ¶
func (t *GenericClusterObjectTemplate) GetSources() []corev1alpha1.ObjectTemplateSource
func (*GenericClusterObjectTemplate) GetTemplate ¶
func (t *GenericClusterObjectTemplate) GetTemplate() string
func (*GenericClusterObjectTemplate) UpdatePhase ¶
func (t *GenericClusterObjectTemplate) UpdatePhase()
type GenericObjectTemplate ¶
type GenericObjectTemplate struct {
corev1alpha1.ObjectTemplate
}
func (*GenericObjectTemplate) ClientObject ¶
func (t *GenericObjectTemplate) ClientObject() client.Object
func (*GenericObjectTemplate) GetConditions ¶
func (t *GenericObjectTemplate) GetConditions() *[]metav1.Condition
func (*GenericObjectTemplate) GetGeneration ¶ added in v1.5.0
func (t *GenericObjectTemplate) GetGeneration() int64
func (*GenericObjectTemplate) GetSources ¶
func (t *GenericObjectTemplate) GetSources() []corev1alpha1.ObjectTemplateSource
func (*GenericObjectTemplate) GetTemplate ¶
func (t *GenericObjectTemplate) GetTemplate() string
func (*GenericObjectTemplate) UpdatePhase ¶
func (t *GenericObjectTemplate) UpdatePhase()
type GenericObjectTemplateController ¶
type GenericObjectTemplateController struct {
// contains filtered or unexported fields
}
func NewClusterObjectTemplateController ¶
func NewClusterObjectTemplateController( client, uncachedClient client.Client, log logr.Logger, dynamicCache dynamicCache, scheme *runtime.Scheme, restMapper meta.RESTMapper, ) *GenericObjectTemplateController
func NewObjectTemplateController ¶
func NewObjectTemplateController( client, uncachedClient client.Client, log logr.Logger, dynamicCache dynamicCache, scheme *runtime.Scheme, restMapper meta.RESTMapper, ) *GenericObjectTemplateController
func (*GenericObjectTemplateController) SetupWithManager ¶
func (c *GenericObjectTemplateController) SetupWithManager( mgr ctrl.Manager, ) error
type JSONPathFormatError ¶ added in v1.5.0
type JSONPathFormatError struct {
Path string
}
func (*JSONPathFormatError) Error ¶ added in v1.5.0
func (e *JSONPathFormatError) Error() string
type SourceError ¶
func (*SourceError) Error ¶
func (e *SourceError) Error() string
type SourceKeyNotFoundError ¶
type SourceKeyNotFoundError struct {
Key string
}
func (*SourceKeyNotFoundError) Error ¶
func (e *SourceKeyNotFoundError) Error() string
type TemplateContext ¶
type TemplateContext struct {
Config map[string]interface{} `json:"config"`
}
type TemplateError ¶
type TemplateError struct {
Err error
}
func (*TemplateError) Error ¶
func (e *TemplateError) Error() string
type TemplateTransformer ¶
type TemplateTransformer struct {
// contains filtered or unexported fields
}
func NewTemplateTransformer ¶
func NewTemplateTransformer(tmplCtx TemplateContext) (*TemplateTransformer, error)
Click to show internal directories.
Click to hide internal directories.