operator

package
v1.32.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Overview

Package operator are utilities to perform various operators joining Kubernetes resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrontendConfigsOperator added in v1.6.0

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

FrontendConfigsOperator is an operator wrapper for a list of FrontendConfigs.

func FrontendConfigs added in v1.6.0

FrontendConfigs returns the wrapper

func (*FrontendConfigsOperator) AsList added in v1.6.0

AsList returns the underlying list of Services

func (*FrontendConfigsOperator) ReferencedByIngress added in v1.6.0

func (op *FrontendConfigsOperator) ReferencedByIngress(ing *v1.Ingress) *FrontendConfigsOperator

ReferencedByIngress returns the FrontendConfigs that are referenced by the passed in Ingress.

type IngressesOperator

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

IngressesOperator is an operator wrapper for a list of Ingresses.

func Ingresses

func Ingresses(i []*v1.Ingress) *IngressesOperator

Ingresses returns the wrapper

func (*IngressesOperator) AsList

func (op *IngressesOperator) AsList() []*v1.Ingress

AsList returns the underlying list of Ingresses.

func (*IngressesOperator) Filter

func (op *IngressesOperator) Filter(f func(*v1.Ingress) bool) *IngressesOperator

Filter the list of Ingresses based on a predicate.

func (*IngressesOperator) Partition added in v1.7.0

func (op *IngressesOperator) Partition(f func(*v1.Ingress) bool) (*IngressesOperator, *IngressesOperator)

Partition partitions the list of Ingresses into two: Ingresses that match given predicate and those that don't.

func (*IngressesOperator) ReferencesBackendConfig

func (op *IngressesOperator) ReferencesBackendConfig(beConfig *backendconfigv1.BackendConfig, svcsOp *ServicesOperator) *IngressesOperator

ReferencesBackendConfig returns the Ingresses that references the given BackendConfig.

func (*IngressesOperator) ReferencesFrontendConfig added in v1.6.0

func (op *IngressesOperator) ReferencesFrontendConfig(feConfig *frontendconfigv1beta1.FrontendConfig) *IngressesOperator

ReferencesFrontendConfig returns the Ingresses that reference the given FrontendConfig.

func (*IngressesOperator) ReferencesService

func (op *IngressesOperator) ReferencesService(svc *api_v1.Service) *IngressesOperator

ReferencesService returns the Ingresses that references the given Service.

func (*IngressesOperator) ReferencesSvcNeg added in v1.31.0

func (op *IngressesOperator) ReferencesSvcNeg(negCr *negv1beta1.ServiceNetworkEndpointGroup, serviceCache *typed.ServiceStore) *IngressesOperator

ReferencesSvcNeg returns the Ingresses that reference the NEGs in the given NEG CR.

type ServicesOperator

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

ServicesOperator is an operator wrapper for a list of Services.

func Services

func Services(s []*api_v1.Service, logger klog.Logger) *ServicesOperator

Services returns the wrapper

func (*ServicesOperator) AsList

func (op *ServicesOperator) AsList() []*api_v1.Service

AsList returns the underlying list of Services

func (*ServicesOperator) ReferencedByIngress

func (op *ServicesOperator) ReferencedByIngress(ing *v1.Ingress) *ServicesOperator

ReferencedByIngress returns the Services that are referenced by the passed in Ingress.

func (*ServicesOperator) ReferencesBackendConfig

func (op *ServicesOperator) ReferencesBackendConfig(beConfig *backendconfigv1.BackendConfig) *ServicesOperator

ReferencesBackendConfig returns the Services that reference the given BackendConfig.

Jump to

Keyboard shortcuts

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