Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultTimeout = 5 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func GetObjects ¶ added in v0.1.1
func GetObjects(yaml string) ([]*unstructured.Unstructured, error)
Types ¶
type DeleteOpts ¶
type Inventory ¶
type Inventory struct {
Items []InventoryItem
}
func (Inventory) ItemsToRemove ¶
func (i Inventory) ItemsToRemove(newInv Inventory) []*unstructured.Unstructured
type InventoryItem ¶
type InventoryItem struct { object.ObjMetadata GroupVersion string }
func (InventoryItem) ID ¶
func (i InventoryItem) ID() string
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
func NewReconciler ¶
func NewReconciler(kubeconfig string) (*Reconciler, error)
func (*Reconciler) Apply ¶
func (r *Reconciler) Apply(yaml string, opts ApplyOpts) (Inventory, error)
func (*Reconciler) Delete ¶
func (r *Reconciler) Delete(yaml string, opts DeleteOpts) error
func (*Reconciler) SetLogFunc ¶
func (r *Reconciler) SetLogFunc(f func(string))
Click to show internal directories.
Click to hide internal directories.