Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicResource ¶
type DynamicResource struct {
// contains filtered or unexported fields
}
DynamicResource is a struct for dynamic resources
func NewClient ¶
func NewClient(dynamicCli dynamic.Interface, s schema.GroupVersionResource) *DynamicResource
NewClient function creates a new instance of DynamicResource
func (*DynamicResource) Create ¶
func (r *DynamicResource) Create(res metav1.Object) error
Create method creates a new instance of appropriate k8s resource
func (*DynamicResource) Delete ¶
func (r *DynamicResource) Delete(namespace, name string) error
Delete method deletes a existing instance of appropriate k8s resource
func (*DynamicResource) Get ¶
func (r *DynamicResource) Get(namespace, name string, obj interface{}) error
Get method gets a existing instance of appropriate k8s resource
Click to show internal directories.
Click to hide internal directories.