autorec

package
v0.0.0-...-57273a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Copyright (c) Walmart Inc.

This source code is licensed under the Apache 2.0 license found in the LICENSE file in the root directory of this source tree.

Copyright (c) Walmart Inc.

This source code is licensed under the Apache 2.0 license found in the LICENSE file in the root directory of this source tree.

Index

Constants

View Source
const ClientSide checkpointType = "client_checkpoint"
View Source
const ServerSide checkpointType = "server_checkpoint"

Variables

This section is empty.

Functions

func AutoReconcile

func AutoReconcile(
	cm ClientManager,
	owner ApiObject,
	clientExpect Replacer,
	serverActual Replacer) error

Types

type ApiObject

type ApiObject interface {
	metav1.Object
	runtime.Object
}

type ClientManager

type ClientManager interface {
	client.Client
	GetScheme() *runtime.Scheme
	GetConfig() *rest.Config
	GetRESTMapper() meta.RESTMapper
	GetContext() context.Context
}

type Replacer

type Replacer interface {
	ApiObject
	// This retrieves the backing object for this Replacer.
	GetApiObject() ApiObject
	// This sets the backing object for this Replacer.
	SetApiObject(ApiObject)
	// This returns a Replacer implementation specific configuration.
	GetReplacerConfig() interface{}
	// This sets the Replacer implementation specific configuration.
	SetReplacerConfig(interface{}) error
	// This extracts the portion of the ApiObject which should be compared for changes.
	Extract() (interface{}, error)
	// This sets the portion of the ApiObject which should be compared for changes.
	Implant(interface{}) error
}

func NewDataReplacer

func NewDataReplacer(object ApiObject) Replacer

func NewSimpleReplacer

func NewSimpleReplacer(object ApiObject, field string) Replacer

func NewSpecReplacer

func NewSpecReplacer(object ApiObject) Replacer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL