builder

package
v1.7.1-0...-23dd39d Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 10 Imported by: 0

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) WithLogger

WithLogger sets the logger attribute of the builder.

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

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

func (*GardenClientMapBuilder) WithLogger

WithLogger sets the logger attribute of the builder.

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

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

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

func (*PlantClientMapBuilder) WithLogger

WithLogger sets the logger attribute of the builder.

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.

func (*SeedClientMapBuilder) WithGardenClientMap

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

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

func (*SeedClientMapBuilder) WithGardenClientSet

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

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

func (*SeedClientMapBuilder) WithInCluster

func (b *SeedClientMapBuilder) WithInCluster(inCluster bool) *SeedClientMapBuilder

WithInCluster sets the inCluster attribute of the builder. If true, the created ClientSets will use in-cluster communication (using the provided ClientConnectionConfig.Kubeconfig or fallback to mounted ServiceAccount if unset).

func (*SeedClientMapBuilder) WithLogger

WithLogger sets the logger attribute of the builder.

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

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

func (*ShootClientMapBuilder) WithLogger

WithLogger sets the logger attribute of the builder.

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