Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// Reify returns the raw request body given the supplied template values.
Reify(templateValues interface{}) ([]byte, error)
// Create creates a new object using the supplied data object for
// template expansion.
Create(namespace string, templateValues interface{}) error
// Delete deletes the object.
Delete(namespace string, name string) error
// Get retrieves the object.
Get(namespace, name string) (runtime.Object, error)
// List lists objects based on group, version and kind.
List(namespace string, labels map[string]string) ([]metav1.Object, error)
// Update updates the object
Update(object runtime.Object) (runtime.Object, error)
// Plural returns the plural form of the resource.
Plural() string
}
Client manipulates Kubernetes API resources backed by template files.
func NewGenericClient ¶
func NewGenericClient(resource dynamic.ResourceInterface, templateFileName string, resourcePluralForm string, scheme *runtime.Scheme, groupversion runtime.GroupVersioner, reify reify.ReifyInterface) Client
NewGenericClient returns a new horizontal pod autoscaler client.
Click to show internal directories.
Click to hide internal directories.