Documentation ¶
Index ¶
- type DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) Build() (clientmap.ClientMap, error)
- func (b *DelegatingClientMapBuilder) WithGardenClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) WithGardenClientMapBuilder(builder *GardenClientMapBuilder) *DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) WithLogger(logger logrus.FieldLogger) *DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) WithPlantClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) WithPlantClientMapBuilder(builder *PlantClientMapBuilder) *DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) WithSeedClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) WithSeedClientMapBuilder(builder *SeedClientMapBuilder) *DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) WithShootClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) WithShootClientMapBuilder(builder *ShootClientMapBuilder) *DelegatingClientMapBuilder
- type GardenClientMapBuilder
- func (b *GardenClientMapBuilder) Build() (clientmap.ClientMap, error)
- func (b *GardenClientMapBuilder) ForSeed(name string) *GardenClientMapBuilder
- func (b *GardenClientMapBuilder) WithLogger(logger logrus.FieldLogger) *GardenClientMapBuilder
- func (b *GardenClientMapBuilder) WithRESTConfig(cfg *rest.Config) *GardenClientMapBuilder
- type PlantClientMapBuilder
- func (b *PlantClientMapBuilder) Build() (clientmap.ClientMap, error)
- func (b *PlantClientMapBuilder) WithGardenClientMap(clientMap clientmap.ClientMap) *PlantClientMapBuilder
- func (b *PlantClientMapBuilder) WithGardenClientSet(clientSet kubernetes.Interface) *PlantClientMapBuilder
- func (b *PlantClientMapBuilder) WithLogger(logger logrus.FieldLogger) *PlantClientMapBuilder
- type SeedClientMapBuilder
- func (b *SeedClientMapBuilder) Build() (clientmap.ClientMap, error)
- func (b *SeedClientMapBuilder) WithClientConnectionConfig(cfg *baseconfig.ClientConnectionConfiguration) *SeedClientMapBuilder
- func (b *SeedClientMapBuilder) WithGardenClientMap(clientMap clientmap.ClientMap) *SeedClientMapBuilder
- func (b *SeedClientMapBuilder) WithGardenClientSet(clientSet kubernetes.Interface) *SeedClientMapBuilder
- func (b *SeedClientMapBuilder) WithInCluster(inCluster bool) *SeedClientMapBuilder
- func (b *SeedClientMapBuilder) WithLogger(logger logrus.FieldLogger) *SeedClientMapBuilder
- type ShootClientMapBuilder
- func (b *ShootClientMapBuilder) Build() (clientmap.ClientMap, error)
- func (b *ShootClientMapBuilder) WithClientConnectionConfig(cfg *baseconfig.ClientConnectionConfiguration) *ShootClientMapBuilder
- func (b *ShootClientMapBuilder) WithGardenClientMap(clientMap clientmap.ClientMap) *ShootClientMapBuilder
- func (b *ShootClientMapBuilder) WithGardenClientSet(clientSet kubernetes.Interface) *ShootClientMapBuilder
- func (b *ShootClientMapBuilder) WithLogger(logger logrus.FieldLogger) *ShootClientMapBuilder
- func (b *ShootClientMapBuilder) WithSeedClientMap(clientMap clientmap.ClientMap) *ShootClientMapBuilder
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 ¶
func (b *DelegatingClientMapBuilder) Build() (clientmap.ClientMap, error)
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 ¶
func (b *DelegatingClientMapBuilder) WithLogger(logger logrus.FieldLogger) *DelegatingClientMapBuilder
WithLogger sets the logger attribute of the builder.
func (*DelegatingClientMapBuilder) WithPlantClientMap ¶
func (b *DelegatingClientMapBuilder) WithPlantClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
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 ¶
func (b *DelegatingClientMapBuilder) WithSeedClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
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 ¶
func (b *DelegatingClientMapBuilder) WithShootClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
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 ¶
func (b *GardenClientMapBuilder) Build() (clientmap.ClientMap, error)
Build builds the GardenClientMap using the provided attributes.
func (*GardenClientMapBuilder) ForSeed ¶ added in v1.20.0
func (b *GardenClientMapBuilder) ForSeed(name string) *GardenClientMapBuilder
ForSeed sets the seed that will be used to construct a new client to the garden cluster.
func (*GardenClientMapBuilder) WithLogger ¶
func (b *GardenClientMapBuilder) WithLogger(logger logrus.FieldLogger) *GardenClientMapBuilder
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.
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 ¶
func (b *PlantClientMapBuilder) Build() (clientmap.ClientMap, error)
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 ¶
func (b *PlantClientMapBuilder) WithLogger(logger logrus.FieldLogger) *PlantClientMapBuilder
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 ¶
func (b *SeedClientMapBuilder) Build() (clientmap.ClientMap, error)
Build builds the SeedClientMap using the provided attributes.
func (*SeedClientMapBuilder) WithClientConnectionConfig ¶
func (b *SeedClientMapBuilder) WithClientConnectionConfig(cfg *baseconfig.ClientConnectionConfiguration) *SeedClientMapBuilder
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 ¶
func (b *SeedClientMapBuilder) WithLogger(logger logrus.FieldLogger) *SeedClientMapBuilder
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 ¶
func (b *ShootClientMapBuilder) Build() (clientmap.ClientMap, error)
Build builds the ShootClientMap using the provided attributes.
func (*ShootClientMapBuilder) WithClientConnectionConfig ¶
func (b *ShootClientMapBuilder) WithClientConnectionConfig(cfg *baseconfig.ClientConnectionConfiguration) *ShootClientMapBuilder
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 ¶
func (b *ShootClientMapBuilder) WithLogger(logger logrus.FieldLogger) *ShootClientMapBuilder
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.