Documentation ¶
Index ¶
- type CheckForwardPodPortFn
- type ClientSet
- func (c *ClientSet) APIExtension() apiextensionsclientset.Interface
- func (c *ClientSet) APIReader() client.Reader
- func (c *ClientSet) APIRegistration() apiregistrationclientset.Interface
- func (c *ClientSet) Applier() kubernetes.Applier
- func (c *ClientSet) Cache() cache.Cache
- func (c *ClientSet) ChartApplier() kubernetes.ChartApplier
- func (c *ClientSet) ChartRenderer() chartrenderer.Interface
- func (c *ClientSet) Client() client.Client
- func (c *ClientSet) DiscoverVersion() (*version.Info, error)
- func (c *ClientSet) ForwardPodPort(string, string, int, int) (chan struct{}, error)
- func (c *ClientSet) GardenCore() gardencoreclientset.Interface
- func (c *ClientSet) GardenOperations() gardenoperationsclientset.Interface
- func (c *ClientSet) GardenSeedManagement() gardenseedmanagementclientset.Interface
- func (c *ClientSet) Kubernetes() kubernetesclientset.Interface
- func (c *ClientSet) RESTClient() rest.Interface
- func (c *ClientSet) RESTConfig() *rest.Config
- func (c *ClientSet) Start(context.Context)
- func (c *ClientSet) Version() string
- func (c *ClientSet) WaitForCacheSync(context.Context) bool
- type ClientSetBuilder
- func (b *ClientSetBuilder) Build() *ClientSet
- func (b *ClientSetBuilder) WithAPIExtension(apiextension apiextensionclientset.Interface) *ClientSetBuilder
- func (b *ClientSetBuilder) WithAPIReader(apiReader client.Reader) *ClientSetBuilder
- func (b *ClientSetBuilder) WithAPIRegistration(apiregistration apiregistrationclientset.Interface) *ClientSetBuilder
- func (b *ClientSetBuilder) WithApplier(applier kubernetes.Applier) *ClientSetBuilder
- func (b *ClientSetBuilder) WithCache(cache cache.Cache) *ClientSetBuilder
- func (b *ClientSetBuilder) WithChartApplier(chartApplier kubernetes.ChartApplier) *ClientSetBuilder
- func (b *ClientSetBuilder) WithChartRenderer(chartRenderer chartrenderer.Interface) *ClientSetBuilder
- func (b *ClientSetBuilder) WithCheckForwardPodPortFn(fn CheckForwardPodPortFn) *ClientSetBuilder
- func (b *ClientSetBuilder) WithClient(client client.Client) *ClientSetBuilder
- func (b *ClientSetBuilder) WithGardenCore(gardenCore gardencoreclientset.Interface) *ClientSetBuilder
- func (b *ClientSetBuilder) WithGardenOperations(gardenOperations gardenoperationsclientset.Interface) *ClientSetBuilder
- func (b *ClientSetBuilder) WithGardenSeedManagement(gardenSeedManagement gardenseedmanagementclientset.Interface) *ClientSetBuilder
- func (b *ClientSetBuilder) WithKubernetes(kubernetes kubernetesclientset.Interface) *ClientSetBuilder
- func (b *ClientSetBuilder) WithRESTClient(restClient rest.Interface) *ClientSetBuilder
- func (b *ClientSetBuilder) WithRESTConfig(config *rest.Config) *ClientSetBuilder
- func (b *ClientSetBuilder) WithVersion(version string) *ClientSetBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckForwardPodPortFn ¶ added in v1.16.0
CheckForwardPodPortFn is a type alias for a function checking port forwarding for pods.
func (CheckForwardPodPortFn) CheckForwardPodPort ¶ added in v1.16.0
func (f CheckForwardPodPortFn) CheckForwardPodPort(namespace, name string, src, dst int) error
CheckForwardPodPort does nothing as the fake ClientSet does not support it.
type ClientSet ¶
type ClientSet struct { CheckForwardPodPortFn // contains filtered or unexported fields }
ClientSet contains information to provide a fake implementation for tests.
func (*ClientSet) APIExtension ¶
func (c *ClientSet) APIExtension() apiextensionsclientset.Interface
APIExtension will return the apiextension ClientSet attribute of the Client object.
func (*ClientSet) APIReader ¶ added in v1.18.0
APIReader returns a client.Reader that directly reads from the API server.
func (*ClientSet) APIRegistration ¶
func (c *ClientSet) APIRegistration() apiregistrationclientset.Interface
APIRegistration will return the apiregistration attribute of the Client object.
func (*ClientSet) Applier ¶
func (c *ClientSet) Applier() kubernetes.Applier
Applier returns the applier of this ClientSet.
func (*ClientSet) Cache ¶
Cache returns the clientset's controller-runtime cache. It can be used to get Informers for arbitrary objects.
func (*ClientSet) ChartApplier ¶
func (c *ClientSet) ChartApplier() kubernetes.ChartApplier
ChartApplier returns a ChartApplier using the ClientSet's ChartRenderer and Applier.
func (*ClientSet) ChartRenderer ¶
func (c *ClientSet) ChartRenderer() chartrenderer.Interface
ChartRenderer returns a ChartRenderer populated with the cluster's Capabilities.
func (*ClientSet) DiscoverVersion ¶ added in v1.8.0
DiscoverVersion tries to retrieve the server version using the kubernetes discovery client.
func (*ClientSet) ForwardPodPort ¶
ForwardPodPort does nothing as the fake ClientSet does not support it.
func (*ClientSet) GardenCore ¶
func (c *ClientSet) GardenCore() gardencoreclientset.Interface
GardenCore will return the gardenCore attribute of the Client object.
func (*ClientSet) GardenOperations ¶ added in v1.25.0
func (c *ClientSet) GardenOperations() gardenoperationsclientset.Interface
GardenOperations will return the gardenOperations attribute of the Client object.
func (*ClientSet) GardenSeedManagement ¶ added in v1.17.0
func (c *ClientSet) GardenSeedManagement() gardenseedmanagementclientset.Interface
GardenSeedManagement will return the gardenSeedManagement attribute of the Client object.
func (*ClientSet) Kubernetes ¶
func (c *ClientSet) Kubernetes() kubernetesclientset.Interface
Kubernetes will return the kubernetes attribute of the Client object.
func (*ClientSet) RESTClient ¶
RESTClient will return the restClient attribute of the Client object.
func (*ClientSet) RESTConfig ¶
RESTConfig will return the restConfig attribute of the Client object.
type ClientSetBuilder ¶
type ClientSetBuilder struct {
// contains filtered or unexported fields
}
ClientSetBuilder is a builder for fake ClientSets
func NewClientSetBuilder ¶
func NewClientSetBuilder() *ClientSetBuilder
NewClientSetBuilder return a new builder for building fake ClientSets
func (*ClientSetBuilder) Build ¶
func (b *ClientSetBuilder) Build() *ClientSet
Build builds the ClientSet.
func (*ClientSetBuilder) WithAPIExtension ¶
func (b *ClientSetBuilder) WithAPIExtension(apiextension apiextensionclientset.Interface) *ClientSetBuilder
WithAPIExtension sets the apiextension attribute of the builder.
func (*ClientSetBuilder) WithAPIReader ¶ added in v1.20.0
func (b *ClientSetBuilder) WithAPIReader(apiReader client.Reader) *ClientSetBuilder
WithAPIReader sets the apiReader attribute of the builder.
func (*ClientSetBuilder) WithAPIRegistration ¶
func (b *ClientSetBuilder) WithAPIRegistration(apiregistration apiregistrationclientset.Interface) *ClientSetBuilder
WithAPIRegistration sets the apiregistration attribute of the builder.
func (*ClientSetBuilder) WithApplier ¶
func (b *ClientSetBuilder) WithApplier(applier kubernetes.Applier) *ClientSetBuilder
WithApplier sets the applier attribute of the builder.
func (*ClientSetBuilder) WithCache ¶
func (b *ClientSetBuilder) WithCache(cache cache.Cache) *ClientSetBuilder
WithCache sets the cache attribute of the builder.
func (*ClientSetBuilder) WithChartApplier ¶
func (b *ClientSetBuilder) WithChartApplier(chartApplier kubernetes.ChartApplier) *ClientSetBuilder
WithChartApplier sets the chartApplier attribute of the builder.
func (*ClientSetBuilder) WithChartRenderer ¶
func (b *ClientSetBuilder) WithChartRenderer(chartRenderer chartrenderer.Interface) *ClientSetBuilder
WithChartRenderer sets the chartRenderer attribute of the builder.
func (*ClientSetBuilder) WithCheckForwardPodPortFn ¶ added in v1.16.0
func (b *ClientSetBuilder) WithCheckForwardPodPortFn(fn CheckForwardPodPortFn) *ClientSetBuilder
WithCheckForwardPodPortFn sets the CheckForwardPodPortFn function.
func (*ClientSetBuilder) WithClient ¶
func (b *ClientSetBuilder) WithClient(client client.Client) *ClientSetBuilder
WithClient sets the client attribute of the builder.
func (*ClientSetBuilder) WithGardenCore ¶
func (b *ClientSetBuilder) WithGardenCore(gardenCore gardencoreclientset.Interface) *ClientSetBuilder
WithGardenCore sets the gardenCore attribute of the builder.
func (*ClientSetBuilder) WithGardenOperations ¶ added in v1.25.0
func (b *ClientSetBuilder) WithGardenOperations(gardenOperations gardenoperationsclientset.Interface) *ClientSetBuilder
WithGardenOperations sets the gardenOperations attribute of the builder.
func (*ClientSetBuilder) WithGardenSeedManagement ¶ added in v1.20.0
func (b *ClientSetBuilder) WithGardenSeedManagement(gardenSeedManagement gardenseedmanagementclientset.Interface) *ClientSetBuilder
WithGardenSeedManagement sets the gardenSeedManagement attribute of the builder.
func (*ClientSetBuilder) WithKubernetes ¶
func (b *ClientSetBuilder) WithKubernetes(kubernetes kubernetesclientset.Interface) *ClientSetBuilder
WithKubernetes sets the kubernetes attribute of the builder.
func (*ClientSetBuilder) WithRESTClient ¶
func (b *ClientSetBuilder) WithRESTClient(restClient rest.Interface) *ClientSetBuilder
WithRESTClient sets the restClient attribute of the builder.
func (*ClientSetBuilder) WithRESTConfig ¶
func (b *ClientSetBuilder) WithRESTConfig(config *rest.Config) *ClientSetBuilder
WithRESTConfig sets the restConfig attribute of the builder.
func (*ClientSetBuilder) WithVersion ¶
func (b *ClientSetBuilder) WithVersion(version string) *ClientSetBuilder
WithVersion sets the version attribute of the builder.