Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Creator ¶ added in v0.5.0
type Creator interface { // Create creates an object. Create(obj *unstructured.Unstructured) (*unstructured.Unstructured, error) }
Creator creates an object.
type Dynamic ¶
Dynamic contains client methods that Ark needs for backing up and restoring resources.
type DynamicFactory ¶
type DynamicFactory interface { // ClientForGroupVersionResource returns a Dynamic client for the given group/version // and resource for the given namespace. ClientForGroupVersionResource(gv schema.GroupVersion, resource metav1.APIResource, namespace string) (Dynamic, error) }
DynamicFactory contains methods for retrieving dynamic clients for GroupVersionResources and GroupVersionKinds.
func NewDynamicFactory ¶
func NewDynamicFactory(clientPool dynamic.ClientPool) DynamicFactory
NewDynamicFactory returns a new ClientPool-based dynamic factory.
type Factory ¶
type Factory interface { // BindFlags binds common flags such as --kubeconfig to the passed-in FlagSet. BindFlags(flags *pflag.FlagSet) // Client returns an ArkClient. It uses the following priority to specify the cluster // configuration: --kubeconfig flag, KUBECONFIG environment variable, in-cluster configuration. Client() (clientset.Interface, error) }
Factory knows how to create an ArkClient.
type Getter ¶ added in v0.5.0
type Getter interface { // Get fetches an object by name. Get(name string, opts metav1.GetOptions) (*unstructured.Unstructured, error) }
Getter gets an object.
Click to show internal directories.
Click to hide internal directories.