Documentation
¶
Index ¶
- Variables
- func NestedMap(obj map[string]interface{}, fields ...string) (map[string]interface{}, bool, error)
- func NestedNamedSliceAsMaps(obj map[string]interface{}, nameField string, fields ...string) (result map[string]map[string]interface{}, found bool, err error)
- func NestedStringMap(obj map[string]interface{}, fields ...string) (map[string]string, bool, error)
- func SetNestedNamedMapsAsSlice(obj map[string]interface{}, nameField string, ...) error
- type Create
- type CreateFunc
- type Creates
- type Transformation
- type Transformations
- func (instance *Transformations) MustRegisterCreate(v Create)
- func (instance *Transformations) MustRegisterCreateFunc(name model.TransformationName, v CreateFunc)
- func (instance *Transformations) MustRegisterUpdate(v Update)
- func (instance *Transformations) MustRegisterUpdateFunc(name model.TransformationName, v UpdateFunc)
- func (instance *Transformations) RegisterCreate(v Create) error
- func (instance *Transformations) RegisterCreateFunc(name model.TransformationName, v CreateFunc) error
- func (instance *Transformations) RegisterUpdate(v Update) error
- func (instance *Transformations) RegisterUpdateFunc(name model.TransformationName, v UpdateFunc) error
- func (instance Transformations) TransformForCreate(p *model.Project, target *unstructured.Unstructured) error
- func (instance Transformations) TransformForUpdate(p *model.Project, existing unstructured.Unstructured, ...) error
- type Update
- type UpdateFunc
- type Updates
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Default = Transformations{}
)
View Source
var GitlabDiscoveryReceiverGvks = model.BuildGroupVersionKinds(v1.SchemeGroupVersion, &v1.Pod{}). With(appsv1.SchemeGroupVersion, &appsv1.Deployment{}). With(appsv1beta1.SchemeGroupVersion, &appsv1beta1.Deployment{}). With(appsv1beta2.SchemeGroupVersion, &appsv1beta2.Deployment{}). With(extensionsv1beta1.SchemeGroupVersion, &extensionsv1beta1.Deployment{}). With(appsv1.SchemeGroupVersion, &appsv1.StatefulSet{}). With(appsv1beta1.SchemeGroupVersion, &appsv1beta1.StatefulSet{}). With(appsv1beta2.SchemeGroupVersion, &appsv1beta2.StatefulSet{}). With(appsv1.SchemeGroupVersion, &appsv1.DaemonSet{}). With(appsv1beta2.SchemeGroupVersion, &appsv1beta2.DaemonSet{}). With(extensionsv1beta1.SchemeGroupVersion, &extensionsv1beta1.DaemonSet{}). With(appsv1.SchemeGroupVersion, &appsv1.ReplicaSet{}). With(appsv1beta2.SchemeGroupVersion, &appsv1beta2.ReplicaSet{}). With(extensionsv1beta1.SchemeGroupVersion, &extensionsv1beta1.ReplicaSet{}). With(batchv1.SchemeGroupVersion, &batchv1.Job{}). With(batchv1beta1.SchemeGroupVersion, &batchv1beta1.CronJob{}). Build()
View Source
var NamespaceGvks = model.BuildGroupVersionKinds(v1.SchemeGroupVersion, &v1.Namespace{}).Build()
View Source
var ServiceAccountGvks = model.BuildGroupVersionKinds(v1.SchemeGroupVersion, &v1.ServiceAccount{}).Build()
View Source
var ServiceGvks = model.BuildGroupVersionKinds(v1.SchemeGroupVersion, &v1.Service{}).Build()
Functions ¶
func NestedNamedSliceAsMaps ¶ added in v0.7.0
func NestedStringMap ¶ added in v0.8.3
Types ¶
type Create ¶ added in v0.7.0
type Create interface { Transformation TransformForCreate(p *model.Project, target *unstructured.Unstructured, argument *string) error }
type CreateFunc ¶ added in v0.7.0
type CreateFunc func(p *model.Project, target *unstructured.Unstructured, argument *string) error
type Creates ¶ added in v0.8.1
type Creates []Create
func (Creates) TransformForCreate ¶ added in v0.8.1
func (instance Creates) TransformForCreate(p *model.Project, target *unstructured.Unstructured) error
type Transformation ¶ added in v0.8.1
type Transformation interface { GetName() model.TransformationName GetPriority() int32 DefaultEnabled(target *unstructured.Unstructured) bool }
type Transformations ¶ added in v0.7.0
func (*Transformations) MustRegisterCreate ¶ added in v0.8.0
func (instance *Transformations) MustRegisterCreate(v Create)
func (*Transformations) MustRegisterCreateFunc ¶ added in v0.7.1
func (instance *Transformations) MustRegisterCreateFunc(name model.TransformationName, v CreateFunc)
func (*Transformations) MustRegisterUpdate ¶ added in v0.8.0
func (instance *Transformations) MustRegisterUpdate(v Update)
func (*Transformations) MustRegisterUpdateFunc ¶ added in v0.7.1
func (instance *Transformations) MustRegisterUpdateFunc(name model.TransformationName, v UpdateFunc)
func (*Transformations) RegisterCreate ¶ added in v0.7.0
func (instance *Transformations) RegisterCreate(v Create) error
func (*Transformations) RegisterCreateFunc ¶ added in v0.7.0
func (instance *Transformations) RegisterCreateFunc(name model.TransformationName, v CreateFunc) error
func (*Transformations) RegisterUpdate ¶ added in v0.7.0
func (instance *Transformations) RegisterUpdate(v Update) error
func (*Transformations) RegisterUpdateFunc ¶ added in v0.7.0
func (instance *Transformations) RegisterUpdateFunc(name model.TransformationName, v UpdateFunc) error
func (Transformations) TransformForCreate ¶ added in v0.7.0
func (instance Transformations) TransformForCreate(p *model.Project, target *unstructured.Unstructured) error
func (Transformations) TransformForUpdate ¶ added in v0.7.0
func (instance Transformations) TransformForUpdate(p *model.Project, existing unstructured.Unstructured, target *unstructured.Unstructured) error
type Update ¶ added in v0.7.0
type Update interface { Transformation TransformForUpdate(p *model.Project, existing unstructured.Unstructured, target *unstructured.Unstructured, argument *string) error }
type UpdateFunc ¶ added in v0.7.0
type UpdateFunc func(p *model.Project, existing unstructured.Unstructured, target *unstructured.Unstructured, argument *string) error
type Updates ¶ added in v0.8.1
type Updates []Update
func (Updates) TransformForUpdate ¶ added in v0.8.1
func (instance Updates) TransformForUpdate(p *model.Project, existing unstructured.Unstructured, target *unstructured.Unstructured) error
Click to show internal directories.
Click to hide internal directories.