builder

package
v1.39.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelegatingClientMapBuilder

type DelegatingClientMapBuilder struct {
	// contains filtered or unexported fields
}

DelegatingClientMapBuilder can build a DelegatingClientMap which will delegate calls to different ClientMaps based on the type of the key (e.g. a call with keys.ForShoot() will be delegated to the ShootClientMap).

func NewDelegatingClientMapBuilder

func NewDelegatingClientMapBuilder() *DelegatingClientMapBuilder

NewDelegatingClientMapBuilder creates a new DelegatingClientMapBuilder.

func (*DelegatingClientMapBuilder) Build

Build builds the DelegatingClientMap using the provided attributes.

func (*DelegatingClientMapBuilder) WithGardenClientMap

func (b *DelegatingClientMapBuilder) WithGardenClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder

WithGardenClientMap sets the ClientMap that should be used for Garden clients.

func (*DelegatingClientMapBuilder) WithGardenClientMapBuilder

func (b *DelegatingClientMapBuilder) WithGardenClientMapBuilder(builder *GardenClientMapBuilder) *DelegatingClientMapBuilder

WithGardenClientMapBuilder sets a ClientMap builder that should be used to build a ClientMap for Garden clients.

func (*DelegatingClientMapBuilder) WithPlantClientMap

WithPlantClientMap sets the ClientMap that should be used for Plant clients.

func (*DelegatingClientMapBuilder) WithPlantClientMapBuilder

func (b *DelegatingClientMapBuilder) WithPlantClientMapBuilder(builder *PlantClientMapBuilder) *DelegatingClientMapBuilder

WithPlantClientMapBuilder sets a ClientMap builder that should be used to build a ClientMap for Plant clients.

func (*DelegatingClientMapBuilder) WithSeedClientMap

WithSeedClientMap sets the ClientMap that should be used for Seed clients.

func (*DelegatingClientMapBuilder) WithSeedClientMapBuilder

func (b *DelegatingClientMapBuilder) WithSeedClientMapBuilder(builder *SeedClientMapBuilder) *DelegatingClientMapBuilder

WithSeedClientMapBuilder sets a ClientMap builder that should be used to build a ClientMap for Seed clients.

func (*DelegatingClientMapBuilder) WithShootClientMap

WithShootClientMap sets the ClientMap that should be used for Shoot clients.

func (*DelegatingClientMapBuilder) WithShootClientMapBuilder

func (b *DelegatingClientMapBuilder) WithShootClientMapBuilder(builder *ShootClientMapBuilder) *DelegatingClientMapBuilder

WithShootClientMapBuilder sets a ClientMap builder that should be used to build a ClientMap for Shoot clients.

type GardenClientMapBuilder

type GardenClientMapBuilder struct {
	// contains filtered or unexported fields
}

GardenClientMapBuilder can build a ClientMap which can be used to construct a ClientMap for requesting and storing a client to the garden cluster. Most probably, this ClientMap will only contain one ClientSet, but this can be used to retrieve a client to the garden cluster via the same mechanisms as the other types of ClientSets (e.g. through a DelegatingClientMap).

func NewGardenClientMapBuilder

func NewGardenClientMapBuilder() *GardenClientMapBuilder

NewGardenClientMapBuilder creates a new GardenClientMapBuilder.

func (*GardenClientMapBuilder) Build

Build builds the GardenClientMap using the provided attributes.

func (*GardenClientMapBuilder) ForSeed added in v1.20.0

ForSeed sets the seed that will be used to construct a new client to the garden cluster.

func (*GardenClientMapBuilder) WithRESTConfig

func (b *GardenClientMapBuilder) WithRESTConfig(cfg *rest.Config) *GardenClientMapBuilder

WithRESTConfig sets the restConfig attribute of the builder. This restConfig will be used to construct a new client to the garden cluster.

func (*GardenClientMapBuilder) WithUncached added in v1.21.0

func (b *GardenClientMapBuilder) WithUncached(objs ...client.Object) *GardenClientMapBuilder

WithUncached takes a list of runtime objects (plain or lists) that users don't want to cache for this client. This function can be called multiple times, it should append to an internal slice.

type PlantClientMapBuilder

type PlantClientMapBuilder struct {
	// contains filtered or unexported fields
}

PlantClientMapBuilder can build a ClientMap which can be used to construct a ClientMap for requesting and storing clients for Plant clusters.

func NewPlantClientMapBuilder

func NewPlantClientMapBuilder() *PlantClientMapBuilder

NewPlantClientMapBuilder constructs a new PlantClientMapBuilder.

func (*PlantClientMapBuilder) Build

Build builds the PlantClientMap using the provided attributes.

func (*PlantClientMapBuilder) WithGardenClientMap

func (b *PlantClientMapBuilder) WithGardenClientMap(clientMap clientmap.ClientMap) *PlantClientMapBuilder

WithGardenClientMap sets the ClientMap that should be used to retrieve Garden clients.

func (*PlantClientMapBuilder) WithGardenClientSet

func (b *PlantClientMapBuilder) WithGardenClientSet(clientSet kubernetes.Interface) *PlantClientMapBuilder

WithGardenClientSet sets the ClientSet that should be used as the Garden client.

type SeedClientMapBuilder

type SeedClientMapBuilder struct {
	// contains filtered or unexported fields
}

SeedClientMapBuilder can build a ClientMap which can be used to construct a ClientMap for requesting and storing clients for Seed clusters.

func NewSeedClientMapBuilder

func NewSeedClientMapBuilder() *SeedClientMapBuilder

NewSeedClientMapBuilder constructs a new SeedClientMapBuilder.

func (*SeedClientMapBuilder) Build

Build builds the SeedClientMap using the provided attributes.

func (*SeedClientMapBuilder) WithClientConnectionConfig

WithClientConnectionConfig sets the ClientConnectionConfiguration that should be used by ClientSets created by this ClientMap.

type ShootClientMapBuilder

type ShootClientMapBuilder struct {
	// contains filtered or unexported fields
}

ShootClientMapBuilder can build a ClientMap which can be used to construct a ClientMap for requesting and storing clients for Shoot clusters.

func NewShootClientMapBuilder

func NewShootClientMapBuilder() *ShootClientMapBuilder

NewShootClientMapBuilder constructs a new ShootClientMapBuilder.

func (*ShootClientMapBuilder) Build

Build builds the ShootClientMap using the provided attributes.

func (*ShootClientMapBuilder) WithClientConnectionConfig

WithClientConnectionConfig sets the ClientConnectionConfiguration that should be used by ClientSets created by this ClientMap.

func (*ShootClientMapBuilder) WithGardenClientMap

func (b *ShootClientMapBuilder) WithGardenClientMap(clientMap clientmap.ClientMap) *ShootClientMapBuilder

WithGardenClientMap sets the ClientMap that should be used to retrieve Garden clients.

func (*ShootClientMapBuilder) WithGardenClientSet

func (b *ShootClientMapBuilder) WithGardenClientSet(clientSet kubernetes.Interface) *ShootClientMapBuilder

WithGardenClientSet sets the ClientSet that should be used as the Garden client.

func (*ShootClientMapBuilder) WithSeedClientMap

func (b *ShootClientMapBuilder) WithSeedClientMap(clientMap clientmap.ClientMap) *ShootClientMapBuilder

WithSeedClientMap sets the ClientMap that should be used to retrieve Seed clients.

Jump to

Keyboard shortcuts

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