mock_env

package
v0.0.0-...-fde486f Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package mock_env is a generated GoMock package.

Package mock_env is a generated GoMock package.

Package mock_env is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCertificateRefresher

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

MockCertificateRefresher is a mock of CertificateRefresher interface.

func NewMockCertificateRefresher

func NewMockCertificateRefresher(ctrl *gomock.Controller) *MockCertificateRefresher

NewMockCertificateRefresher creates a new mock instance.

func (*MockCertificateRefresher) EXPECT

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

func (*MockCertificateRefresher) GetCertificates

func (m *MockCertificateRefresher) GetCertificates() (*rsa.PrivateKey, []*x509.Certificate)

GetCertificates mocks base method.

func (*MockCertificateRefresher) Start

Start mocks base method.

type MockCertificateRefresherMockRecorder

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

MockCertificateRefresherMockRecorder is the mock recorder for MockCertificateRefresher.

func (*MockCertificateRefresherMockRecorder) GetCertificates

func (mr *MockCertificateRefresherMockRecorder) GetCertificates() *gomock.Call

GetCertificates indicates an expected call of GetCertificates.

func (*MockCertificateRefresherMockRecorder) Start

Start indicates an expected call of Start.

type MockCore

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

MockCore is a mock of Core interface.

func NewMockCore

func NewMockCore(ctrl *gomock.Controller) *MockCore

NewMockCore creates a new mock instance.

func (*MockCore) Component

func (m *MockCore) Component() string

Component mocks base method.

func (*MockCore) EXPECT

func (m *MockCore) EXPECT() *MockCoreMockRecorder

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

func (*MockCore) Environment

func (m *MockCore) Environment() *azureclient.AROEnvironment

Environment mocks base method.

func (*MockCore) Hostname

func (m *MockCore) Hostname() string

Hostname mocks base method.

func (*MockCore) IsCI

func (m *MockCore) IsCI() bool

IsCI mocks base method.

func (*MockCore) IsLocalDevelopmentMode

func (m *MockCore) IsLocalDevelopmentMode() bool

IsLocalDevelopmentMode mocks base method.

func (*MockCore) Location

func (m *MockCore) Location() string

Location mocks base method.

func (*MockCore) Logger

func (m *MockCore) Logger() *logrus.Entry

Logger mocks base method.

func (*MockCore) NewLiveConfigManager

func (m *MockCore) NewLiveConfigManager(arg0 context.Context) (liveconfig.Manager, error)

NewLiveConfigManager mocks base method.

func (*MockCore) NewMSIAuthorizer

func (m *MockCore) NewMSIAuthorizer(scope string) (autorest.Authorizer, error)

NewMSIAuthorizer mocks base method.

func (*MockCore) NewMSITokenCredential

func (m *MockCore) NewMSITokenCredential() (azcore.TokenCredential, error)

NewMSITokenCredential mocks base method.

func (*MockCore) ResourceGroup

func (m *MockCore) ResourceGroup() string

ResourceGroup mocks base method.

func (*MockCore) SubscriptionID

func (m *MockCore) SubscriptionID() string

SubscriptionID mocks base method.

func (*MockCore) TenantID

func (m *MockCore) TenantID() string

TenantID mocks base method.

type MockCoreMockRecorder

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

MockCoreMockRecorder is the mock recorder for MockCore.

func (*MockCoreMockRecorder) Component

func (mr *MockCoreMockRecorder) Component() *gomock.Call

Component indicates an expected call of Component.

func (*MockCoreMockRecorder) Environment

func (mr *MockCoreMockRecorder) Environment() *gomock.Call

Environment indicates an expected call of Environment.

func (*MockCoreMockRecorder) Hostname

func (mr *MockCoreMockRecorder) Hostname() *gomock.Call

Hostname indicates an expected call of Hostname.

func (*MockCoreMockRecorder) IsCI

func (mr *MockCoreMockRecorder) IsCI() *gomock.Call

IsCI indicates an expected call of IsCI.

func (*MockCoreMockRecorder) IsLocalDevelopmentMode

func (mr *MockCoreMockRecorder) IsLocalDevelopmentMode() *gomock.Call

IsLocalDevelopmentMode indicates an expected call of IsLocalDevelopmentMode.

func (*MockCoreMockRecorder) Location

func (mr *MockCoreMockRecorder) Location() *gomock.Call

Location indicates an expected call of Location.

func (*MockCoreMockRecorder) Logger

func (mr *MockCoreMockRecorder) Logger() *gomock.Call

Logger indicates an expected call of Logger.

func (*MockCoreMockRecorder) NewLiveConfigManager

func (mr *MockCoreMockRecorder) NewLiveConfigManager(arg0 any) *gomock.Call

NewLiveConfigManager indicates an expected call of NewLiveConfigManager.

func (*MockCoreMockRecorder) NewMSIAuthorizer

func (mr *MockCoreMockRecorder) NewMSIAuthorizer(scope any) *gomock.Call

NewMSIAuthorizer indicates an expected call of NewMSIAuthorizer.

func (*MockCoreMockRecorder) NewMSITokenCredential

func (mr *MockCoreMockRecorder) NewMSITokenCredential() *gomock.Call

NewMSITokenCredential indicates an expected call of NewMSITokenCredential.

func (*MockCoreMockRecorder) ResourceGroup

func (mr *MockCoreMockRecorder) ResourceGroup() *gomock.Call

ResourceGroup indicates an expected call of ResourceGroup.

func (*MockCoreMockRecorder) SubscriptionID

func (mr *MockCoreMockRecorder) SubscriptionID() *gomock.Call

SubscriptionID indicates an expected call of SubscriptionID.

func (*MockCoreMockRecorder) TenantID

func (mr *MockCoreMockRecorder) TenantID() *gomock.Call

TenantID indicates an expected call of TenantID.

type MockInterface

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

MockInterface is a mock of Interface interface.

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) ACRDomain

func (m *MockInterface) ACRDomain() string

ACRDomain mocks base method.

func (*MockInterface) ACRResourceID

func (m *MockInterface) ACRResourceID() string

ACRResourceID mocks base method.

func (*MockInterface) AROOperatorImage

func (m *MockInterface) AROOperatorImage() string

AROOperatorImage mocks base method.

func (*MockInterface) AdminClientAuthorizer

func (m *MockInterface) AdminClientAuthorizer() clientauthorizer.ClientAuthorizer

AdminClientAuthorizer mocks base method.

func (*MockInterface) ArmClientAuthorizer

func (m *MockInterface) ArmClientAuthorizer() clientauthorizer.ClientAuthorizer

ArmClientAuthorizer mocks base method.

func (*MockInterface) ClusterGenevaLoggingAccount

func (m *MockInterface) ClusterGenevaLoggingAccount() string

ClusterGenevaLoggingAccount mocks base method.

func (*MockInterface) ClusterGenevaLoggingConfigVersion

func (m *MockInterface) ClusterGenevaLoggingConfigVersion() string

ClusterGenevaLoggingConfigVersion mocks base method.

func (*MockInterface) ClusterGenevaLoggingEnvironment

func (m *MockInterface) ClusterGenevaLoggingEnvironment() string

ClusterGenevaLoggingEnvironment mocks base method.

func (*MockInterface) ClusterGenevaLoggingNamespace

func (m *MockInterface) ClusterGenevaLoggingNamespace() string

ClusterGenevaLoggingNamespace mocks base method.

func (*MockInterface) ClusterGenevaLoggingSecret

func (m *MockInterface) ClusterGenevaLoggingSecret() (*rsa.PrivateKey, *x509.Certificate)

ClusterGenevaLoggingSecret mocks base method.

func (*MockInterface) ClusterKeyvault

func (m *MockInterface) ClusterKeyvault() keyvault.Manager

ClusterKeyvault mocks base method.

func (*MockInterface) ClusterMsiKeyVaultName

func (m *MockInterface) ClusterMsiKeyVaultName() string

ClusterMsiKeyVaultName mocks base method.

func (*MockInterface) Component

func (m *MockInterface) Component() string

Component mocks base method.

func (*MockInterface) DialContext

func (m *MockInterface) DialContext(ctx context.Context, network, address string) (net.Conn, error)

DialContext mocks base method.

func (*MockInterface) Domain

func (m *MockInterface) Domain() string

Domain mocks base method.

func (*MockInterface) EXPECT

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

func (*MockInterface) EnsureARMResourceGroupRoleAssignment

func (m *MockInterface) EnsureARMResourceGroupRoleAssignment(arg0 context.Context, arg1 string) error

EnsureARMResourceGroupRoleAssignment mocks base method.

func (*MockInterface) Environment

func (m *MockInterface) Environment() *azureclient.AROEnvironment

Environment mocks base method.

func (*MockInterface) FPAuthorizer

func (m *MockInterface) FPAuthorizer(arg0 string, arg1 []string, arg2 ...string) (autorest.Authorizer, error)

FPAuthorizer mocks base method.

func (*MockInterface) FPClientID

func (m *MockInterface) FPClientID() string

FPClientID mocks base method.

func (*MockInterface) FPNewClientCertificateCredential

func (m *MockInterface) FPNewClientCertificateCredential(arg0 string, arg1 []string) (*azidentity.ClientCertificateCredential, error)

FPNewClientCertificateCredential mocks base method.

func (*MockInterface) FeatureIsSet

func (m *MockInterface) FeatureIsSet(arg0 env.Feature) bool

FeatureIsSet mocks base method.

func (*MockInterface) GatewayDomains

func (m *MockInterface) GatewayDomains() []string

GatewayDomains mocks base method.

func (*MockInterface) GatewayResourceGroup

func (m *MockInterface) GatewayResourceGroup() string

GatewayResourceGroup mocks base method.

func (*MockInterface) Hostname

func (m *MockInterface) Hostname() string

Hostname mocks base method.

func (*MockInterface) InitializeAuthorizers

func (m *MockInterface) InitializeAuthorizers() error

InitializeAuthorizers mocks base method.

func (*MockInterface) IsCI

func (m *MockInterface) IsCI() bool

IsCI mocks base method.

func (*MockInterface) IsLocalDevelopmentMode

func (m *MockInterface) IsLocalDevelopmentMode() bool

IsLocalDevelopmentMode mocks base method.

func (*MockInterface) Listen

func (m *MockInterface) Listen() (net.Listener, error)

Listen mocks base method.

func (*MockInterface) LiveConfig

func (m *MockInterface) LiveConfig() liveconfig.Manager

LiveConfig mocks base method.

func (*MockInterface) Location

func (m *MockInterface) Location() string

Location mocks base method.

func (*MockInterface) Logger

func (m *MockInterface) Logger() *logrus.Entry

Logger mocks base method.

func (*MockInterface) MsiDataplaneClientOptions

func (m *MockInterface) MsiDataplaneClientOptions(msiResourceId *arm.ResourceID) (*policy.ClientOptions, error)

MsiDataplaneClientOptions mocks base method.

func (*MockInterface) MsiRpEndpoint

func (m *MockInterface) MsiRpEndpoint() string

MsiRpEndpoint mocks base method.

func (*MockInterface) NewLiveConfigManager

func (m *MockInterface) NewLiveConfigManager(arg0 context.Context) (liveconfig.Manager, error)

NewLiveConfigManager mocks base method.

func (*MockInterface) NewMSIAuthorizer

func (m *MockInterface) NewMSIAuthorizer(scope string) (autorest.Authorizer, error)

NewMSIAuthorizer mocks base method.

func (*MockInterface) NewMSITokenCredential

func (m *MockInterface) NewMSITokenCredential() (azcore.TokenCredential, error)

NewMSITokenCredential mocks base method.

func (*MockInterface) OIDCEndpoint

func (m *MockInterface) OIDCEndpoint() string

OIDCEndpoint mocks base method.

func (*MockInterface) OIDCKeyBitSize

func (m *MockInterface) OIDCKeyBitSize() int

OIDCKeyBitSize mocks base method.

func (*MockInterface) OIDCStorageAccountName

func (m *MockInterface) OIDCStorageAccountName() string

OIDCStorageAccountName mocks base method.

func (*MockInterface) ResourceGroup

func (m *MockInterface) ResourceGroup() string

ResourceGroup mocks base method.

func (*MockInterface) ServiceKeyvault

func (m *MockInterface) ServiceKeyvault() keyvault.Manager

ServiceKeyvault mocks base method.

func (*MockInterface) SubscriptionID

func (m *MockInterface) SubscriptionID() string

SubscriptionID mocks base method.

func (*MockInterface) TenantID

func (m *MockInterface) TenantID() string

TenantID mocks base method.

func (*MockInterface) VMSku

func (m *MockInterface) VMSku(vmSize string) (*compute.ResourceSku, error)

VMSku mocks base method.

type MockInterfaceMockRecorder

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

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) ACRDomain

func (mr *MockInterfaceMockRecorder) ACRDomain() *gomock.Call

ACRDomain indicates an expected call of ACRDomain.

func (*MockInterfaceMockRecorder) ACRResourceID

func (mr *MockInterfaceMockRecorder) ACRResourceID() *gomock.Call

ACRResourceID indicates an expected call of ACRResourceID.

func (*MockInterfaceMockRecorder) AROOperatorImage

func (mr *MockInterfaceMockRecorder) AROOperatorImage() *gomock.Call

AROOperatorImage indicates an expected call of AROOperatorImage.

func (*MockInterfaceMockRecorder) AdminClientAuthorizer

func (mr *MockInterfaceMockRecorder) AdminClientAuthorizer() *gomock.Call

AdminClientAuthorizer indicates an expected call of AdminClientAuthorizer.

func (*MockInterfaceMockRecorder) ArmClientAuthorizer

func (mr *MockInterfaceMockRecorder) ArmClientAuthorizer() *gomock.Call

ArmClientAuthorizer indicates an expected call of ArmClientAuthorizer.

func (*MockInterfaceMockRecorder) ClusterGenevaLoggingAccount

func (mr *MockInterfaceMockRecorder) ClusterGenevaLoggingAccount() *gomock.Call

ClusterGenevaLoggingAccount indicates an expected call of ClusterGenevaLoggingAccount.

func (*MockInterfaceMockRecorder) ClusterGenevaLoggingConfigVersion

func (mr *MockInterfaceMockRecorder) ClusterGenevaLoggingConfigVersion() *gomock.Call

ClusterGenevaLoggingConfigVersion indicates an expected call of ClusterGenevaLoggingConfigVersion.

func (*MockInterfaceMockRecorder) ClusterGenevaLoggingEnvironment

func (mr *MockInterfaceMockRecorder) ClusterGenevaLoggingEnvironment() *gomock.Call

ClusterGenevaLoggingEnvironment indicates an expected call of ClusterGenevaLoggingEnvironment.

func (*MockInterfaceMockRecorder) ClusterGenevaLoggingNamespace

func (mr *MockInterfaceMockRecorder) ClusterGenevaLoggingNamespace() *gomock.Call

ClusterGenevaLoggingNamespace indicates an expected call of ClusterGenevaLoggingNamespace.

func (*MockInterfaceMockRecorder) ClusterGenevaLoggingSecret

func (mr *MockInterfaceMockRecorder) ClusterGenevaLoggingSecret() *gomock.Call

ClusterGenevaLoggingSecret indicates an expected call of ClusterGenevaLoggingSecret.

func (*MockInterfaceMockRecorder) ClusterKeyvault

func (mr *MockInterfaceMockRecorder) ClusterKeyvault() *gomock.Call

ClusterKeyvault indicates an expected call of ClusterKeyvault.

func (*MockInterfaceMockRecorder) ClusterMsiKeyVaultName

func (mr *MockInterfaceMockRecorder) ClusterMsiKeyVaultName() *gomock.Call

ClusterMsiKeyVaultName indicates an expected call of ClusterMsiKeyVaultName.

func (*MockInterfaceMockRecorder) Component

func (mr *MockInterfaceMockRecorder) Component() *gomock.Call

Component indicates an expected call of Component.

func (*MockInterfaceMockRecorder) DialContext

func (mr *MockInterfaceMockRecorder) DialContext(ctx, network, address any) *gomock.Call

DialContext indicates an expected call of DialContext.

func (*MockInterfaceMockRecorder) Domain

func (mr *MockInterfaceMockRecorder) Domain() *gomock.Call

Domain indicates an expected call of Domain.

func (*MockInterfaceMockRecorder) EnsureARMResourceGroupRoleAssignment

func (mr *MockInterfaceMockRecorder) EnsureARMResourceGroupRoleAssignment(arg0, arg1 any) *gomock.Call

EnsureARMResourceGroupRoleAssignment indicates an expected call of EnsureARMResourceGroupRoleAssignment.

func (*MockInterfaceMockRecorder) Environment

func (mr *MockInterfaceMockRecorder) Environment() *gomock.Call

Environment indicates an expected call of Environment.

func (*MockInterfaceMockRecorder) FPAuthorizer

func (mr *MockInterfaceMockRecorder) FPAuthorizer(arg0, arg1 any, arg2 ...any) *gomock.Call

FPAuthorizer indicates an expected call of FPAuthorizer.

func (*MockInterfaceMockRecorder) FPClientID

func (mr *MockInterfaceMockRecorder) FPClientID() *gomock.Call

FPClientID indicates an expected call of FPClientID.

func (*MockInterfaceMockRecorder) FPNewClientCertificateCredential

func (mr *MockInterfaceMockRecorder) FPNewClientCertificateCredential(arg0, arg1 any) *gomock.Call

FPNewClientCertificateCredential indicates an expected call of FPNewClientCertificateCredential.

func (*MockInterfaceMockRecorder) FeatureIsSet

func (mr *MockInterfaceMockRecorder) FeatureIsSet(arg0 any) *gomock.Call

FeatureIsSet indicates an expected call of FeatureIsSet.

func (*MockInterfaceMockRecorder) GatewayDomains

func (mr *MockInterfaceMockRecorder) GatewayDomains() *gomock.Call

GatewayDomains indicates an expected call of GatewayDomains.

func (*MockInterfaceMockRecorder) GatewayResourceGroup

func (mr *MockInterfaceMockRecorder) GatewayResourceGroup() *gomock.Call

GatewayResourceGroup indicates an expected call of GatewayResourceGroup.

func (*MockInterfaceMockRecorder) Hostname

func (mr *MockInterfaceMockRecorder) Hostname() *gomock.Call

Hostname indicates an expected call of Hostname.

func (*MockInterfaceMockRecorder) InitializeAuthorizers

func (mr *MockInterfaceMockRecorder) InitializeAuthorizers() *gomock.Call

InitializeAuthorizers indicates an expected call of InitializeAuthorizers.

func (*MockInterfaceMockRecorder) IsCI

IsCI indicates an expected call of IsCI.

func (*MockInterfaceMockRecorder) IsLocalDevelopmentMode

func (mr *MockInterfaceMockRecorder) IsLocalDevelopmentMode() *gomock.Call

IsLocalDevelopmentMode indicates an expected call of IsLocalDevelopmentMode.

func (*MockInterfaceMockRecorder) Listen

func (mr *MockInterfaceMockRecorder) Listen() *gomock.Call

Listen indicates an expected call of Listen.

func (*MockInterfaceMockRecorder) LiveConfig

func (mr *MockInterfaceMockRecorder) LiveConfig() *gomock.Call

LiveConfig indicates an expected call of LiveConfig.

func (*MockInterfaceMockRecorder) Location

func (mr *MockInterfaceMockRecorder) Location() *gomock.Call

Location indicates an expected call of Location.

func (*MockInterfaceMockRecorder) Logger

func (mr *MockInterfaceMockRecorder) Logger() *gomock.Call

Logger indicates an expected call of Logger.

func (*MockInterfaceMockRecorder) MsiDataplaneClientOptions

func (mr *MockInterfaceMockRecorder) MsiDataplaneClientOptions(msiResourceId any) *gomock.Call

MsiDataplaneClientOptions indicates an expected call of MsiDataplaneClientOptions.

func (*MockInterfaceMockRecorder) MsiRpEndpoint

func (mr *MockInterfaceMockRecorder) MsiRpEndpoint() *gomock.Call

MsiRpEndpoint indicates an expected call of MsiRpEndpoint.

func (*MockInterfaceMockRecorder) NewLiveConfigManager

func (mr *MockInterfaceMockRecorder) NewLiveConfigManager(arg0 any) *gomock.Call

NewLiveConfigManager indicates an expected call of NewLiveConfigManager.

func (*MockInterfaceMockRecorder) NewMSIAuthorizer

func (mr *MockInterfaceMockRecorder) NewMSIAuthorizer(scope any) *gomock.Call

NewMSIAuthorizer indicates an expected call of NewMSIAuthorizer.

func (*MockInterfaceMockRecorder) NewMSITokenCredential

func (mr *MockInterfaceMockRecorder) NewMSITokenCredential() *gomock.Call

NewMSITokenCredential indicates an expected call of NewMSITokenCredential.

func (*MockInterfaceMockRecorder) OIDCEndpoint

func (mr *MockInterfaceMockRecorder) OIDCEndpoint() *gomock.Call

OIDCEndpoint indicates an expected call of OIDCEndpoint.

func (*MockInterfaceMockRecorder) OIDCKeyBitSize

func (mr *MockInterfaceMockRecorder) OIDCKeyBitSize() *gomock.Call

OIDCKeyBitSize indicates an expected call of OIDCKeyBitSize.

func (*MockInterfaceMockRecorder) OIDCStorageAccountName

func (mr *MockInterfaceMockRecorder) OIDCStorageAccountName() *gomock.Call

OIDCStorageAccountName indicates an expected call of OIDCStorageAccountName.

func (*MockInterfaceMockRecorder) ResourceGroup

func (mr *MockInterfaceMockRecorder) ResourceGroup() *gomock.Call

ResourceGroup indicates an expected call of ResourceGroup.

func (*MockInterfaceMockRecorder) ServiceKeyvault

func (mr *MockInterfaceMockRecorder) ServiceKeyvault() *gomock.Call

ServiceKeyvault indicates an expected call of ServiceKeyvault.

func (*MockInterfaceMockRecorder) SubscriptionID

func (mr *MockInterfaceMockRecorder) SubscriptionID() *gomock.Call

SubscriptionID indicates an expected call of SubscriptionID.

func (*MockInterfaceMockRecorder) TenantID

func (mr *MockInterfaceMockRecorder) TenantID() *gomock.Call

TenantID indicates an expected call of TenantID.

func (*MockInterfaceMockRecorder) VMSku

func (mr *MockInterfaceMockRecorder) VMSku(vmSize any) *gomock.Call

VMSku indicates an expected call of VMSku.

Jump to

Keyboard shortcuts

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