mocks

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAdmissionControlPoliciesClient

type MockAdmissionControlPoliciesClient struct {
	mock.Mock
	Policies []string // In-memory policy list to simulate API state
}

MockAdmissionControlPoliciesClient implements the ClientService interface using testify/mock.

func (*MockAdmissionControlPoliciesClient) AdmissionControlQueryPolicies

AdmissionControlQueryPolicies mocks the behavior of the client by returning the in memory list of policy IDs.

func (*MockAdmissionControlPoliciesClient) AdmissionControlUpdatePolicyPrecedence

AdmissionControlUpdatePolicyPrecedence mocks the behavior of the client by inserting the given policy ID into the requested precedence, which is the 1-based version of the index.

func (*MockAdmissionControlPoliciesClient) SetTransport

func (m *MockAdmissionControlPoliciesClient) SetTransport(transport runtime.ClientTransport)

Jump to

Keyboard shortcuts

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