podcidr

package
v2.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsTooManyCRsError

func IsTooManyCRsError(err error) bool

IsTooManyCRsError asserts tooManyCRsError.

Types

type Config

type Config struct {
	InstallationCIDR string
}

type Interface

type Interface interface {
	// PodCIDR provides the pod CIDR to be used for Tenant Clusters depending on
	// the installation and AWSCluster CR configuration. The CR value is prefered
	// over the default value in the installation.
	PodCIDR(ctx context.Context, obj interface{}) (string, error)
}

type PodCIDR

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

func New

func New(c Config) (*PodCIDR, error)

func (*PodCIDR) PodCIDR

func (p *PodCIDR) PodCIDR(ctx context.Context, obj interface{}) (string, error)

Jump to

Keyboard shortcuts

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