Documentation ¶
Index ¶
- type Client
- func NewAdminClient(log *logrus.Entry, cs *internalapi.OpenShiftManagedCluster) (*Client, error)
- func NewCustomerAdminClient(log *logrus.Entry, cs *internalapi.OpenShiftManagedCluster) (*Client, error)
- func NewEndUserClient(log *logrus.Entry, cs *internalapi.OpenShiftManagedCluster) (*Client, error)
- func (cli *Client) CleanupProject(namespace string) error
- func (cli *Client) CreateProject(namespace string) error
- func (cli *Client) DeleteKafka(name, namespace string) error
- func (cli *Client) DumpInfo(namespace, subDir string) error
- func (cli *Client) GetKafka(name, namespace string) (*unstructured.Unstructured, error)
- func (cli *Client) GetServiceAccountToken(namespace, name string) ([]byte, error)
- func (cli *Client) InstantiateTemplate(srcTemplateName, dstNamespace string) error
- func (cli *Client) InstantiateTemplateFromBytes(yamldata []byte, dstNamespace string, parameters map[string]string) error
- type ClientSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Discovery discovery.DiscoveryInterface AppsV1 appsv1client.AppsV1Interface AuthorizationV1 authorizationv1client.AuthorizationV1Interface CoreV1 corev1client.CoreV1Interface BatchV1 batchv1client.BatchV1Interface NetworkV1 networkv1client.NetworkV1Interface PolicyV1beta1 policyv1beta1client.PolicyV1beta1Interface RbacV1 rbacv1client.RbacV1Interface ServicecatalogV1beta1 servicecatalogv1beta1client.ServicecatalogV1beta1Interface OAppsV1 oappsv1client.AppsV1Interface BuildV1 buildv1client.BuildV1Interface ProjectV1 projectv1client.ProjectV1Interface RouteV1 routev1client.RouteV1Interface TemplateV1 templatev1client.TemplateV1Interface UserV1 userv1client.UserV1Interface // contains filtered or unexported fields }
func NewAdminClient ¶
func NewAdminClient(log *logrus.Entry, cs *internalapi.OpenShiftManagedCluster) (*Client, error)
func NewCustomerAdminClient ¶
func NewCustomerAdminClient(log *logrus.Entry, cs *internalapi.OpenShiftManagedCluster) (*Client, error)
func NewEndUserClient ¶
func NewEndUserClient(log *logrus.Entry, cs *internalapi.OpenShiftManagedCluster) (*Client, error)
func (*Client) CleanupProject ¶
func (*Client) CreateProject ¶
func (*Client) DeleteKafka ¶
DeleteKafka delete the cluster
func (*Client) DumpInfo ¶
DumpInfo dumps logs and events from the clusters to sub-directory in ARTIFACTS folder
func (*Client) GetKafka ¶
func (cli *Client) GetKafka(name, namespace string) (*unstructured.Unstructured, error)
GetKafka return the kafka CR with the given name and namespace
func (*Client) GetServiceAccountToken ¶
func (*Client) InstantiateTemplate ¶
InstantiateTemplate gets an openshift template and instantiates it
type ClientSet ¶
func NewClientSet ¶
func NewClientSet(log *logrus.Entry, cs *internalapi.OpenShiftManagedCluster) (*ClientSet, error)
NewClientSet creates a new set of openshift clients scoped for different levels of access
Click to show internal directories.
Click to hide internal directories.