discoveryapi

package
v5.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRestClientConfig

func NewRestClientConfig(inClusterFn func() (*rest.Config, error)) (*rest.Config, error)

NewRestClientConfig returns a new Rest Client config portions complete.

Types

type DiscoveryClient

type DiscoveryClient struct {
	ClientSet dynamic.Interface

	DiscoveryClient discovery.DiscoveryInterface
	Instance        *api.Instance
	// contains filtered or unexported fields
}

DiscoveryClient is the declaration to hold objects needed for client-go/discovery.

func NewDiscoveryClient

func NewDiscoveryClient(instance *api.Instance) (*DiscoveryClient, error)

NewDiscoveryClient returns a new struct with config portions complete.

func (*DiscoveryClient) GetApiResources

func (cl *DiscoveryClient) GetApiResources() error

GetApiResources discovers the api-resources for a cluster

Jump to

Keyboard shortcuts

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