Documentation
¶
Overview ¶
Copyright 2025 HAProxy Technologies LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2025 HAProxy Technologies LLC ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2025 HAProxy Technologies LLC ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2025 HAProxy Technologies LLC ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func NewDefaultGatewayClassConditions() generic.Conditions
- func NewGatewayAcceptedInvalidConditions(msg string) generic.Conditions
- func NewGatewayAcceptedInvalidParameters(err *field.Error) generic.Conditions
- func NewGatewayAcceptedListenerNotValidAllInvalid() generic.Conditions
- func NewGatewayAcceptedListenerNotValidAtLeast1Valid() generic.Conditions
- func NewGatewayAcceptedListenersNotValid(msg string) generic.Conditions
- func NewGatewayAcceptedOK() generic.Conditions
- func NewGatewayClassAcceptedConflict() generic.Conditions
- func NewGatewayClassAcceptedInvalidParameters(err *field.Error) generic.Conditions
- func NewGatewayClassAcceptedOK() generic.Conditions
- func NewGatewayClassAcceptedUnsupported() generic.Conditions
- func NewGatewayClassSupportedVersionOK() generic.Conditions
- func NewGatewayClassSupportedVersionUnsupportedVersion(recommendedVersion string) generic.Conditions
- func NewGatewayProgrammedInvalidParameters(msg string) generic.Conditions
- func NewGatewayProgrammedListenersNotValid(msg string) generic.Conditions
- func NewGatewayProgrammedOK() generic.Conditions
- func NewListenerAcceptedOK() generic.Conditions
- func NewListenerAcceptedUnsupportedProtocol(msg string) generic.Conditions
- func NewListenerConflicted(msg, reason string) generic.Conditions
- func NewListenerProgrammedInvalid() generic.Conditions
- func NewListenerProgrammedOK() generic.Conditions
- func NewListenerProgrammedPending() generic.Conditions
- func NewListenerResolvedRefInvalidCertificateRefs(msg string) generic.Conditions
- func NewListenerResolvedRefInvalidRouteKinds(msg string) generic.Conditions
- func NewListenerResolvedRefOK() generic.Conditions
- type Condition
- type ConditionType
- type Conditions
- func (c Conditions) Equal(b Conditions) bool
- func (c Conditions) GetCondition(conditionType ConditionType) (Condition, bool)
- func (c Conditions) GetMessage(conditionType ConditionType) string
- func (c Conditions) MergeOverrideConditions(b Conditions)
- func (c Conditions) SetGeneration(generation int64)
- func (c Conditions) ToMetav1Conditions() []metav1.Condition
- type GatewayClassConditionImpl
- type GatewayConditionImpl
Constants ¶
const ( // This reason is used with GatewayClassConditionAccepted (false). GatewayClassReasonGatewayClassConflict gatewayv1.GatewayClassConditionReason = "GatewayClassConflict" // GatewayClassMessageGatewayClassConflict is a message that describes GatewayClassReasonGatewayClassConflict. GatewayClassMessageGatewayClassConflict = "Resource ignored due to a conflicting GatewayClass resource" // GatewayClassReasonUnsupported is a message that describes GatewayClassReasonUnsupported GatewayClassReasonUnsupported = "Resource ignored due to an unsupported GatewayClass" )
Variables ¶
This section is empty.
Functions ¶
func NewDefaultGatewayClassConditions ¶
func NewDefaultGatewayClassConditions() generic.Conditions
NewDefaultGatewayClassConditions returns genericconditions.Conditions that indicate that the GatewayClass is accepted and that the Gateway API CRD versions are supported.
func NewGatewayAcceptedInvalidConditions ¶
func NewGatewayAcceptedInvalidConditions(msg string) generic.Conditions
func NewGatewayAcceptedInvalidParameters ¶
func NewGatewayAcceptedInvalidParameters(err *field.Error) generic.Conditions
func NewGatewayAcceptedListenerNotValidAllInvalid ¶
func NewGatewayAcceptedListenerNotValidAllInvalid() generic.Conditions
func NewGatewayAcceptedListenerNotValidAtLeast1Valid ¶
func NewGatewayAcceptedListenerNotValidAtLeast1Valid() generic.Conditions
func NewGatewayAcceptedListenersNotValid ¶ added in v1.0.1
func NewGatewayAcceptedListenersNotValid(msg string) generic.Conditions
func NewGatewayAcceptedOK ¶
func NewGatewayAcceptedOK() generic.Conditions
func NewGatewayClassAcceptedConflict ¶
func NewGatewayClassAcceptedConflict() generic.Conditions
func NewGatewayClassAcceptedInvalidParameters ¶
func NewGatewayClassAcceptedInvalidParameters(err *field.Error) generic.Conditions
NewGatewayClassAcceptedInvalidParameters returns a Condition that indicates that the GatewayClass has invalid parameters.
func NewGatewayClassAcceptedOK ¶
func NewGatewayClassAcceptedOK() generic.Conditions
func NewGatewayClassAcceptedUnsupported ¶
func NewGatewayClassAcceptedUnsupported() generic.Conditions
func NewGatewayClassSupportedVersionOK ¶
func NewGatewayClassSupportedVersionOK() generic.Conditions
func NewGatewayClassSupportedVersionUnsupportedVersion ¶
func NewGatewayClassSupportedVersionUnsupportedVersion(recommendedVersion string) generic.Conditions
NewGatewayClassSupportedVersionUnsupportedVersion returns genericconditions.Conditions to indicate: - the Gateway API CRD versions are not supported.
func NewGatewayProgrammedInvalidParameters ¶
func NewGatewayProgrammedInvalidParameters(msg string) generic.Conditions
func NewGatewayProgrammedListenersNotValid ¶ added in v1.0.1
func NewGatewayProgrammedListenersNotValid(msg string) generic.Conditions
func NewGatewayProgrammedOK ¶
func NewGatewayProgrammedOK() generic.Conditions
func NewListenerAcceptedOK ¶
func NewListenerAcceptedOK() generic.Conditions
func NewListenerAcceptedUnsupportedProtocol ¶
func NewListenerAcceptedUnsupportedProtocol(msg string) generic.Conditions
func NewListenerConflicted ¶
func NewListenerConflicted(msg, reason string) generic.Conditions
func NewListenerProgrammedInvalid ¶
func NewListenerProgrammedInvalid() generic.Conditions
func NewListenerProgrammedOK ¶
func NewListenerProgrammedOK() generic.Conditions
func NewListenerProgrammedPending ¶
func NewListenerProgrammedPending() generic.Conditions
func NewListenerResolvedRefInvalidCertificateRefs ¶
func NewListenerResolvedRefInvalidCertificateRefs(msg string) generic.Conditions
func NewListenerResolvedRefInvalidRouteKinds ¶
func NewListenerResolvedRefInvalidRouteKinds(msg string) generic.Conditions
func NewListenerResolvedRefOK ¶
func NewListenerResolvedRefOK() generic.Conditions
Types ¶
type Condition ¶
type Condition struct {
Type ConditionType
Status metav1.ConditionStatus
Reason string
Message string
ObservedGeneration int64
}
type ConditionType ¶
type ConditionType string
type Conditions ¶
type Conditions map[ConditionType]Condition
func NewConditionsFromMetav1Conditions ¶
func NewConditionsFromMetav1Conditions(conditions []metav1.Condition) Conditions
func (Conditions) Equal ¶
func (c Conditions) Equal(b Conditions) bool
func (Conditions) GetCondition ¶
func (c Conditions) GetCondition(conditionType ConditionType) (Condition, bool)
func (Conditions) GetMessage ¶
func (c Conditions) GetMessage(conditionType ConditionType) string
func (Conditions) MergeOverrideConditions ¶
func (c Conditions) MergeOverrideConditions(b Conditions)
func (Conditions) SetGeneration ¶
func (c Conditions) SetGeneration(generation int64)
func (Conditions) ToMetav1Conditions ¶
func (c Conditions) ToMetav1Conditions() []metav1.Condition
type GatewayClassConditionImpl ¶
type GatewayClassConditionImpl struct{}
func (*GatewayClassConditionImpl) GetConditions ¶
func (*GatewayClassConditionImpl) GetConditions(obj *gatewayv1.GatewayClass) generic.Conditions
func (*GatewayClassConditionImpl) SetConditions ¶
func (*GatewayClassConditionImpl) SetConditions(obj *gatewayv1.GatewayClass, conds generic.Conditions)
type GatewayConditionImpl ¶
type GatewayConditionImpl struct{}
func (*GatewayConditionImpl) GetConditions ¶
func (*GatewayConditionImpl) GetConditions(obj *gatewayv1.Gateway) generic.Conditions
func (*GatewayConditionImpl) SetConditions ¶
func (*GatewayConditionImpl) SetConditions(obj *gatewayv1.Gateway, conds generic.Conditions)