openshift

package
v10.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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 (cli *Client) CleanupProject(namespace string) error

func (*Client) CreateProject

func (cli *Client) CreateProject(namespace string) error

func (*Client) DeleteKafka

func (cli *Client) DeleteKafka(name, namespace string) error

DeleteKafka delete the cluster

func (*Client) DumpInfo

func (cli *Client) DumpInfo(namespace, subDir string) error

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 (cli *Client) GetServiceAccountToken(namespace, name string) ([]byte, error)

func (*Client) InstantiateTemplate

func (cli *Client) InstantiateTemplate(srcTemplateName, dstNamespace string) error

InstantiateTemplate gets an openshift template and instantiates it

func (*Client) InstantiateTemplateFromBytes

func (cli *Client) InstantiateTemplateFromBytes(yamldata []byte, dstNamespace string, parameters map[string]string) error

InstantiateTemplateFromBytes instantiates an openshift template from a byte slice

type ClientSet

type ClientSet struct {
	Admin         *Client
	CustomerAdmin *Client
	EndUser       *Client
}

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

Jump to

Keyboard shortcuts

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