Documentation ¶
Index ¶
- type MockUtils
- func (mockUtils *MockUtils) CreateNewCertSecret(secretName string) (*corev1.Secret, error)
- func (mockUtils *MockUtils) CreateNewCredentialSecret(secretName string) (*corev1.Secret, error)
- func (mockUtils *MockUtils) GetCertFileFromSecret(secret *corev1.Secret) (string, error)
- func (mockUtils *MockUtils) GetCertFileFromSecretName(secretName string) (string, error)
- func (mockUtils *MockUtils) GetCredentialsFromSecret(secret *corev1.Secret) (*common.Credentials, error)
- func (mockUtils *MockUtils) GetCredentialsFromSecretName(secretName string) (*common.Credentials, error)
- func (mockUtils *MockUtils) StartInformer(callback func(k8sutils.UtilsInterface, *corev1.Secret)) error
- func (mockUtils *MockUtils) StopInformer()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUtils ¶
type MockUtils struct { KubernetesClient *kubernetes.Clientset InformerFactory informers.SharedInformerFactory SecretInformer informerv1.SecretInformer Namespace string CertDirectory string SecretCert []byte Username []byte Password []byte // contains filtered or unexported fields }
MockUtils - mock kubernetes utils
func (*MockUtils) CreateNewCertSecret ¶
CreateNewCertSecret - creates a new mock secret for certs
func (*MockUtils) CreateNewCredentialSecret ¶
CreateNewCredentialSecret - creates a new mock secret for credentials
func (*MockUtils) GetCertFileFromSecret ¶
GetCertFileFromSecret - mock implementation for GetCertFileFromSecret
func (*MockUtils) GetCertFileFromSecretName ¶
GetCertFileFromSecretName - mock implementation for GetCertFileFromSecretName
func (*MockUtils) GetCredentialsFromSecret ¶
func (mockUtils *MockUtils) GetCredentialsFromSecret(secret *corev1.Secret) (*common.Credentials, error)
GetCredentialsFromSecret - mock implementation for GetCredentialsFromSecret
func (*MockUtils) GetCredentialsFromSecretName ¶
func (mockUtils *MockUtils) GetCredentialsFromSecretName(secretName string) (*common.Credentials, error)
GetCredentialsFromSecretName - mock implementation for GetCredentialsFromSecretName
func (*MockUtils) StartInformer ¶
func (mockUtils *MockUtils) StartInformer(callback func(k8sutils.UtilsInterface, *corev1.Secret)) error
StartInformer - mock implementation for StartInformer
func (*MockUtils) StopInformer ¶
func (mockUtils *MockUtils) StopInformer()
StopInformer - mock implementation for StopInformer
Click to show internal directories.
Click to hide internal directories.