Documentation ¶
Overview ¶
Package k8s is a generated GoMock package.
Index ¶
- Constants
- func HasFinalizer(obj metav1.Object, finalizer string) bool
- func IsGVKSupported(mgr ctrl.Manager, groupVersion string, kind string) (bool, error)
- func NamespaceOrDefault(namespace *gwv1.Namespace) string
- func NamespacedName(obj client.Object) types.NamespacedName
- func ObjExists(ctx context.Context, c client.Client, key types.NamespacedName, ...) (bool, error)
- type FinalizerManager
- type MockFinalizerManager
- type MockFinalizerManagerMockRecorder
Constants ¶
View Source
const ( // Generic events ReconcilingEvent = "Reconciling" ReconciledEvent = "Reconciled" FailedReconcileEvent = "FailedReconcile" // Gateway events GatewayEventReasonFailedAddFinalizer = "FailedAddFinalizer" GatewayEventReasonFailedBuildModel = "FailedBuildModel" GatewayEventReasonFailedDeployModel = "FailedDeployModel" // Route events RouteEventReasonReconcile = "Reconcile" RouteEventReasonDeploySucceed = "DeploySucceed" RouteEventReasonFailedAddFinalizer = "FailedAddFinalizer" RouteEventReasonFailedBuildModel = "FailedBuildModel" RouteEventReasonFailedDeployModel = "FailedDeployModel" RouteEventReasonRetryReconcile = "Retry-Reconcile" // Service events ServiceEventReasonFailedAddFinalizer = "FailedAddFinalizer" ServiceEventReasonFailedBuildModel = "FailedBuildModel" ServiceEventReasonFailedDeployModel = "FailedDeployModel" // ServiceExport events ServiceExportEventReasonFailedAddFinalizer = "FailedAddFinalizer" ServiceExportEventReasonFailedBuildModel = "FailedBuildModel" ServiceExportEventReasonFailedDeployModel = "FailedDeployModel" // ServiceImport events ServiceImportEventReasonFailedAddFinalizer = "FailedAddFinalizer" ServiceImportEventReasonFailedBuildModel = "FailedBuildModel" ServiceImportEventReasonFailedDeployModel = "FailedDeployModel" )
View Source
const AnnotationPrefix = "application-networking.k8s.aws/"
Variables ¶
This section is empty.
Functions ¶
func HasFinalizer ¶
HasFinalizer tests whether k8s object has specified finalizer
func IsGVKSupported ¶ added in v0.0.16
func NamespaceOrDefault ¶ added in v0.0.18
func NamespacedName ¶
func NamespacedName(obj client.Object) types.NamespacedName
NamespacedName returns the namespaced name for k8s objects
Types ¶
type FinalizerManager ¶
type FinalizerManager interface { AddFinalizers(ctx context.Context, object client.Object, finalizers ...string) error RemoveFinalizers(ctx context.Context, object client.Object, finalizers ...string) error }
func NewDefaultFinalizerManager ¶
func NewDefaultFinalizerManager(k8sClient client.Client) FinalizerManager
type MockFinalizerManager ¶ added in v0.0.18
type MockFinalizerManager struct {
// contains filtered or unexported fields
}
MockFinalizerManager is a mock of FinalizerManager interface.
func NewMockFinalizerManager ¶ added in v0.0.18
func NewMockFinalizerManager(ctrl *gomock.Controller) *MockFinalizerManager
NewMockFinalizerManager creates a new mock instance.
func (*MockFinalizerManager) AddFinalizers ¶ added in v0.0.18
func (m *MockFinalizerManager) AddFinalizers(arg0 context.Context, arg1 client.Object, arg2 ...string) error
AddFinalizers mocks base method.
func (*MockFinalizerManager) EXPECT ¶ added in v0.0.18
func (m *MockFinalizerManager) EXPECT() *MockFinalizerManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFinalizerManager) RemoveFinalizers ¶ added in v0.0.18
func (m *MockFinalizerManager) RemoveFinalizers(arg0 context.Context, arg1 client.Object, arg2 ...string) error
RemoveFinalizers mocks base method.
type MockFinalizerManagerMockRecorder ¶ added in v0.0.18
type MockFinalizerManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockFinalizerManagerMockRecorder is the mock recorder for MockFinalizerManager.
func (*MockFinalizerManagerMockRecorder) AddFinalizers ¶ added in v0.0.18
func (mr *MockFinalizerManagerMockRecorder) AddFinalizers(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
AddFinalizers indicates an expected call of AddFinalizers.
func (*MockFinalizerManagerMockRecorder) RemoveFinalizers ¶ added in v0.0.18
func (mr *MockFinalizerManagerMockRecorder) RemoveFinalizers(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
RemoveFinalizers indicates an expected call of RemoveFinalizers.
Click to show internal directories.
Click to hide internal directories.