client

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOpenShift

func IsOpenShift(d discovery.DiscoveryInterface) (bool, error)

Types

type Client

type Client struct {
	ctrl.Client
	kubernetes.Interface

	Discovery discovery.DiscoveryInterface
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *rest.Config, scheme *runtime.Scheme, cc ctrl.Client) (*Client, error)

func (*Client) Dynamic

func (c *Client) Dynamic(namespace string, obj *unstructured.Unstructured) (dynamic.ResourceInterface, error)

func (*Client) IsOpenShift

func (c *Client) IsOpenShift() (bool, error)

IsOpenShift returns true if we are connected to a OpenShift cluster.

type ClusteredResource

type ClusteredResource struct {
	dynamic.ResourceInterface
}

type NamespacedResource

type NamespacedResource struct {
	dynamic.ResourceInterface
}

Jump to

Keyboard shortcuts

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