Documentation ¶
Overview ¶
Package operator are utilities to perform various operators joining Kubernetes resources.
Index ¶
- type FrontendConfigsOperator
- type IngressesOperator
- func (op *IngressesOperator) AsList() []*v1.Ingress
- func (op *IngressesOperator) Filter(f func(*v1.Ingress) bool) *IngressesOperator
- func (op *IngressesOperator) Partition(f func(*v1.Ingress) bool) (*IngressesOperator, *IngressesOperator)
- func (op *IngressesOperator) ReferencesBackendConfig(beConfig *backendconfigv1.BackendConfig, svcsOp *ServicesOperator) *IngressesOperator
- func (op *IngressesOperator) ReferencesFrontendConfig(feConfig *frontendconfigv1beta1.FrontendConfig) *IngressesOperator
- func (op *IngressesOperator) ReferencesService(svc *api_v1.Service) *IngressesOperator
- type ServicesOperator
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
func FrontendConfigs(f []*frontendconfigv1beta1.FrontendConfig) *FrontendConfigsOperator
FrontendConfigs returns the wrapper
func (*FrontendConfigsOperator) AsList ¶ added in v1.6.0
func (op *FrontendConfigsOperator) AsList() []*frontendconfigv1beta1.FrontendConfig
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 (*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.
type ServicesOperator ¶
type ServicesOperator struct {
// contains filtered or unexported fields
}
ServicesOperator is an operator wrapper for a list of Services.
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.