Documentation ¶
Index ¶
- func UpdateNamespace(u *unstructured.Unstructured) bool
- type RenderFn
- type Renderer
- func (r *Renderer) RenderClusterRole(res *resource.Resource, namespace string, labels map[string]string) (*unstructured.Unstructured, error)
- func (r *Renderer) RenderClusterRoleBinding(res *resource.Resource, namespace string, labels map[string]string) (*unstructured.Unstructured, error)
- func (r *Renderer) RenderDeployments(res *resource.Resource, namespace string, labels map[string]string) (*unstructured.Unstructured, error)
- func (r *Renderer) RenderNamespace(res *resource.Resource, namespace string, labels map[string]string) (*unstructured.Unstructured, error)
- func (r *Renderer) RenderTemplates(templates []*resource.Resource, namespace string, labels map[string]string) ([]*unstructured.Unstructured, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateNamespace ¶
func UpdateNamespace(u *unstructured.Unstructured) bool
UpdateNamespace checks for annotiation to update NS.
Types ¶
type RenderFn ¶
type RenderFn func(*resource.Resource, string, map[string]string) (*unstructured.Unstructured, error)
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func NewRenderer() *Renderer
func (*Renderer) RenderClusterRole ¶
func (r *Renderer) RenderClusterRole( res *resource.Resource, namespace string, labels map[string]string, ) (*unstructured.Unstructured, error)
func (*Renderer) RenderClusterRoleBinding ¶
func (r *Renderer) RenderClusterRoleBinding( res *resource.Resource, namespace string, labels map[string]string, ) (*unstructured.Unstructured, error)
func (*Renderer) RenderDeployments ¶
func (r *Renderer) RenderDeployments( res *resource.Resource, namespace string, labels map[string]string, ) (*unstructured.Unstructured, error)
func (*Renderer) RenderNamespace ¶
func (r *Renderer) RenderNamespace( res *resource.Resource, namespace string, labels map[string]string, ) (*unstructured.Unstructured, error)
func (*Renderer) RenderTemplates ¶
func (r *Renderer) RenderTemplates( templates []*resource.Resource, namespace string, labels map[string]string, ) ([]*unstructured.Unstructured, error)
Click to show internal directories.
Click to hide internal directories.