scc

package
v0.0.0-...-c93914d Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package scc is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSccAPI

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

MockSccAPI is a mock of SccAPI interface.

func NewMockSccAPI

func NewMockSccAPI(ctrl *gomock.Controller) *MockSccAPI

NewMockSccAPI creates a new mock instance.

func (*MockSccAPI) DeleteSCC

func (m *MockSccAPI) DeleteSCC(ctx context.Context, sccName string) error

DeleteSCC mocks base method.

func (*MockSccAPI) EXPECT

func (m *MockSccAPI) EXPECT() *MockSccAPIMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSccAPI) SetTopologySCCAsDesired

func (m *MockSccAPI) SetTopologySCCAsDesired(ctx context.Context, nfdInstance *v10.NodeFeatureDiscovery, topologySCC *v1.SecurityContextConstraints) error

SetTopologySCCAsDesired mocks base method.

func (*MockSccAPI) SetWorkerSCCAsDesired

func (m *MockSccAPI) SetWorkerSCCAsDesired(ctx context.Context, nfdInstance *v10.NodeFeatureDiscovery, workerSCC *v1.SecurityContextConstraints) error

SetWorkerSCCAsDesired mocks base method.

type MockSccAPIMockRecorder

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

MockSccAPIMockRecorder is the mock recorder for MockSccAPI.

func (*MockSccAPIMockRecorder) DeleteSCC

func (mr *MockSccAPIMockRecorder) DeleteSCC(ctx, sccName any) *gomock.Call

DeleteSCC indicates an expected call of DeleteSCC.

func (*MockSccAPIMockRecorder) SetTopologySCCAsDesired

func (mr *MockSccAPIMockRecorder) SetTopologySCCAsDesired(ctx, nfdInstance, topologySCC any) *gomock.Call

SetTopologySCCAsDesired indicates an expected call of SetTopologySCCAsDesired.

func (*MockSccAPIMockRecorder) SetWorkerSCCAsDesired

func (mr *MockSccAPIMockRecorder) SetWorkerSCCAsDesired(ctx, nfdInstance, workerSCC any) *gomock.Call

SetWorkerSCCAsDesired indicates an expected call of SetWorkerSCCAsDesired.

type SccAPI

type SccAPI interface {
	SetWorkerSCCAsDesired(ctx context.Context, nfdInstance *nfdv1.NodeFeatureDiscovery, workerSCC *securityv1.SecurityContextConstraints) error
	SetTopologySCCAsDesired(ctx context.Context, nfdInstance *nfdv1.NodeFeatureDiscovery, topologySCC *securityv1.SecurityContextConstraints) error
	DeleteSCC(ctx context.Context, sccName string) error
}

func NewSccAPI

func NewSccAPI(client client.Client, scheme *runtime.Scheme) SccAPI

Jump to

Keyboard shortcuts

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